Browse files

using OAuth1Parameters.NONE constant

  • Loading branch information...
1 parent ae48793 commit 3ab7e05882c1eba77f80749f44773f8d2d2b9e26 @royclarkson royclarkson committed May 9, 2011
View
5 ...ient/src/org/springframework/android/showcase/social/twitter/TwitterWebOAuthActivity.java
@@ -38,7 +38,8 @@
*/
public class TwitterWebOAuthActivity extends AbstractWebViewActivity
{
-// private static final String TAG = TwitterWebOAuthActivity.class.getSimpleName();
+ @SuppressWarnings("unused")
+ private static final String TAG = TwitterWebOAuthActivity.class.getSimpleName();
private static final String REQUEST_TOKEN_KEY = "request_token";
@@ -102,7 +103,7 @@ private void displayTwitterAuthorization(OAuthToken requestToken)
saveRequestToken(requestToken);
// Generate the Twitter authorization URL to be used in the browser or web view
- String authUrl = _connectionFactory.getOAuthOperations().buildAuthorizeUrl(requestToken.getValue(), new OAuth1Parameters(null));
+ String authUrl = _connectionFactory.getOAuthOperations().buildAuthorizeUrl(requestToken.getValue(), OAuth1Parameters.NONE);
// display the twitter authorization screen
getWebView().loadUrl(authUrl);

0 comments on commit 3ab7e05

Please sign in to comment.