mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[UI] Change lesson time counter refresh intervals
This commit is contained in:
parent
015416f2a8
commit
38c5f5d7f6
@ -286,15 +286,15 @@ public class HomeFragment extends Fragment {
|
|||||||
if (app.appConfig.countInSeconds) {
|
if (app.appConfig.countInSeconds) {
|
||||||
return 1000-(System.currentTimeMillis() % 1000);
|
return 1000-(System.currentTimeMillis() % 1000);
|
||||||
}
|
}
|
||||||
if (diff.minute > 5) {
|
if (diff.minute > 10) {
|
||||||
//Log.d(TAG, "60 secs");
|
//Log.d(TAG, "60 secs");
|
||||||
return 60000-(System.currentTimeMillis() % 60000);
|
return 60000-(System.currentTimeMillis() % 60000);
|
||||||
}
|
}
|
||||||
else if (diff.minute >= 1) {
|
else if (diff.minute >= 1 && false) {
|
||||||
//Log.d(TAG, "3 secs");
|
//Log.d(TAG, "3 secs");
|
||||||
return 3000-(System.currentTimeMillis() % 3000);
|
return 3000-(System.currentTimeMillis() % 3000);
|
||||||
}
|
}
|
||||||
else if (diff.second >= 40) {
|
else if (diff.second >= 40 && false) {
|
||||||
//Log.d(TAG, "2 secs");
|
//Log.d(TAG, "2 secs");
|
||||||
return 2000-(System.currentTimeMillis() % 2000);
|
return 2000-(System.currentTimeMillis() % 2000);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user