Fixed a bug with the emergency affordance in multi user
am: 0294f9e39b
Change-Id: Ib23d37b6ac5cc32aa77aa099c3fa2937ff3570d3
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.Settings;
|
||||
|
||||
/**
|
||||
@@ -72,7 +73,7 @@ public class EmergencyAffordanceManager {
|
||||
Intent intent = new Intent(Intent.ACTION_CALL_EMERGENCY);
|
||||
intent.setData(getPhoneUri(context));
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
context.startActivity(intent);
|
||||
context.startActivityAsUser(intent, UserHandle.CURRENT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user