Fix DeviceService not starting when the dashboard is the initial screen

This commit is contained in:
Arjan Schrijver 2024-04-09 10:17:26 +02:00
parent 50c7520349
commit 065f8cdaa7
2 changed files with 2 additions and 2 deletions

View File

@ -294,6 +294,8 @@ public class ControlCenterv2 extends AppCompatActivity
GB.toast(this, getString(R.string.error_showing_changelog), Toast.LENGTH_LONG, GB.ERROR);
}
}
GBApplication.deviceService().requestDeviceInfo();
}
@Override

View File

@ -178,8 +178,6 @@ public class DevicesFragment extends Fragment {
if (GB.isBluetoothEnabled() && deviceList.isEmpty() && Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
startActivity(new Intent(getActivity(), DiscoveryActivityV2.class));
} else {
GBApplication.deviceService().requestDeviceInfo();
}
return currentView;