diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java index dc20bf96..ad157a95 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java @@ -103,7 +103,7 @@ public class ControlCenterv2 extends AppCompatActivity navigationView.setNavigationItemSelectedListener(this); //end of material design boilerplate - deviceManager = GBApplication.getDeviceManager(); + deviceManager = ((GBApplication) getApplication()).getDeviceManager(); deviceListView = (RecyclerView) findViewById(R.id.deviceListView); deviceListView.setHasFixedSize(true);