mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-03 21:47:32 +01:00
Fix DeviceService not starting when the dashboard is the initial screen
This commit is contained in:
parent
50c7520349
commit
065f8cdaa7
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user