OSDN Git Service

Fix Theme.Micro to not request ActionBar.
authorWill Haldean Brown <haldean@google.com>
Fri, 7 Mar 2014 00:14:44 +0000 (16:14 -0800)
committerWill Haldean Brown <haldean@google.com>
Fri, 7 Mar 2014 00:17:38 +0000 (16:17 -0800)
This led to a crash for apps that use Theme.DeviceDefault, because it
requests both actionbar and swipe-to-dismiss.

Bug: 13348329
Change-Id: Iabc95600b19d842d02df4e92ab32327328f99be5

core/res/res/values/themes_micro.xml

index e429f96..7c0b7bc 100644 (file)
@@ -14,7 +14,8 @@
      limitations under the License.
 -->
 <resources>
-    <style name="Theme.Micro" parent="Theme.Holo">
+    <style name="Theme.Micro" parent="Theme.Holo.NoActionBar">
+        <item name="textViewStyle">@android:style/Widget.Micro.TextView</item>
         <item name="numberPickerStyle">@android:style/Widget.Micro.NumberPicker</item>
         <item name="windowAnimationStyle">@android:style/Animation.SwipeDismiss</item>
         <item name="windowIsFloating">false</item>