Skip to content

Commit

Permalink
Merge pull request #47 from omnt/fix/logging_notification
Browse files Browse the repository at this point in the history
Extend Notification
  • Loading branch information
PeterHasse authored Jan 13, 2025
2 parents 3bcc69c + 13f2b47 commit d3196dc
Showing 1 changed file with 7 additions and 3 deletions.
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

0 comments on commit d3196dc

Please sign in to comment.