diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-04-08 20:14:27 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-04-08 20:14:27 +0300 |
commit | 837f212e2a06fbe083be5a692cc6455eafd92c57 (patch) | |
tree | 45b5bec2250ad17b29293e2aa15d879effdf4f64 /app/src/main/java/it/niedermann/nextcloud/deck/ui/tiles | |
parent | 153ced811039cf9ff1efebc80eed0e2bfe051a3f (diff) |
#358 Create PickStackActivity
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/tiles')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/tiles/EditCardTileService.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/tiles/EditCardTileService.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/tiles/EditCardTileService.java index f434a25dd..47a2c3528 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/tiles/EditCardTileService.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/tiles/EditCardTileService.java @@ -6,11 +6,7 @@ import android.os.Build; import android.service.quicksettings.Tile; import android.service.quicksettings.TileService; -import it.niedermann.nextcloud.deck.ui.card.EditActivity; - -import static it.niedermann.nextcloud.deck.ui.card.CardAdapter.BUNDLE_KEY_ACCOUNT_ID; -import static it.niedermann.nextcloud.deck.ui.card.CardAdapter.BUNDLE_KEY_BOARD_ID; -import static it.niedermann.nextcloud.deck.ui.card.CardAdapter.BUNDLE_KEY_LOCAL_ID; +import it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity; @TargetApi(Build.VERSION_CODES.N) public class EditCardTileService extends TileService { @@ -24,11 +20,7 @@ public class EditCardTileService extends TileService { @Override public void onClick() { - Intent intent = new Intent(getApplicationContext(), EditActivity.class); - // create new note intent - intent.putExtra(BUNDLE_KEY_ACCOUNT_ID, -1); - intent.putExtra(BUNDLE_KEY_BOARD_ID, -1); - intent.putExtra(BUNDLE_KEY_LOCAL_ID, -1); + Intent intent = new Intent(getApplicationContext(), PickStackActivity.class); // ensure it won't open twice if already running intent.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 |