Loading res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,8 @@ <string name="app_downloading_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> downloading, <xliff:g id="progress" example="30%">%2$s</xliff:g> complete</string> <!-- Title for an app whose download has been started. --> <string name="app_waiting_download_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> waiting to install</string> <!-- Title for an app which is archived. --> <string name="app_archived_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> is archived. Tap to download.</string> <!-- Title shown on the alert dialog prompting the user to update the application in market Loading src/com/android/launcher3/BubbleTextView.java +3 −1 Original line number Diff line number Diff line Loading @@ -1010,7 +1010,9 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, } private void setDownloadStateContentDescription(ItemInfoWithIcon info, int progressLevel) { if ((info.runtimeStatusFlags & ItemInfoWithIcon.FLAG_SHOW_DOWNLOAD_PROGRESS_MASK) if ((info.runtimeStatusFlags & ItemInfoWithIcon.FLAG_ARCHIVED) != 0 && progressLevel == 0) { setContentDescription(getContext().getString(R.string.app_archived_title, info.title)); } else if ((info.runtimeStatusFlags & ItemInfoWithIcon.FLAG_SHOW_DOWNLOAD_PROGRESS_MASK) != 0) { String percentageString = NumberFormat.getPercentInstance() .format(progressLevel * 0.01); Loading Loading
res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,8 @@ <string name="app_downloading_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> downloading, <xliff:g id="progress" example="30%">%2$s</xliff:g> complete</string> <!-- Title for an app whose download has been started. --> <string name="app_waiting_download_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> waiting to install</string> <!-- Title for an app which is archived. --> <string name="app_archived_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> is archived. Tap to download.</string> <!-- Title shown on the alert dialog prompting the user to update the application in market Loading
src/com/android/launcher3/BubbleTextView.java +3 −1 Original line number Diff line number Diff line Loading @@ -1010,7 +1010,9 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, } private void setDownloadStateContentDescription(ItemInfoWithIcon info, int progressLevel) { if ((info.runtimeStatusFlags & ItemInfoWithIcon.FLAG_SHOW_DOWNLOAD_PROGRESS_MASK) if ((info.runtimeStatusFlags & ItemInfoWithIcon.FLAG_ARCHIVED) != 0 && progressLevel == 0) { setContentDescription(getContext().getString(R.string.app_archived_title, info.title)); } else if ((info.runtimeStatusFlags & ItemInfoWithIcon.FLAG_SHOW_DOWNLOAD_PROGRESS_MASK) != 0) { String percentageString = NumberFormat.getPercentInstance() .format(progressLevel * 0.01); Loading