From e5687b1b32e5c179ce42981119012cc918afa75a Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Tue, 8 Apr 2014 13:35:06 -0700 Subject: [PATCH] Fix bug #13744434 Stability: ISE in Settings: Can't switch to header... ..that has no Fragment nor Intent at SettingsActivity.onHeaderClick(SettingsActivity.java:654) - satisfy the Monkeys has they were able to click on "WIRELESS & NETWORK" header which is a Category and normally non clickable... (so probably a race condition) Change-Id: Ia33d2b6e55e910409a566e5f05c1e3bae8008807 --- src/com/android/settings/SettingsActivity.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java index 612869085a2..1c4326af4fa 100644 --- a/src/com/android/settings/SettingsActivity.java +++ b/src/com/android/settings/SettingsActivity.java @@ -660,12 +660,6 @@ public class SettingsActivity extends Activity header.getTitle(getResources())); } else if (header.intent != null) { startActivity(header.intent); - } else { - String title = header.getTitle(getResources()).toString(); - Log.e(LOG_TAG, "Can't switch to header that has no Fragment nor Intent. Title: " + - title + " Position: " + position); - throw new IllegalStateException( - "Can't switch to header that has no Fragment nor Intent"); } }