From a0392637d40f95cff65e8cf6f096d7b25579e931 Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 17 Feb 2020 23:58:21 +0100 Subject: missing server status after activity restart --- app/src/main/java/com/javispedro/vndroid/SettingsActivity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/java/com/javispedro') 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 -- cgit v1.2.3