forked from organicmaps/organicmaps
[ios] Correct fix of zoom buttons
This commit is contained in:
parent
d020dd8ced
commit
0eb4981de5
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue