diff options
author | Clark Scheff <clark@cyngn.com> | 2014-05-28 17:10:38 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2014-05-28 17:10:38 -0700 |
commit | 9c06afa48d31eaeaeaf64010653d71f789a54d2b (patch) | |
tree | 182cbc1a95475d782e2c4ae8eec2990bb6b5e8d5 | |
parent | 7acfb5181d81dc83d1334db3da3ee3480b0dcdcc (diff) | |
download | packages_apps_ThemeChooser-9c06afa48d31eaeaeaf64010653d71f789a54d2b.zip packages_apps_ThemeChooser-9c06afa48d31eaeaeaf64010653d71f789a54d2b.tar.gz packages_apps_ThemeChooser-9c06afa48d31eaeaeaf64010653d71f789a54d2b.tar.bz2 |
Show "No preview available" when no preview is loaded.
Change-Id: I2a3377a6c90ee1b0236954d45548e2ec284c6bee
37 files changed, 51 insertions, 36 deletions
diff --git a/res/layout/fragment_boot_animation_preview.xml b/res/layout/fragment_boot_animation_preview.xml index e594554..e69f828 100644 --- a/res/layout/fragment_boot_animation_preview.xml +++ b/res/layout/fragment_boot_animation_preview.xml @@ -28,7 +28,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:text="@string/no_boot_animation_preview" + android:text="@string/no_preview_available" + android:textSize="20sp" android:visibility="invisible" /> <ProgressBar diff --git a/res/layout/image_preview_item.xml b/res/layout/image_preview_item.xml index 0f6ba43..d7f3546 100644 --- a/res/layout/image_preview_item.xml +++ b/res/layout/image_preview_item.xml @@ -31,4 +31,13 @@ android:paddingRight="40dp" android:paddingTop="40dp" > </LinearLayout> + + <TextView + android:id="@+id/no_preview" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:textSize="20sp" + android:text="@string/no_preview_available" + android:visibility="invisible"/> </FrameLayout>
\ No newline at end of file diff --git a/res/values-af/strings.xml b/res/values-af/strings.xml index 96f2a79..332a6d4 100644 --- a/res/values-af/strings.xml +++ b/res/values-af/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Luitoon</string> <string name="unknown_author">Onbekende verskaffer</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Geen voorskou beskikbaar nie</string> + <string name="no_preview_available">Geen voorskou beskikbaar nie</string> <string name="theme_installed_notification_title">%s geïnstalleer</string> <string name="theme_installed_notification_text">Tema suksesvol geïnstalleer.</string> </resources> diff --git a/res/values-ar/strings.xml b/res/values-ar/strings.xml index 3073fc4..a1bbd50 100644 --- a/res/values-ar/strings.xml +++ b/res/values-ar/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">نغمة رنين</string> <string name="unknown_author">مؤلف غير معروف</string> <string name="font_preview_letters">Aaابت123١٢٣</string> - <string name="no_boot_animation_preview">لا تتوفر أية معاينة</string> + <string name="no_preview_available">لا تتوفر أية معاينة</string> <string name="theme_installed_notification_title">%s مثبت</string> <string name="theme_installed_notification_text">موضوع مثبت بنجاح.</string> </resources> diff --git a/res/values-ca/strings.xml b/res/values-ca/strings.xml index b3ce500..cb1619c 100644 --- a/res/values-ca/strings.xml +++ b/res/values-ca/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">To de trucada</string> <string name="unknown_author">Autor desconegut</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">No hi ha previsualització disponible</string> + <string name="no_preview_available">No hi ha previsualització disponible</string> <string name="theme_installed_notification_title">%s instal·lat</string> <string name="theme_installed_notification_text">Tema instal·lat satisfactòriament.</string> </resources> diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index 9cc05ef..6ee1eb2 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Vyzváněcí tón</string> <string name="unknown_author">Neznámý autor</string> <string name="font_preview_letters">AaBbCcDd123 ěščřžýáíé</string> - <string name="no_boot_animation_preview">Náhled není dostupný</string> + <string name="no_preview_available">Náhled není dostupný</string> <string name="theme_installed_notification_title">%s instalováno</string> <string name="theme_installed_notification_text">Téma byla úspěšně nainstalováno.</string> </resources> diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index 86ad66c..44e7b15 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Ringetone</string> <string name="unknown_author">Forfatter ukendt</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Intet eksempel tilgængeligt</string> + <string name="no_preview_available">Intet eksempel tilgængeligt</string> <string name="theme_installed_notification_title">%s installeret</string> <string name="theme_installed_notification_text">Tema installeret.</string> </resources> diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index f5af516..55d6f98 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Klingelton</string> <string name="unknown_author">Autor unbekannt</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Keine Vorschau verfügbar</string> + <string name="no_preview_available">Keine Vorschau verfügbar</string> <string name="theme_installed_notification_title">%s installiert</string> <string name="theme_installed_notification_text">Design erfolgreich installiert</string> </resources> diff --git a/res/values-el/strings.xml b/res/values-el/strings.xml index 4cd98d0..3ab99f4 100644 --- a/res/values-el/strings.xml +++ b/res/values-el/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Ήχος κλήσης</string> <string name="unknown_author">Άγνωστος συντάκτης</string> <string name="font_preview_letters">ΑαΒβΓγΔδ123</string> - <string name="no_boot_animation_preview">Δεν υπάρχει διαθέσιμη προεπισκόπηση</string> + <string name="no_preview_available">Δεν υπάρχει διαθέσιμη προεπισκόπηση</string> <string name="theme_installed_notification_title">%s εγκαταστάθηκε</string> <string name="theme_installed_notification_text">Το θέμα εγκαταστάθηκε με επιτυχία.</string> </resources> diff --git a/res/values-es-rXA/strings.xml b/res/values-es-rXA/strings.xml index 88d9d30..961c2a5 100644 --- a/res/values-es-rXA/strings.xml +++ b/res/values-es-rXA/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Tonu de llamada</string> <string name="unknown_author">Autor desconocíu</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Vista previa non disponible</string> + <string name="no_preview_available">Vista previa non disponible</string> <string name="theme_installed_notification_title">%s instaláu</string> <string name="theme_installed_notification_text">Tema instaláu correutamente.</string> </resources> diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index cb7a14c..975e123 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Tono de llamada</string> <string name="unknown_author">Autor desconocido</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Vista previa no disponible</string> + <string name="no_preview_available">Vista previa no disponible</string> <string name="theme_installed_notification_title">%s instalado</string> <string name="theme_installed_notification_text">Tema instalado correctamente.</string> </resources> diff --git a/res/values-et/strings.xml b/res/values-et/strings.xml index b319aa0..ca9ae4e 100644 --- a/res/values-et/strings.xml +++ b/res/values-et/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Helin</string> <string name="unknown_author">Autor teadmata</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Eelvaade pole saadaval</string> + <string name="no_preview_available">Eelvaade pole saadaval</string> <string name="theme_installed_notification_title">%s installitud</string> <string name="theme_installed_notification_text">Teema edukalt installitud.</string> </resources> diff --git a/res/values-fi/strings.xml b/res/values-fi/strings.xml index 0406eeb..c7a5acc 100644 --- a/res/values-fi/strings.xml +++ b/res/values-fi/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Soittoääni</string> <string name="unknown_author">Tuntematon tekijä</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Esikatselu ei käytettävissä</string> + <string name="no_preview_available">Esikatselu ei käytettävissä</string> <string name="theme_installed_notification_title">%s asennettu</string> <string name="theme_installed_notification_text">Teema asennettu onnistuneesti.</string> </resources> diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 3a8a2a1..525d7b8 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Sonnerie</string> <string name="unknown_author">Auteur inconnu</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Aucun aperçu disponible</string> + <string name="no_preview_available">Aucun aperçu disponible</string> <string name="theme_installed_notification_title">%s installé</string> <string name="theme_installed_notification_text">Thème installé avec succès.</string> </resources> diff --git a/res/values-hu/strings.xml b/res/values-hu/strings.xml index 4cfb710..af9e5ae 100644 --- a/res/values-hu/strings.xml +++ b/res/values-hu/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Csengőhang</string> <string name="unknown_author">Ismeretlen szerző</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Nincs előnézeti kép</string> + <string name="no_preview_available">Nincs előnézeti kép</string> <string name="theme_installed_notification_title">%s telepítve</string> <string name="theme_installed_notification_text">Téma sikeresen telepítve.</string> </resources> diff --git a/res/values-in/strings.xml b/res/values-in/strings.xml index 0b93d52..befdbde 100644 --- a/res/values-in/strings.xml +++ b/res/values-in/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Nada dering</string> <string name="unknown_author">Pembuat tidak dikenal</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Pratinjau tidak tersedia</string> + <string name="no_preview_available">Pratinjau tidak tersedia</string> <string name="theme_installed_notification_title">%s terinstal</string> <string name="theme_installed_notification_text">Tema berhasil dipasang.</string> </resources> diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index 65f0634..d98c0dd 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Suoneria</string> <string name="unknown_author">Autore sconosciuto</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Anteprima non disponibile</string> + <string name="no_preview_available">Anteprima non disponibile</string> <string name="theme_installed_notification_title">%s installato</string> <string name="theme_installed_notification_text">Tema installato con successo.</string> </resources> diff --git a/res/values-iw/strings.xml b/res/values-iw/strings.xml index 60a34cd..8cf992c 100644 --- a/res/values-iw/strings.xml +++ b/res/values-iw/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">רינגטון</string> <string name="unknown_author">מחבר לא ידוע</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">אין תצוגה מקדימה</string> + <string name="no_preview_available">אין תצוגה מקדימה</string> <string name="theme_installed_notification_title">%s מותקנים</string> <string name="theme_installed_notification_text">הערכה הותקנה בהצלחה.</string> </resources> diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml index f38dffe..bdaa63a 100644 --- a/res/values-ja/strings.xml +++ b/res/values-ja/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">着信音</string> <string name="unknown_author">作成者不明</string> <string name="font_preview_letters">あいうえおAaBbCc123</string> - <string name="no_boot_animation_preview">プレビューはありません</string> + <string name="no_preview_available">プレビューはありません</string> <string name="theme_installed_notification_title">%sがインストールされました</string> <string name="theme_installed_notification_text">テーマのインストールが完了しました。</string> </resources> diff --git a/res/values-lt/strings.xml b/res/values-lt/strings.xml index df0205a..28495da 100644 --- a/res/values-lt/strings.xml +++ b/res/values-lt/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Melodija</string> <string name="unknown_author">Autorius nežinomas</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Peržiūra negalima</string> + <string name="no_preview_available">Peržiūra negalima</string> <string name="theme_installed_notification_title">%s įdiegta</string> <string name="theme_installed_notification_text">Tema sėkmingai įdiegta.</string> </resources> diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml index a6df715..5657cfd 100644 --- a/res/values-nb/strings.xml +++ b/res/values-nb/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Ringetone</string> <string name="unknown_author">Ukjent forfatter</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Ingen forhåndsvisning tilgjengelig</string> + <string name="no_preview_available">Ingen forhåndsvisning tilgjengelig</string> <string name="theme_installed_notification_title">%s er installert</string> <string name="theme_installed_notification_text">Tema installert.</string> </resources> diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml index f803c04..ae4334c 100644 --- a/res/values-nl/strings.xml +++ b/res/values-nl/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Beltoon</string> <string name="unknown_author">Auteur onbekend</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Geen voorbeeld beschikbaar</string> + <string name="no_preview_available">Geen voorbeeld beschikbaar</string> <string name="theme_installed_notification_title">%s geïnstalleerd</string> <string name="theme_installed_notification_text">Thema installeren geslaagd.</string> </resources> diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index a59e4c9..5770094 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Dzwonek</string> <string name="unknown_author">Autor nieznany</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Brak podglądu</string> + <string name="no_preview_available">Brak podglądu</string> <string name="theme_installed_notification_title">%s zainstalowany</string> <string name="theme_installed_notification_text">Motyw został pomyślnie zainstalowany.</string> </resources> diff --git a/res/values-pt-rBR/strings.xml b/res/values-pt-rBR/strings.xml index 2cf1676..64e4a0d 100644 --- a/res/values-pt-rBR/strings.xml +++ b/res/values-pt-rBR/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Toque</string> <string name="unknown_author">Autor desconhecido</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Sem previsualização</string> + <string name="no_preview_available">Sem previsualização</string> <string name="theme_installed_notification_title">%s instalado</string> <string name="theme_installed_notification_text">Tema instalado com sucesso.</string> </resources> diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml index 0526bc7..894f9fd 100644 --- a/res/values-pt-rPT/strings.xml +++ b/res/values-pt-rPT/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Toque</string> <string name="unknown_author">Autor desconhecido</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Sem pré-visualização disponível</string> + <string name="no_preview_available">Sem pré-visualização disponível</string> <string name="theme_installed_notification_title">%s instalado</string> <string name="theme_installed_notification_text">Tema instalado com êxito.</string> </resources> diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index 6a2ce80..08c5fc6 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Рингтон</string> <string name="unknown_author">Автор не указан</string> <string name="font_preview_letters">АаБбCcDd123</string> - <string name="no_boot_animation_preview">Предпросмотр недоступен</string> + <string name="no_preview_available">Предпросмотр недоступен</string> <string name="theme_installed_notification_title">Тема «%s» установлена</string> <string name="theme_installed_notification_text">Тема успешно установлена.</string> </resources> diff --git a/res/values-si/strings.xml b/res/values-si/strings.xml index d750c91..9f04551 100644 --- a/res/values-si/strings.xml +++ b/res/values-si/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">රින්ග්ටෝනය</string> <string name="unknown_author">කතෘ නොදනී</string> <string name="font_preview_letters">AaBbCcDd123අබක</string> - <string name="no_boot_animation_preview">පූර්වදර්ශනයක් නොමැත</string> + <string name="no_preview_available">පූර්වදර්ශනයක් නොමැත</string> <string name="theme_installed_notification_title">%s ස්ථාපිතයි</string> <string name="theme_installed_notification_text">තේමාව සාර්ථක ලෙස ස්ථාපිතයි.</string> </resources> diff --git a/res/values-sk/strings.xml b/res/values-sk/strings.xml index 9c31e11..5f40316 100644 --- a/res/values-sk/strings.xml +++ b/res/values-sk/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Zvonenie</string> <string name="unknown_author">Neznámy autor</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Ukážka nie je dostupná</string> + <string name="no_preview_available">Ukážka nie je dostupná</string> <string name="theme_installed_notification_title">Nainštalovaná téma %s</string> <string name="theme_installed_notification_text">Téma bola úspešne nainštalovaná.</string> </resources> diff --git a/res/values-sr/strings.xml b/res/values-sr/strings.xml index 3089c33..e13ca95 100644 --- a/res/values-sr/strings.xml +++ b/res/values-sr/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Звоно</string> <string name="unknown_author">Аутор непознат</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Нема доступног прегледа</string> + <string name="no_preview_available">Нема доступног прегледа</string> <string name="theme_installed_notification_title">%s инсталирано</string> <string name="theme_installed_notification_text">Тема је успешно инсталирана.</string> </resources> diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml index da12b1c..46cb906 100644 --- a/res/values-sv/strings.xml +++ b/res/values-sv/strings.xml @@ -35,7 +35,7 @@ <string name="ringtone_label">Ringsignal</string> <string name="unknown_author">Okänd upphovsman</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Ingen förhandsgranskning tillgänglig</string> + <string name="no_preview_available">Ingen förhandsgranskning tillgänglig</string> <string name="theme_installed_notification_title">%s installerad</string> <string name="theme_installed_notification_text">Temat installerades.</string> </resources> diff --git a/res/values-th/strings.xml b/res/values-th/strings.xml index b95aee8..e8a02a9 100644 --- a/res/values-th/strings.xml +++ b/res/values-th/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">เสียงเรียกเข้า</string> <string name="unknown_author">ผู้สร้างที่ไม่รู้จัก</string> <string name="font_preview_letters">AaBbCcกขค123</string> - <string name="no_boot_animation_preview">ไม่มีภาพตัวอย่าง</string> + <string name="no_preview_available">ไม่มีภาพตัวอย่าง</string> <string name="theme_installed_notification_title">%s ติดตั้งแล้ว</string> <string name="theme_installed_notification_text">ติดตั้งชุดรูปแบบสำเร็จ</string> </resources> diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index 4edcde5..f742c64 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Zil sesi</string> <string name="unknown_author">Sahibi bilinmiyor</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">Mevcut önizleme yok</string> + <string name="no_preview_available">Mevcut önizleme yok</string> <string name="theme_installed_notification_title">%s yüklendi</string> <string name="theme_installed_notification_text">Tema başarıyla yüklendi.</string> </resources> diff --git a/res/values-uk/strings.xml b/res/values-uk/strings.xml index 4d6d12b..6887570 100644 --- a/res/values-uk/strings.xml +++ b/res/values-uk/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">Дзвінок</string> <string name="unknown_author">Автор невідомий</string> <string name="font_preview_letters">АаБбCcDd123</string> - <string name="no_boot_animation_preview">Перегляд недоступний</string> + <string name="no_preview_available">Перегляд недоступний</string> <string name="theme_installed_notification_title">Тема «%s» встановлена</string> <string name="theme_installed_notification_text">Тема успішно встановлена.</string> </resources> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index d47cfbb..eb6b5af 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">铃声</string> <string name="unknown_author">未知作者</string> <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">无可用预览</string> + <string name="no_preview_available">无可用预览</string> <string name="theme_installed_notification_title">%s 已安装</string> <string name="theme_installed_notification_text">主题已成功安装。</string> </resources> diff --git a/res/values-zh-rHK/strings.xml b/res/values-zh-rHK/strings.xml index 0bc085b..26de01b 100644 --- a/res/values-zh-rHK/strings.xml +++ b/res/values-zh-rHK/strings.xml @@ -36,7 +36,7 @@ <string name="ringtone_label">鈴聲</string> <string name="unknown_author">作者不詳</string> <string name="font_preview_letters">繁體字AaBbCc123</string> - <string name="no_boot_animation_preview">無預覽提供</string> + <string name="no_preview_available">無預覽提供</string> <string name="theme_installed_notification_title">%s 已安裝</string> <string name="theme_installed_notification_text">主題已成功安裝。</string> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 9377af6..149369d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -37,6 +37,8 @@ <string name="remove">Remove</string> <string name="update">Update</string> + <string name="no_preview_available">No preview available</string> + <!-- Audibles preview --> <string name="alarm_label">Alarm</string> <string name="notification_label">Notification</string> @@ -46,8 +48,6 @@ <string name="font_preview_letters">AaBbCcDd123</string> - <string name="no_boot_animation_preview">No preview available</string> - <string name="theme_installed_notification_title">%s installed</string> <string name="theme_installed_notification_text">Theme successfully installed.</string> diff --git a/src/org/cyanogenmod/theme/chooser/WallpaperAndIconPreviewFragment.java b/src/org/cyanogenmod/theme/chooser/WallpaperAndIconPreviewFragment.java index 2009ead..7a64cdf 100644 --- a/src/org/cyanogenmod/theme/chooser/WallpaperAndIconPreviewFragment.java +++ b/src/org/cyanogenmod/theme/chooser/WallpaperAndIconPreviewFragment.java @@ -91,6 +91,7 @@ public class WallpaperAndIconPreviewFragment extends Fragment private ImageView mImageView; private LinearLayout mIconContainer; + private TextView mNoPreview; static WallpaperAndIconPreviewFragment newInstance(String imageUrl, String pkgName, boolean isLegacyTheme, boolean hasIcons) { final WallpaperAndIconPreviewFragment f = new WallpaperAndIconPreviewFragment(); @@ -119,6 +120,7 @@ public class WallpaperAndIconPreviewFragment extends Fragment View view = inflater.inflate(R.layout.image_preview_item, container, false); mImageView = (ImageView) view.findViewById(R.id.image); mIconContainer = (LinearLayout) view.findViewById(R.id.icon_container); + mNoPreview = (TextView) view.findViewById(R.id.no_preview); return view; } @@ -179,6 +181,9 @@ public class WallpaperAndIconPreviewFragment extends Fragment @Override public void onLoadFinished(Loader<Bitmap> loader, Bitmap result) { mImageView.setImageBitmap(result); + if (result == null && !mHasIcons) { + mNoPreview.setVisibility(View.VISIBLE); + } } @Override |