Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Fix for open issue #13 - "Shake for new story" Bug #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "TouchJSON"]
path = TouchJSON
url = https://github.com/schwa/TouchJSON.git
url = https://github.com/TouchCode/TouchJSON.git
[submodule "three20"]
path = three20
url = https://github.com/facebook/three20.git
1 change: 1 addition & 0 deletions Classes/iRedditAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
+ (UIColor *)redditNavigationBarTintColor;
+ (iRedditAppDelegate *)sharedAppDelegate;

- (void)loadRandomData;
- (void)reloadSound;
- (void)showRandomStory;

Expand Down
6 changes: 6 additions & 0 deletions Classes/iRedditAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application
[self loadRandomData];
}

- (void)applicationWillResignActive:(UIApplication *)application
{
shouldDetectDeviceShake = NO;
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
#ifdef DEPRECATED_FREE
Expand All @@ -102,6 +107,7 @@ - (void)applicationDidBecomeActive:(UIApplication *)application
[deprecatedAlert release];
}
#endif
shouldDetectDeviceShake = YES;
}

- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
Expand Down