Go home when new tab is installed

Bug: 150943778
Test: Manual
Change-Id: Iccd7f62c4cad856849fc1afb2faac9b9fa2f9f97
This commit is contained in:
Samuel Fufa
2020-03-20 16:27:09 -07:00
parent 7d3a113d05
commit 41d909ff67
2 changed files with 9 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ public class UserCache {
private void removeUserChangeListener(Runnable command) {
synchronized (this) {
mUserChangeListeners.add(command);
mUserChangeListeners.remove(command);
if (mUserChangeListeners.isEmpty()) {
// Disable cache and stop listening
mContext.unregisterReceiver(mUserChangeReceiver);