summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/Settings.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-07-09 17:52:31 -0700
committerJeff Sharkey <jsharkey@android.com>2011-07-09 17:52:42 -0700
commit9fab0da184b07f7a355909d84429a8ea41985e74 (patch)
treee816ad2a10f47f18d44e55f2db7b08132a0f0d94 /src/com/android/settings/Settings.java
parent9f81ee87ef8c0c0de184aedff7b09bbf6007a078 (diff)
downloadpackages_apps_Settings-9fab0da184b07f7a355909d84429a8ea41985e74.tar.gz
packages_apps_Settings-9fab0da184b07f7a355909d84429a8ea41985e74.tar.bz2
packages_apps_Settings-9fab0da184b07f7a355909d84429a8ea41985e74.zip
Roaming and background controls under data usage.
Add action items to control mobile data roaming and background data controls, along with dialogs to confirm. Still need to fix telephony to watch for Settings.Secure changes. Hide "Change cycle" item when viewing app details. Handle special case where data usage doesn't want split action bar. Bug: 4818009, 4979025, 4948767, 5010948 Change-Id: I363ff76a9daf2528d81573cf8d0687719d664bb0
Diffstat (limited to 'src/com/android/settings/Settings.java')
-rw-r--r--src/com/android/settings/Settings.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java
index 518d0ee67..15366e846 100644
--- a/src/com/android/settings/Settings.java
+++ b/src/com/android/settings/Settings.java
@@ -59,6 +59,8 @@ public class Settings extends PreferenceActivity implements ButtonBarHandler {
private static final String META_DATA_KEY_PARENT_FRAGMENT_CLASS =
"com.android.settings.PARENT_FRAGMENT_CLASS";
+ private static final String EXTRA_THEME = "settings:theme";
+
private static final String SAVE_KEY_CURRENT_HEADER = "com.android.settings.CURRENT_HEADER";
private static final String SAVE_KEY_PARENT_HEADER = "com.android.settings.PARENT_HEADER";
@@ -76,6 +78,10 @@ public class Settings extends PreferenceActivity implements ButtonBarHandler {
@Override
protected void onCreate(Bundle savedInstanceState) {
+ final int theme = getIntent().getIntExtra(
+ EXTRA_THEME, android.R.style.Theme_Holo_SolidActionBar_SplitActionBarWhenNarrow);
+ setTheme(theme);
+
getMetaData();
mInLocalHeaderSwitch = true;
super.onCreate(savedInstanceState);
@@ -277,6 +283,12 @@ public class Settings extends PreferenceActivity implements ButtonBarHandler {
int titleRes, int shortTitleRes) {
Intent intent = super.onBuildStartFragmentIntent(fragmentName, args,
titleRes, shortTitleRes);
+
+ // some fragments would like a custom activity theme
+ if (DataUsageSummary.class.getName().equals(fragmentName)) {
+ intent.putExtra(EXTRA_THEME, android.R.style.Theme_Holo_SolidActionBar);
+ }
+
intent.setClass(this, SubSettings.class);
return intent;
}