[ios] show the disable full screen on long tap toast every time

instead of the only the firs hiding

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-12-22 16:55:23 +04:00 committed by Kiryl Kaveryn
parent 2b78ba1749
commit 0873f97754

View file

@ -140,18 +140,9 @@ NSString * const kUDDidShowLongTapToShowSideButtonsToast = @"kUDDidShowLongTapTo
- (void)setHidden:(BOOL)hidden
{
if (!self.hidden && hidden)
[self showLongTapToShowSideButtonsToastOnFirstHiding];
[[MWMToast toastWithText:L(@"long_tap_toast")] show];
return [self.sideView setHidden:hidden animated:YES];
}
- (void)showLongTapToShowSideButtonsToastOnFirstHiding
{
if (![NSUserDefaults.standardUserDefaults boolForKey:kUDDidShowLongTapToShowSideButtonsToast])
{
[[MWMToast toastWithText:L(@"long_tap_toast")] show];
[NSUserDefaults.standardUserDefaults setBool:YES forKey:kUDDidShowLongTapToShowSideButtonsToast];
}
}
@end