@@ -498,6 +498,7 @@ public void updateList(boolean animated) {
498498 private ActionBarMenuSubItem proxyMenuSubItem;
499499 private HintView2 storyHint;
500500 private HintView2 storyPremiumHint;
501+ private HintView2 forkTitleHint;
501502 private boolean canShowStoryHint;
502503 private boolean storyHintShown;
503504 private FragmentFloatingButton floatingButton3;
@@ -4774,6 +4775,22 @@ protected void onOpenBot(TLRPC.User bot) {
47744775 }
47754776 }
47764777
4778+ if (!isArchive() && initialDialogsType == DIALOGS_TYPE_DEFAULT) {
4779+ if (MessagesController.getGlobalMainSettings().getBoolean("forktitlehint", true)) {
4780+ forkTitleHint = new HintView2(context, HintView2.DIRECTION_TOP)
4781+ .setRounding(8)
4782+ .setDuration(15_000)
4783+ .setCloseButton(true)
4784+ .setMaxWidth(300)
4785+ .setMultilineText(true)
4786+ .setText("Long-press the title to toggle the bottom tab bar.\nLong-press \u22EE to quickly open Settings.")
4787+ .setJoint(0, 40)
4788+ .setBgColor(getThemedColor(Theme.key_undo_background))
4789+ .setOnHiddenListener(() -> MessagesController.getGlobalMainSettings().edit().putBoolean("forktitlehint", false).apply());
4790+ contentView.addView(forkTitleHint, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, 100, Gravity.TOP | Gravity.FILL_HORIZONTAL, 0, 56, 0, 0));
4791+ }
4792+ }
4793+
47774794 updateStoriesPosting();
47784795
47794796 searchTabsView = null;
@@ -7306,6 +7323,11 @@ public void onBecomeFullyVisible() {
73067323 canShowStoryHint = false;
73077324 storyHint.show();
73087325 }
7326+ if (forkTitleHint != null) {
7327+ final HintView2 hint = forkTitleHint;
7328+ forkTitleHint = null;
7329+ AndroidUtilities.runOnUIThread(hint::show, 1500);
7330+ }
73097331 AndroidUtilities.runOnUIThread(this::createSearchViewPager, 200);
73107332 }
73117333
0 commit comments