mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01:00
only allow starting AppManager after device is initalized (else platform cant be determined)
This commit is contained in:
parent
902ff39c0b
commit
864e0953d9
@ -131,7 +131,7 @@ public class ControlCenter extends Activity {
|
|||||||
@Override
|
@Override
|
||||||
public void onItemClick(AdapterView parent, View v, int position, long id) {
|
public void onItemClick(AdapterView parent, View v, int position, long id) {
|
||||||
GBDevice gbDevice = deviceList.get(position);
|
GBDevice gbDevice = deviceList.get(position);
|
||||||
if (gbDevice.isConnected()) {
|
if (gbDevice.isInitialized()) {
|
||||||
DeviceCoordinator coordinator = DeviceHelper.getInstance().getCoordinator(gbDevice);
|
DeviceCoordinator coordinator = DeviceHelper.getInstance().getCoordinator(gbDevice);
|
||||||
Class<? extends Activity> primaryActivity = coordinator.getPrimaryActivity();
|
Class<? extends Activity> primaryActivity = coordinator.getPrimaryActivity();
|
||||||
if (primaryActivity != null) {
|
if (primaryActivity != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user