Remember connection state (so you don't have to start a full node whenever you lost your WiFi connection)
This commit is contained in:
@@ -259,6 +259,7 @@ public class MainActivity extends AppCompatActivity
|
||||
@Override
|
||||
public void onCheckedChanged(IDrawerItem drawerItem, CompoundButton buttonView,
|
||||
boolean isChecked) {
|
||||
Preferences.setFullNodeActive(MainActivity.this, isChecked);
|
||||
if (isChecked) {
|
||||
checkAndStartNode();
|
||||
} else {
|
||||
@@ -386,6 +387,9 @@ public class MainActivity extends AppCompatActivity
|
||||
@Override
|
||||
protected void onResume() {
|
||||
updateUnread();
|
||||
if (Preferences.isFullNodeActive(this)){
|
||||
checkAndStartNode();
|
||||
}
|
||||
updateNodeSwitch();
|
||||
Singleton.getMessageListener(this).resetNotification();
|
||||
super.onResume();
|
||||
|
||||
Reference in New Issue
Block a user