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
|
||||
public void onItemClick(AdapterView parent, View v, int position, long id) {
|
||||
GBDevice gbDevice = deviceList.get(position);
|
||||
if (gbDevice.isConnected()) {
|
||||
if (gbDevice.isInitialized()) {
|
||||
DeviceCoordinator coordinator = DeviceHelper.getInstance().getCoordinator(gbDevice);
|
||||
Class<? extends Activity> primaryActivity = coordinator.getPrimaryActivity();
|
||||
if (primaryActivity != null) {
|
||||
|
|
Loading…
Reference in New Issue