From a6a0e78b9442a402a40430cbd489c9dd60a389fe Mon Sep 17 00:00:00 2001
From: Soren Stoutner
Date: Wed, 5 Jul 2017 17:05:38 -0700
Subject: [PATCH] Update the Clear and Exit icon. Implements
https://redmine.stoutner.com/issues/146.
---
app/src/main/assets/de/about_licenses.html | 4 ++-
app/src/main/assets/en/about_licenses.html | 4 ++-
.../main/assets/en/images/clear_and_exit.png | Bin 0 -> 1251 bytes
.../main/assets/en/images/ic_exit_to_app.png | Bin 1215 -> 0 bytes
app/src/main/assets/es/about_licenses.html | 7 +++--
app/src/main/assets/it/about_licenses.html | 4 ++-
.../activities/MainWebViewActivity.java | 3 --
app/src/main/res/drawable/clear_and_exit.xml | 26 ++++++++++++++++++
app/src/main/res/drawable/exit.xml | 18 ------------
.../main/res/menu/webview_navigation_menu.xml | 2 +-
10 files changed, 41 insertions(+), 27 deletions(-)
create mode 100644 app/src/main/assets/en/images/clear_and_exit.png
delete mode 100644 app/src/main/assets/en/images/ic_exit_to_app.png
create mode 100644 app/src/main/res/drawable/clear_and_exit.xml
delete mode 100644 app/src/main/res/drawable/exit.xml
diff --git a/app/src/main/assets/de/about_licenses.html b/app/src/main/assets/de/about_licenses.html
index 3a742ca2..32692288 100644
--- a/app/src/main/assets/de/about_licenses.html
+++ b/app/src/main/assets/de/about_licenses.html
@@ -60,6 +60,9 @@
are derived from ic_security and ic_language, which are part of the Android Material icon set and are released under the Apache License 2.0.
The full text of the license is below. Modifications copyright © 2016 Soren Stoutner. The resulting images are released under the GPLv3+ license.
+
+ is derived from ic_exit_to_app, which is part of the Android Material icon set and is released under the Apache License 2.0.
+ The full text of the license is below. Modifications copyright © 2017 Soren Stoutner. The resulting image is released under the GPLv3+ license.
orbot is a modified version of the status icon from the Orbot project, which is copyright
2009-2010 Nathan Freitas, The Guardian Project. It is released under the 3-clause BSD license.
The full text of the license is below. Modifications copyright © 2017 Soren Stoutner. The resulting image is released under the GPLv3+ license.
@@ -83,7 +86,6 @@
ic_dns.
ic_donut_small.
ic_edit.
-
ic_exit_to_app.
ic_expand_less.
ic_expand_more.
ic_file_download.
diff --git a/app/src/main/assets/en/about_licenses.html b/app/src/main/assets/en/about_licenses.html
index 4d742f15..18a7edb0 100644
--- a/app/src/main/assets/en/about_licenses.html
+++ b/app/src/main/assets/en/about_licenses.html
@@ -55,6 +55,9 @@
are derived from ic_security and ic_language, which are part of the Android Material icon set and are released under the Apache License 2.0.
The full text of the license is below. Modifications copyright © 2016 Soren Stoutner. The resulting images are released under the GPLv3+ license.
+
+ is derived from ic_exit_to_app, which is part of the Android Material icon set and is released under the Apache License 2.0.
+ The full text of the license is below. Modifications copyright © 2017 Soren Stoutner. The resulting image is released under the GPLv3+ license.
orbot is a modified version of the status icon from the Orbot project, which is copyright
2009-2010 Nathan Freitas, The Guardian Project. It is released under the 3-clause BSD license.
The full text of the license is below. Modifications copyright © 2017 Soren Stoutner. The resulting image is released under the GPLv3+ license.
@@ -77,7 +80,6 @@
ic_dns.
ic_donut_small.
ic_edit.
-
ic_exit_to_app.
ic_expand_less.
ic_expand_more.
ic_file_download.
diff --git a/app/src/main/assets/en/images/clear_and_exit.png b/app/src/main/assets/en/images/clear_and_exit.png
new file mode 100644
index 0000000000000000000000000000000000000000..b9fdd99905d60181ee002636bcf400e184b2f544
GIT binary patch
literal 1251
zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSEX7WqAsj$Z!;#Vf4nJ
zsJsMW#sHP)KY)UgC9V-A!TD(=<%vb94CUqJdYO6I#mR{Use1WE>9gP2NC6E>@N{tu
zshIQju5Y(YsK~L8|G#XRq_Bfym&Bwq9kY59geK^ixR@w*a0op*75hl(ok{nbKRk{;
z`y39uX_?SFqjiG#9S+VUu{;wkj>?;U#N^VGmCmzGiZ}%4m@i)vE7$_G?4d!SsW>
z1l-G_#0|1Ia@e=A=KVMPkiDy@>aFjCngeClLE@K=On7RJoQye-#bk|Ir~g`
zQS(~!iIK|~ES6(IQ!+XB%zxY_((vgFvv@;(;D*=o6HLE1<}+=Jmizrv|3T~n
zsSicXw`Vi&i~0L+HQR6B3xW%Hx(~?mfb>}UI4xk9k}CLPZjWLB!>P%pK(U#dfG*Lv
zE+h$(%H{mg+yauCZUU6DSK)NLAI4P9cs@!z@kQ{etH+*8zX@J1v5w)n*{ucs?hW%Z
z>-aCsC{nr5?eup=Kg(;N5kHIsnOG0ZFI9YT+rClg_^p*GvWzv+febZKjDF0|MHuR@
z&El`(_>dO+*^%)>%A%ha_NOz-Kd9FH5jsns^|0F6^VTOUemYy1iDYB5~xk%s?ghb{u?hI1+p%%iH#Gy^W#(^>jIs~+5B7%o}0|&MH+%i
zcIs^?{rr2IP{gL%1LBOgb&Y=pZt4!1uX*Fir-Bts8(wn7YsfM_dhv-(@aFrUrgM2V
zZIwP;ZKuI-&5wD#$sP5m&)HQR9gE-IK2j^YBYw-_e-^-a(aRT+6lzjA%g(AWZC$>o
zwJyuaSwJgw4DabwEf!G81!~`Tq-yt%ivlY7U^WNCANeL7u=)r_hT4>#YX64!MRz7J
zJ(zNm!~1RWxm+84D)p@W=9TLhb&iItDYHl+~`A9hH=qM`Jey%
zALOqRH}j}bZ+ySDo1>8H2m9~pGi!Q|`^0fa>}fvGf5SiS{_)U+`olZVXXSO@mu2h=
zW=&$OFmw;J{nqfR@}KFd^f3DwVan)vTj|^%cE7Za=>DX#d%yyT!PC{xWt~$(699#d
B91#Ej
literal 0
HcmV?d00001
diff --git a/app/src/main/assets/en/images/ic_exit_to_app.png b/app/src/main/assets/en/images/ic_exit_to_app.png
deleted file mode 100644
index fae891f4ecdf7a3ed49891d83442f0785f9fd209..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1215
zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSEX7WqAsj$Z!;#Vf4nJ
zsJsMW#sHP)KY)UgC9V-A!TD(=<%vb94CUqJdYO6I#mR{Use1WE>9gP2NC6G9@pN$v
zshIQju64g}pv19{{~bHhtgiPQO7$pdIijM~dr><6K)b};#RZvx9xWYVQyyK)5UFA2
zYCf@Jt5BOE=h3nmCr(6GuP?v*t*Y*%*D{Oew%WgI&)NO9Q&2($wZwGVEo{
zvm3uM+OPMY*5H4@=7YeF-@o50<*?^5o<88uJNYB?4!)esi|s0X4DufP5B##a$Jjo1
zx8O~a4IaN*uYCW=YVqX8e5-x`%GetH!=g9cYTceCU%?Q
zexdcD?F=@iKlVuZFi+-NAI)UOGVgT6y4`x^LB1Ot$_wJx#p%>BElJ>Vcq-CxN|Rw~
zFoV`|h7do-6?2#ZELj&6nX)A?SuOMVGl5oq{tTEFC#z!zJF$FuB%ayfp-#S5DIQvG0_OxQrdJ6))?i5F(OmFz0Yi(yk_pe6nG$k69M7`P
zc0RbAC+kUqL$SZZbmxN?O!lpKb~=8adhb+|mPcJ$}~>Je~Vcb1)1
z!Qy_mle3w;NW+4nd^-&W$Dem3gcbwUu>?DPc4Xu@^!(X{89;RhVm!~bA7Xl7bx}xO
zVB#X6f*G0{L8Qg~q&!Pg`I5*T+j~vSD@y{eM(za#sRf@+_RoEaQ}5ore4T-zW?3vp
zTgaEQ@-K@S4%o6dYvt^l8e`5BK5N0x<5w;7KCE@CW@KC=)+95VpUc5O+j&Cv=Y<=d
zGfzp`;%mTt$H!*6&X-!{0@L|{pZ~8gWZ2XMNfel=<<5Zx$I27-9)2yB(RcWC#pMG_
z4!@q(z-uR;BG|C~0AI7!rF+r|%l#R<=QmtuGhHJ6J~dykfgQ-2{d*rPFa>^N&~Mnv
zw)MzeqYdKcw>BJ=dZ1cxdqLlp;<-I_b=w)=zpPVkbKCt8cKTGdubi;yw2l{Ic7}
zz%E-YbeC~f$+9?)T3PM`iO=&?Hu3Io+&pnoRpZyxKMd;x6Sn4W6#rnqyK(XXo(}i)`~dP{EV8;y#D#gwconjunto de iconos Android Material y son liberados bajo la Licencia Apache 2.0.
El texto completo de la licencia se encuentra debajo. Copyright de modificaciones © 2016 Soren Stoutner. Las imágenes resultantes se liberan bajo la
licencia GPLv3+.
+
+ deriva de ic_exit_to_app, que es parte del conjunto de iconos Android Material y es liberado bajo la Licencia Apache 2.0.
+ El texto completo de la licencia se encuentra debajo. Copyright de modificaciones © 2017 Soren Stoutner. El imagen resultante se libera bajo la
+ licencia GPLv3+.
orbot es una versión modificada del icono de estado del proyecto Orbot,
que tiene copyright 2009-2010 por Nathan Freitas, The Guardian Project. Es liberado bajo la licencia BSD modificada (de 3 cláusulas).
El texto completo de la licencia se encuentra debajo. Copyright de modificaciones © 2017 Soren Stoutner.
La imagen resultante se libera bajo la licencia GPLv3+.
cookie fue creado por Google. Es liberado bajo la licencia Apache 2.0 y puede ser descargado desde
Material Design Icons. Está sin cambios, excepto por la información de diseño como el color y el tamaño.
- Los siguientes iconos proceden de Android Material icon set, el cual es liberado bajo la licencia Apache 2.0.
+
Los siguientes iconos proceden de conjunto de iconos Android Material, el cual es liberado bajo la licencia Apache 2.0.
Están sin cambios, excepto por la información de diseño como el color y el tamaño. Algunos de ellos se han renombrado para que coincida con su uso en el código. Los iconos y los nombres originales se muestran a continuación.
ic_add.
ic_arrow_back.
@@ -81,7 +85,6 @@
ic_dns.
ic_donut_small.
ic_edit.
-
ic_exit_to_app.
ic_expand_less.
ic_expand_more.
ic_file_download.
diff --git a/app/src/main/assets/it/about_licenses.html b/app/src/main/assets/it/about_licenses.html
index 44374ba5..899cd65e 100644
--- a/app/src/main/assets/it/about_licenses.html
+++ b/app/src/main/assets/it/about_licenses.html
@@ -62,6 +62,9 @@
sono state derivate da ic_security e ic_language, che fanno parte dell'Android Material icon set e sono state rilasciate sotto Licenza Apache 2.0.
Il testo completo della Licenza è riportato di seguito. Copyright delle modifiche © 2016 Soren Stoutner. Le immagini risultanti sono rilasciate sotto
Licenza GPLv3+.
+
+ is derived from ic_exit_to_app, which is part of the Android Material icon set and is released under the Apache License 2.0.
+ The full text of the license is below. Modifications copyright © 2017 Soren Stoutner. The resulting image is released under the GPLv3+ license.
orbot è una versione modificata della icona di stato del progetto Orbot, il cui copyright
è 2009-2010 Nathan Freitas, The Guardian Project. E' rilasciata sotto 3-clause BSD license. Il testo completo della Licenza è riportato di seguito.
Copyright delle modifiche © 2017Soren Stoutner. L'immagine risultante è rilasciata sotto Licenza GPLv3+.
@@ -84,7 +87,6 @@
ic_dns.
ic_donut_small.
ic_edit.
-
ic_exit_to_app.
ic_expand_less.
ic_expand_more.
ic_file_download.
diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
index f826f6d1..36650cd7 100644
--- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
+++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
@@ -362,9 +362,6 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
} else { // The user has stopped editing `urlTextBox`.
// Reapply the highlighting.
highlightUrlText();
-
- // Scroll to the beginning of the text.
- urlTextBox.setScrollX(0);
}
}
});
diff --git a/app/src/main/res/drawable/clear_and_exit.xml b/app/src/main/res/drawable/clear_and_exit.xml
new file mode 100644
index 00000000..24a6a545
--- /dev/null
+++ b/app/src/main/res/drawable/clear_and_exit.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/exit.xml b/app/src/main/res/drawable/exit.xml
deleted file mode 100644
index 49b5841c..00000000
--- a/app/src/main/res/drawable/exit.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/menu/webview_navigation_menu.xml b/app/src/main/res/menu/webview_navigation_menu.xml
index 59d086dd..16bdf8f6 100644
--- a/app/src/main/res/menu/webview_navigation_menu.xml
+++ b/app/src/main/res/menu/webview_navigation_menu.xml
@@ -98,7 +98,7 @@
\ No newline at end of file
--
2.47.2