This repository has been archived by the owner on Jan 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbd305c
commit 413c92f
Showing
5 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
import androidx.core.app.NotificationManagerCompat; | ||
|
||
import org.nuclearfog.apollo.cache.ImageCache; | ||
import org.nuclearfog.apollo.player.AudioEffects; | ||
|
||
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
|
@@ -27,6 +26,7 @@ | |
* released within {@link ImageCache}. | ||
* | ||
* @author Andrew Neal ([email protected]) | ||
* @author nuclearfog | ||
*/ | ||
public class ApolloApplication extends Application { | ||
|
||
|
@@ -59,8 +59,6 @@ public void onTerminate() { | |
// remove notification | ||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this); | ||
notificationManager.cancelAll(); | ||
// release audioeffects | ||
AudioEffects.release(); | ||
} catch (SecurityException exception) { | ||
// ignore | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
* expanded notification by default. | ||
* | ||
* @author Andrew Neal ([email protected]) | ||
* @author nuclearfog | ||
*/ | ||
public class NotificationHelper { | ||
|
||
|
@@ -160,9 +161,9 @@ public void updateNotification() { | |
} | ||
|
||
/** | ||
* cancel notification when app is in foreground | ||
* dismiss notification when app is in foreground | ||
*/ | ||
public void cancelNotification() { | ||
public void dismissNotification() { | ||
postNotification(null); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters