From 4097fbc3a0a037da87f172b2b0b7e99199c0d3b9 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Thu, 22 Oct 2015 15:27:37 -0700 Subject: [PATCH] Add icons to the menu items. --- .../java/com/stoutner/privacybrowser/Webview.java | 2 -- app/src/main/res/drawable-hdpi/ic_back.png | Bin 0 -> 220 bytes app/src/main/res/drawable-hdpi/ic_forward.png | Bin 0 -> 225 bytes .../main/res/drawable-hdpi/ic_home_black_24dp.png | Bin 0 -> 313 bytes app/src/main/res/drawable-mdpi/ic_back.png | Bin 0 -> 170 bytes app/src/main/res/drawable-mdpi/ic_forward.png | Bin 0 -> 180 bytes .../main/res/drawable-mdpi/ic_home_black_24dp.png | Bin 0 -> 249 bytes app/src/main/res/drawable-xhdpi/ic_back.png | Bin 0 -> 248 bytes app/src/main/res/drawable-xhdpi/ic_forward.png | Bin 0 -> 255 bytes .../res/drawable-xhdpi/ic_home_black_24dp.png | Bin 0 -> 481 bytes app/src/main/res/drawable-xxhdpi/ic_back.png | Bin 0 -> 368 bytes app/src/main/res/drawable-xxhdpi/ic_forward.png | Bin 0 -> 384 bytes .../res/drawable-xxhdpi/ic_home_black_24dp.png | Bin 0 -> 463 bytes app/src/main/res/menu/menu_webview.xml | 3 +++ build.gradle | 2 +- 15 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_back.png create mode 100644 app/src/main/res/drawable-hdpi/ic_forward.png create mode 100644 app/src/main/res/drawable-hdpi/ic_home_black_24dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_back.png create mode 100644 app/src/main/res/drawable-mdpi/ic_forward.png create mode 100644 app/src/main/res/drawable-mdpi/ic_home_black_24dp.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_back.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_forward.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_home_black_24dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_back.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_forward.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_home_black_24dp.png diff --git a/app/src/main/java/com/stoutner/privacybrowser/Webview.java b/app/src/main/java/com/stoutner/privacybrowser/Webview.java index ce6fdb88..a783262c 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/Webview.java +++ b/app/src/main/java/com/stoutner/privacybrowser/Webview.java @@ -198,8 +198,6 @@ public class Webview extends AppCompatActivity { public void loadUrlFromTextBox(View view) throws UnsupportedEncodingException { // Get the text from urlTextInput and convert it to a string. - final EditText urlTextBox = (EditText) findViewById(R.id.urlTextBox); - final WebView mainWebView = (WebView) findViewById(R.id.mainWebView); String unformattedUrlString = urlTextBox.getText().toString(); URL unformattedUrl = null; Uri.Builder formattedUri = new Uri.Builder(); diff --git a/app/src/main/res/drawable-hdpi/ic_back.png b/app/src/main/res/drawable-hdpi/ic_back.png new file mode 100644 index 0000000000000000000000000000000000000000..2e13b17c878f0bc2486d2863e2d07d9afc3c7be1 GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUt#hxyXAr-gY&amcc3E**!?e?yi zpC=MKbMDs59h+}^CUiM&2!431SV6(;-V<5TOC~@q;uDJNrUtQ{{Ghq?T-N7JZf-kI zRu|0vcl`AF?6rGSD)e`M-^LatnX7VG-lr~*uiq@A8H5_Q{xscCB^*B8w%W?}&)ihW zXV1+P)(3PXk+a-^SU?gdUT()^QExPJ1JqVNAzQm(&dU{E+L&S@XR;Ln}h3$&ZT M)78&qol`;+0Lh3~U;qFB literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-hdpi/ic_forward.png b/app/src/main/res/drawable-hdpi/ic_forward.png new file mode 100644 index 0000000000000000000000000000000000000000..0258cbed56a11ac6ddf9cbbc4442facc1aa32dcf GIT binary patch literal 225 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUt6`n4RAr-gY&hX`GHV|+t7VDod zf3B!)WO?lM-Yd7Q8d;9y-hLo{ubDCYaLt*+Ef(wy3?JN+dWty`r^wu6i{JBoeh~l4 zhrwRKa(B!&JU?|mX!Zt%X5Ky57-Cx|Tw2*uQNEM2#7P~5c5U~&_GIR4^A&Gp9;DCS zz_vd7@wBg{96uR8aTTh4`6E5m?!*PQTo79JfA_vWmy>p$eP#D9Y{~rVj0_LH$^1GP V!yvO|H9yeJ44$rjF6*2UngDL6U*iA( literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-hdpi/ic_home_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_home_black_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..a1ba11a43708133b1cf681ecff818f56cfa12cc3 GIT binary patch literal 313 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezr3(Ffw?$IEGZ*dOLL^Uz34|t6^b5 zQAz2wg`BLHwsJ3?{jcF4!{&84yIwea$*qvg)EW3&qzqFRd@H)*)5%o=dvQ|L!K6lhSm*T3+ z-*@eqd3~>q%XiMbcVj32n0@opEQK>$uLTQP{ZYtIJD>e~+Wdh#0fjFN^7~X-92mf;;U6=|a%D3)SG_z(tHrt)78&q Iol`;+00{zumjD0& literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_back.png b/app/src/main/res/drawable-mdpi/ic_back.png new file mode 100644 index 0000000000000000000000000000000000000000..6f6cd2008c76b9c3ba7e2eb2dbefdbf63772a258 GIT binary patch literal 170 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJLQfaRkcwN$2@TOQka*Nl9IxGq-sin z!UMJAMXM5xjg7Y+eBZ#>-{d%v!(GbP0l+XkKRewF+ literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_forward.png b/app/src/main/res/drawable-mdpi/ic_forward.png new file mode 100644 index 0000000000000000000000000000000000000000..1c249eff378d6be24365598c09378597c7e956b3 GIT binary patch literal 180 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJYEKu(kcwN$2@yn>cGmhC9y=W;PqHwh}*ytu_>a z5@I@}U>2KOR#1?@7&V9Ii19)TP8B!()0RCwJzNuX*pnwnc=RosHhcE$&y2dOoVLrH z6bw}`HQ5;B@9)o(;mECbdZNt5q>Ky=uh7$tY^S89rN0Yol4)zq+U;1iBFXZC`z!}$ zb)js_Ny=(XUxHFBF9;MX%=23H)T3_(mr=70P|psgT7%}8(-SYToZt!Xa%ze>y>c1{ v`%>l;fyS>I0@-~)z2(T&zW*H?@pI1Sx_Q}N zFGWJ@q}m=DvhQf``k)!F?$Z+gsr1?F?Lns$m;8D5p5fDzlatl`=h;+(827jQ`Mvqu z*XhqMosbEinxA{D(58K=c*0ADhw_Z=3$8EVQ0h=s>o` lYD9AG)#7GgXke>gny{n9^Y`=4nLrmYc)I$ztaD0e0s#1>Y4HF6 literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_forward.png b/app/src/main/res/drawable-xhdpi/ic_forward.png new file mode 100644 index 0000000000000000000000000000000000000000..6e81f733b026c0d26cf810cb7f22986ccb09886c GIT binary patch literal 255 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=$2?seLn>~)y>*cDkb{83#W`yn zHgvG^&(^8l#G<`HKDg=D+SiH`oNYWkQtq`|>i?gtqv&&;5vXzY#2~Adspl=@f9>19 z-Lh>;{%4uChgX?;7Al>2x|~yZ;kBx)Mg2Q#c5rz6H*hF*C^R7v)m<0(Y`5=xn`l?x zKaFXP)WRu6f6HFnOPk8^UnF5F2a`)Z>!J9jeXJ)YtNYKhsr>ZhB#80neZ<6VN#_K0`)pAyf!(jOqNGI+ZBxvXu;=Zy0tL*}56lCjEHny<}1cK?J+eFF6f9p9AVF(L>Joc6I z!G$H6y>ri**_qpD2qAL7_IVHlFAP5KmG~%%j(y+nd7k&p;By?uM|&Z@ z*=$}x@EcbC*9`u~|7tD1-ELpBTCI18O*0Hg5q*xSrT8!m?;&uwEIh-AA;;EAyz9Dm z5H`m5K3`=3$6)LS->HN41IKY5A#Acrct%Y4E^|~;`Dipc#3}|@&14Pn|DQv`9L!ZI z@hJQR@r;kJ{b(y>L-5n0G*Q{%93p*iY?$UOR z*ru0@?ry$q@k=*Ek8_pkq(}2|jp7Eo5}skiV9_-ee?y?NyJZKLmw4lo=);7YLa(_+ zclVXIc*BHG)=K(!1ILI@#*5JCtcL}mB` XS~+-OXG5he00000NkvXXu0mjf=PK4r literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_back.png b/app/src/main/res/drawable-xxhdpi/ic_back.png new file mode 100644 index 0000000000000000000000000000000000000000..99615cccfbd9d036f42363194e5acc9b4dce4a0e GIT binary patch literal 368 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>U^Mr1aSW-r_4bZ$*C7XihKo60 zwVE1L+=>+S6<&zO?EJ)@pUo=Lw7`1zX~Bz literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_forward.png b/app/src/main/res/drawable-xxhdpi/ic_forward.png new file mode 100644 index 0000000000000000000000000000000000000000..fc68e9530282cb603fc90f57fd05a2b582e7790a GIT binary patch literal 384 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>V08C%aSW-r_4bZ!Uz3AGLt^ya zu1=K(3B4z*K3}+^bD#R}Su5Xq?9h(O56(RLtTs8f(C+!cr3q$}RXitw(J%J3i+8OH zFH>^Pyw#|;vc;)jW{f@Yu)NMXV|;W-s8Fd=l3)FwTl&NI_8Sc{%^r) zA+>VVs%hun?2&GoY~WOT|9o;We?2dQ`{Q5xJ!F~s+-x{EZv1^k5vcHxU|&Itvdlvc zcRb7~aW&c73NP9RM}DlV6J`%!b1xL!eT948qf_TDZs%99c4wO~Q<>R-fn_IW`X0{T zlCSnBoo}`2n$TW&L$GXv@|y(r8wdL~G|MKkTi-ayR|aIgNq{nq7w*}zzG2U{O+CLG v#J7tT3GLangQai7WW)9Ar^5n4wVZi^LXe$P>7@u@$TE1k`njxgN@xNA&~>CF literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_home_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_home_black_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..fc2bd7ef08ee88d9daf84ef320f4381da9af3520 GIT binary patch literal 463 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>V4UXZ;uunK>+OxbUWWr1+&^|T z>-Fv0CDO&$xXkssUTw>shJ6j2*U8Sc5~+=TFWMR*;yX(^fA;-GZq+Z$|CX!H>2m{` z1qabGXVW%o&HHgf#x^MQ>c<+p{ru0rKE87_d)mv!qe+EP)1Er#{`oGvzW4ZJVQ$qF zqnUGBH_qR7e7$Ey&-slZOkIn1a4@g0liIJAXgb&LyzVu{#0#ejHrM{k{c~P;zI1%@ z&b(v$`I^`Lx2p3!Wc5dCoz4#C#3Q#0%zS}HbgbXIF@^h3!RZgYb(z+6Z|4czPtLs9 z*0}Zchx>n|SfaZRy!yqlZCT^huYx(cOxles2d|lI5b_Yn@nzON*ju^d;59QKS0Zl1 zTd4?66(02)ySUb{d~a#y-=@;2dgBv^&cSc@fea%cW13?E=QbXu>sI$f{-60AOdJXg3_v2`KFgCokt_lZ42*aPcmRSJ3*7H9?1)~iu3Nv< P3B>nw^>bP0l+XkKnEbV` literal 0 HcmV?d00001 diff --git a/app/src/main/res/menu/menu_webview.xml b/app/src/main/res/menu/menu_webview.xml index 8dcf42d4..2a8923dc 100644 --- a/app/src/main/res/menu/menu_webview.xml +++ b/app/src/main/res/menu/menu_webview.xml @@ -8,17 +8,20 @@ android:id="@+id/home" android:title="@string/home" android:orderInCategory="100" + android:icon="@drawable/ic_home_black_24dp" app:showAsAction="ifRoom" /> diff --git a/build.gradle b/build.gradle index 1b7886d1..c6371d6c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.3.0' + classpath 'com.android.tools.build:gradle:1.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files -- 2.45.2