We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e14b690 commit c31cddfCopy full SHA for c31cddf
app/src/main/java/me/timschneeberger/rootlessjamesdsp/session/root/RootSessionDatabase.kt
@@ -60,7 +60,13 @@ class RootSessionDatabase(context: Context) : BaseSessionDatabase(context) {
60
}
61
62
63
- override fun shouldAcceptSessionDump(id: Int, session: AudioSessionDumpEntry) = true
+ override fun shouldAcceptSessionDump(id: Int, session: AudioSessionDumpEntry): Boolean {
64
+ if (!session.isUsageRecordable()) {
65
+ Timber.d("Skipped session $id due to usage ($session)")
66
+ return false
67
+ }
68
+ return true
69
70
override fun shouldAddSession(id: Int, uid: Int, packageName: String) = true
71
72
override fun onSessionRemoved(item: IEffectSession) {
0 commit comments