forked from organicmaps/organicmaps
[ios] Fixed @igrechuhin comments. (TTS)
This commit is contained in:
parent
6442186334
commit
2df36d58d3
4 changed files with 16 additions and 19 deletions
|
@ -335,9 +335,9 @@ static NSString * const kNavigationDashboardIPADXibName = @"MWMNiPadNavigationDa
|
|||
BOOL const isNeedToEnable = tts.isNeedToEnable;
|
||||
self.navigationDashboardPortrait.soundButton.selected = isNeedToEnable;
|
||||
self.navigationDashboardLandscape.soundButton.selected = isNeedToEnable;
|
||||
if (isNeedToEnable) {
|
||||
if (isNeedToEnable)
|
||||
[tts enable];
|
||||
}
|
||||
|
||||
[self.navigationDashboard addToView:self.ownerView];
|
||||
}
|
||||
|
||||
|
@ -346,13 +346,9 @@ static NSString * const kNavigationDashboardIPADXibName = @"MWMNiPadNavigationDa
|
|||
switch (GetFramework().GetRouter())
|
||||
{
|
||||
case routing::RouterType::Pedestrian:
|
||||
// self.routePreview.pedestrianProgressView.state = MWMCircularProgressStateSelected;
|
||||
// self.routePreview.vehicleProgressView.state = MWMCircularProgressStateNormal;
|
||||
self.activeRouteTypeButton = self.routePreview.pedestrianProgressView;
|
||||
break;
|
||||
case routing::RouterType::Vehicle:
|
||||
// self.routePreview.vehicleProgressView.state = MWMCircularProgressStateSelected;
|
||||
// self.routePreview.pedestrianProgressView.state = MWMCircularProgressStateNormal;
|
||||
self.activeRouteTypeButton = self.routePreview.vehicleProgressView;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ extern NSString * const kUserDafaultsNeedToEnableTTS = @"UserDefaultsNeedToEnabl
|
|||
|
||||
NSString * saved = self.savedLanguage;
|
||||
|
||||
string preferedLanguage ;
|
||||
string preferedLanguage;
|
||||
if (saved.length)
|
||||
preferedLanguage = saved.UTF8String;
|
||||
else
|
||||
|
@ -226,7 +226,7 @@ namespace tts
|
|||
string bcp47ToTwineLanguage(NSString const * bcp47LangName)
|
||||
{
|
||||
if (bcp47LangName == nil || [bcp47LangName length] < 2)
|
||||
return nil;
|
||||
return "";
|
||||
|
||||
if ([bcp47LangName isEqualToString:@"zh-CN"] || [bcp47LangName isEqualToString:@"zh-CHS"]
|
||||
|| [bcp47LangName isEqualToString:@"zh-SG"])
|
||||
|
|
|
@ -81,7 +81,8 @@ using namespace std;
|
|||
|
||||
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||
{
|
||||
return 2;
|
||||
return 1;
|
||||
// return 2;
|
||||
}
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
||||
|
@ -125,10 +126,10 @@ using namespace std;
|
|||
[tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
#warning need to add help
|
||||
}
|
||||
// else
|
||||
// {
|
||||
// }
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#import "SettingsViewController.h"
|
||||
#import "SwitchCell.h"
|
||||
#import "SelectableCell.h"
|
||||
#import "LinkCell.h"
|
||||
#import "WebViewController.h"
|
||||
#import "MapViewController.h"
|
||||
#import "MapsAppDelegate.h"
|
||||
#import "Statistics.h"
|
||||
#import "MapViewController.h"
|
||||
#import "MWMMapViewControlsManager.h"
|
||||
#import "MWMTextToSpeech.h"
|
||||
#import "SelectableCell.h"
|
||||
#import "SettingsViewController.h"
|
||||
#import "Statistics.h"
|
||||
#import "SwitchCell.h"
|
||||
#import "LinkCell.h"
|
||||
#import "WebViewController.h"
|
||||
|
||||
#include "Framework.h"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue