Loading java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java +1 −1 Original line number Diff line number Diff line Loading @@ -560,7 +560,7 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder case CallbackAction.VOICE: if (callLogCache.isVoicemailNumber(accountHandle, number)) { // Call to generic voicemail number, in case there are multiple accounts primaryActionButtonView.setTag(IntentProvider.getReturnVoicemailCallIntentProvider(null)); primaryActionButtonView.setTag(IntentProvider.getReturnVoicemailCallIntentProvider()); } else if (canSupportAssistedDialing()) { primaryActionButtonView.setTag( IntentProvider.getAssistedDialIntentProvider( Loading java/com/android/dialer/app/calllog/IntentProvider.java +2 −3 Original line number Diff line number Diff line Loading @@ -161,14 +161,13 @@ public abstract class IntentProvider { }; } public static IntentProvider getReturnVoicemailCallIntentProvider( @Nullable PhoneAccountHandle phoneAccountHandle) { public static IntentProvider getReturnVoicemailCallIntentProvider() { return new IntentProvider() { @Override public Intent getIntent(Context context) { return PreCall.getIntent( context, CallIntentBuilder.forVoicemail(phoneAccountHandle, CallInitiationType.Type.CALL_LOG)); CallIntentBuilder.forVoicemail(CallInitiationType.Type.CALL_LOG)); } }; } Loading java/com/android/dialer/callintent/CallIntentBuilder.java +2 −2 Original line number Diff line number Diff line Loading @@ -117,10 +117,10 @@ public class CallIntentBuilder implements Parcelable { } public static CallIntentBuilder forVoicemail( @Nullable PhoneAccountHandle phoneAccountHandle, CallInitiationType.Type callInitiationType) { CallInitiationType.Type callInitiationType) { return new CallIntentBuilder( Uri.fromParts(PhoneAccount.SCHEME_VOICEMAIL, "", null), callInitiationType) .setPhoneAccountHandle(phoneAccountHandle); .setPhoneAccountHandle(null); } public void setUri(@NonNull Uri uri) { Loading java/com/android/dialer/dialpadview/DialpadFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -1136,7 +1136,7 @@ public class DialpadFragment extends Fragment public void callVoicemail() { PreCall.start( getContext(), CallIntentBuilder.forVoicemail(null, CallInitiationType.Type.DIALPAD)); getContext(), CallIntentBuilder.forVoicemail(CallInitiationType.Type.DIALPAD)); hideAndClearDialpad(); } Loading java/com/android/dialer/voicemail/listui/error/OmtpVoicemailMessageCreator.java +8 −8 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_activating_title), context.getString(R.string.voicemail_error_activating_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle())); VoicemailErrorMessage.createCallVoicemailAction(context)); } if (Status.NOTIFICATION_CHANNEL_STATE_NO_CONNECTION == status.notificationChannelState) { Loading @@ -77,7 +77,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_activation_failed_title), context.getString(R.string.voicemail_error_activation_failed_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -85,7 +85,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_no_data_title), context.getString(R.string.voicemail_error_no_data_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -93,7 +93,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_no_data_title), context.getString(R.string.voicemail_error_no_data_cellular_required_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -101,7 +101,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_bad_config_title), context.getString(R.string.voicemail_error_bad_config_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -109,7 +109,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_communication_title), context.getString(R.string.voicemail_error_communication_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -117,7 +117,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_server_title), context.getString(R.string.voicemail_error_server_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -125,7 +125,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_server_connection_title), context.getString(R.string.voicemail_error_server_connection_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading Loading
java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java +1 −1 Original line number Diff line number Diff line Loading @@ -560,7 +560,7 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder case CallbackAction.VOICE: if (callLogCache.isVoicemailNumber(accountHandle, number)) { // Call to generic voicemail number, in case there are multiple accounts primaryActionButtonView.setTag(IntentProvider.getReturnVoicemailCallIntentProvider(null)); primaryActionButtonView.setTag(IntentProvider.getReturnVoicemailCallIntentProvider()); } else if (canSupportAssistedDialing()) { primaryActionButtonView.setTag( IntentProvider.getAssistedDialIntentProvider( Loading
java/com/android/dialer/app/calllog/IntentProvider.java +2 −3 Original line number Diff line number Diff line Loading @@ -161,14 +161,13 @@ public abstract class IntentProvider { }; } public static IntentProvider getReturnVoicemailCallIntentProvider( @Nullable PhoneAccountHandle phoneAccountHandle) { public static IntentProvider getReturnVoicemailCallIntentProvider() { return new IntentProvider() { @Override public Intent getIntent(Context context) { return PreCall.getIntent( context, CallIntentBuilder.forVoicemail(phoneAccountHandle, CallInitiationType.Type.CALL_LOG)); CallIntentBuilder.forVoicemail(CallInitiationType.Type.CALL_LOG)); } }; } Loading
java/com/android/dialer/callintent/CallIntentBuilder.java +2 −2 Original line number Diff line number Diff line Loading @@ -117,10 +117,10 @@ public class CallIntentBuilder implements Parcelable { } public static CallIntentBuilder forVoicemail( @Nullable PhoneAccountHandle phoneAccountHandle, CallInitiationType.Type callInitiationType) { CallInitiationType.Type callInitiationType) { return new CallIntentBuilder( Uri.fromParts(PhoneAccount.SCHEME_VOICEMAIL, "", null), callInitiationType) .setPhoneAccountHandle(phoneAccountHandle); .setPhoneAccountHandle(null); } public void setUri(@NonNull Uri uri) { Loading
java/com/android/dialer/dialpadview/DialpadFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -1136,7 +1136,7 @@ public class DialpadFragment extends Fragment public void callVoicemail() { PreCall.start( getContext(), CallIntentBuilder.forVoicemail(null, CallInitiationType.Type.DIALPAD)); getContext(), CallIntentBuilder.forVoicemail(CallInitiationType.Type.DIALPAD)); hideAndClearDialpad(); } Loading
java/com/android/dialer/voicemail/listui/error/OmtpVoicemailMessageCreator.java +8 −8 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_activating_title), context.getString(R.string.voicemail_error_activating_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle())); VoicemailErrorMessage.createCallVoicemailAction(context)); } if (Status.NOTIFICATION_CHANNEL_STATE_NO_CONNECTION == status.notificationChannelState) { Loading @@ -77,7 +77,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_activation_failed_title), context.getString(R.string.voicemail_error_activation_failed_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -85,7 +85,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_no_data_title), context.getString(R.string.voicemail_error_no_data_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -93,7 +93,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_no_data_title), context.getString(R.string.voicemail_error_no_data_cellular_required_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -101,7 +101,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_bad_config_title), context.getString(R.string.voicemail_error_bad_config_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -109,7 +109,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_communication_title), context.getString(R.string.voicemail_error_communication_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -117,7 +117,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_server_title), context.getString(R.string.voicemail_error_server_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading @@ -125,7 +125,7 @@ public class OmtpVoicemailMessageCreator { return new VoicemailErrorMessage( context.getString(R.string.voicemail_error_server_connection_title), context.getString(R.string.voicemail_error_server_connection_message), VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), VoicemailErrorMessage.createCallVoicemailAction(context), VoicemailErrorMessage.createRetryAction(context, status)); } Loading