From 805f7260224c5164e286add240cd286e9da103dd Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 10 Nov 2016 21:39:07 +0100 Subject: [PATCH] add a menu item for toggling filename visibility --- .../gallery/activities/MediaActivity.java | 7 +++++++ app/src/main/res/menu/menu_media.xml | 5 +++++ app/src/main/res/mipmap-hdpi/toggle_filename.png | Bin 0 -> 283 bytes app/src/main/res/mipmap-mdpi/toggle_filename.png | Bin 0 -> 206 bytes app/src/main/res/mipmap-xhdpi/toggle_filename.png | Bin 0 -> 322 bytes .../main/res/mipmap-xxhdpi/toggle_filename.png | Bin 0 -> 516 bytes .../main/res/mipmap-xxxhdpi/toggle_filename.png | Bin 0 -> 293 bytes app/src/main/res/values-de/strings.xml | 1 + app/src/main/res/values-es/strings.xml | 1 + app/src/main/res/values-it/strings.xml | 1 + app/src/main/res/values-ja/strings.xml | 1 + app/src/main/res/values-pt-rPT/strings.xml | 1 + app/src/main/res/values-sv/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 14 files changed, 19 insertions(+) create mode 100644 app/src/main/res/mipmap-hdpi/toggle_filename.png create mode 100644 app/src/main/res/mipmap-mdpi/toggle_filename.png create mode 100644 app/src/main/res/mipmap-xhdpi/toggle_filename.png create mode 100644 app/src/main/res/mipmap-xxhdpi/toggle_filename.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/toggle_filename.png diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java index d2a52089d..1a29888e6 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java @@ -150,6 +150,9 @@ public class MediaActivity extends SimpleActivity case R.id.sort: showSortingDialog(); return true; + case R.id.toggle_filename: + toggleFilenameVisibility(); + return true; case R.id.hide_folder: hideDirectory(); return true; @@ -161,6 +164,10 @@ public class MediaActivity extends SimpleActivity } } + private void toggleFilenameVisibility() { + + } + private void rescanDirectory(File dir) { final File[] files = dir.listFiles(); final String[] paths = new String[files.length]; diff --git a/app/src/main/res/menu/menu_media.xml b/app/src/main/res/menu/menu_media.xml index bae61b508..6292b4349 100644 --- a/app/src/main/res/menu/menu_media.xml +++ b/app/src/main/res/menu/menu_media.xml @@ -6,6 +6,11 @@ android:icon="@mipmap/sort" android:title="@string/sort_by" app:showAsAction="ifRoom"/> + |k1|%Oc%$NbBI14-?iy0XBj({-ZRBb+Kpx{|g z7srr@*0<9Gxta}l942p!Pki%8IDZ58t+@;G}1df3-Sr3eP&+ z^2}hNC7*i9Iopo*P#+tcVnb7gxJd_fiVpC|`e{UOns7v|%O{GXDu znop}_b?Hs5OOtF>{v67?>L~hr#}Bo$7h+wOd9I0%3o7j6e}AUVS3GR;#)HQUnasVi eCnQQ(e_)Yd=*wzb)v*WYF$PapKbLh*2~7aRd2gox literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-mdpi/toggle_filename.png b/app/src/main/res/mipmap-mdpi/toggle_filename.png new file mode 100644 index 0000000000000000000000000000000000000000..4a5ad8da03950943e21e0dc72ca616dbb6bd1c7b GIT binary patch literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjoCO|{#S9F5M?jcysy3fAP_V(% z#WBRA^X=qVt`-BHmi;>O9KVNEaj(zwGyJ`&F-S-0n*EFKA(xCM8)%xyH81g;^xC3( ziD8MZVZnm+SJuzIX>J~%TF7wb41=Ai>-7w_@6sieikJA4c7LkstdaJg|KRWc1mk9* zr8#=%73LmjOw1Q+{VvyD(qy^UqT&BmDgKA-ZTrfP^Hvt01G1)!aa}fA0gMM)wWx18cYW2D1Oa50i_nrT2xw z-*0^(o50KYaTa%yE!&BAz#HqkAN}HZx%)XSo=hMj-hoHpKr*rd4cL=}H#0N)1-5F? UPaP>Kw*UYD07*qoM6N<$f~aAMU;qFB literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxhdpi/toggle_filename.png b/app/src/main/res/mipmap-xxhdpi/toggle_filename.png new file mode 100644 index 0000000000000000000000000000000000000000..bd872419c38776eec97939bf7e43d6c0e703a2ce GIT binary patch literal 516 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@ZgvM!oCO|{#S9F5M?jcysy3fA0|VnW zPZ!6KiaBp@@Ap0IAkp^mxpT<@whathHZZe>WGZMIu$?);F2-cN>BeICvV0A7n6pj#|!Yz^rzFW5(>6 z;_HvzJ$rZkoxewaXTE$FT)zKHnfr?=G6mm_A4u+C|Fu8=e3{oZf!l=f)cwR8_I|t9&Mj(mJHY++@vqvi zj6RKpS&cCZEI)Ys)^nEsuEHMIxco}B)P`TL1IoAbzm8`(E~>thm-lV?ITnfMk08N( cqO69I@3f;waHy;kFj^TrUHx3vIVCg!0EiOYD*ylh literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxxhdpi/toggle_filename.png b/app/src/main/res/mipmap-xxxhdpi/toggle_filename.png new file mode 100644 index 0000000000000000000000000000000000000000..dde0fc77f5cfecdd4d8f36022dbaa0b9ac9aec17 GIT binary patch literal 293 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD0wg^q?%xcg-gvq=hE&{od&`ll*+9T8v3zU0 z=B3T6X1JaYTGAfyMI~+W{@r4`PI4Ued0Cw;{@GJVaIKaS2rTL^3B9mt#U)o=sVi@! z|E-x_GgTzy_VM}?$%`jGc=v9(7Mn>M#jxia&3{oB^K&D%b)FIU^TY^%Qu2-IH_R=?f(!)AZA P8^}ygS3j3^P6Selbe Sortierung für Dateien und Ordner Zeige versteckte Ordner Play videos automatically + Toggle filename visibility Diese App nutzt die folgenden Drittanbieterbilbiotheken, die mein Leben einfacher machen. Danke. diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 2f98ead2f..9ed97eb41 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -105,6 +105,7 @@ Ordenar del mismo modo los archivos y las carpetas Mostrar carpetas ocultas Reproducir vídeos automáticamente + Toggle filename visibility Esta aplicación usa las siguientes bibliotecas de terceros que hacen mi vida más fácil. Gracias. diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 5c3ab00c2..83eee8cc6 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -105,6 +105,7 @@ Same sorting for files and folders Show hidden folders Play videos automatically + Toggle filename visibility Questa app usa le seguenti librerie di terze parti per semplificarmi la vita. Grazie. diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 16ba855c9..22151db29 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -105,6 +105,7 @@ Same sorting for files and folders Show hidden folders Play videos automatically + Toggle filename visibility このアプリは、私の人生を容易にするために、次のサードパーティのライブラリーを使用しています。 ありがとうございます。 diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 1ae81fb5b..0a84f0b34 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -106,6 +106,7 @@ Mesma ordenação para ficheiros e pastas Mostrar pastas ocultas Reproduzir vídeos automaticamente + Toggle filename visibility Esta aplicação usa as seguintes bibliotecas de terceiros para facilitar a minha vida. Obrigado. diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index cf0785b0f..037b2a514 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -105,6 +105,7 @@ Same sorting for files and folders Show hidden folders Play videos automatically + Toggle filename visibility Denna app använder följande tredjepartsbibliotek för att göra mitt liv enklare. Tack. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9147b5483..048ac8408 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -106,6 +106,7 @@ Same sorting for files and folders Show hidden folders Play videos automatically + Toggle filename visibility This app uses the following third party libraries to make my life easier. Thank you.