From 8f5959920db11833084a3baf1c2f8af4a31efd7d Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 5 Sep 2016 22:44:20 +0200 Subject: [PATCH] add an Info cab button --- .../filemanager/fragments/ItemsFragment.java | 14 +++++++++++++- app/src/main/res/menu/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-it/strings.xml | 1 + app/src/main/res/values-ja/strings.xml | 1 + app/src/main/res/values-sv/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 12 files changed, 23 insertions(+), 1 deletion(-) 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/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java b/app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java index 75cd70cf..ba5a5896 100644 --- a/app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java +++ b/app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java @@ -310,8 +310,12 @@ public class ItemsFragment extends android.support.v4.app.Fragment @Override public boolean onPrepareActionMode(ActionMode mode, Menu menu) { - final MenuItem menuItem = menu.findItem(R.id.cab_rename); + MenuItem menuItem = menu.findItem(R.id.cab_rename); menuItem.setVisible(mSelectedItemsCnt == 1); + + menuItem = menu.findItem(R.id.cab_info); + menuItem.setVisible(mSelectedItemsCnt == 1); + return true; } @@ -322,6 +326,10 @@ public class ItemsFragment extends android.support.v4.app.Fragment displayRenameDialog(); mode.finish(); return true; + case R.id.cab_info: + displayInfoDialog(); + mode.finish(); + return true; case R.id.cab_share: shareFiles(); mode.finish(); @@ -365,6 +373,10 @@ public class ItemsFragment extends android.support.v4.app.Fragment startActivity(Intent.createChooser(sendIntent, shareTitle)); } + private void displayInfoDialog() { + + } + private void displayRenameDialog() { final List itemIndexes = getSelectedItemIndexes(); if (itemIndexes.isEmpty()) diff --git a/app/src/main/res/menu/cab.xml b/app/src/main/res/menu/cab.xml index 483ea84d..72602096 100644 --- a/app/src/main/res/menu/cab.xml +++ b/app/src/main/res/menu/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}*{fXkN1Bwzua42A&cO8)X94v*#VdaO8iG z+kTc0C=-wu*j=G(h{$bs75`-dmb2%>gYu>iOl8l@`G7J3w}`Ee0>`XSDh?XzF5rW< zzn&A@FdZlpaG%(>Dew-kcc9)?!(L+HUqrH1qHi526L6QuWiF0csP z$p@7Qcuag%#Sy+8I9WHHZUS`#I7#Q3^fU0JDnVY*w1!yFjF%KNE9$r)<*nRll*j zvGpLm>OnNN#uHb*@=w+CP5Fz~;PtRUlyVBUR>Te~EKea}4w{Cm=6W~lXuV}9?rr&j9C3T<26ACHuT$8pI{v8Dh8K zZK_@JJt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kOw5)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@+Löschen Rückgängig Umbenennen + Info Kopieren Copy/Move Teilen diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 6a0ab79e..2c072019 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -15,6 +15,7 @@ Elimina Annulla Rinomina + Info Copia Copy/Move Condividi diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 8d088486..86e75b23 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -15,6 +15,7 @@ 削除 元に戻す 名前を変更 + Info コピー Copy/Move Dela diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index aa15e651..b2e99df8 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -15,6 +15,7 @@ Ta bort Ångra Döp om + Info Kopiera Copy/Move Dela diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 24fea48f..be385ece 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -15,6 +15,7 @@ Delete Undo Rename + Info Copy Copy/Move Share