diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-04-09 10:27:30 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-04-09 10:27:30 +0300 |
commit | 64598961494f1168e39a18ae7086067fcd844b07 (patch) | |
tree | 4579f59d0db0c82566306ab1379c368886cf2666 /app/src | |
parent | a33e103a89d012d0f409a41db6b6247ef31bf682 (diff) |
#358 Create PickStackActivity
Rename PickStackActivity to PrepareCreateActivity
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src')
10 files changed, 15 insertions, 15 deletions
diff --git a/app/src/dev/res/xml/shortcuts.xml b/app/src/dev/res/xml/shortcuts.xml index e5826b086..ec5df899c 100644 --- a/app/src/dev/res/xml/shortcuts.xml +++ b/app/src/dev/res/xml/shortcuts.xml @@ -8,7 +8,7 @@ android:shortcutShortLabel="@string/simple_add"> <intent android:action="android.intent.action.VIEW" - android:targetClass="it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity" + android:targetClass="it.niedermann.nextcloud.deck.ui.preparecreate.PrepareCreateActivity" android:targetPackage="it.niedermann.nextcloud.deck.dev" /> <categories android:name="android.shortcut.conversation" /> </shortcut> diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 18976f838..b767e293a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -79,7 +79,7 @@ android:theme="@style/AppTheme" /> <activity - android:name=".ui.pickstack.PickStackActivity" + android:name=".ui.preparecreate.PrepareCreateActivity" android:label="@string/simple_select" android:theme="@style/AppTheme" /> diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/AccountAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/AccountAdapter.java index 742ade26d..170a0e940 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/AccountAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/AccountAdapter.java @@ -1,4 +1,4 @@ -package it.niedermann.nextcloud.deck.ui.pickstack; +package it.niedermann.nextcloud.deck.ui.preparecreate; import android.content.Context; import android.view.LayoutInflater; diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/BoardAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/BoardAdapter.java index 990b7c7d5..d7e3f1ee6 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/BoardAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/BoardAdapter.java @@ -1,4 +1,4 @@ -package it.niedermann.nextcloud.deck.ui.pickstack; +package it.niedermann.nextcloud.deck.ui.preparecreate; import android.content.Context; import android.view.LayoutInflater; diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/PrepareCreateActivity.java index 555f47bc7..367144943 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/PrepareCreateActivity.java @@ -1,4 +1,4 @@ -package it.niedermann.nextcloud.deck.ui.pickstack; +package it.niedermann.nextcloud.deck.ui.preparecreate; import android.content.Intent; import android.os.Bundle; @@ -17,7 +17,7 @@ import java.util.List; import it.niedermann.nextcloud.deck.Application; import it.niedermann.nextcloud.deck.DeckLog; import it.niedermann.nextcloud.deck.R; -import it.niedermann.nextcloud.deck.databinding.ActivityPickStackBinding; +import it.niedermann.nextcloud.deck.databinding.ActivityPrepareCreateBinding; import it.niedermann.nextcloud.deck.model.Account; import it.niedermann.nextcloud.deck.model.Board; import it.niedermann.nextcloud.deck.model.full.FullStack; @@ -33,9 +33,9 @@ import static it.niedermann.nextcloud.deck.ui.card.CardAdapter.BUNDLE_KEY_LOCAL_ import static it.niedermann.nextcloud.deck.ui.card.CardAdapter.BUNDLE_KEY_STACK_ID; import static it.niedermann.nextcloud.deck.ui.card.CardAdapter.NO_LOCAL_ID; -public class PickStackActivity extends AppCompatActivity { +public class PrepareCreateActivity extends AppCompatActivity { - private ActivityPickStackBinding binding; + private ActivityPrepareCreateBinding binding; private SyncManager syncManager; @@ -100,7 +100,7 @@ public class PickStackActivity extends AppCompatActivity { Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this)); setTheme(Application.getAppTheme(this) ? R.style.DarkAppTheme : R.style.AppTheme); - binding = ActivityPickStackBinding.inflate(getLayoutInflater()); + binding = ActivityPrepareCreateBinding.inflate(getLayoutInflater()); setContentView(binding.getRoot()); setSupportActionBar(binding.toolbar); diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/StackAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/StackAdapter.java index 24a9d844e..d8065279f 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/StackAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/preparecreate/StackAdapter.java @@ -1,4 +1,4 @@ -package it.niedermann.nextcloud.deck.ui.pickstack; +package it.niedermann.nextcloud.deck.ui.preparecreate; import android.content.Context; import android.view.LayoutInflater; 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 47a2c3528..09abbfa7a 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,7 +6,7 @@ import android.os.Build; import android.service.quicksettings.Tile; import android.service.quicksettings.TileService; -import it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity; +import it.niedermann.nextcloud.deck.ui.preparecreate.PrepareCreateActivity; @TargetApi(Build.VERSION_CODES.N) public class EditCardTileService extends TileService { @@ -20,7 +20,7 @@ public class EditCardTileService extends TileService { @Override public void onClick() { - Intent intent = new Intent(getApplicationContext(), PickStackActivity.class); + Intent intent = new Intent(getApplicationContext(), PrepareCreateActivity.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 diff --git a/app/src/main/res/layout/activity_pick_stack.xml b/app/src/main/res/layout/activity_prepare_create.xml index 20e95f189..8452a6afc 100644 --- a/app/src/main/res/layout/activity_pick_stack.xml +++ b/app/src/main/res/layout/activity_prepare_create.xml @@ -4,7 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:showIn="@layout/activity_pick_stack"> + tools:showIn="@layout/activity_prepare_create"> <com.google.android.material.appbar.AppBarLayout android:id="@+id/appBarLayout" diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml index 045f11961..f84b7363e 100644 --- a/app/src/main/res/xml/shortcuts.xml +++ b/app/src/main/res/xml/shortcuts.xml @@ -8,7 +8,7 @@ android:shortcutShortLabel="@string/simple_add"> <intent android:action="android.intent.action.VIEW" - android:targetClass="it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity" + android:targetClass="it.niedermann.nextcloud.deck.ui.preparecreate.PrepareCreateActivity" android:targetPackage="it.niedermann.nextcloud.deck" /> <categories android:name="android.shortcut.conversation" /> </shortcut> diff --git a/app/src/play/res/xml/shortcuts.xml b/app/src/play/res/xml/shortcuts.xml index c4a30c282..6c6471880 100644 --- a/app/src/play/res/xml/shortcuts.xml +++ b/app/src/play/res/xml/shortcuts.xml @@ -8,7 +8,7 @@ android:shortcutShortLabel="@string/simple_add"> <intent android:action="android.intent.action.VIEW" - android:targetClass="it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity" + android:targetClass="it.niedermann.nextcloud.deck.ui.preparecreate.PrepareCreateActivity" android:targetPackage="it.niedermann.nextcloud.deck.play" /> <categories android:name="android.shortcut.conversation" /> </shortcut> |