From 12800ec7c1364b3363aada1268e59ebd08d43d50 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 5 Oct 2016 23:12:09 +0200 Subject: [PATCH] add a menu item for Crop / rotate --- .../gallery/activities/ViewPagerActivity.java | 3 +++ app/src/main/res/menu/viewpager_menu.xml | 15 ++++++++++----- app/src/main/res/mipmap-hdpi/crop_rotate.png | Bin 0 -> 680 bytes app/src/main/res/mipmap-mdpi/crop_rotate.png | Bin 0 -> 393 bytes app/src/main/res/mipmap-xhdpi/crop_rotate.png | Bin 0 -> 812 bytes app/src/main/res/mipmap-xxhdpi/crop_rotate.png | Bin 0 -> 1553 bytes app/src/main/res/mipmap-xxxhdpi/crop_rotate.png | Bin 0 -> 994 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, 20 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/mipmap-hdpi/crop_rotate.png create mode 100644 app/src/main/res/mipmap-mdpi/crop_rotate.png create mode 100644 app/src/main/res/mipmap-xhdpi/crop_rotate.png create mode 100644 app/src/main/res/mipmap-xxhdpi/crop_rotate.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/crop_rotate.png diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java index 242a74de2..2ccbf07eb 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java @@ -140,6 +140,7 @@ public class ViewPagerActivity extends SimpleActivity getMenuInflater().inflate(R.menu.viewpager_menu, menu); //menu.findItem(R.id.menu_set_as_wallpaper).setVisible(getCurrentMedium().isImage()); menu.findItem(R.id.menu_set_as_wallpaper).setVisible(false); + menu.findItem(R.id.menu_crop_rotate).setVisible(getCurrentMedium().isImage()); return true; } @@ -159,6 +160,8 @@ public class ViewPagerActivity extends SimpleActivity case R.id.menu_rename: editMedium(); return true; + case R.id.menu_crop_rotate: + return true; default: return super.onOptionsItemSelected(item); } diff --git a/app/src/main/res/menu/viewpager_menu.xml b/app/src/main/res/menu/viewpager_menu.xml index 97518ad03..ff921fe59 100644 --- a/app/src/main/res/menu/viewpager_menu.xml +++ b/app/src/main/res/menu/viewpager_menu.xml @@ -5,6 +5,16 @@ android:id="@+id/menu_set_as_wallpaper" android:title="@string/set_as_wallpaper" app:showAsAction="never"/> + + - diff --git a/app/src/main/res/mipmap-hdpi/crop_rotate.png b/app/src/main/res/mipmap-hdpi/crop_rotate.png new file mode 100644 index 0000000000000000000000000000000000000000..3cf5e4e719145c1e55ef85f3bb2ca59f15ace647 GIT binary patch literal 680 zcmV;Z0$2TsP)DIiF@3H~VN1SXExtR1htzhv36=gj$Z zW_)JmNCy<)fLlNx*aSWR&wyp11vC!oqX<+4tN=as>KCvETmz=+fNBH3*{>Mr0v7;R zHPqb%)OX-#0QML-S~XPLhVKh-8aM;I0Co)O9WYZh)Dmzuc-I7O16vlYZegf!GL!&& z-i8s2)O4*t*59Jds~C6+M7080pErPQgSwatVi3@vHVJJ4tH5N!Ho_-RfKR~Ts(`>p zVKv3a2?LISr7D2{Hd1^z;J$r-102ePN^?Av!Cu=q%NCfkHa*~6zS%tjIp;c(x{@X& zEz}NVdTIChaRGX5_qm}~-f;Y#bGcS)AeQ8^Y=K!xS0wF>1yHDQ8M41>0&Pi6NspX! z>vaPO_-tw7YDSxp<)Ne^NgaD`<#jfUoO6*g4GZ+jo)<;|lv}{OrR^9vIiOA9Au9qj z0lYPT_eePv;8)~b#bsQBcp~RqU(y3fNV+WPcuKp6_FeKhrHm^xN=JZoi@?4uB`}HK zWNlEAGJ(wLB@5>^aQ(jqLyDZgeQ3D5rHt_#@KX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lM14bDGlqz7tC#kzHzl5QcN38wSEs3Gs1K`~ z8q^t8*Qqy`J(j{qL|R~dx{V~_R8n<Zc8C zeN}Dt1fgS{_q;#=>Luzo88b)K8`a_-|LjKs4XcaPzcZ%3ug>U12h}l-+yb>|r=4TO zxQ;ARPs%xl3F?y>n|G=YsfX;VKyA@NpiWXX-k8oY$5c^IRo7?QSf`$!u2*T+z=Bboy8@)!{R!Vb`o!$g!Hf1{6N&bGTZMJb=rk!8a ztD%2AsND;`=h%I*J`y-b9qLzs+GQ0uejretcYy7w z&&L8&2Ljdk0r(~LxdNO$5U9?dz?Ye_*#m*31Zu%RpcYh&`_$=&;LD6*xdVtE^b_$kSv!sf`a1}+ z4JyF5nX<{ip(WVTlT?Ti>}jS0N0ng9UJ*j5ga&k~{R;32kbXpY0y(x#{x8&~*l($_ zA>h1n%;`NU#5>qkner>_*Ra_(sSv&A6JRt|J_9H|W@bO25<=Jxd`Ns?w5uGrrW})c zivVB@ha3QIU{1!Y5yaE)SCRrNl z1@0N0{)>7_&fm{51~C;C+Op5It4VgjS`EC+?x+0YfIH0>1^OW{AGiZpNleV`uW6^A zseX_Vev`UT9WL9xEOtAp#29palQA?l&DZMO!aCkdx-L-C>3H?^OrKSCtvb2T&fBCE zfs&4A7-NUio>W!eN~U2?50o2LH9EqMg3w8u`qIz!wkxZuGQuXjAzdcTUO#Q={ zz1*K00*OdV8o9GEf%Z9dmZ`;Ct*B2~Pq5vPh}55+1fbqx%+$+XCsh*y7{#7V z7^xalyYKE>k<=meGWDG%-lV$9_*RyYCf{%E_vtoHJfn{G?{S|r$&d$r8?YMSiY)QTffjnWt<876DI&5VjO)TVA?yM{eAu zok)xvnFO2$%mStoHw7jUHwg|R?({AOp6SMG09)}N$d^K#iraPv00000NkvXXu0mjf D#yIQT literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxxhdpi/crop_rotate.png b/app/src/main/res/mipmap-xxxhdpi/crop_rotate.png new file mode 100644 index 0000000000000000000000000000000000000000..13dc42b28d2969eb59c6c1327d7325246d855907 GIT binary patch literal 994 zcmV<810DQ{P)>`5bqKjB)7jfxl*NY^yTj?;wKDv!C_j+4RWw3+Mg0{=xT!jE%!F zXs&&j&!ehAFb8+~NbEt>Oo={mvCW0NU03 zO16)=zz0BE%U@*M;{~AI%^d19H+TVP17sVg=nYWdeX>2iFo04qz(PxzWSCx($U67~ zb%JG90IJSN^plA#WP8C9Kplz_4x^^&un2(R$Q|pcqYl^v)T2KOucA(Ju|)t3MK0-N z7WITpzywKTuc5xB#Uh|a{EzHxn{50d3rnK=95w6_@Cd3*!5?55r%@aI0JJgGfJeY~ z)JGlxU8s~+KLG6*YJ*3>+o)|G0sBxddIa2ude0+Z9qJp8fOb^X9Uxp2&;&FAO~6^M z38M@UiXHf5Y z1Z+ah(C!aV;5cflKS07us82ltZYA5g=#!N5TP{EgM^UdtpG;Z=Bs__lWliMCuuZ@v zoI<@EdD2VWA|PQ9HAipc(TGjJm87UckwAlq2p@9^9CRHDciWb5|=&^9oOn&U1n0PShARk_|9ph$^qKeN&YKWTXiFKOYKO46XYK5vVuP^wr%ULg zl%HS=pmnmBFQbGmy8vw^5A!-xae`fdb{TiDok2!9!W1W%W{#AvSLöschen Lösche Rename + Crop / rotate Rückgängig Teilen Datei umbenennen diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 3e3b76a2c..7da7d72cc 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -6,6 +6,7 @@ Eliminar Eliminando Rename + Crop / rotate Deshacer Compartir Renombrar archivo diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 4b464a799..b048b0a62 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -6,6 +6,7 @@ Elimina Eliminazione Rename + Crop / rotate Annulla Condividi Rinomina file diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index c7f10b3ad..42371fa25 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -6,6 +6,7 @@ 削除 削除中 Rename + Crop / rotate 元に戻す 共有 ファイルの名前を変更 diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 06cff51a5..bd79c7d3f 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -6,6 +6,7 @@ Eliminar A eliminar Rename + Crop / rotate Desfazer Partilhar Renomear ficheiro diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 4f3677c6e..a0aa69a99 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -6,6 +6,7 @@ Ta bort Tar bort Rename + Crop / rotate Ångra Dela Döp om fil diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8f69bda94..0541916b6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -6,6 +6,7 @@ Delete Deleting Rename + Crop / rotate Undo Share Rename file