Open GoogleCodeExporter opened 9 years ago
GTMOAuth2ViewControllerTouch displays (quite ugly) back and forward buttons even if they won't do anything, confusing users diff --git a/Dependencies/google-api-objectivec-client/Source/OAuth2/Touch/GTMOAuth2ViewCon trollerTouch.m b/Dependencies/google-api-objectivec-client/Source/OAuth2/T index b1c9612..e99a5c8 100644 --- a/Dependencies/google-api-objectivec-client/Source/OAuth2/Touch/GTMOAuth2ViewCon trollerTouch.m +++ b/Dependencies/google-api-objectivec-client/Source/OAuth2/Touch/GTMOAuth2ViewCon trollerTouch.m @@ -718,6 +718,9 @@ static Class gSignInClass = Nil; [self saveBrowserCookies]; [self clearSpecifiedBrowserCookies]; + self.backButton.hidden = YES; + self.forwardButton.hidden = YES; + if (!isViewShown_) { isViewShown_ = YES; if ([self isNavigationBarTranslucent]) { @@ -842,6 +845,9 @@ static Class gSignInClass = Nil; [self updateUI]; } + + self.forwardButton.hidden = ![webView canGoForward]; + self.backButton.hidden = ![webView canGoBack]; } - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
Original issue reported on code.google.com by mayer.ju...@gmail.com on 31 Jan 2014 at 10:31
mayer.ju...@gmail.com
Original issue reported on code.google.com by
mayer.ju...@gmail.com
on 31 Jan 2014 at 10:31