[ios] Correct fix of zoom buttons

This commit is contained in:
VladiMihaylenko 2015-04-03 09:48:26 +03:00 committed by Alex Zolotarev
parent d020dd8ced
commit 0eb4981de5
2 changed files with 3 additions and 1 deletions

View file

@ -656,6 +656,8 @@ extern NSString * const kAlohalyticsTapEventKey = @"$onClick";
if ((self = [super initWithCoder:coder]))
{
Framework & f = GetFramework();
if ([[NSUserDefaults standardUserDefaults] boolForKey:FIRST_LAUNCH_KEY])
Settings::Set("ZoomButtonsEnabled", true);
typedef void (*UserMarkActivatedFnT)(id, SEL, unique_ptr<UserMarkCopy>);
typedef void (*PlacePageDismissedFnT)(id, SEL);

View file

@ -90,7 +90,7 @@ typedef NS_ENUM(NSUInteger, Section)
{
cell = [tableView dequeueReusableCellWithIdentifier:[SwitchCell className]];
SwitchCell * customCell = (SwitchCell *)cell;
bool on = true;
bool on;
(void)Settings::Get("ZoomButtonsEnabled", on);
customCell.switchButton.on = on;
customCell.titleLabel.text = L(@"pref_zoom_title");