diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-17 16:17:08 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-07-17 16:19:53 +0300 |
commit | db4759076400e1f01420ba29540a62367dbf166b (patch) | |
tree | f9602813c0b4c0d23416269fb984df29b475c112 /app/src/main/java/it/niedermann/nextcloud/deck/ui/pickstack | |
parent | 9a54264b44049d30ecc610c1810d29e819d8fb93 (diff) |
#515 Reduce amount of data which is queried by the database - Format
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 | 10 |
1 files changed, 5 insertions, 5 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 f6794f477..39ada2aac 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 @@ -88,17 +88,17 @@ public class PickStackFragment extends Fragment { if (stacks.size() > 0) { binding.stackSelect.setEnabled(true); - Stack stackWithCounterToSelect = null; + Stack stackToSelect = null; for (Stack stack : stacks) { if (stack.getLocalId() == lastStackId) { - stackWithCounterToSelect = stack; + stackToSelect = stack; break; } } - if (stackWithCounterToSelect == null) { - stackWithCounterToSelect = stacks.get(0); + if (stackToSelect == null) { + stackToSelect = stacks.get(0); } - binding.stackSelect.setSelection(stackAdapter.getPosition(stackWithCounterToSelect)); + binding.stackSelect.setSelection(stackAdapter.getPosition(stackToSelect)); } else { binding.stackSelect.setEnabled(false); pickStackListener.onStackPicked((Account) binding.accountSelect.getSelectedItem(), (Board) binding.boardSelect.getSelectedItem(), null); |