From 63b1ab12f614cefbff8b2c72fac82434fd8c8de9 Mon Sep 17 00:00:00 2001 From: Nathan Harold Date: Wed, 2 Jan 2019 20:39:06 -0800 Subject: [PATCH] Fix BandMode Dialog Crash on Open due to Style This sidesteps an error saying that the radio BandMode activity must inherit from an AppCompat style. Instead the window is now full-screen and matches the theme of the RadioInfo menu. Bug: 117571514 Test: manual - open the activity without a crash and verify that the new style change is effective. Change-Id: I6e49d731e039709db43dfa6531723781e9e48640 --- AndroidManifest.xml | 3 +-- res/layout/band_mode.xml | 2 +- src/com/android/settings/BandMode.java | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 17f83035463..6532f193677 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2172,9 +2172,8 @@ - diff --git a/res/layout/band_mode.xml b/res/layout/band_mode.xml index ddbc7ae8951..b43dd1d70a4 100644 --- a/res/layout/band_mode.xml +++ b/res/layout/band_mode.xml @@ -19,7 +19,7 @@ android:padding="4dip" android:gravity="center_horizontal" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="wrap_content">