Conversation
d3c16f5 to
c3bd617
Compare
|
Thank you @harshad1 ! |
|
Hence can't be merged |
This is ready for review and merge |
| }); | ||
|
|
||
| // listView.setOnItemLongClickListener((parent, view, pos, id) -> directActivate.callback(pos, true)); | ||
| listView.setOnItemLongClickListener((parent, view, pos, id) -> directActivate.callback(pos, true)); |
There was a problem hiding this comment.
@guanglinn It looks like this was disabled accidentally by an earlier PR. Re-enabling it.
I don't think this breaks anything else
| searchEditText.setTextColor(dopt.textColor); | ||
| searchEditText.setHintTextColor(ColorUtils.setAlphaComponent(dopt.textColor, 0x99)); | ||
| searchEditText.setHint(dopt.searchHintText); | ||
| searchEditText.setText(dopt.searchText); |
There was a problem hiding this comment.
we do not need a separate searchText
dopt.state.searchText does exactly this already
| final Window window = context.getWindow(); | ||
| window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); | ||
| window.setNavigationBarColor(color); | ||
| if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
There was a problem hiding this comment.
Maintain system navigation bar contrast correctly even if markor and device themes mismatch
|
|
||
| <net.gsantner.markor.frontend.DraggableScrollbarScrollView | ||
| android:id="@+id/document__fragment__edit__content_editor__scrolling_parent" | ||
| <FrameLayout |
There was a problem hiding this comment.
Improved layout eliminates need for extra padding
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toTopOf="parent"> | ||
|
|
||
| <ImageButton |
There was a problem hiding this comment.
@guanglinn I removed the close button and made it so pressing the search icon again closes the view
There was a problem hiding this comment.
Let me know if you think this is not clean. I can revert it
There was a problem hiding this comment.
No need to revert it I think. The screen space of mobile devices is precious, there is nothing wrong with removing it
| listAdapter.filter(searchEditText.getText()); | ||
| setSelectAllButtonState.callback(); | ||
| }; | ||
| final Runnable _changeListener = dopt.data == null || dopt.data.size() < 1000 ? |
There was a problem hiding this comment.
Only debounce when the list is very long
|
|
||
| final View decorView = win.getDecorView(); | ||
| ViewCompat.setOnApplyWindowInsetsListener(decorView, (view, insets) -> { | ||
| listView.requestLayout(); |
There was a problem hiding this comment.
Explicitly request layout when keyboard shown. Fixes resize
| } | ||
|
|
||
| @Nullable | ||
| private static Editable getCurrentSearchText(final AlertDialog dialog) { |
There was a problem hiding this comment.
@guanglinn instead of neutralButtonCallback2 we fetch the search text from the existing dialog
This Addresses #2726
In addition I have included a number of general fixes and improvements