summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2017-12-27 14:18:49 +0000
committerTony Mak <tonymak@google.com>2017-12-27 14:20:23 +0000
commit90f203c544d10ac31334d8e3bd1017d7c4a13e30 (patch)
treecd4550b463c23f3f4083c5f6bfb95ba60e7604c6 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5c74af9498c51b3f789adae6796938789d3b2740 (diff)
Fix "You're using your work profile" toast is shown when launcher is
...in foreground What's the problem: getRecentTasks no longer returns home task. Check RecentTasks.isVisibleRecentTask Solution: Instead of "fixing" getRecentTasks, use getLastResumedActivityUserId, which is already used for the work profile icon in status bar. Note that Keyguard is not an activity, so it won't change the value of "last resumed activity user id". It should be more lightweight than getRecentTasks anyway. Test: Open any personal app -> screen off and on -> no toast Test: Open any work app -> screen off and on -> observe toast Test: Open any work app -> tap home -> scren off and on -> no toast Change-Id: I1cc880bfa23017c9d2c5ad99d57e67b430aa4ac8 Fix: 70377375
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions