From 229357bf0d5e926e386e07b9eb2f100856347664 Mon Sep 17 00:00:00 2001 From: Zhongyi Tong Date: Tue, 31 May 2016 22:34:00 +0800 Subject: [PATCH] Fix bugly #501. IllegalStateException occured on orientation change. Because fragment was added twice. Using FrameLayout instead of Fragment. See full solution at http://stackoverflow.com/a/29556331. --- app/src/main/res/layout/activity_preferences.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/activity_preferences.xml b/app/src/main/res/layout/activity_preferences.xml index e4d23cc1..042cc0d1 100644 --- a/app/src/main/res/layout/activity_preferences.xml +++ b/app/src/main/res/layout/activity_preferences.xml @@ -35,9 +35,8 @@ android:padding="6dp" android:src="@mipmap/ic_refresh" android:layout_alignBottom="@+id/settings_bar"/> - + tools:layout="@android:layout/simple_list_item_1"/>