Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-08-28 14:33:10 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:03:01 +0300
commitb334b72a311501a52dafedb02c4afd7cc97ab03d (patch)
tree2fae70ede2a70a25750142fa8066efa560689eaa /iphone
parent3366100927734e213755c791124e965742b79224 (diff)
Use short commands to change style
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Classes/SearchView.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/iphone/Maps/Classes/SearchView.mm b/iphone/Maps/Classes/SearchView.mm
index 3428c852b0..f66233d1ed 100644
--- a/iphone/Maps/Classes/SearchView.mm
+++ b/iphone/Maps/Classes/SearchView.mm
@@ -372,9 +372,9 @@ static BOOL keyboardLoaded = NO;
- (BOOL)tryChangeMapStyleCmd:(NSString *)cmd
{
// Hook for shell command on change map style
- BOOL const isDark = [cmd isEqualToString:@"mapstyle:dark"];
- BOOL const isLight = isDark ? NO : [cmd isEqualToString:@"mapstyle:light"];
- BOOL const isClear = isLight || isDark ? NO : [cmd isEqualToString:@"mapstyle:clear"];
+ BOOL const isDark = [cmd isEqualToString:@"mapstyle:dark"] || [cmd isEqualToString:@"?dark"];
+ BOOL const isLight = isDark ? NO : [cmd isEqualToString:@"mapstyle:light"] || [cmd isEqualToString:@"?light"];
+ BOOL const isClear = isLight || isDark ? NO : [cmd isEqualToString:@"?newstyle"];
if (!isDark && !isLight && !isClear)
return NO;