public static void dismiss(long threadId){
  if (sThreadId == threadId) {
    sThreadId=0;
    System.exit(0);
  }
}

public static void dismiss ( long threadId ) { if ( sThreadId == threadId ) { sThreadId = 0 ; System . exit ( 0 ) ; } }
other areas of the app can tell the qk reply window to close itself if necessary < p / > 1 . mainactivity . when it ' s resumed , we don ' t want any qk reply windows to open , which may have happened while the screen was off . < p / > 2 . pushbulletservice . if a message is replied to via pb , close the window < p / > 3 . markreadreceiver . a qk reply window may have opened while the screen was off , so if it ' s marked as read from the lock screen via notification , the qk reply window should be dismissed
