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

Commit be18553f authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Fix inability to make work profile calls where no default dialer set.

Issue was due to a Toast which was not running on a valid looper.

Test: Manual
Bug: 123062508
Change-Id: I44fb10beaf98147533eb9a410b20e1e8efa5373a
parent 2fbb55d9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Looper;
import android.os.Trace;
import android.os.UserHandle;
import android.os.UserManager;
@@ -145,7 +146,9 @@ public class CallIntentProcessor {
            // Show the toast to warn user that it is a personal call though initiated in work
            // profile.
            if (fixedInitiatingUser) {
                Toast.makeText(context, R.string.toast_personal_call_msg, Toast.LENGTH_LONG).show();
                Toast.makeText(context, Looper.getMainLooper(),
                        context.getString(R.string.toast_personal_call_msg),
                        Toast.LENGTH_LONG).show();
            }
        } else {
            Log.i(CallIntentProcessor.class,