Skip to content

Commit

Permalink
Expose the notification log
Browse files Browse the repository at this point in the history
Google added a way to see your past notifications but is buried. The stock
hoes were accessing this by way of the Settings shortcuts but I feel like
is time for our users to see this without having to do any fuckery.

In case you don't know what WTF this is...

androidpit.com/how-to-recover-lost-notifications-on-android

Change-Id: I735b3d6c0a94f3d5bed867a2988056f6545df1df
  • Loading branch information
Alex authored and dinosnore1 committed Jun 3, 2020
1 parent a4704d2 commit 0278337
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions res/xml/configure_notification_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
android:order="15"
settings:initialExpandedChildrenCount="0">

<Preference
android:title="@string/notification_log_title"
android:fragment="com.android.settings.notification.NotificationStation" />

<SwitchPreference
android:key="show_snooze_options"
android:title="@string/snooze_options_title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ public void onActivityCreated(Bundle savedInstanceState) {
public void onResume() {
logd("onResume()");
super.onResume();
// Set correct title on the action bar
getActivity().setTitle(R.string.notification_log_title);

try {
mListener.registerAsSystemService(mContext, new ComponentName(mContext.getPackageName(),
this.getClass().getCanonicalName()), ActivityManager.getCurrentUser());
Expand Down

0 comments on commit 0278337

Please sign in to comment.