summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2020-02-17 23:58:21 +0100
committerJavier <dev.git@javispedro.com>2020-02-17 23:58:21 +0100
commita0392637d40f95cff65e8cf6f096d7b25579e931 (patch)
tree1c94ca35e20a97349a9eebd31ba64c6565d1f576 /app/src/main/java
parent2c104cf650052b544edc384f55798aacb44efbeb (diff)
downloadvndroid-a0392637d40f95cff65e8cf6f096d7b25579e931.tar.gz
vndroid-a0392637d40f95cff65e8cf6f096d7b25579e931.zip
missing server status after activity restart
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/javispedro/vndroid/SettingsActivity.java3
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