From b39f90e2756c12e92dd50eb1dccea142b5e57d9d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 7 Nov 2020 12:07:35 +0800 Subject: Rename NoPreviewLinkBackgroundColor to NoPreviewPostTypeBackgroundColor. NoPreviewPostTypeIconTint is available in custom theme. --- .../Adapter/CommentAndPostRecyclerViewAdapter.java | 70 ++--- .../Adapter/PostRecyclerViewAdapter.java | 12 +- .../infinityforreddit/CustomTheme/CustomTheme.java | 51 ++-- .../CustomTheme/CustomThemeSettingsItem.java | 11 +- .../CustomTheme/CustomThemeWrapper.java | 42 ++- .../Fragment/ThemePreviewPostsFragment.java | 2 +- .../infinityforreddit/RedditDataRoomDatabase.java | 12 +- .../Utils/CustomThemeSharedPreferencesUtils.java | 6 +- .../res/layout/item_post_detail_no_preview.xml | 309 ++++++++++++++++++++ .../layout/item_post_detail_no_preview_link.xml | 311 --------------------- app/src/main/res/layout/item_post_with_preview.xml | 2 - app/src/main/res/values-de/strings.xml | 4 +- app/src/main/res/values-es/strings.xml | 4 +- app/src/main/res/values-fr/strings.xml | 4 +- app/src/main/res/values-hi/strings.xml | 4 +- app/src/main/res/values-hr/strings.xml | 4 +- app/src/main/res/values-it/strings.xml | 4 +- app/src/main/res/values-ja/strings.xml | 4 +- app/src/main/res/values-pt-rBR/strings.xml | 4 +- app/src/main/res/values/strings.xml | 6 +- 20 files changed, 453 insertions(+), 413 deletions(-) create mode 100644 app/src/main/res/layout/item_post_detail_no_preview.xml delete mode 100644 app/src/main/res/layout/item_post_detail_no_preview_link.xml (limited to 'app/src') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java index df789268..f9268870 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java @@ -211,7 +211,8 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter { + mNoPreviewPostTypeImageView.setOnClickListener(view -> { if (mPost != null) { if (mPost.getPostType() == Post.VIDEO_TYPE) { Intent intent = new Intent(mActivity, ViewVideoActivity.class); @@ -3168,7 +3171,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter { Intent intent = new Intent(mActivity, ViewRedditGalleryActivity.class); @@ -3220,7 +3224,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter { + mNoPreviewPostTypeImageView.setOnClickListener(view -> { mImageView.performClick(); }); } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java index b2ebe254..0f953683 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java @@ -161,7 +161,8 @@ public class PostRecyclerViewAdapter extends PagedListAdapter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_no_preview_link.xml b/app/src/main/res/layout/item_post_detail_no_preview_link.xml deleted file mode 100644 index 7b6d5778..00000000 --- a/app/src/main/res/layout/item_post_detail_no_preview_link.xml +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_with_preview.xml b/app/src/main/res/layout/item_post_with_preview.xml index b57867df..45bb6a1f 100644 --- a/app/src/main/res/layout/item_post_with_preview.xml +++ b/app/src/main/res/layout/item_post_with_preview.xml @@ -277,8 +277,6 @@ android:layout_width="match_parent" android:layout_height="150dp" android:scaleType="center" - android:src="@drawable/ic_link" - app:tint="@android:color/tab_indicator_text" android:visibility="gone" /> "Angewandt auf: Hintergrundfarbe für ungelesene Nachrichten" "Farbe für Trennleiste" "Angewandt auf: Trennleisten in Kommentaren, auf Seiten zum Einreichen von Beiträgen, usw." - "Hintergrundfarbe für Links ohne Vorschau" - "Angewandt auf: Platzhalter für Links ohne Vorschau" + "Hintergrundfarbe für Links ohne Vorschau" + "Angewandt auf: Platzhalter für Links ohne Vorschau" "Farbe für deaktivierte Abstimmungs- und Antwort-Knöpfe" "Angewandt auf: Abstimmungs- und Antwort-Knöpfe (nicht verfügbar)" "Farbe 1 für vertikale Leiste in Kommenatren" diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index ff2dd86d..8b9dae63 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -634,8 +634,8 @@ https://play.google.com/store/apps/details?id=ml.docilealligator.infinityforredd "Aplicado a: Fondo de Mensaje No Leído" "Color de Barra Divisora" "Aplicado a: Divisor de comentarios, divisor en páginas para publicar, etc." - "Color de Enlace Sin Vista Previa" - "Aplicado a: Lugar de Enlace Sin Vista Previa" + "Color de Enlace Sin Vista Previa" + "Aplicado a: Lugar de Enlace Sin Vista Previa" "Color de Voto No Disponible" "Aplicado a: Botones de voto y respuesta (No Disponible)" "Color 1 de la Barra Vertical de Comentario" diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 3dc93012..554cbb1c 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -683,8 +683,8 @@ https://play.google.com/store/apps/details?id=ml.docilealligator.infinityforredd "S'applique à: Couleur d'arrière-plan des messages non lus" "Couleur du séparateur" "S'applique à: Séparateur de commentaires, séparateurs dans les pages pour la soumission de publications, etc." - "Couleur d'arrière-plan du lien sans aperçu" - "S'applique à: espace réservé du lien sans aperçu" + "Couleur d'arrière-plan du lien sans aperçu" + "S'applique à: espace réservé du lien sans aperçu" "Couleur des boutons Voter et Répondre indisponibles" "S'applique à: Boutons Voter et Répondre (indisponibles)" "Couleur 1 de la barre verticale de commentaire" diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 8dfad5fd..de24898c 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -658,8 +658,8 @@ https://play.google.com/store/apps/details?id=ml.docilealligator.infinityforredd "पर लागू होगा: अपठित संदेश पृष्टभूमि रंग " "विभाजक रंग " "पर लागू होगा: टिप्पणी विभाजक, पोस्ट जमा करने के लिए पृष्ठों में विभाजक, इत्यादि " - "कोई पूर्वदर्शन लिंक नहीं पृष्टभूमि रंग " - "पर लागू होगा: कोई पूर्वदर्शन लिंक नहीं" + "कोई पूर्वदर्शन लिंक नहीं पृष्टभूमि रंग " + "पर लागू होगा: कोई पूर्वदर्शन लिंक नहीं" "वोट एवं उत्तर अनुपलब्ध बटन का रंग " "पर लागू होगा: वोट एवं उत्तर बटन्स (अनुपलब्ध)" "टिप्पणी ऊर्ध्वाधर बार रंग 1" diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index bf916b5a..16710cbc 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -635,8 +635,8 @@ https://play.google.com/store/apps/details?id=ml.docilealligator.infinityforredd "Primijenjeno na: Boju pozadine nepročitane poruke" "Boja razdjelnika" "Primijenjeno na: Razdjelnik komentara, razdjelnike na stranicama za objavljivanje, itd." - "Boja pozadine poveznice bez prethodnog pregleda" - "Primijenjeno na: Placeholder za poveznicu bez prethodnog pregleda" + "Boja pozadine poveznice bez prethodnog pregleda" + "Primijenjeno na: Placeholder za poveznicu bez prethodnog pregleda" "Boja gumbiju za glasanje i odgovaranje kada su nedostupni" "Primijenjeno na: Gumbe za glasanje i odgovaranje (nedostupni)" "Boja vertikalne trake komentara 1" diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index d64e14dd..06a71151 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -660,8 +660,8 @@ https://play.google.com/store/apps/details?id=ml.docilealligator.infinityforredd "Applicato a: Colore di sfondo del messaggio non letto" "Colore Divisore" "Applicato a: Divisore di commento, divisori in pagine per l'invio di post, ecc." - "Colore di sfondo del link senza anteprima" - "Applicato a: Segnaposto per link senza anteprima" + "Colore di sfondo del link senza anteprima" + "Applicato a: Segnaposto per link senza anteprima" "Colore Pulsante Vota e Rispondi Non Disponibile" "Applicato a: Bottoni vota e rispondi (Non disponibili)" "Commento Colore Barra Verticale 1" diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 4bcff9c2..4bc9fc5e 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -671,8 +671,8 @@ https://play.google.com/store/apps/details?id=ml.docilealligator.infinityforredd "適用先: 未読メッセージの背景" "分割線" "適用先: コメントの分割線、投稿時のページ分割線、等" - "プレビューのないリンク 背景" - "適用先: プレビューのないリンクの背景" + "プレビューのないリンク 背景" + "適用先: プレビューのないリンクの背景" "評価と返信ボタン 無効状態" "適用先: 無効となっている評価と返信ボタン" "コメント 縦線1" diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 6e1f8037..c7dbc5a3 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -630,8 +630,8 @@ https://play.google.com/store/apps/details?id=ml.docilealligator.infinityforredd "Aplicado para: cor de fundo de mensagem não lida" "Cor de divisor" "Aplicado para: divisor de comentários, páginas, etc." - "Cor de fundo de link sem pré-visualização" - "Aplicado para: link sem pré-visualização" + "Cor de fundo de link sem pré-visualização" + "Aplicado para: link sem pré-visualização" "Cor de botão de votação e respostas" "Aplicado para: botões de votação e respostas (indisponíveis)" "Cor 1 de barra vertical de comentário" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c41f082e..bf0a7866 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -715,6 +715,8 @@ Applied to: Crosspost icon Stickied Post Icon Color Applied to: Stickied post icon + No-preview Post Type Icon Color + Applied to: Icon indicating the type of post when there is no preview available Subscribed Applied to: Unsubscribe button Unsubscribed @@ -735,8 +737,8 @@ Applied to: Unread Message Background Color Divider Color Applied to: Comment divider, dividers in pages for submitting posts, etc. - No-Preview Link Background Color - Applied to: No-preview link placeholder + No-preview Post Type Background Color + Applied to: Placeholder indicating the type of post when there is no preview available Vote and Reply Unavailable Button Color Applied to: Vote and reply buttons (Unavailable) Comment Vertical Bar Color 1 -- cgit v1.2.3