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

Commit d0f01b8c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Launch keyboard settings page activity from Shortcut Helper as new task." into main

parents 304134cb 9bcc666c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.systemui.keyboard.shortcut.ui.view


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