From c1d74e4781feb7b8e664273e96ee818018d621c0 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Tue, 19 Sep 2017 17:34:11 +0200 Subject: [PATCH] Minor fixes - don't show dialog on resume in mobile networks - load more items when deleting without scrolling --- app/src/main/java/ch/dissem/apps/abit/MainActivity.kt | 3 +-- .../main/java/ch/dissem/apps/abit/MessageListFragment.kt | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/ch/dissem/apps/abit/MainActivity.kt b/app/src/main/java/ch/dissem/apps/abit/MainActivity.kt index 6d2e6b8..677ca79 100644 --- a/app/src/main/java/ch/dissem/apps/abit/MainActivity.kt +++ b/app/src/main/java/ch/dissem/apps/abit/MainActivity.kt @@ -241,7 +241,7 @@ class MainActivity : AppCompatActivity(), ListSelectionListener { .withIdentifier(ID_NODE_SWITCH) .withName(R.string.full_node) .withIcon(CommunityMaterial.Icon.cmd_cloud_outline) - .withChecked(isRunning) + .withChecked(Preferences.isFullNodeActive(this)) .withOnCheckedChangeListener { _, _, isChecked -> if (isChecked) { NetworkUtils.enableNode(this@MainActivity) @@ -373,7 +373,6 @@ class MainActivity : AppCompatActivity(), ListSelectionListener { if (Preferences.isFullNodeActive(this) && Preferences.isConnectionAllowed(this@MainActivity)) { NetworkUtils.enableNode(this, false) } - updateNodeSwitch() Singleton.getMessageListener(this).resetNotification() active = true super.onResume() diff --git a/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt b/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt index 03ff998..a395751 100644 --- a/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt +++ b/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt @@ -81,8 +81,7 @@ class MessageListFragment : Fragment(), ListHolder