-
Notifications
You must be signed in to change notification settings - Fork 375
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
WIP: Quick filter all files #2521
base: master
Are you sure you want to change the base?
Conversation
…to per_folder_sort_order
@@ -284,6 +282,9 @@ protected void onFragmentFirstTimeVisible() { | |||
public void onResume() { | |||
loadDocument(); | |||
_webView.onResume(); | |||
if (_editTextUndoRedoHelper != null && _editTextUndoRedoHelper.getTextView() != _hlEditor) { | |||
_editTextUndoRedoHelper.setTextView(_hlEditor); |
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.
We simplify loadContent and allow the undo-redo tracker to undo file load.
@@ -1022,4 +1022,8 @@ public boolean onReceiveKeyPress(final int keyCode, final KeyEvent event) { | |||
} | |||
return false; | |||
} | |||
|
|||
public static class HeadlineState extends GsSearchOrCustomTextDialog.DialogState { | |||
public final List<Integer> disabledLevels = new ArrayList<>(); |
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.
Moving action-button specific things out of the Dialog implementation
@@ -1,89 +0,0 @@ | |||
/*####################################################### |
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.
Replaced by just using GsSearchOrCustomTextDialog
|
||
if (depth < _config.maxSearchDepth && dir.canRead()) { | ||
handleDirectory(dir, trimLength, depth, stack); | ||
publishProgress(stack.size(), depth, _result.size(), _countCheckedFiles); |
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.
Primary speedups:
- Publish progress a little less frequently
- Switch to stack vs queue, and simplify nesting
- Only get canonical file when absolutely required (this is a huge bottleneck on android)
confirmDopt.messageText = title; | ||
confirmDopt.isSearchEnabled = false; | ||
confirmDopt.callback = (s) -> { | ||
showConfirmDialog(activity, R.string.confirm_delete, title, null, () -> { |
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.
Generic confirm dialog which can be used everywhere
This PR adds 2 new features:
Also included are a ton of fixes and improvements: