feat: Add option to clear home screen in settings (#6125)
Signed-off-by: abhixv <abhi.sharma1@hotmail.com>
This commit is contained in:
1 parent
9898749619
commit
5f3a03f4fb
1577 files changed
+112559
-80244
No files matched your search
@@ -20,8 +20,6 @@ import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.SystemClock;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
public class Alarm implements Runnable{
|
||||
// if we reach this time and the alarm hasn't been cancelled, call the listener
|
||||
private long mAlarmTriggerTime;
|
||||
@@ -98,13 +96,4 @@ public class Alarm implements Runnable{
|
||||
public long getLastSetTimeout() {
|
||||
return mLastSetTimeout;
|
||||
}
|
||||
|
||||
/** Simulates the alarm firing for tests. */
|
||||
@VisibleForTesting
|
||||
public void finishAlarm() {
|
||||
if (!mAlarmPending) return;
|
||||
mAlarmPending = false;
|
||||
mHandler.removeCallbacks(this);
|
||||
mAlarmListener.onAlarm(this);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user