mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-08 22:01:44 +02:00
"refresh" menu item stays visible for reconnection
This commit is contained in:
parent
a7aa312f9d
commit
4dfdb3498e
1 changed files with 4 additions and 4 deletions
|
@ -552,15 +552,15 @@ public class MainActivity extends AppCompatActivity implements ClientItem.Client
|
||||||
miSettings.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
|
miSettings.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
|
||||||
if (miStartStop != null)
|
if (miStartStop != null)
|
||||||
miStartStop.setVisible(true);
|
miStartStop.setVisible(true);
|
||||||
if (miRefresh != null)
|
// if (miRefresh != null)
|
||||||
miRefresh.setVisible(true);
|
// miRefresh.setVisible(true);
|
||||||
} else {
|
} else {
|
||||||
if (miSettings != null)
|
if (miSettings != null)
|
||||||
miSettings.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
|
miSettings.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
|
||||||
if (miStartStop != null)
|
if (miStartStop != null)
|
||||||
miStartStop.setVisible(false);
|
miStartStop.setVisible(false);
|
||||||
if (miRefresh != null)
|
// if (miRefresh != null)
|
||||||
miRefresh.setVisible(false);
|
// miRefresh.setVisible(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue