Minor fixes
- don't show dialog on resume in mobile networks - load more items when deleting without scrolling
This commit is contained in:
@@ -241,7 +241,7 @@ class MainActivity : AppCompatActivity(), ListSelectionListener<Serializable> {
|
||||
.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<Serializable> {
|
||||
if (Preferences.isFullNodeActive(this) && Preferences.isConnectionAllowed(this@MainActivity)) {
|
||||
NetworkUtils.enableNode(this, false)
|
||||
}
|
||||
updateNodeSwitch()
|
||||
Singleton.getMessageListener(this).resetNotification()
|
||||
active = true
|
||||
super.onResume()
|
||||
|
||||
Reference in New Issue
Block a user