diff options
author | Javier <dev.git@javispedro.com> | 2020-02-17 23:58:21 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2020-02-17 23:58:21 +0100 |
commit | a0392637d40f95cff65e8cf6f096d7b25579e931 (patch) | |
tree | 1c94ca35e20a97349a9eebd31ba64c6565d1f576 /app | |
parent | 2c104cf650052b544edc384f55798aacb44efbeb (diff) | |
download | vndroid-a0392637d40f95cff65e8cf6f096d7b25579e931.tar.gz vndroid-a0392637d40f95cff65e8cf6f096d7b25579e931.zip |
missing server status after activity restart
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/javispedro/vndroid/SettingsActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/com/javispedro/vndroid/SettingsActivity.java b/app/src/main/java/com/javispedro/vndroid/SettingsActivity.java index f595eac..a5daab7 100644 --- a/app/src/main/java/com/javispedro/vndroid/SettingsActivity.java +++ b/app/src/main/java/com/javispedro/vndroid/SettingsActivity.java @@ -207,6 +207,9 @@ public class SettingsActivity extends AppCompatActivity { public void onServiceConnected(ComponentName name, IBinder service) { server = ((ServerService.ServerBinder) service).getService(); server.setServerStatusCallback(this.callback); + if (this.callback != null) { + callback.onServerStatusChanged(); + } } @Override |