mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Show the discovery in progress view if no computers remain after one is deleted
This commit is contained in:
parent
0dad2dc64b
commit
067be54715
@ -517,6 +517,12 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
if (details.equals(computer.details)) {
|
if (details.equals(computer.details)) {
|
||||||
pcGridAdapter.removeComputer(computer);
|
pcGridAdapter.removeComputer(computer);
|
||||||
pcGridAdapter.notifyDataSetChanged();
|
pcGridAdapter.notifyDataSetChanged();
|
||||||
|
|
||||||
|
if (pcGridAdapter.getCount() == 0) {
|
||||||
|
// Show the "Discovery in progress" view
|
||||||
|
noPcFoundLayout.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user