public static void setBuggySamsungEnabled() { if (!buggy_samsung) { JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); } }
public static void setBuggySamsungEnabled() { if (!buggy_samsung) { JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); } }
public static void setBuggySamsungEnabled() { if (!buggy_samsung) { JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); } }
@Override public void onReceive(Context context, Intent intent) { final Bundle extras = intent.getExtras(); final ComponentName provider = extras.getParcelable(EXTRA_PROVIDER_COMPONENT); int complicationId = extras.getInt(EXTRA_COMPLICATION_ID); PersistentStore.incrementLong(COMPLICATION_STORE); if (PersistentStore.getLong(COMPLICATION_STORE) == CustomComplicationProviderService.COMPLICATION_STATE.RESET.getValue()) { PersistentStore.setLong(COMPLICATION_STORE, 0); } // Request an update for the complication that has just been tapped. ProviderUpdateRequester requester = new ProviderUpdateRequester(context, provider); requester.requestUpdate(complicationId); if (!JoH.ratelimit("complication-double-tap", 1)) { startIntent(KeypadInputActivity.class); // if we get mre than two states we will need to handle restoring the previous state instead of just incrementing so the complication remains where it was before the double tap } }
&& (PersistentStore.incrementLong("asked_battery_optimization") < 40)) { JoH.show_ok_dialog(this, gs(R.string.please_allow_permission), gs(R.string.xdrip_needs_whitelisting_for_proper_performance), new Runnable() {
&& (PersistentStore.incrementLong("asked_battery_optimization") < 40)) { JoH.show_ok_dialog(this, gs(R.string.please_allow_permission), gs(R.string.xdrip_needs_whitelisting_for_proper_performance), new Runnable() {
JoH.static_toast_short("NFC invalid data - try again"); if (!addressed) { if (PersistentStore.incrementLong("nfc-address-failures") > 2) { Pref.setBoolean("use_nfc_any_tag", false); JoH.static_toast_short("Turned off any-tag feature");
JoH.static_toast_short("NFC invalid data - try again"); if (!addressed) { if (PersistentStore.incrementLong("nfc-address-failures") > 2) { Pref.setBoolean("use_nfc_any_tag", false); JoH.static_toast_short("Turned off any-tag feature");
JoH.static_toast_short("NFC invalid data - try again"); if (!addressed) { if (PersistentStore.incrementLong("nfc-address-failures") > 2) { Pref.setBoolean("use_nfc_any_tag", false); JoH.static_toast_short("Turned off any-tag feature");
UserError.Log.wtf(TAG, "Enabled Buggy Samsung workaround due to jitter of: " + JoH.niceTimeScalar(wakeup_jitter)); JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); max_wakeup_jitter = 0; } else {
UserError.Log.wtf(TAG, "Enabled Buggy Samsung workaround due to jitter of: " + JoH.niceTimeScalar(wakeup_jitter)); JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); max_wakeup_jitter = 0; } else {
UserError.Log.wtf(TAG, "Enabled Buggy Samsung workaround due to jitter of: " + JoH.niceTimeScalar(wakeup_jitter)); JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); max_wakeup_jitter = 0; } else {
UserError.Log.wtf(TAG, "Enabled Buggy Samsung workaround due to jitter of: " + JoH.niceTimeScalar(wakeup_jitter)); JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); max_wakeup_jitter = 0; } else {
UserError.Log.wtf(TAG, "Enabled Buggy Samsung workaround due to jitter of: " + JoH.niceTimeScalar(wakeup_jitter)); JoH.buggy_samsung = true; PersistentStore.incrementLong(BUGGY_SAMSUNG_ENABLED); max_wakeup_jitter = 0; } else {