Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cc0b517 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Fixed a bug with the emergency affordance in multi user

am: b8a7f78d

Change-Id: I68fa35dbedb3740eff1c83d03c9c9b5080d3ea81
parents d9a8ee75 b8a7f78d
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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);
    }
    }


    /**
    /**