From 76bcde071404712f9dcaef46a8f05f79c4277028 Mon Sep 17 00:00:00 2001 From: Hugo Luna Date: Sat, 22 Aug 2020 05:25:23 -0500 Subject: [PATCH] added support for notifications, in case a price changes --- .../main/java/lunainc/com/mx/pricetracker/UI/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/lunainc/com/mx/pricetracker/UI/MainActivity.java b/app/src/main/java/lunainc/com/mx/pricetracker/UI/MainActivity.java index 1c4cfdd..e61ff22 100644 --- a/app/src/main/java/lunainc/com/mx/pricetracker/UI/MainActivity.java +++ b/app/src/main/java/lunainc/com/mx/pricetracker/UI/MainActivity.java @@ -150,7 +150,7 @@ public void onItemLongClick(View view, int position) { public void periodicWork() { - PeriodicWorkRequest mRequest = new PeriodicWorkRequest.Builder(MyWorker.class, 6, TimeUnit.HOURS) + PeriodicWorkRequest mRequest = new PeriodicWorkRequest.Builder(MyWorker.class, 1, TimeUnit.HOURS) .setConstraints(Constraints.NONE) .build();