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

github.com/mumble-voip/mumble-iphoneos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2011-02-02 04:22:29 +0300
committerMikkel Krautz <mikkel@krautz.dk>2011-02-02 04:22:29 +0300
commit13519185cf1d76c2d31f81142b15fee6cf9cf0f5 (patch)
tree5b4525e1a5ff5953cb52cb11acae1fc3147e8f1f
parentb4aaaefc574b727d66320e2f56aaf713061a03c9 (diff)
Get rid of 'Duck Audio'. It's complicated to get right, so remove the option until we've finished some of the more important parts of the app.
-rw-r--r--Source/Classes/PreferencesViewController.m17
1 files changed, 3 insertions, 14 deletions
diff --git a/Source/Classes/PreferencesViewController.m b/Source/Classes/PreferencesViewController.m
index f3036ec..33defa8 100644
--- a/Source/Classes/PreferencesViewController.m
+++ b/Source/Classes/PreferencesViewController.m
@@ -84,7 +84,7 @@
- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// Audio
if (section == 0) {
- return 3;
+ return 2;
// Network
} else if (section == 1) {
return 1;
@@ -122,19 +122,8 @@
[volSlider release];
}
- // Ducking
- if ([indexPath row] == 1) {
- UISwitch *duckSwitch = [[UISwitch alloc] init];
- [duckSwitch setOn:[[NSUserDefaults standardUserDefaults] boolForKey:@"AudioDucking"]];
- [[cell textLabel] setText:@"Duck Audio"];
- [cell setAccessoryView:duckSwitch];
- [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
- [duckSwitch addTarget:self action:@selector(audioDuckingChanged:) forControlEvents:UIControlEventValueChanged];
- [duckSwitch release];
- }
-
// Advanced Audio
- if ([indexPath row] == 2) {
+ if ([indexPath row] == 1) {
[[cell textLabel] setText:@"Advanced Audio"];
[cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
}
@@ -243,7 +232,7 @@
[[self tableView] deselectRowAtIndexPath:indexPath animated:YES];
if ([indexPath section] == 0) { // Audio
- if ([indexPath row] == 2) { // Advanced Audio
+ if ([indexPath row] == 1) { // Advanced Audio
AdvancedAudioPreferencesViewController *advAudio = [[AdvancedAudioPreferencesViewController alloc] init];
[[self navigationController] pushViewController:advAudio animated:YES];
[advAudio release];