Loading src/com/android/server/telecom/Call.java +1 −1 Original line number Diff line number Diff line Loading @@ -3473,7 +3473,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, Log.w(this, "pullExternalCall = pullExternalCall - call %s is external but can not be" + " pulled while an emergency call is in progress.", mId); mToastFactory.makeText(mContext, R.string.toast_emergency_can_not_pull_call, Toast.LENGTH_LONG).show(); Toast.LENGTH_LONG); return; } Loading src/com/android/server/telecom/CallIntentProcessor.java +3 −2 Original line number Diff line number Diff line Loading @@ -174,8 +174,9 @@ public class CallIntentProcessor { // profile. if (fixedInitiatingUser) { if (featureFlags.telecomResolveHiddenDependencies()) { Toast.makeText(context, context.getString(R.string.toast_personal_call_msg), Toast.LENGTH_LONG).show(); context.getMainExecutor().execute(() -> Toast.makeText(context, context.getString( R.string.toast_personal_call_msg), Toast.LENGTH_LONG).show()); } else { Toast.makeText(context, Looper.getMainLooper(), context.getString(R.string.toast_personal_call_msg), Loading src/com/android/server/telecom/TelecomServiceImpl.java +0 −1 Original line number Diff line number Diff line Loading @@ -2696,7 +2696,6 @@ public class TelecomServiceImpl { private final FeatureFlags mFeatureFlags; private final com.android.internal.telephony.flags.FeatureFlags mTelephonyFeatureFlags; public TelecomServiceImpl( Context context, CallsManager callsManager, Loading src/com/android/server/telecom/TelecomSystem.java +9 −8 Original line number Diff line number Diff line Loading @@ -346,22 +346,23 @@ public class TelecomSystem { ToastFactory toastFactory = new ToastFactory() { @Override public Toast makeText(Context context, int resId, int duration) { public void makeText(Context context, int resId, int duration) { if (mFeatureFlags.telecomResolveHiddenDependencies()) { return Toast.makeText(context, resId, duration); context.getMainExecutor().execute(() -> Toast.makeText(context, resId, duration).show()); } else { return Toast.makeText(context, context.getMainLooper(), context.getString(resId), duration); Toast.makeText(context, context.getMainLooper(), context.getString(resId), duration).show(); } } @Override public Toast makeText(Context context, CharSequence text, int duration) { public void makeText(Context context, CharSequence text, int duration) { if (mFeatureFlags.telecomResolveHiddenDependencies()) { return Toast.makeText(context, text, duration); context.getMainExecutor().execute(() -> Toast.makeText(context, text, duration).show()); } else { return Toast.makeText(context, context.getMainLooper(), text, duration); Toast.makeText(context, context.getMainLooper(), text, duration).show(); } } }; Loading src/com/android/server/telecom/ui/ToastFactory.java +2 −2 Original line number Diff line number Diff line Loading @@ -21,6 +21,6 @@ import android.content.Context; import android.widget.Toast; public interface ToastFactory { Toast makeText(Context context, @StringRes int resId, int duration); Toast makeText(Context context, CharSequence text, int duration); void makeText(Context context, @StringRes int resId, int duration); void makeText(Context context, CharSequence text, int duration); } Loading
src/com/android/server/telecom/Call.java +1 −1 Original line number Diff line number Diff line Loading @@ -3473,7 +3473,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, Log.w(this, "pullExternalCall = pullExternalCall - call %s is external but can not be" + " pulled while an emergency call is in progress.", mId); mToastFactory.makeText(mContext, R.string.toast_emergency_can_not_pull_call, Toast.LENGTH_LONG).show(); Toast.LENGTH_LONG); return; } Loading
src/com/android/server/telecom/CallIntentProcessor.java +3 −2 Original line number Diff line number Diff line Loading @@ -174,8 +174,9 @@ public class CallIntentProcessor { // profile. if (fixedInitiatingUser) { if (featureFlags.telecomResolveHiddenDependencies()) { Toast.makeText(context, context.getString(R.string.toast_personal_call_msg), Toast.LENGTH_LONG).show(); context.getMainExecutor().execute(() -> Toast.makeText(context, context.getString( R.string.toast_personal_call_msg), Toast.LENGTH_LONG).show()); } else { Toast.makeText(context, Looper.getMainLooper(), context.getString(R.string.toast_personal_call_msg), Loading
src/com/android/server/telecom/TelecomServiceImpl.java +0 −1 Original line number Diff line number Diff line Loading @@ -2696,7 +2696,6 @@ public class TelecomServiceImpl { private final FeatureFlags mFeatureFlags; private final com.android.internal.telephony.flags.FeatureFlags mTelephonyFeatureFlags; public TelecomServiceImpl( Context context, CallsManager callsManager, Loading
src/com/android/server/telecom/TelecomSystem.java +9 −8 Original line number Diff line number Diff line Loading @@ -346,22 +346,23 @@ public class TelecomSystem { ToastFactory toastFactory = new ToastFactory() { @Override public Toast makeText(Context context, int resId, int duration) { public void makeText(Context context, int resId, int duration) { if (mFeatureFlags.telecomResolveHiddenDependencies()) { return Toast.makeText(context, resId, duration); context.getMainExecutor().execute(() -> Toast.makeText(context, resId, duration).show()); } else { return Toast.makeText(context, context.getMainLooper(), context.getString(resId), duration); Toast.makeText(context, context.getMainLooper(), context.getString(resId), duration).show(); } } @Override public Toast makeText(Context context, CharSequence text, int duration) { public void makeText(Context context, CharSequence text, int duration) { if (mFeatureFlags.telecomResolveHiddenDependencies()) { return Toast.makeText(context, text, duration); context.getMainExecutor().execute(() -> Toast.makeText(context, text, duration).show()); } else { return Toast.makeText(context, context.getMainLooper(), text, duration); Toast.makeText(context, context.getMainLooper(), text, duration).show(); } } }; Loading
src/com/android/server/telecom/ui/ToastFactory.java +2 −2 Original line number Diff line number Diff line Loading @@ -21,6 +21,6 @@ import android.content.Context; import android.widget.Toast; public interface ToastFactory { Toast makeText(Context context, @StringRes int resId, int duration); Toast makeText(Context context, CharSequence text, int duration); void makeText(Context context, @StringRes int resId, int duration); void makeText(Context context, CharSequence text, int duration); }