Search in sources :

Example 1 with ActivityDoubleCalibrationBinding

use of com.eveningoutpost.dexdrip.databinding.ActivityDoubleCalibrationBinding in project xDrip-plus by jamorham.

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();
}
Also used : PrefsViewImpl(com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl) ActivityDoubleCalibrationBinding(com.eveningoutpost.dexdrip.databinding.ActivityDoubleCalibrationBinding) Intent(android.content.Intent)

Example 2 with ActivityDoubleCalibrationBinding

use of com.eveningoutpost.dexdrip.databinding.ActivityDoubleCalibrationBinding 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();
}
Also used : PrefsViewImpl(com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl) ActivityDoubleCalibrationBinding(com.eveningoutpost.dexdrip.databinding.ActivityDoubleCalibrationBinding) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)2 PrefsViewImpl (com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl)2 ActivityDoubleCalibrationBinding (com.eveningoutpost.dexdrip.databinding.ActivityDoubleCalibrationBinding)2