public static void resetMidnightUpdater(Handler h, Runnable r) {
        if (h == null || r == null) {
            return;
        }
        h.removeCallbacks(r);
    }
public static void resetMidnightUpdater ( Handler h , Runnable r ) { if ( h == null || r == null ) { return ; } h . removeCallbacks ( r ) ; }
Stop the midnight update thread