Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da649ada authored by William Escande's avatar William Escande
Browse files

AutoOnFeature: Open settings page on click

Bug: 323060869
Flag: com.android.bluetooth.flags.auto_on_feature
Test: Manual Trigger the AutoOnFeature and click on the notification. It
      should open the settings page. This does not work on AOSP target
Change-Id: I115acb0d82e12cfea404e83be2b64dc410834693
parent 4bf58dfe
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -154,6 +154,14 @@ public class NotificationHelperService extends Service {
                                    .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
                            PendingIntent.FLAG_IMMUTABLE));
        } else {
            // Open the setting page when the notification is clicked
            builder.setContentIntent(
                    PendingIntent.getActivity(
                            this,
                            PendingIntent.FLAG_UPDATE_CURRENT,
                            new Intent("android.settings.BLUETOOTH_DASHBOARD_SETTINGS"),
                            PendingIntent.FLAG_IMMUTABLE));

            Intent baseIntent =
                    new Intent()
                            .setAction(AUTO_ON_USER_ACTION)