aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-05-19 22:42:19 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-05-19 22:42:19 +0200
commit7921fd85594ede61cec50d3a58921dab6af26deb (patch)
tree2a9d264b6443ce2326621d2cd703fcc6da7f456f /main/src/cgeo
parent35d75d9a7600fe1c7c3467e898e84f1ef9d09215 (diff)
parent14ca81b117fec9febed984a5cb159dc0665753f2 (diff)
downloadcgeo-7921fd85594ede61cec50d3a58921dab6af26deb.zip
cgeo-7921fd85594ede61cec50d3a58921dab6af26deb.tar.gz
cgeo-7921fd85594ede61cec50d3a58921dab6af26deb.tar.bz2
Merge pull request #3850 from schwabe/fix_oauth_dialogs
Don't let the OAuth dialogs use the Dialog theme
Diffstat (limited to 'main/src/cgeo')
-rw-r--r--main/src/cgeo/geocaching/activity/AbstractActionBarActivity.java6
-rw-r--r--main/src/cgeo/geocaching/activity/AbstractActivity.java11
-rw-r--r--main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java5
3 files changed, 5 insertions, 17 deletions
diff --git a/main/src/cgeo/geocaching/activity/AbstractActionBarActivity.java b/main/src/cgeo/geocaching/activity/AbstractActionBarActivity.java
index b35f6e3..615a432 100644
--- a/main/src/cgeo/geocaching/activity/AbstractActionBarActivity.java
+++ b/main/src/cgeo/geocaching/activity/AbstractActionBarActivity.java
@@ -20,12 +20,6 @@ public class AbstractActionBarActivity extends AbstractActivity {
showProgress(false);
}
- @Override
- protected void onCreate(Bundle savedInstanceState, int resourceLayoutID, boolean useDialogTheme) {
- super.onCreate(savedInstanceState, resourceLayoutID, useDialogTheme);
- initUpAction();
- showProgress(false);
- }
private void initUpAction() {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
diff --git a/main/src/cgeo/geocaching/activity/AbstractActivity.java b/main/src/cgeo/geocaching/activity/AbstractActivity.java
index 42eb825..d7d88b5 100644
--- a/main/src/cgeo/geocaching/activity/AbstractActivity.java
+++ b/main/src/cgeo/geocaching/activity/AbstractActivity.java
@@ -114,21 +114,14 @@ public abstract class AbstractActivity extends ActionBarActivity implements IAbs
}
protected void onCreate(final Bundle savedInstanceState, final int resourceLayoutID) {
- onCreate(savedInstanceState, resourceLayoutID, false);
- }
-
- protected void onCreate(final Bundle savedInstanceState, final int resourceLayoutID, boolean useDialogTheme) {
super.onCreate(savedInstanceState);
initializeCommonFields();
// non declarative part of layout
- if (useDialogTheme) {
- setTheme(ActivityMixin.getDialogTheme());
- } else {
- setTheme();
- }
+ setTheme();
+
setContentView(resourceLayoutID);
// create view variables
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) {