Merge "Fixed a bug with the emergency affordance in multi user" into nyc-mr2-dev

This commit is contained in:
TreeHugger Robot
2016-11-09 23:05:39 +00:00
committed by Android (Google) Code Review

View File

@@ -20,6 +20,7 @@ import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.os.UserHandle;
import android.provider.Settings; import android.provider.Settings;
/** /**
@@ -72,7 +73,7 @@ public class EmergencyAffordanceManager {
Intent intent = new Intent(Intent.ACTION_CALL_EMERGENCY); Intent intent = new Intent(Intent.ACTION_CALL_EMERGENCY);
intent.setData(getPhoneUri(context)); intent.setData(getPhoneUri(context));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent); context.startActivityAsUser(intent, UserHandle.CURRENT);
} }
/** /**