mirror of
https://gitlab.com/SoftwareTalent/CalendarioDeFrases.git
synced 2026-02-24 22:03:54 +01:00
Set a timeout of service
This commit is contained in:
@@ -23,7 +23,7 @@ public class Alarm extends BroadcastReceiver
|
||||
{
|
||||
PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
||||
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "");
|
||||
wl.acquire();
|
||||
wl.acquire(10);
|
||||
// Make notification appear
|
||||
context.startService(new Intent(context, NotificationHelper.class));
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#Sat Sep 02 14:54:18 CEST 2017
|
||||
VERSION_CODE=185
|
||||
#Sun Dec 17 00:34:30 CET 2017
|
||||
VERSION_CODE=188
|
||||
|
||||
Reference in New Issue
Block a user