diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-20 16:51:26 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-07-20 16:51:26 +0300 |
commit | 8202516c5f5fa47fbffedecd0f2a979606be177e (patch) | |
tree | 871856be2dd024bda4530330f5ca8781a6417ab3 /app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack | |
parent | 44b8192f5947ffccb2e19b2c900eb1f255b73c1d (diff) |
#515 Reduce amount of data which is queried by the database
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackFragment.java | 3 | ||||
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackListener.java | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackFragment.java index 46da5f19e..8e0d7179a 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackFragment.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackFragment.java @@ -20,7 +20,6 @@ import it.niedermann.nextcloud.deck.databinding.FragmentPickStackBinding; import it.niedermann.nextcloud.deck.model.Account; import it.niedermann.nextcloud.deck.model.Board; import it.niedermann.nextcloud.deck.model.Stack; -import it.niedermann.nextcloud.deck.model.full.FullStack; import it.niedermann.nextcloud.deck.persistence.sync.SyncManager; import it.niedermann.nextcloud.deck.ui.ImportAccountActivity; import it.niedermann.nextcloud.deck.ui.preparecreate.AccountAdapter; @@ -180,7 +179,7 @@ public class PickStackFragment extends Fragment { }); binding.stackSelect.setOnItemSelectedListener((SelectedListener) (parent, view, position, id) -> { - pickStackListener.onStackPicked((Account) binding.accountSelect.getSelectedItem(), (Board) binding.boardSelect.getSelectedItem(), (FullStack) parent.getSelectedItem()); + pickStackListener.onStackPicked((Account) binding.accountSelect.getSelectedItem(), (Board) binding.boardSelect.getSelectedItem(), (Stack) parent.getSelectedItem()); }); return binding.getRoot(); diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackListener.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackListener.java index 0abb4dac9..ce227746a 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackListener.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack/PickStackListener.java @@ -5,8 +5,8 @@ import androidx.annotation.Nullable; import it.niedermann.nextcloud.deck.model.Account; import it.niedermann.nextcloud.deck.model.Board; -import it.niedermann.nextcloud.deck.model.full.FullStack; +import it.niedermann.nextcloud.deck.model.Stack; public interface PickStackListener { - void onStackPicked(@NonNull Account account, @Nullable Board board, @Nullable FullStack fullStack); + void onStackPicked(@NonNull Account account, @Nullable Board board, @Nullable Stack stack); } |