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

Commit cf3037e4 authored by Dobli's avatar Dobli Committed by Niedermann IT-Dienstleistungen
Browse files

Adjusted quick tile to use EditNoteActivity

parent 2dc18416
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ import android.os.Build;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;

import it.niedermann.owncloud.notes.android.activity.CreateNoteActivity;
import it.niedermann.owncloud.notes.android.activity.EditNoteActivity;

/**
 * This {@link TileService} adds a quick settings tile that leads to the new note view.
@@ -25,7 +25,7 @@ public class NewNoteTileService extends TileService {
    @Override
    public void onClick() {
        // create new note intent
        final Intent newNoteIntent = new Intent(getApplicationContext(), CreateNoteActivity.class);
        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);