Use native Linkify flag

This commit is contained in:
Stefan Niedermann 2021-01-04 12:12:24 +01:00
parent 32058a2db5
commit a35255d838
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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;
}