Add action to directly share crash log file from notification

This commit is contained in:
arkon
2021-02-07 23:04:27 -05:00
parent 5b7d8c5e37
commit 9facb51f22
4 changed files with 44 additions and 36 deletions

View File

@@ -44,6 +44,12 @@ class CrashLogUtil(private val context: Context) {
NotificationReceiver.openErrorLogPendingActivity(context, uri)
)
addAction(
R.drawable.ic_share_24dp,
context.getString(R.string.action_share),
NotificationReceiver.shareCrashLogPendingBroadcast(context, uri, Notifications.ID_CRASH_LOGS)
)
context.notificationManager.notify(Notifications.ID_CRASH_LOGS, build())
}
}