use of com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl in project xDrip by NightscoutFoundation.
the class DoubleCalibrationActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
xdrip.checkForcedEnglish(this);
super.onCreate(savedInstanceState);
if (CollectionServiceStarter.isBTShare(getApplicationContext())) {
Intent intent = new Intent(this, Home.class);
startActivity(intent);
finish();
}
ActivityDoubleCalibrationBinding binding = ActivityDoubleCalibrationBinding.inflate(getLayoutInflater());
binding.setPrefs(new PrefsViewImpl());
setContentView(binding.getRoot());
addListenerOnButton();
}
use of com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl in project xDrip by NightscoutFoundation.
the class DepositActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
binding = ActivityDepositActivityBinding.inflate(getLayoutInflater());
binding.setVm(new ViewModel(this));
binding.setPrefs(new PrefsViewImpl());
setContentView(binding.getRoot());
JoH.fixActionBar(this);
} else {
JoH.static_toast_long("Needs Android 7+");
finish();
}
}
use of com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl in project xDrip-plus by jamorham.
the class DepositActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
binding = ActivityDepositActivityBinding.inflate(getLayoutInflater());
binding.setVm(new ViewModel(this));
binding.setPrefs(new PrefsViewImpl());
setContentView(binding.getRoot());
JoH.fixActionBar(this);
} else {
JoH.static_toast_long("Needs Android 7+");
finish();
}
}
Aggregations