Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ private void setupNotificationUpdate() {
private void stopNotificationUpdate() {
Log.d(TAG, "stopNotificationUpdate");
notificationHandler.removeCallbacks(servingCellNotificaiton);
//builder.setContentText(null);
//nm.notify(1, builder.build());
nm.cancel(4);

if (notificationHandlerThread != null) {
notificationHandlerThread.quitSafely();
Expand All @@ -66,6 +63,12 @@ private void stopNotificationUpdate() {
}
notificationHandlerThread = null;
}


stopForeground(STOP_FOREGROUND_DETACH);
builder.setContentText(null);
nm.cancel(4);

onDestroy();
}

Expand All @@ -92,6 +95,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {
@Override
public void onDestroy() {
super.onDestroy();
stopSelf();
}

private void setupNotification() {
Expand Down