diff --git a/res/drawable/bg_ps_header.xml b/res/drawable/bg_ps_header.xml index 526bb5a9e8..da314452ad 100644 --- a/res/drawable/bg_ps_header.xml +++ b/res/drawable/bg_ps_header.xml @@ -14,9 +14,13 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - - - - \ No newline at end of file + + + + + + + + diff --git a/res/drawable/ps_lock_background.xml b/res/drawable/ps_lock_background.xml index b81c23fcb3..0be83dbd92 100644 --- a/res/drawable/ps_lock_background.xml +++ b/res/drawable/ps_lock_background.xml @@ -15,13 +15,17 @@ ~ limitations under the License. --> - - - - - - - \ No newline at end of file + + + + + + + + + + + diff --git a/src/com/android/launcher3/allapps/PrivateProfileManager.java b/src/com/android/launcher3/allapps/PrivateProfileManager.java index eb967bc68e..0d023ea38d 100644 --- a/src/com/android/launcher3/allapps/PrivateProfileManager.java +++ b/src/com/android/launcher3/allapps/PrivateProfileManager.java @@ -379,8 +379,10 @@ public class PrivateProfileManager extends UserProfileManager { private void addHeaderOnClickListener(RelativeLayout header) { if (getCurrentState() == STATE_DISABLED) { header.setOnClickListener(view -> lockingAction(/* lock */ false)); + header.setClickable(true); } else { header.setOnClickListener(null); + header.setClickable(false); } }