From 76cbb4f72751ec6255aa40b72218db80ea6d9472 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 26 Aug 2016 16:05:38 +0200 Subject: [PATCH] some multi-window optimizations. set min width to 300 --- src/main/AndroidManifest.xml | 8 ++++---- .../eu/siacs/conversations/ui/MagicCreateActivity.java | 4 ++++ .../java/eu/siacs/conversations/ui/WelcomeActivity.java | 4 ++++ src/main/res/values-sw600dp/defaults.xml | 1 + src/main/res/values-w300dp/dimens.xml | 3 +++ src/main/res/values/defaults.xml | 1 + 6 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/main/res/values-w300dp/dimens.xml diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index abc4b89de..606b6daa4 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -40,6 +40,8 @@ android:name=".ui.ConversationActivity" android:label="@string/app_name" android:launchMode="singleTask" + android:minWidth="300dp" + android:minHeight="300dp" android:windowSoftInputMode="stateHidden"> @@ -91,13 +93,11 @@ + android:launchMode="singleTask"/> + android:launchMode="singleTask"/> Tablet + false \ No newline at end of file diff --git a/src/main/res/values-w300dp/dimens.xml b/src/main/res/values-w300dp/dimens.xml new file mode 100644 index 000000000..28341a395 --- /dev/null +++ b/src/main/res/values-w300dp/dimens.xml @@ -0,0 +1,3 @@ + + 276dp + diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml index be795ed40..7d613ab5e 100644 --- a/src/main/res/values/defaults.xml +++ b/src/main/res/values/defaults.xml @@ -1,4 +1,5 @@ Phone + true \ No newline at end of file