From 6310fa8a70db81334b710b06377e20b4ecb378da Mon Sep 17 00:00:00 2001 From: aleksandar-stefanovic Date: Thu, 19 Jan 2017 12:06:30 +0100 Subject: Replaced empty spinner with the document title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced empty spinner with the document title in the Main (viewer) activity. Had to edit the themes to not disable title, and edit the manifest to make the desired activities use that theme. If the theme is set in the "application" tag, it will apply the theme globablly. Also cleaned up and tightened the ToolbarController. Change-Id: I5099860787b5f84d01c98c5e53ade519c2f89cc4 Reviewed-on: https://gerrit.libreoffice.org/33306 Tested-by: Jenkins Reviewed-by: Aleksandar Stefanović --- android/source/AndroidManifest.xml | 11 ++++------- android/source/res/layout/activity_main.xml | 16 ++++++++++++---- android/source/res/values/themes.xml | 4 ---- .../org/libreoffice/LibreOfficeMainActivity.java | 6 ++++-- .../java/org/libreoffice/ToolbarController.java | 22 ++++++++-------------- 5 files changed, 28 insertions(+), 31 deletions(-) (limited to 'android') diff --git a/android/source/AndroidManifest.xml b/android/source/AndroidManifest.xml index 55b71f6879b8..7e352088ecde 100644 --- a/android/source/AndroidManifest.xml +++ b/android/source/AndroidManifest.xml @@ -13,6 +13,7 @@ android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" + android:theme="@style/LibreOfficeTheme" android:debuggable="true" android:hardwareAccelerated="true" android:largeHeap="false"> @@ -21,8 +22,7 @@ + android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|uiMode|screenSize|smallestScreenSize" > @@ -98,8 +98,7 @@ + android:label="@string/app_name" > @@ -114,13 +113,11 @@ - + diff --git a/android/source/res/layout/activity_main.xml b/android/source/res/layout/activity_main.xml index 625422e3d808..923ed5644595 100644 --- a/android/source/res/layout/activity_main.xml +++ b/android/source/res/layout/activity_main.xml @@ -1,18 +1,26 @@ - + tools:context=".LibreOfficeMainActivity" > - + diff --git a/android/source/res/values/themes.xml b/android/source/res/values/themes.xml index 3c89209e6269..e5287a832ed6 100644 --- a/android/source/res/values/themes.xml +++ b/android/source/res/values/themes.xml @@ -3,10 +3,6 @@ - -