From 60536bfdf6ece40f5d43e46f05e460a15d67ae1d Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 3 Nov 2016 23:04:43 +0100 Subject: [PATCH] add a properties button to directories view --- app/build.gradle | 5 +---- .../gallery/activities/MainActivity.java | 8 +++++++- app/src/main/res/menu/directories_cab.xml | 5 +++++ app/src/main/res/mipmap-hdpi/info.png | Bin 0 -> 755 bytes app/src/main/res/mipmap-mdpi/info.png | Bin 0 -> 433 bytes app/src/main/res/mipmap-xhdpi/info.png | Bin 0 -> 1160 bytes app/src/main/res/mipmap-xxhdpi/info.png | Bin 0 -> 1810 bytes app/src/main/res/mipmap-xxxhdpi/info.png | Bin 0 -> 1279 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 + 15 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/mipmap-hdpi/info.png create mode 100644 app/src/main/res/mipmap-mdpi/info.png create mode 100644 app/src/main/res/mipmap-xhdpi/info.png create mode 100644 app/src/main/res/mipmap-xxhdpi/info.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/info.png diff --git a/app/build.gradle b/app/build.gradle index 0cc44fac8..131b18d06 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -42,15 +42,12 @@ dependencies { compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0' compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1' compile 'com.booking:rtlviewpager:1.0.1' + compile 'com.simplemobiletools:fileproperties:1.0.2@aar' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" apt 'com.jakewharton:butterknife-compiler:8.0.1' } -repositories { - mavenCentral() -} - buildscript { ext.kotlin_version = '1.0.3' repositories { diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java index a3b3c2fe4..069e25959 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java @@ -15,7 +15,6 @@ import android.support.design.widget.Snackbar; import android.support.v4.app.ActivityCompat; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.AlertDialog; -import android.util.Log; import android.util.SparseBooleanArray; import android.view.ActionMode; import android.view.Menu; @@ -383,6 +382,10 @@ public class MainActivity extends SimpleActivity return type != null && (type.startsWith("video/") || type.equals(MediaStore.Video.Media.CONTENT_TYPE)); } + private void showProperties() { + + } + @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == RESULT_OK) { @@ -475,6 +478,9 @@ public class MainActivity extends SimpleActivity @Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { switch (item.getItemId()) { + case R.id.cab_properties: + showProperties(); + return true; case R.id.cab_edit: editDirectory(); return true; diff --git a/app/src/main/res/menu/directories_cab.xml b/app/src/main/res/menu/directories_cab.xml index d82c156d3..e0a623691 100644 --- a/app/src/main/res/menu/directories_cab.xml +++ b/app/src/main/res/menu/directories_cab.xml @@ -1,6 +1,11 @@ + aHQ4q(!3sgwqC0JZ3 zomkU)1yufsHbNmJ#=k>F6bL;5Dr2Gr{tsdSEiEy@0y#~n3|K3-AB&w0!#no&?RghN z!Xz)5+c)!l-+k}R?9545a>*pA>HyRvH6%?+nvgUmsbY8t zsROTp@4zYLa%#2dWp^i4mI4Y1?MON@eO%JrUK5gZPtq;Zk8I70 z30Xn@&dn{BeO#-EVZCwdzD<(kSDDjA<;P$L`>1ajS^4q7<)1@hi+^C2^TpIsCsGl3 zVSxtlq$#G?MTJ(n+dmubC`` lHtj0Qz&oXR=1MNR`~~TEE#1MGr|SR!002ovPDHLkV1h~QPuc(g literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-mdpi/info.png b/app/src/main/res/mipmap-mdpi/info.png new file mode 100644 index 0000000000000000000000000000000000000000..b28f517a1f4181e9db8d655e7018063d3b7b193c GIT binary patch literal 433 zcmV;i0Z#sjP)4l|gR8Fc3vOND6(dxd3Mg3 zbMDj3k|1U_GP5MP_I&B{DRqKc>}3j|kEy#nP^X-Y2#PZR*&4`SD5eQ(-F@4(Y}=+R zCiu~OcL8az`xC4qg0<$yD+t2gb<6WlZMr>e(>NepG~aR2as+evcgc&Upy`!TL8r1x z6^Dr3JOW?zIZZ6rp(gJf%k_iSw*1NZ2Yuu^BAQ0xM?@G8l=J=%&Iw6)GFPOZ%-3u| bZ^nKB+^u3jVOLR)00000NkvXXu0mjfgp{&e literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xhdpi/info.png b/app/src/main/res/mipmap-xhdpi/info.png new file mode 100644 index 0000000000000000000000000000000000000000..4fd6a43ce574a57d329ac7cb0293c1668b2cdc66 GIT binary patch literal 1160 zcmV;31b6$1P)Luf-wfOH2W z5E2QcR&hh@3h6gs%@SOR8{G){33O)=`~uVv0XKdGhy)BoOk#bI!mfHt}X7G$l~C0egU>z#(7;H~{Pi#?!EM z;32RK+yd?ccY((tguk2E?^}QxfPKKnM5m{K31Fnh)EB@C@H=oD_%?*_uwOrFLmgG$ zQ@>MJ)t3FEl{n_qBkJfd1bnF8R5uzpo?|0%p04Xp~m%H~Sk;|u9`1Gon) z0c&Z@4&wK57&r#J3rrKgk#-({i@?_*gg@$vd6o0y>JRE#$?E;0ex@E)cUIuqnZ}+~ zf3 zkJKd##yH;|D(BVXH8}oB;#+E~#=Kc|p>5$djORr4Ls#8zJYd>!uFjs%-kiN>{5Nk* z{XCn$s_w5!uuc7{ji6-=m9?TxzXH7kXUfDWuIfSrL$B8Bg zA-n)CC))*PfZh4nG66@4iCKXK;Kx3k*b>@McYd^J`qmpEguj66yv&hClW!d;6L27VzBf?M>LIs%py!N| z@Hx?QQaMjw=Rn3Wkwv1Fd`wwr%(K9?k}*{fXkN1Bw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z!k^S0TrGz&RQB zFqSL28<7+rppA;&nmO;ByImQ#{NbFtDO<%1kB-f|U*`Y3?}D_O@c#~R0eb8ykDc7rIee4rG2aDo0eavm z&wW|73i!DD>KYrMTb}ZjiRsiIeB6C?jSbLsPx-5#0BV*r#yE3q|UM4 zQ|_y4Y=BP5WN%@tWg6mxyaBXJ>WcVkT+(UZb#Vc@t>|ZSiDqUidR5Y5O-)E|$m$x2 zxBv~y1e0Mbl+;ZMN{w0}*jVV6aS!8ytgewL7odJk%@Jlx+9~Pf%4p__l`_uZsnwXQ zj`w^QdIJ>bkOw5)34bMNjifiH!!##sSM>7D9og#W^mb5yIWgNlS7y+*&$a1p`y_F& zmFSJbA|_s{_l?7^Joc;KI1HRLVG6A%+{DC7^}6-EBj6Z?Ur0*^gNd|#;)UZ>FJ8zZ zKpnu(m@p!YN5HOX?1!DTVv><4`AZR#n$(;8<)|m{1xzKEE?-Q+e$nH!hzS{TpXp-) zsvcjf1TFyHU5siRHvxNN96t<#l(z)02fqXlU=J`mOA-f(7IBt@PkrPk;yn5kk1$4o z-dd1p#}w>wXEIJ;qg$S@Bd%X9YR9giu%@}x~z z#+}EJ%tu&;ypb&PoN9q3YrC<|v0Oiq2F9_8=Pv4Kx>FXI0DTLS$HGTR_gMH4mXvNG z!$Z8ada=MdNt7s<3o8)V9^6*7HJt0q+z zW14(5#WmT!)oD$>n&Mtvj7$wQ&_DwXG*H+04_;a@Vah=GW&i*H07*qoM6N<$f{Z3g At^fc4 literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxxhdpi/info.png b/app/src/main/res/mipmap-xxxhdpi/info.png new file mode 100644 index 0000000000000000000000000000000000000000..3a82cab3b4f2cfe77333cee6121d867353753d5e GIT binary patch literal 1279 zcmVXA;DPbB};p_0dfAo z$vAy9#+6S9#ELYJ@(Lqa#%C_802gIqArYp#f(wN zJ5D-2x}I^0EQMtFA?SeRyu{vHx_o|^)~`kO7MeJbsRD=Aw#N4d<{5Bs2vT z(7+gW9I~nSN2#E6lJC{kK0$L^4urow?@d3Y+FGmL|;O)mE-^F4Bc9HL2 zQm7ENoloT3SxmqprfnYoS5!#bXp=BSqyK>0=yIe`A#Mj2x&gld?d0n~g}ejgYx5J3 z2Egy^UyUJ3s{D( z);XXRX&hy6FOb$b2OLD|GaAs3)ae{>38~9yz)_?g=YYFNn~esfkZw5#3?r>T`I=7o z+A5@n&H)oh4MqdzBfWAC_=prY8jwJmaSq5K#f%2TkiLBX0pHn2D2X)lKlmdaMq2s3 zeU08h+F~>yg>=(7pcm8C~mULv(P2h^i$HWskl&kK!W z1ZkhKfKETJl!_jtL1O{;k-FUlY(=tYHWIKD-3E67NoJ5v83{OpG)>%HfT9m6OI73n zbC^cDf^r+M9^H}115Tj(#eF~-qezp~L>f@f6jFv+?gJDZ=*~qN(2H(2%1b~cZ;&k3 zL>90X-2_Q*0g5hkkEx6#pqf#1X_VK11mozgMH0}DZj8A107V=5_M<}HVe)PBd(>b6 zoyB%ki2Dr--3^rAfQ4kyePSajq;2Lix=9xJ4^Xs&O~Q_l{`EhTudUbvPZ!B&aUg`x zzD2%ssA2=k8N$vrDp3KgnttpIGQ0QyMI9OJJZ23lfURW|J0sKtb?mZ<=h(66p%zud z>bZoyXEX+R@O5c{1jurnYLt)7;RI9Id&-iaj~+Mi1PVr+=0}fjTW6S}kP#ZgIQ(7D z5MMJynq@Bjr=gSke9a&=VI99OrxzzL=;tUYRxzIhF=8Z{&ni+J<2o;Ka+cZQUVzxi z6k(a9Es85BjSLWm8!U+K5>OlC1Zk9QQD4JKaDdkYVS+SqGZ*11*vk`&kzqGU(^nB& zxXOFHn&t{WGwWNq44PmQXZZ&=hUsR5_|TXQ5UXPyo%C>vhrD8jFMMH!S3Kk<=SkB- pEh@+Bearbeiten Rückgängig Teilen + Eigenschaften Datei umbenennen Ordner umbenennen Konnte die Datei nicht umbenennen diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index a72434c27..5d19056c7 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,6 +9,7 @@ Edit Deshacer Compartir + Properties Renombrar archivo Renombrar carpeta No se pudo renombrar el archivo diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index e6db06b3f..c4f1513b0 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -9,6 +9,7 @@ Edit Annulla Condividi + Proprietà Rinomina file Rinomina cartella Impossibile rinominare il file diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 75a2ade43..6fbb04242 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -9,6 +9,7 @@ Edit 元に戻す 共有 + Properties ファイルの名前を変更 フォルダーの名前を変更 ファイルの名前を変更できませんでした diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 8a2d4a48a..cc3a126c5 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -9,6 +9,7 @@ Edit Desfazer Partilhar + Propriedades Renomear ficheiro Renomear pasta Não foi possível renomear o ficheiro diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 52d96714e..710cd65c9 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -9,6 +9,7 @@ Edit Ångra Dela + Properties Döp om fil Döp om mapp Det gick inte att döpa om filen diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d47591e8a..f1f1b48fb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,6 +9,7 @@ Edit Undo Share + Properties Rename file Rename folder Could not rename the file