-
Notifications
You must be signed in to change notification settings - Fork 391
WIP: Improving view mode and rendering #2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
@Override | ||
public void onFsViewerNeutralButtonPressed(File currentFolder) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Select folder
@@ -76,6 +76,8 @@ public class DocumentEditAndViewFragment extends MarkorBaseFragment implements F | |||
public static final String SAVESTATE_DOCUMENT = "DOCUMENT"; | |||
public static final String START_PREVIEW = "START_PREVIEW"; | |||
|
|||
public static float VIEW_FONT_SCALE = 100f / 15.7f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Do you see that scale still fitting quite good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. But I do all my testing just my own primary device - a pixel 7 pro
} | ||
|
||
@Override | ||
public void generateSpans() { | ||
|
||
super.generateSpans(); | ||
// Single span for the whole text - highly performant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single span for the whole file.
Much faster! Much less highlighting jank!
@@ -30,15 +30,15 @@ public static ApplicationObject get() { | |||
return _app; | |||
} | |||
|
|||
public static AppSettings settings() { | |||
public static AppSettings backupSettings() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making it clear that these settings are to be used as a last resort
@Override | ||
public AppSettings init(final Context context) { | ||
super.init(context); | ||
public static AppSettings get(final Context context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the new way of getting context
It falls back to try to do what is most correct
@@ -63,19 +66,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { | |||
} | |||
} | |||
|
|||
protected void onPreCreate(@Nullable Bundle savedInstanceState) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved to onCreate()
Children ought to call super.onCreate() first
Uh oh!
There was an error while loading. Please reload this page.