Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8955a298 authored by stefan-niedermann's avatar stefan-niedermann
Browse files

Fix "New note" tile

parent 9624bb65
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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">

+2 −9
Original line number Diff line number Diff line
@@ -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));
    }
}
+3 −0
Original line number Diff line number Diff line
- #567 Enable pinning notes as shortcut
- #575 Added preference "Font Size"
- Fix "New note" tile