Buggy code:
public class CallerInfoProviderPicker { private static final String NUDGE_ID = "callerInfoPickerDialogNudge" ; private static final int REQUEST_CODE_SUCCESS = 0 ; private static final int REQUEST_CODE_FAILURE = 1 ; private static final String PREF_FIRST_LAUNCH = "first_launch" ; private static final String PREF_UNKNOWN_CALL_COUNT = "unknown_call_count" ; private static final int UNKNOWN_CALL_FIRST_COUNT = 0 ; private static final int UNKNOWN_CALL_FINAL_COUNT = 4 ; public static void onAppLaunched ( Context context ) { } public static void onUnknownCallEnded ( Context context ) { } public static void onSettingEnabled ( Context context ) { } private static void enableProvider ( Context context , boolean withDialog , int metricsReason , ResultCallback < BooleanResult > callback ) { } private static boolean checkPreconditions ( Context context ) { } private static void showDialog ( Context context , int metricsReason , ComponentName component , ProviderInfo info , ResultCallback < BooleanResult > callback ) { Resources res = context . getResources ( ) ; CharSequence subText = null ; if ( info . hasProperty ( PROPERTY_NEEDS_CONTACTS ) ) { String text = res . getString ( callerinfo_provider_auth_access , info . getTitle ( ) ) ; if ( ( info . getPrivacyPolicyUrl ( ) ) != null ) { String learnMore = "<seq2seq4repair_space><a<seq2seq4repair_space>href=\"%s\">%s<//a>" ; text += String . format ( learnMore , info . getPrivacyPolicyUrl ( ) , res . getString ( callerinfo_provider_auth_learn_more ) ) ; } <START_BUG> subText = Html . fromHtml ( text ) ; <END_BUG> } int logoWidth = context . getResources ( ) . getDimensionPixelSize ( callerinfo_provider_picker_logo_width ) ; int logoHeight = context . getResources ( ) . getDimensionPixelSize ( callerinfo_provider_picker_logo_height ) ; Bitmap logo = ImageUtils . drawableToBitmap ( info . getBrandLogo ( ) ) ; Bitmap scaledLogo = ImageUtils . scaleBitmapToTarget ( logo , logoHeight , logoWidth ) ; int resId = ( info . hasProperty ( PROPERTY_SUPPORTS_SPAM ) ) ? string . callerinfo_provider_auth_desc : string . callerinfo_provider_auth_desc_no_spam ; String bodyText = res . getString ( resId , info . getTitle ( ) ) ; DialogNudge nudge = new DialogNudge ( CallerInfoProviderPicker . NUDGE_ID , SubheadPosition . BOTTOM , info . getTitle ( ) , bodyText ) ; if ( subText != null ) { nudge . setSubhead ( subText . toString ( ) ) ; } if ( scaledLogo != null ) { nudge . setTitleImage ( scaledLogo ) ; } Intent enableIntent = CallerInfoProviderPicker . buildEnableIntent ( context , component , info , metricsReason ) ; PendingIntent positivePendingIntent = PendingIntent . getService ( context , CallerInfoProviderPicker . REQUEST_CODE_SUCCESS , enableIntent , FLAG_CANCEL_CURRENT ) ; Intent cancelIntent = ( ( Intent ) ( enableIntent . clone ( ) ) ) ; cancelIntent . putExtra ( INTENT_EXTRA_SUCCESS , false ) ; PendingIntent negativePendingIntent = PendingIntent . getService ( context , CallerInfoProviderPicker . REQUEST_CODE_FAILURE , cancelIntent , FLAG_CANCEL_CURRENT ) ; nudge . addButton ( new DialogNudge . Button ( res . getString ( callerinfo_provider_auth_yes ) , AlertDialog . BUTTON_POSITIVE , positivePendingIntent ) ) ; nudge . addButton ( new DialogNudge . Button ( res . getString ( callerinfo_provider_auth_no ) , AlertDialog . BUTTON_NEGATIVE , negativePendingIntent ) ) ; DiscoveryManagerApi . publishNudge ( CLIENT . get ( context ) , nudge ) . setResultCallback ( callback ) ; } private static Intent buildEnableIntent ( Context context , ComponentName component , ProviderInfo info , int metricsReason ) { } }

Fix:
subText = text ;