File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/src/main/java/net/gsantner/markor/activity Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -763,13 +763,17 @@ public void onViewDetachedFromWindow(@NonNull View v) {
763763 // Add previous match Button
764764 ImageButton previousButton = new ImageButton (searchViewContext );
765765 previousButton .setImageResource (R .drawable .ic_baseline_keyboard_arrow_up_24 );
766- previousButton .setTooltipText (getString (R .string .previous_match ));
766+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
767+ previousButton .setTooltipText (getString (R .string .previous_match ));
768+ }
767769 linearLayout .addView (previousButton );
768770
769771 // Add next match Button
770772 ImageButton nextButton = new ImageButton (searchViewContext );
771773 nextButton .setImageResource (R .drawable .ic_baseline_keyboard_arrow_down_24 );
772- nextButton .setTooltipText (getString (R .string .next_match ));
774+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
775+ nextButton .setTooltipText (getString (R .string .next_match ));
776+ }
773777 linearLayout .addView (nextButton );
774778
775779 // Apply to SearchView
You can’t perform that action at this time.
0 commit comments