Start ACTION_INCOMING_CALL as current user.
Starting it as user 0 causes the incoming call to be placed below
tasks belonging to the current user in the stack.
Fixes bug 16634716.
Change-Id: I36277b4729b5aa4ac154b1e26ab73e1ef5ff8c23
diff --git a/src/com/android/telecomm/TelecommServiceImpl.java b/src/com/android/telecomm/TelecommServiceImpl.java
index ee22536..05f0e0a 100644
--- a/src/com/android/telecomm/TelecommServiceImpl.java
+++ b/src/com/android/telecomm/TelecommServiceImpl.java
@@ -29,6 +29,7 @@
import android.os.Looper;
import android.os.Message;
import android.os.ServiceManager;
+import android.os.UserHandle;
import android.telecomm.CallState;
import android.telecomm.PhoneAccount;
import android.telecomm.PhoneAccountHandle;
@@ -355,7 +356,7 @@
}
long token = Binder.clearCallingIdentity();
- TelecommApp.getInstance().startActivity(intent);
+ TelecommApp.getInstance().startActivityAsUser(intent, UserHandle.CURRENT);
Binder.restoreCallingIdentity(token);
}
}