Skip to content

Commit a373567

Browse files
author
Chris Bellew
committed
Only hide/show elements in the client selector when it's showing.
1 parent a14c254 commit a373567

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

mobile/src/main/java/com/atomjack/vcfp/activities/MainActivity.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -990,13 +990,16 @@ protected void onNewIntent(Intent intent) {
990990
if(firstTimeSetupServerScanFinished)
991991
onFirstTimeScanFinished();
992992
}
993-
if(VoiceControlForPlexApplication.getAllClients().size() == 0) {
994-
deviceSelectNoDevicesFound.setVisibility(View.VISIBLE);
995-
deviceListResume.setVisibility(View.GONE);
996-
} else {
997-
deviceSelectNoDevicesFound.setVisibility(View.GONE);
998-
deviceListResume.setVisibility(View.VISIBLE);
993+
if(deviceSelectDialog != null && deviceSelectDialog.isShowing()) {
994+
if (VoiceControlForPlexApplication.getAllClients().size() == 0) {
995+
deviceSelectNoDevicesFound.setVisibility(View.VISIBLE);
996+
deviceListResume.setVisibility(View.GONE);
997+
} else {
998+
deviceSelectNoDevicesFound.setVisibility(View.GONE);
999+
deviceListResume.setVisibility(View.VISIBLE);
1000+
}
9991001
}
1002+
10001003
if(onClientRefreshFinished != null) {
10011004
onClientRefreshFinished.run();
10021005
}

0 commit comments

Comments
 (0)