From 38c5f5d7f6c1f33af22752c44f0ffe8138e6e519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Wed, 9 Oct 2019 18:22:03 +0200 Subject: [PATCH] [UI] Change lesson time counter refresh intervals --- .../edziennik/ui/modules/home/HomeFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/HomeFragment.java b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/HomeFragment.java index 24df37d0..ce8f524f 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/HomeFragment.java +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/HomeFragment.java @@ -286,15 +286,15 @@ public class HomeFragment extends Fragment { if (app.appConfig.countInSeconds) { return 1000-(System.currentTimeMillis() % 1000); } - if (diff.minute > 5) { + if (diff.minute > 10) { //Log.d(TAG, "60 secs"); return 60000-(System.currentTimeMillis() % 60000); } - else if (diff.minute >= 1) { + else if (diff.minute >= 1 && false) { //Log.d(TAG, "3 secs"); return 3000-(System.currentTimeMillis() % 3000); } - else if (diff.second >= 40) { + else if (diff.second >= 40 && false) { //Log.d(TAG, "2 secs"); return 2000-(System.currentTimeMillis() % 2000); }