1. Remove changes which are not related to functionality

2. Use wildcard imports
pull/627/head
Nam Nguyen 5 years ago
parent 54eff25b5a
commit 97cf253c64

@ -87,7 +87,7 @@ dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "com.github.paolorotolo:appintro:3.4.0"
implementation "com.google.dagger:dagger:$DAGGER_VERSION"
implementation "com.jakewharton:butterknife:10.0.0"
implementation "com.jakewharton:butterknife:8.6.1-SNAPSHOT"
implementation "org.apmem.tools:layouts:1.10"
implementation "com.google.code.gson:gson:2.8.5"
implementation "com.google.code.findbugs:jsr305:3.0.2"

@ -28,7 +28,7 @@ import org.isoron.uhabits.*;
import org.isoron.uhabits.activities.common.dialogs.*;
import org.isoron.uhabits.core.models.*;
import org.isoron.uhabits.core.ui.callbacks.*;
import org.isoron.uhabits.core.ui.screens.habits.list.ListHabitsBehavior;
import org.isoron.uhabits.core.ui.screens.habits.list.*;
import org.isoron.uhabits.core.ui.screens.habits.show.*;
import org.isoron.uhabits.intents.*;

@ -46,7 +46,6 @@ public class SnoozeDelayPickerActivity extends FragmentActivity
habit = appComponent.getHabitList().getById(parseId(getIntent().getData()));
if (habit == null) finish();
// Unlock device on clicking notification action
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
KeyguardManager km = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
km.requestDismissKeyguard(this, null);

@ -67,6 +67,7 @@ public class WidgetReceiver extends BroadcastReceiver
IntentParser parser = app.getComponent().getIntentParser();
WidgetBehavior controller = component.getWidgetController();
Preferences prefs = app.getComponent().getPreferences();
Log.i(TAG, String.format("Received intent: %s", intent.toString()));
@ -104,9 +105,7 @@ public class WidgetReceiver extends BroadcastReceiver
data.getTimestamp());
break;
case ACTION_SET_NUMERICAL_VALUE:
// close Notification drawer
context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
Intent numberSelectorIntent = new Intent(context, NumericalCheckmarkWidgetActivity.class);
numberSelectorIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
numberSelectorIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);

@ -52,7 +52,6 @@ class NumericalCheckmarkWidgetActivity : Activity(), ListHabitsBehavior.NumberPi
widgetUpdater = component.widgetUpdater
showNumberSelector(this)
// Unlock device on clicking notification action
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val km = getSystemService(KEYGUARD_SERVICE) as KeyguardManager
km.requestDismissKeyguard(this, null)

@ -23,7 +23,7 @@ import androidx.annotation.*;
import org.isoron.uhabits.core.commands.*;
import org.isoron.uhabits.core.models.*;
import org.isoron.uhabits.core.ui.screens.habits.list.ListHabitsBehavior;
import org.isoron.uhabits.core.ui.screens.habits.list.*;
import javax.inject.*;

Loading…
Cancel
Save