Fix bug #16319697 ACTION_DEVICE_INFO_SETTINGS intent causes Settings app to crash

- fix the way we are passing switchBarMarginStart / switchBarMarginEnd

Change-Id: Ic6e67643be10877a74ae68075460fa5fd4cc5da1
This commit is contained in:
Fabrice Di Meglio
2014-07-15 16:02:09 -07:00
parent 62a8aa7ac9
commit 1b18665dbc
5 changed files with 43 additions and 23 deletions

View File

@@ -33,7 +33,7 @@
android:layout_height="?android:attr/actionBarSize"
android:layout_width="match_parent"
android:background="@drawable/switchbar_background"
android:theme="@android:style/Theme.Material"
android:theme="?attr/switchBarTheme"
/>
<FrameLayout

View File

@@ -23,7 +23,6 @@
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_marginStart="?attr/switchBarMarginStart"
android:layout_gravity="center_vertical"
android:textAppearance="@style/TextAppearance.Switch"
android:textAlignment="viewStart" />
@@ -32,7 +31,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="?attr/switchBarMarginEnd"
android:background="@null" />
</merge>