Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 338a15d4 authored by tobias's avatar tobias
Browse files

Merge branch 'material' of ssh://git.dmfs.org:23023/android-tasks/tasks into material

parents e2e94a45 ef328546
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -745,16 +745,13 @@ public class TaskListFragment extends SupportFragment implements LoaderManager.L

	/**
	 * Starts the automatic list view redraw (e.g. to display changing time values) on the next minute.
	 * 
	 * @param interval
	 *            The interval for the redraw in milliseconds.
	 */
	public void startAutomaticRedraw()
	{
		long now = System.currentTimeMillis();
		long millisToMinute = 60000 - (now % 60000);
		long millisToInterval = INTERVAL_LISTVIEW_REDRAW - (now % INTERVAL_LISTVIEW_REDRAW);

		mHandler.postDelayed(mListRedrawRunnable, millisToMinute);
		mHandler.postDelayed(mListRedrawRunnable, millisToInterval);
	}