OSDN Git Service

Some more theme adjustment.
authorDianne Hackborn <hackbod@google.com>
Fri, 12 Nov 2010 21:18:26 +0000 (13:18 -0800)
committerDianne Hackborn <hackbod@google.com>
Fri, 12 Nov 2010 21:57:49 +0000 (13:57 -0800)
Also fix battery use button on device info to do the right thing.

Change-Id: I663429d5eb15ac4500feabeebd7ad2e3b8238409

AndroidManifest.xml
res/values/styles.xml
res/xml/device_info_settings.xml

index 5960572..c5e5eb7 100644 (file)
             </intent-filter>
         </activity-alias>
 
-        <activity android:name=".wifi.WifiInfo">
+        <activity android:name=".wifi.WifiInfo"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN"/>
                 <category android:name="android.intent.category.DEVELOPMENT_PREFERENCE" />
             </intent-filter>
         </activity>
 
-        <activity android:name=".wifi.WifiConfigInfo">
+        <activity android:name=".wifi.WifiConfigInfo"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN"/>
                 <category android:name="android.intent.category.DEVELOPMENT_PREFERENCE" />
             </intent-filter>
         </activity>
 
-        <activity android:name=".wifi.WifiAPITest">
+        <activity android:name=".wifi.WifiAPITest"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN"/>
                 <category android:name="android.intent.category.DEVELOPMENT_PREFERENCE" />
             </intent-filter>
         </activity>
 
-        <activity android:name=".wifi.WifiStatusTest">
+        <activity android:name=".wifi.WifiStatusTest"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN"/>
                 <category android:name="android.intent.category.DEVELOPMENT_PREFERENCE" />
         </activity>
 
         <activity-alias android:name=".wifi.WifiApSettings"
-            android:targetActivity="Settings">
+                android:targetActivity="Settings">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.DEFAULT" />
         </activity>
 
         <activity android:name="PhysicalKeyboardSettings"
-                android:label="@string/builtin_keyboard_settings_title">
+                android:label="@string/builtin_keyboard_settings_title"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.DEFAULT" />
         </activity>
 
         <activity android:name="Settings$DeviceInfoSettingsActivity"
-                android:theme="@android:style/Theme.Holo.Extended"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge"
                 android:label="@string/device_info_settings">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
 
         <activity android:name="SettingsLicenseActivity"
                 android:label="@string/settings_license_activity_title"
-                android:theme="@*android:style/Theme.Dialog.Alert">
+                android:theme="@*android:style/Theme.Holo.Dialog.Alert">
             <intent-filter>
                 <action android:name="android.settings.LICENSE" />
                 <category android:name="android.intent.category.DEFAULT" />
 
         <activity android:name="SettingsSafetyLegalActivity"
                 android:label="@string/settings_safetylegal_activity_title"
-                android:theme="@*android:style/Theme.Dialog.Alert">
+                android:theme="@*android:style/Theme.Holo.Dialog.Alert">
             <intent-filter>
                 <action android:name="android.settings.SAFETY" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
         </activity>
 
-        <activity android:name="IccLockSettings" android:label="@string/sim_lock_settings"
+        <activity android:name="IccLockSettings"
+                android:label="@string/sim_lock_settings"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge"
                 android:process="com.android.phone">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
         </activity>
 
         <!-- Runs in the phone process since it needs access to the Phone object -->
-        <activity android:name=".deviceinfo.Status" android:label="@string/device_status_activity_title"
+        <activity android:name=".deviceinfo.Status"
+                android:label="@string/device_status_activity_title"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge"
                 android:process="com.android.phone">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 android:resource="@id/storage_settings" />
         </activity>
 
-        <activity android:name="ApnEditor" android:label="@string/apn_edit">
+        <activity android:name="ApnEditor"
+                android:label="@string/apn_edit"
+                android:theme="@android:style/Theme.Holo.DialogWhenLarge">
             <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
                 <action android:name="android.intent.action.EDIT" />
index c24359b..991637b 100644 (file)
@@ -79,7 +79,7 @@
         <item name="android:windowContentOverlay">@null</item>
     </style>
     
-    <style name="Theme.CreateShortCut" parent="android:Theme.Holo">
+    <style name="Theme.CreateShortCut" parent="android:Theme.Holo.DialogWhenLarge">
     </style>
     
 </resources>
index 860c2ea..492c9d1 100644 (file)
         
         <PreferenceScreen
                 android:key="power_usage"
+                android:fragment="com.android.settings.fuelgauge.PowerUsageSummary"
                 android:title="@string/power_usage_summary_title"
                 android:summary="@string/power_usage_summary">
-            <intent android:action="android.intent.action.MAIN"
-                    android:targetPackage="com.android.settings"
-                    android:targetClass="com.android.settings.fuelgauge.PowerUsageSummary" />
         </PreferenceScreen>
 
         <!-- Legal Information -->