aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-05-18 23:02:26 +0200
committerArne Schwabe <arne@rfc2549.org>2014-05-18 23:02:53 +0200
commit14ca81b117fec9febed984a5cb159dc0665753f2 (patch)
tree5e2c3fd94fa60edcdc652d2b670f4c91950ecaf5 /main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java
parent916992dc8398db364927a50a8ceb46f3053fce96 (diff)
downloadcgeo-14ca81b117fec9febed984a5cb159dc0665753f2.zip
cgeo-14ca81b117fec9febed984a5cb159dc0665753f2.tar.gz
cgeo-14ca81b117fec9febed984a5cb159dc0665753f2.tar.bz2
Don't let the OAuth dialogs use the Dialog theme
This fixes the crash when a OAuth dialog is shown, a correct fix would to convert the OAuth dialogs to activities/DialogFragment but that is more work and can be done later.
Diffstat (limited to 'main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java')
-rw-r--r--main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java b/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java
index 527f024..ff9a165 100644
--- a/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java
+++ b/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java
@@ -5,6 +5,7 @@ import butterknife.InjectView;
import cgeo.geocaching.Intents;
import cgeo.geocaching.R;
import cgeo.geocaching.activity.AbstractActionBarActivity;
+import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.utils.BundleUtils;
import cgeo.geocaching.utils.Log;
import cgeo.geocaching.utils.MatcherWrapper;
@@ -32,7 +33,7 @@ import android.widget.TextView;
import java.io.IOException;
import java.util.regex.Pattern;
-public abstract class OAuthAuthorizationActivity extends AbstractActionBarActivity {
+public abstract class OAuthAuthorizationActivity extends AbstractActivity {
public static final int NOT_AUTHENTICATED = 0;
public static final int AUTHENTICATED = 1;
@@ -106,7 +107,7 @@ public abstract class OAuthAuthorizationActivity extends AbstractActionBarActivi
@Override
public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState, R.layout.authorization_activity, true);
+ super.onCreate(savedInstanceState, R.layout.authorization_activity);
Bundle extras = getIntent().getExtras();
if (extras != null) {