From 9b6ca7ff42f9af5a3f1df2fe5478adf08181801e Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Sat, 3 Feb 2018 23:43:06 +0100 Subject: [PATCH] remove unused resources --- .../com/keylesspalace/tusky/BaseActivity.java | 1 - .../com/keylesspalace/tusky/LoginActivity.kt | 1 - .../tusky/fragment/PreferencesFragment.java | 62 +++++++----------- .../res/drawable-xxhdpi/ic_reblog_dark_.png | Bin 1343 -> 0 bytes app/src/main/res/values-ca/strings.xml | 8 --- app/src/main/res/values-de/strings.xml | 7 -- app/src/main/res/values-fr/strings.xml | 8 --- app/src/main/res/values-hu/strings.xml | 8 --- app/src/main/res/values-ja/strings.xml | 8 --- app/src/main/res/values-nl/strings.xml | 8 --- app/src/main/res/values-pl/strings.xml | 8 --- app/src/main/res/values-pt-rBR/strings.xml | 8 --- app/src/main/res/values-ru/strings.xml | 8 --- app/src/main/res/values-tr/strings.xml | 7 -- app/src/main/res/values/strings.xml | 8 --- 15 files changed, 25 insertions(+), 125 deletions(-) delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_reblog_dark_.png diff --git a/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java b/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java index 04f2f646..5af788df 100644 --- a/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/BaseActivity.java @@ -38,7 +38,6 @@ import com.keylesspalace.tusky.json.SpannedTypeAdapter; import com.keylesspalace.tusky.network.AuthInterceptor; import com.keylesspalace.tusky.network.MastodonApi; import com.keylesspalace.tusky.util.OkHttpUtils; -import com.keylesspalace.tusky.util.ResourcesUtils; import com.keylesspalace.tusky.util.ThemeUtils; import okhttp3.Dispatcher; diff --git a/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt b/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt index e668b56f..fb303a52 100644 --- a/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/LoginActivity.kt @@ -36,7 +36,6 @@ import com.keylesspalace.tusky.entity.AppCredentials import com.keylesspalace.tusky.network.MastodonApi import com.keylesspalace.tusky.util.CustomTabsHelper import com.keylesspalace.tusky.util.OkHttpUtils -import com.keylesspalace.tusky.util.ResourcesUtils import com.keylesspalace.tusky.util.ThemeUtils import kotlinx.android.synthetic.main.activity_login.* import retrofit2.Call diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java index 7103c5e1..3b5cd1a6 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java @@ -70,62 +70,50 @@ public class PreferencesFragment extends PreferenceFragment implements SharedPre //on Android O and newer, launch the system notification settings instead of the app settings if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - notificationPreferences.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { - @Override - public boolean onPreferenceClick(Preference preference) { - Intent intent = new Intent(); - intent.setAction("android.settings.APP_NOTIFICATION_SETTINGS"); + notificationPreferences.setOnPreferenceClickListener(pref -> { + Intent intent = new Intent(); + intent.setAction("android.settings.APP_NOTIFICATION_SETTINGS"); - intent.putExtra("android.provider.extra.APP_PACKAGE", BuildConfig.APPLICATION_ID); + intent.putExtra("android.provider.extra.APP_PACKAGE", BuildConfig.APPLICATION_ID); - startActivity(intent); - return true; - } + startActivity(intent); + return true; }); } else { - notificationPreferences.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { - @Override - public boolean onPreferenceClick(Preference preference) { - PreferencesActivity activity = (PreferencesActivity) getActivity(); - if (activity != null) { - activity.showFragment(R.xml.notification_preferences, R.string.pref_title_edit_notification_settings); - } - - return true; + notificationPreferences.setOnPreferenceClickListener(pref -> { + PreferencesActivity activity = (PreferencesActivity) getActivity(); + if (activity != null) { + activity.showFragment(R.xml.notification_preferences, R.string.pref_title_edit_notification_settings); } + + return true; }); } } Preference timelineFilterPreferences = findPreference("timelineFilterPreferences"); if(timelineFilterPreferences != null) { - timelineFilterPreferences.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { - @Override - public boolean onPreferenceClick(Preference preference) { - PreferencesActivity activity = (PreferencesActivity) getActivity(); - if (activity != null) { - activity.showFragment(R.xml.timeline_filter_preferences, R.string.pref_title_status_tabs); - } - - return true; + timelineFilterPreferences.setOnPreferenceClickListener(pref -> { + PreferencesActivity activity = (PreferencesActivity) getActivity(); + if (activity != null) { + activity.showFragment(R.xml.timeline_filter_preferences, R.string.pref_title_status_tabs); } + + return true; }); } Preference httpProxyPreferences = findPreference("httpProxyPreferences"); if(httpProxyPreferences != null) { - httpProxyPreferences.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { - @Override - public boolean onPreferenceClick(Preference preference) { - PreferencesActivity activity = (PreferencesActivity) getActivity(); - if (activity != null) { - pendingRestart = false; - activity.showFragment(R.xml.http_proxy_preferences, R.string.pref_title_http_proxy_settings); - } - - return true; + httpProxyPreferences.setOnPreferenceClickListener(pref -> { + PreferencesActivity activity = (PreferencesActivity) getActivity(); + if (activity != null) { + pendingRestart = false; + activity.showFragment(R.xml.http_proxy_preferences, R.string.pref_title_http_proxy_settings); } + + return true; }); } diff --git a/app/src/main/res/drawable-xxhdpi/ic_reblog_dark_.png b/app/src/main/res/drawable-xxhdpi/ic_reblog_dark_.png deleted file mode 100644 index cf90f68879d69de6db5d2d8bca4ad30bfcaeb302..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1343 zcmV-F1;F}=P)sO6MkH&NY}pM;O^uO1rjYDQ z_MwTvXpC(b<2t9#)a$wTZQr}|-8fqh z2G#;r3j|@TF>n^}H1HYl8?YQ$2K)fr4(#|p3ey0X0sPAT#a-Y$U^BsYs{`8ryH-_k z;(_@bVeSKyfl&_a^aSnz_O43ei~;^I3G)Y-iR+FBd#!-4fT>P}Rau;oz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; diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml index a5ebbc49..19b0e632 100644 --- a/app/src/main/res/values-ca/strings.xml +++ b/app/src/main/res/values-ca/strings.xml @@ -69,22 +69,16 @@ TOOT TOOT! Torna a intentar-ho - Marca-ho com a contingut sensible Amaga el text amb un avís - D\'acord - Cancel·la Tanca - Enrere Perfil Preferències Preferits Usuaris silenciats Usuaris blocats Peticions de seguiment - Fil Multimèdia Obre al navegador - Envia Afegeix multimètida Fes una foto Comparteix @@ -94,7 +88,6 @@ Amaga el multimèdia Opcions Open drawer - Buida Desa Edita el perfil Desfés @@ -220,7 +213,6 @@ Compte blocat Quant a - Versió: %s Tusky %s Tusky és programari gratuït, lliure i de codi obert. Està llicenciat en els termes de la Llicència Pública General GNU versió 3. diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 5d34e7c6..69f6cf8b 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -63,20 +63,14 @@ TRÖT TRÖT! Erneut versuchen - Markiere Mediendatei als heikel Verstecke Text hinter Warnung - Ok - Abbrechen Schließen - Zurück Profil Einstellungen Favoriten Blockierte Accounts - Thread Medien Im Browser öffnen - Senden Füge Medien hinzu Foto machen Teilen @@ -85,7 +79,6 @@ Erwähnen Einstellungen Drawer öffnen - Löschen Suche Entwürfe Speichern diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index dc1fa9d4..cedd9532 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -66,20 +66,14 @@ POUET POUET ! Réessayer - Définir le média comme sensible. Masquer le texte par une mise en garde. - O.K. - Annuler Fermer - Retour Profil Préférences Favoris Utilisateurs bloqués - Fil Média Ouvrir dans votre navigateur - Envoyer Ajouter un média Prendre une photo Partager @@ -89,7 +83,6 @@ Options Ouvrir le menu - Nettoyer Sauvegarder Modifier le profil Accepter @@ -173,7 +166,6 @@ À propos Site du projet : https://tusky.keylesspalace.com Rapport de bugs & demande de fonctionnalités : https://github.com/Vavassor/Tusky/issues - Version : %s Demande effectuée diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index e2dee433..b1d80c65 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -66,22 +66,16 @@ TÜLK TÜLK! Próbálja újra - Megjelöl mint kényes tartalom Szöveg figyelmeztetés mögé helyezése - Ok - Mégse Bezár - Vissza Profil Preferenciák Kedvencek Némított felhasználók Blokkolt felhasználók Követési kérések - Tülköléslánc Média Megnyitás böngészőben - Elküld Média hozzácsatolása Kép készítése Megoszt @@ -91,7 +85,6 @@ Média elrejtése Beállítások Drawer megnyitása - Tisztázás Mentés Profil szerkesztése Visszacsinál @@ -190,7 +183,6 @@ Fiók lezárva Rólunk - App verzió: %s Projekt honlapja:\n https://tusky.keylesspalace.com diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 07ca80e5..f5f73b18 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -67,22 +67,16 @@ トゥート トゥート! 再試行 - 閲覧注意としてマークする テキストを注意書きで隠す - OK - キャンセル 閉じる - 戻る プロフィール 設定 お気に入り ミュートしたユーザー ブロックしたユーザー フォローリクエスト - スレッド メディア ブラウザで開く - 決定 メディアを追加 写真を撮る 共有 @@ -92,7 +86,6 @@ メディアを隠す オプション メニューを開く - 消去 保存 プロフィールを編集 取り消す @@ -201,7 +194,6 @@ 非公開アカウント このアプリについて - アプリのバージョン:%s Tusky %s Tuskyは無料のオープンソースソフトウェアです。GNU General Public License Version 3 の下で使用許諾されています。 - Wersja aplikacji: %s Strona projektu:\n https://tusky.keylesspalace.com diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 0e61b3f8..bd24cbf3 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -69,22 +69,16 @@ TOOT TOOT! Tentar novamente - Marcar mídia como sensível Esconder texto com aviso de conteúdo - Ok - Cancelar Fechar - Voltar Perfil Preferências Favoritos Usuários silenciados Usuários bloqueados Solicitações de seguidor - Sequência Mídia Abrir no navegador - Enviar Adicionar mídia Tirar foto Compartilhar @@ -94,7 +88,6 @@ Esconder mídia Opções Abrir gaveta - Limpar Salvar Editar perfil Desfazer @@ -193,7 +186,6 @@ Conta trancada Sobre - Versão: %s Tusky %s Tusky é um software gratuito e de código aberto. Ele é licenciado sob a versão 3 da Licença Pública Geral GNU. diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 7dd904b0..3389c12b 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -70,22 +70,16 @@ ТРУБИТЬ ТРУБИТЬ! Повторить - Отметить как чувствительный контент Скрыть текст за предупреждением - ОК - Отмена Закрыть - Назад Профиль Настройки Понравившееся Список глушения Список блокировки Запросы на подписку - Обсуждение Медиаконтент Открыть в браузере - Отправить Добавить медиаконтент Сфотографировать Поделиться @@ -95,7 +89,6 @@ Скрыть медиаконтент Опции Нарисовать - Очистить Сохранить Редактировать профиль Отменить @@ -213,7 +206,6 @@ Закрытый аккаунт О приложении - Версия приложения: %s Веб-сайт проекта\n https://tusky.keylesspalace.com diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 40161ce0..3513c6ee 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -66,21 +66,15 @@ İLET İLET! Tekrar dene - Medyayı hassas olarak etiketle İçerik uyarıyla gizlensin - Tamam - İptal Kapat - Geri Profil Ayarlar Favoriler Sesize alınmış kullanıcılar Engellenmiş kullanıcılar - Dizi Medya Tarayıcıda aç - Gönder Medya ekle Resim çek Paylaş @@ -90,7 +84,6 @@ Seçenekler Çekmece aç - Temizle Kaydet Profili düzelt Geri al diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 69afd0df..d5830c06 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -71,22 +71,16 @@ TOOT TOOT! Retry - Mark media sensitive Hide text behind warning - Ok - Cancel Close - Back Profile Preferences Favourites Muted users Blocked users Follow Requests - Thread Media Open in browser - Submit Add media Take photo Share @@ -96,7 +90,6 @@ Hide media Options Open drawer - Clear Save Edit profile Undo @@ -237,7 +230,6 @@ Locked Account About - Version: %s Tusky %s Tusky is free and open-source software. It is licensed under the GNU General Public License Version 3.