From 8955a298f18fa3f02c13625d545889f8b44e06e3 Mon Sep 17 00:00:00 2001 From: stefan-niedermann Date: Wed, 21 Aug 2019 15:32:10 +0200 Subject: Fix "New note" tile --- app/build.gradle | 4 ++-- app/src/main/AndroidManifest.xml | 2 +- .../notes/android/quicksettings/NewNoteTileService.java | 11 ++--------- 3 files changed, 5 insertions(+), 12 deletions(-) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index a2b95371..b145de01 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,8 +13,8 @@ android { applicationId "it.niedermann.owncloud.notes" minSdkVersion 14 targetSdkVersion 28 - versionCode 45 - versionName "0.26.0" + versionCode 46 + versionName "0.27.0" } buildTypes { release { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index fbd7c26a..3af99f24 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -10,9 +10,9 @@ android:allowBackup="true" android:fullBackupContent="true" android:icon="@mipmap/ic_launcher" - android:roundIcon="@mipmap/ic_launcher_round" android:label="@string/app_name" android:networkSecurityConfig="@xml/network_security_config" + android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/quicksettings/NewNoteTileService.java b/app/src/main/java/it/niedermann/owncloud/notes/android/quicksettings/NewNoteTileService.java index af7eb75e..ca101c88 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/android/quicksettings/NewNoteTileService.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/android/quicksettings/NewNoteTileService.java @@ -27,15 +27,8 @@ public class NewNoteTileService extends TileService { // create new note intent final Intent newNoteIntent = new Intent(getApplicationContext(), EditNoteActivity.class); // ensure it won't open twice if already running - newNoteIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); - + newNoteIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); // ask to unlock the screen if locked, then start new note intent - unlockAndRun(new Runnable() { - @Override - public void run() { - startActivityAndCollapse(newNoteIntent); - } - }); - + unlockAndRun(() -> startActivityAndCollapse(newNoteIntent)); } } -- cgit v1.2.3