This commit is contained in:
AdrianLxM 2018-03-15 17:00:57 +01:00
parent b481e77008
commit 5fd05158ac

View file

@ -93,7 +93,6 @@ public class ProfileViewDialog extends DialogFragment {
// } // }
ProfileStore store = ((ProfileInterface)MainApp.getConfigBuilder().getActivePump()).getProfile(); ProfileStore store = ((ProfileInterface)MainApp.getConfigBuilder().getActivePump()).getProfile();
if (store != null) { if (store != null) {
store.getDefaultProfile();
noProfile.setVisibility(View.GONE); noProfile.setVisibility(View.GONE);
Profile profile = store.getDefaultProfile(); Profile profile = store.getDefaultProfile();
units.setText(profile.getUnits()); units.setText(profile.getUnits());