From f88b438a8190a41a707a207b7b0f8b52ad9ad1f4 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 18 Apr 2017 06:47:53 -0700 Subject: [PATCH] get rid of configChanges altogether Recent recommendations are not to attempt to handle it myself, so don't and we'll see how it goes. And unify notions of tablet and enabling dual-pane: a device that isn't dual-pane should not be using the new single-activity stuff at all. --- xwords4/android/app/src/main/AndroidManifest.xml | 14 -------------- .../java/org/eehouse/android/xw4/MainActivity.java | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/xwords4/android/app/src/main/AndroidManifest.xml b/xwords4/android/app/src/main/AndroidManifest.xml index a6a98bcb5..5f605cca3 100644 --- a/xwords4/android/app/src/main/AndroidManifest.xml +++ b/xwords4/android/app/src/main/AndroidManifest.xml @@ -78,30 +78,24 @@ @@ -112,17 +106,14 @@ @@ -170,7 +161,6 @@ @@ -186,16 +176,12 @@ diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java index 91ff5a72a..3627ab10f 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java @@ -65,7 +65,7 @@ public class MainActivity extends XWActivity @Override protected void onCreate( Bundle savedInstanceState ) { - m_dpEnabled = XWPrefs.dualpaneEnabled( this ); + m_dpEnabled = XWPrefs.dualpaneEnabled( this ) && XWPrefs.getIsTablet( this ); m_dlgt = m_dpEnabled ? new DualpaneDelegate( this, savedInstanceState ) : new GamesListDelegate( this, savedInstanceState );