diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-03-29 13:43:30 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2021-03-31 10:05:41 +0300 |
commit | 31602d2148d3d06c99e0a096c67368d99c546fce (patch) | |
tree | 381cb407d72fc6b28c8a16b68bb14970143ca702 /app | |
parent | d04758d5b9c09d559676e7156adbb7cff4bb97a0 (diff) |
Use final modifier
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java index dc6428f7f..bdde1e1c9 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java @@ -941,7 +941,7 @@ public class MainActivity extends BrandedActivity implements DeleteStackListener private void registerAutoSyncOnNetworkAvailable() { final ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); - NetworkRequest.Builder builder = new NetworkRequest.Builder(); + final NetworkRequest.Builder builder = new NetworkRequest.Builder(); if (connectivityManager != null) { if (networkCallback == null) { @@ -979,7 +979,7 @@ public class MainActivity extends BrandedActivity implements DeleteStackListener @Override public void onStackDeleted(Long stackLocalId) { - long stackId = stackAdapter.getItem(binding.viewPager.getCurrentItem()).getLocalId(); + final long stackId = stackAdapter.getItem(binding.viewPager.getCurrentItem()).getLocalId(); mainViewModel.deleteStack(mainViewModel.getCurrentAccount().getId(), stackId, mainViewModel.getCurrentBoardLocalId(), new ResponseCallback<Void>() { @Override public void onResponse(Void response) { |