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

Commit 9bcc666c authored by Pat Manning's avatar Pat Manning
Browse files

Launch keyboard settings page activity from Shortcut Helper as new task.

This allows the user to re-open shortcut helper without seeing the settings page again.

Fix: 365955398
Test: Manual. Launch SH, open keyboard settings, go home, relaunch SH successfully.
Flag: com.android.systemui.keyboard_shortcut_helper_rewrite
Change-Id: I0ea52de72b44ed4a9ebbe0c7e46ac701b790cd62
parent e048c46e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.systemui.keyboard.shortcut.ui.view

import android.content.ActivityNotFoundException
import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import android.content.res.Configuration
import android.os.Bundle
import android.provider.Settings
@@ -125,7 +126,7 @@ constructor(private val userTracker: UserTracker, private val viewModel: Shortcu
    private fun onKeyboardSettingsClicked() {
        try {
            startActivityAsUser(
                Intent(Settings.ACTION_HARD_KEYBOARD_SETTINGS),
                Intent(Settings.ACTION_HARD_KEYBOARD_SETTINGS).addFlags(FLAG_ACTIVITY_NEW_TASK),
                userTracker.userHandle,
            )
        } catch (e: ActivityNotFoundException) {