[DO NOT MERGE] Global actions tip

Make the whole area tapable instead of just the chevron

Fixes: 192599660
Test: manual
Change-Id: Id2e7bd3c2586766f0f59dace58811e6a91cb18df
This commit is contained in:
Matt Pietal
2021-07-02 12:09:44 -04:00
parent d0e38d0a25
commit cfd4b956db

View File

@@ -24,7 +24,6 @@ import android.service.quickaccesswallet.QuickAccessWalletClient
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.android.systemui.R
import com.android.systemui.controls.controller.ControlsController
@@ -76,8 +75,7 @@ class GlobalActionsInfoProvider @Inject constructor(
val message = view.findViewById<TextView>(R.id.global_actions_change_message)
message?.setText(context.getString(R.string.global_actions_change_description, walletTitle))
val button = view.findViewById<ImageView>(R.id.global_actions_change_button)
button.setOnClickListener { _ ->
view.setOnClickListener { _ ->
dismissParent.run()
activityStarter.postStartActivityDismissingKeyguard(pendingIntent)
}
@@ -119,4 +117,4 @@ class GlobalActionsInfoProvider @Inject constructor(
val count = sharedPrefs.getInt(KEY_VIEW_COUNT, 0)
sharedPrefs.edit().putInt(KEY_VIEW_COUNT, count + 1).apply()
}
}
}