Improve grouped and messaging notification capture
This commit is contained in:
@@ -24,6 +24,7 @@ import se.ajpanton.notificationlog.settings.TimestampZone
|
||||
import se.ajpanton.notificationlog.settings.LoggingType
|
||||
import se.ajpanton.notificationlog.settings.LoggingRuleStore
|
||||
import se.ajpanton.notificationlog.settings.AppLockStore
|
||||
import se.ajpanton.notificationlog.settings.CaptureSettingsStore
|
||||
import se.ajpanton.notificationlog.data.EncryptedNotificationLogStore
|
||||
import se.ajpanton.notificationlog.data.EncryptedImageStore
|
||||
import se.ajpanton.notificationlog.capture.NotificationCaptureService
|
||||
@@ -84,6 +85,11 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
|
||||
}
|
||||
setupCopyControls()
|
||||
setupEventMasterToggles()
|
||||
val captureSettings = CaptureSettingsStore(requireContext())
|
||||
binding!!.groupSummaries.isChecked = captureSettings.logGroupSummaries
|
||||
binding!!.groupSummaries.setOnCheckedChangeListener { _, checked ->
|
||||
captureSettings.logGroupSummaries = checked
|
||||
}
|
||||
binding!!.exportLogs.setOnClickListener { confirmExport() }
|
||||
binding!!.clearLogs.setOnClickListener { confirmClearLogs() }
|
||||
binding!!.notificationAccess.setOnClickListener { startActivity(Intent(Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS)) }
|
||||
|
||||
Reference in New Issue
Block a user