mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-23 05:16:15 +03:00
Use native Linkify flag
This commit is contained in:
parent
32058a2db5
commit
a35255d838
2 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ public class NotesApplication extends Application {
|
|||
}
|
||||
|
||||
public static boolean isDarkThemeActive(Context context) {
|
||||
int uiMode = context.getResources().getConfiguration().uiMode;
|
||||
final int uiMode = context.getResources().getConfiguration().uiMode;
|
||||
return (uiMode & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ public class MarkwonMarkdownUtil {
|
|||
return initMarkwonEditor(context)
|
||||
.usePlugin(TablePlugin.create(context))
|
||||
.usePlugin(TaskListPlugin.create(context))
|
||||
.usePlugin(LinkifyPlugin.create())
|
||||
.usePlugin(LinkifyPlugin.create(true))
|
||||
.usePlugin(ImagesPlugin.create())
|
||||
.usePlugin(SyntaxHighlightPlugin.create(prism4j, prism4jTheme));
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ public class MarkwonMarkdownUtil {
|
|||
}
|
||||
|
||||
private static boolean isDarkThemeActive(@NonNull Context context) {
|
||||
int uiMode = context.getResources().getConfiguration().uiMode;
|
||||
final int uiMode = context.getResources().getConfiguration().uiMode;
|
||||
return (uiMode & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue