view thread controller: fix hints.

crowdin
Floens 7 years ago
parent 2b6c0c299a
commit 6038c6a35f
  1. 12
      Clover/app/src/main/java/org/floens/chan/ui/controller/ViewThreadController.java

@ -203,14 +203,26 @@ public class ViewThreadController extends ThreadController implements ThreadLayo
updateLeftPaneHighlighting(loadable);
presenter.requestInitialData();
showHints();
}
}
private void showHints() {
int counter = ChanSettings.threadOpenCounter.increase();
if (counter == 2) {
view.postDelayed(() -> {
View view = navigation.findItem(ToolbarMenu.OVERFLOW_ID).getView();
if (view != null) {
HintPopup.show(context, view, context.getString(R.string.thread_up_down_hint), -dp(1), 0);
}
}, 600);
} else if (counter == 3) {
view.postDelayed(() -> {
View view = navigation.findItem(PIN_ID).getView();
if (view != null) {
HintPopup.show(context, view, context.getString(R.string.thread_pin_hint), -dp(1), 0);
}
}, 600);
}
}

Loading…
Cancel
Save