Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e147b6d20f | ||
|
|
155c43682a | ||
|
|
946104a5df | ||
|
|
a5d79ac7f9 | ||
|
|
fd8a272046 | ||
|
|
47eae29689 | ||
|
|
348313470e | ||
|
|
d7c0828915 | ||
|
|
94d8ef8b53 | ||
|
|
70d0bb57d0 | ||
|
|
d933cabcfc | ||
|
|
0a492026ff | ||
|
|
77961d479f | ||
|
|
999d93f3b3 | ||
|
|
5e1e479807 | ||
|
|
a94ed3b9c8 | ||
|
|
2f4b3df567 | ||
|
|
c013391156 | ||
|
|
1e990a6408 | ||
|
|
23ed9a3f24 | ||
|
|
6413b63295 | ||
|
|
40aa1738ce | ||
|
|
0f0139c14d | ||
|
|
99a0bd3a73 | ||
|
|
0d2e354dc4 | ||
|
|
e483f485ba | ||
|
|
041786688f | ||
|
|
90f5db27fd | ||
|
|
24513778f5 | ||
|
|
268f948250 | ||
|
|
ee49f677e4 | ||
|
|
36943b3b49 | ||
|
|
d1d1c4e992 | ||
|
|
6851c61d81 | ||
|
|
744587fb6d | ||
|
|
64601eb98b | ||
|
|
d312e9c1a0 | ||
|
|
83683260dc | ||
|
|
a2c8f4e6db | ||
|
|
3e2a26b04b | ||
|
|
76deb72a4c | ||
|
|
24807f5945 | ||
|
|
33cf1857bf | ||
|
|
5f9f5f3374 | ||
|
|
a13d9c86c2 | ||
|
|
b356d5a7d1 | ||
|
|
e784b70f07 | ||
|
|
baed6795d3 | ||
|
|
5ddcbec03a | ||
|
|
a3f6a0eebc | ||
|
|
498e23f049 | ||
|
|
a20ba79d3d | ||
|
|
103bfcc4fb | ||
|
|
2bde44e38d | ||
|
|
c0bfea41fd | ||
|
|
522ef2db83 | ||
|
|
e48c2704d2 | ||
|
|
2fa0bc6a57 | ||
|
|
b001d90e52 | ||
|
|
70cc28da94 | ||
|
|
8a3be032af | ||
|
|
f202f62a40 | ||
|
|
953bdacb8d | ||
|
|
e98065ee24 | ||
|
|
70afa2aca3 | ||
|
|
91b8c7becb | ||
|
|
5e2f28b274 | ||
|
|
47fe3d3e42 | ||
|
|
c0556a2729 | ||
|
|
9ee0dbeb77 | ||
|
|
a1a194f8d1 | ||
|
|
1c4df48ee7 | ||
|
|
840d096fff | ||
|
|
42b337a0aa | ||
|
|
2c9c396e7b | ||
|
|
227674492e | ||
|
|
698ce4a0fc | ||
|
|
5c0048002f | ||
|
|
441cd1a0ee | ||
|
|
81f305254c | ||
|
|
973679f045 | ||
|
|
24f213cf5c | ||
|
|
92d1e93496 | ||
|
|
a4167b2295 | ||
|
|
97e5f1ab00 | ||
|
|
2fffd5c9ce | ||
|
|
f7218f0953 | ||
|
|
87afbe2985 | ||
|
|
2181196695 | ||
|
|
dde1728565 | ||
|
|
39164a8eb3 | ||
|
|
8e601531f3 | ||
|
|
96d9a559e6 | ||
|
|
c7c4049f6f | ||
|
|
4a0eb1cd57 | ||
|
|
2870181d3c | ||
|
|
434e634f9b | ||
|
|
bb9814b374 | ||
|
|
6d70846910 | ||
|
|
80b8f5de32 | ||
|
|
db7022dc28 | ||
|
|
fd6a9b4fa2 | ||
|
|
8881869ec9 | ||
|
|
5acf274da8 | ||
|
|
973798cc2a | ||
|
|
07ac28f08d | ||
|
|
9f6e4e7e7c | ||
|
|
1698e0ba15 | ||
|
|
c85d241912 | ||
|
|
6ad38ba34c | ||
|
|
93dc06da10 | ||
|
|
39f2107541 | ||
|
|
eac62b16bc | ||
|
|
dda8c2d10d | ||
|
|
19a1d7e994 | ||
|
|
b2d9d65386 | ||
|
|
1d31783113 | ||
|
|
2ac7dbd892 | ||
|
|
3e2c772e3d | ||
|
|
72987427e3 | ||
|
|
512b569368 | ||
|
|
937f9e0d0c | ||
|
|
9425ad266b | ||
|
|
2a3998fa49 | ||
|
|
88e1cc462f | ||
|
|
6173c6c8f9 | ||
|
|
9681f4505d | ||
|
|
41b0dabea7 | ||
|
|
69cba92f71 | ||
|
|
5854e24907 | ||
|
|
6d1646753d | ||
|
|
9d77c48f7d | ||
|
|
8a59e72829 | ||
|
|
cd341d51d3 | ||
|
|
6a2c055f83 | ||
|
|
36a29dbe45 | ||
|
|
8b3e16cd96 | ||
|
|
bda72a0be6 | ||
|
|
6d8366ab6f | ||
|
|
fb955be26b | ||
|
|
4b27b03f48 | ||
|
|
2faf793f32 | ||
|
|
45bf886d90 | ||
|
|
210c446cd9 | ||
|
|
c43a034f43 | ||
|
|
86b9ed532d | ||
|
|
c5c3d2f9a1 | ||
|
|
5b19a80c2c | ||
|
|
3553854e15 | ||
|
|
37b6abac9f | ||
|
|
12da0a83c6 | ||
|
|
194844e9ed | ||
|
|
56688fa8ae | ||
|
|
9fbee9c741 | ||
|
|
c6470c26aa | ||
|
|
331b7a679d | ||
|
|
140418cc4c | ||
|
|
7d5a90d7a2 | ||
|
|
3bada9ff28 | ||
|
|
04c0645079 | ||
|
|
9ee4bc38d6 | ||
|
|
04bd1d492b | ||
|
|
5af7a1613c | ||
|
|
20486c72bf | ||
|
|
640415bfd9 | ||
|
|
f82893683c | ||
|
|
bc1d5698bb | ||
|
|
c4c58c0985 | ||
|
|
473871c0ad | ||
|
|
2b45305c74 | ||
|
|
9f202e2df3 | ||
|
|
f97ba62f38 | ||
|
|
986d51d784 | ||
|
|
1d420261fc | ||
|
|
246acd94bb | ||
|
|
7012be9baa | ||
|
|
a428f9817e | ||
|
|
470a293069 | ||
|
|
177985f1af | ||
|
|
480073a8ae | ||
|
|
2330dc51d3 | ||
|
|
443faabb17 | ||
|
|
325e69a700 | ||
|
|
b13b21cae2 | ||
|
|
30ad0fd721 | ||
|
|
4ee27624af | ||
|
|
178f7c1842 | ||
|
|
8e2dc01a01 | ||
|
|
b21b1abe94 | ||
|
|
50f5d9c4a8 | ||
|
|
1913b199b9 | ||
|
|
dd7e816091 | ||
|
|
6a5759674a | ||
|
|
311fbdaa9a | ||
|
|
580a606f23 | ||
|
|
a66ec7098d | ||
|
|
4fccc2e738 | ||
|
|
fdbc03cb2f | ||
|
|
4a1114bd16 | ||
|
|
5afa92c0cd | ||
|
|
47563c80f5 | ||
|
|
940a5aca7f | ||
|
|
de008271ff | ||
|
|
7c552ffda1 | ||
|
|
21cb4aa704 | ||
|
|
f97a77ab88 | ||
|
|
13ecefe8e1 | ||
|
|
a564295459 | ||
|
|
a116070779 | ||
|
|
d131c3715f | ||
|
|
fc07936182 | ||
|
|
a28bf742a7 | ||
|
|
0e170a314f | ||
|
|
5a69f4b213 | ||
|
|
95186c361c | ||
|
|
966ba0b89c | ||
|
|
f23a7c6d53 | ||
|
|
13b095c28e | ||
|
|
a50cc4eb55 | ||
|
|
bb599ae95f | ||
|
|
4ff7abb0ca | ||
|
|
5b3cb3f620 | ||
|
|
b2255e9e19 | ||
|
|
83d16e5284 | ||
|
|
981c1f854f | ||
|
|
324296646b | ||
|
|
ab419aa80a | ||
|
|
983d076c88 | ||
|
|
f3fbaa456b | ||
|
|
6129a932b7 | ||
|
|
5b37ea0a6f | ||
|
|
66073b7b13 | ||
|
|
0a12f86657 | ||
|
|
6444d7debc | ||
|
|
f4de72bd9d | ||
|
|
ffeab978fb | ||
|
|
2f8e6ebf15 | ||
|
|
c05e72f0bb | ||
|
|
e060616629 | ||
|
|
35d76f11ae | ||
|
|
036b281151 | ||
|
|
968be026d8 | ||
|
|
4d44b3848a | ||
|
|
8c62ada9ea | ||
|
|
97b18c05eb | ||
|
|
30f677610a | ||
|
|
3d46f08caa | ||
|
|
a728198e13 | ||
|
|
f15afd89a1 | ||
|
|
fa5d3b0caa | ||
|
|
c82511ce19 | ||
|
|
6f28bcbf71 | ||
|
|
1f65aa0426 | ||
|
|
e41d991a73 | ||
|
|
0f2333a431 | ||
|
|
8df44eb9a7 | ||
|
|
ac484f0696 | ||
|
|
80d9d8985a | ||
|
|
17a68e087f | ||
|
|
338b6c526a | ||
|
|
c13f865b5e | ||
|
|
9816b0c309 | ||
|
|
9a2561d130 | ||
|
|
369e63ed25 | ||
|
|
9a1b6105aa | ||
|
|
4c9ac6a3e3 | ||
|
|
6a4a5eb49b | ||
|
|
84cfe8c1f0 | ||
|
|
38700482a9 | ||
|
|
8c08511237 | ||
|
|
46158d364a | ||
|
|
1aabcc9e25 | ||
|
|
364145c349 | ||
|
|
05056ccab7 | ||
|
|
b98b786c10 | ||
|
|
1c8b734a17 | ||
|
|
a3bd4b91c1 | ||
|
|
8ef23b1425 | ||
|
|
f0eff92011 | ||
|
|
86064d8fc1 | ||
|
|
75b2fe9c36 | ||
|
|
4c04c8d5e0 | ||
|
|
6f7ebd22e3 | ||
|
|
4753f2bae7 | ||
|
|
bf14e37db3 | ||
|
|
90b1202876 | ||
|
|
314146622d | ||
|
|
5f883c7d5c | ||
|
|
08bda3b50d | ||
|
|
7be7c6d9f6 | ||
|
|
6b6abdadf6 | ||
|
|
25a9ec1ef5 | ||
|
|
491b7998ae | ||
|
|
bff45cc5d8 | ||
|
|
613e426468 | ||
|
|
faa6714cd6 | ||
|
|
bd577c2863 | ||
|
|
a04e68d8fe | ||
|
|
7f68bff3fc | ||
|
|
90f483331b | ||
|
|
8cbf227b03 | ||
|
|
84d4c8fa8a | ||
|
|
852fdd59a3 | ||
|
|
181cc6f120 | ||
|
|
a8004ba13f | ||
|
|
0913b58594 | ||
|
|
65ad78725a | ||
|
|
b0590e2928 | ||
|
|
f3b02603e2 | ||
|
|
9dfb068357 | ||
|
|
ae05054fc7 | ||
|
|
0d88c5e4f1 | ||
|
|
2fcdd2daf7 | ||
|
|
d25e1c2343 | ||
|
|
3c89d5133d | ||
|
|
e7f7954a3e | ||
|
|
481ce675dc | ||
|
|
b5f995b1fe | ||
|
|
4a7bf985cb | ||
|
|
821dd1b868 | ||
|
|
116a5ad597 | ||
|
|
49cd2c1df2 | ||
|
|
aa3ed90295 | ||
|
|
5890f1b8da | ||
|
|
d3dbdcedc6 | ||
|
|
96666937c9 | ||
|
|
87d1e56b63 | ||
|
|
51472bce35 | ||
|
|
a357814531 | ||
|
|
fa85658281 | ||
|
|
5fd25ec06e | ||
|
|
0f6291f551 | ||
|
|
e0cfb10739 | ||
|
|
55e29a13f8 | ||
|
|
e0952ab27e | ||
|
|
c9e1136898 | ||
|
|
45813bb156 | ||
|
|
f5d905f944 | ||
|
|
6066b2b0d5 | ||
|
|
4cb667ed21 | ||
|
|
19b89fea6f | ||
|
|
f39b5e8205 | ||
|
|
1750c78a50 | ||
|
|
d8252e491d | ||
|
|
9fd78a5e49 | ||
|
|
9d1bc4495f | ||
|
|
8bc71e8610 | ||
|
|
1d205aad29 | ||
|
|
518b53fac5 | ||
|
|
4ab0599e83 | ||
|
|
e1524fefab | ||
|
|
f8b23eeb30 | ||
|
|
e7090f8871 | ||
|
|
e9f1cb210c | ||
|
|
090cf59a5a | ||
|
|
ff7f29ef44 | ||
|
|
189e4cbdce | ||
|
|
1a8efb672f | ||
|
|
4c624ca058 | ||
|
|
d9a7e6e5ba | ||
|
|
5344e438db | ||
|
|
fb2b10b709 | ||
|
|
1dc476596d | ||
|
|
d3fce16e5c | ||
|
|
6c7907a25f | ||
|
|
a1f8cfc2ec | ||
|
|
ae63f520b1 | ||
|
|
4ca2313b30 | ||
|
|
da93fff35d | ||
|
|
ba0be7e9cc | ||
|
|
a182f376fb | ||
|
|
76993fba26 | ||
|
|
91cd67dbce | ||
|
|
649e3972c3 | ||
|
|
6954e8af3f | ||
|
|
90637b7ba2 | ||
|
|
1b1162e625 | ||
|
|
a5f2620858 | ||
|
|
4b3c122232 | ||
|
|
ad28148acb | ||
|
|
987b584604 | ||
|
|
9f78f3b65b | ||
|
|
f03e1c3a2f | ||
|
|
1ac7218337 | ||
|
|
573a729905 | ||
|
|
99e675dd18 | ||
|
|
8f3de4ff74 | ||
|
|
3b118bb7d9 | ||
|
|
29e0dbd14a | ||
|
|
f6a5466264 | ||
|
|
eaa1f08b35 | ||
|
|
59e90c508d | ||
|
|
8d56482d69 | ||
|
|
d4d18acebf | ||
|
|
7b9edd6327 | ||
|
|
ce08c2450b | ||
|
|
c14e217261 | ||
|
|
7f632389eb | ||
|
|
aa5c208e01 | ||
|
|
f8677b7d0c | ||
|
|
100cb24cf5 | ||
|
|
7ccffe2483 | ||
|
|
42d1ea394f | ||
|
|
3b4befc31c | ||
|
|
d07958672d | ||
|
|
091bb7f519 | ||
|
|
7b1465f8a8 | ||
|
|
82a7274ed4 | ||
|
|
b1e3818c98 | ||
|
|
571f3b2a97 | ||
|
|
0eab22268f | ||
|
|
1cd8c098d8 | ||
|
|
a3aa7b33eb | ||
|
|
b3ba7d104f | ||
|
|
5f4275f3b9 | ||
|
|
aa76b425e2 | ||
|
|
1d10f18da0 | ||
|
|
cb0912a9d4 | ||
|
|
c513d574d5 | ||
|
|
0ffc2372bb | ||
|
|
65c7a53cbf | ||
|
|
98beb64abe | ||
|
|
4af64f5249 | ||
|
|
d53ae1bbad | ||
|
|
a8c3311e69 | ||
|
|
c4eede9f25 | ||
|
|
8920afe054 | ||
|
|
78da832560 | ||
|
|
1bec2da4be | ||
|
|
41e2ce1d38 | ||
|
|
cfa5493023 | ||
|
|
4e65fa386f | ||
|
|
c4c741fb9e | ||
|
|
f5f667c38b | ||
|
|
1f26ac9ed7 | ||
|
|
5bf6722c64 | ||
|
|
6f9311cbcb | ||
|
|
0cf7154729 | ||
|
|
2a56305a21 | ||
|
|
ab3f4a7af7 | ||
|
|
852527171a | ||
|
|
917626163d | ||
|
|
f7403d8b37 | ||
|
|
ca0324dcc2 | ||
|
|
d314232ae6 | ||
|
|
5a0e552974 | ||
|
|
5ada3b1c22 | ||
|
|
b57d5aec66 | ||
|
|
00618ea9d3 | ||
|
|
2002a3f413 | ||
|
|
092d172f82 | ||
|
|
211934036e | ||
|
|
7838bf0d99 | ||
|
|
8d9db55e46 | ||
|
|
2904ec1701 | ||
|
|
6b70332b09 | ||
|
|
3ffc52b177 | ||
|
|
9996f226ff | ||
|
|
4e90676545 | ||
|
|
c630955890 | ||
|
|
a1d6aa730e | ||
|
|
b96e4719ab | ||
|
|
7d4f1d4ac0 | ||
|
|
b499e31051 | ||
|
|
598bd5f9ce | ||
|
|
85f7e0e44f | ||
|
|
b4552df41b | ||
|
|
09b57dfb1a | ||
|
|
09b82393f0 | ||
|
|
7637604ba2 | ||
|
|
9c543986ef | ||
|
|
b75e04207e | ||
|
|
33e1b0c0b1 | ||
|
|
490fa936eb | ||
|
|
52c39b3da2 | ||
|
|
61e773968c | ||
|
|
3bc6f48c14 | ||
|
|
720b5bbf26 | ||
|
|
3443a892ef | ||
|
|
bcb2b8e358 | ||
|
|
b80d3ab772 | ||
|
|
5daff9a7e3 | ||
|
|
867ceb1574 | ||
|
|
997bc22d94 | ||
|
|
bcb7819592 | ||
|
|
d7995cbf30 | ||
|
|
87549920d7 | ||
|
|
bbc2d14b37 | ||
|
|
47e92e8360 | ||
|
|
b963ca650c | ||
|
|
78bc2f3391 | ||
|
|
fe21d590e9 | ||
|
|
cd46d2b964 | ||
|
|
a142711031 | ||
|
|
b33445d17e | ||
|
|
4d2a43aabd | ||
|
|
e7be185502 | ||
|
|
cd755699e3 | ||
|
|
fc27def747 | ||
|
|
3c52abe2d8 | ||
|
|
0c1c791f7f | ||
|
|
25ef4d941d | ||
|
|
a942fc7fc0 | ||
|
|
1ba8dccc22 | ||
|
|
90df2299f6 | ||
|
|
e4ab7a812c | ||
|
|
89094c1f10 | ||
|
|
919478723c | ||
|
|
8254baf187 | ||
|
|
12d9bdd6f8 | ||
|
|
40c3e17ea9 | ||
|
|
c2225dda46 | ||
|
|
46c81972ec | ||
|
|
0edcf3a45a | ||
|
|
3f70de3579 | ||
|
|
09d0637c8b | ||
|
|
7470d6f3eb | ||
|
|
ba99684909 | ||
|
|
abcb8e8161 | ||
|
|
59355d38d5 | ||
|
|
852c11e11c | ||
|
|
70085c09ea | ||
|
|
4ef6a9863a | ||
|
|
27e396501c | ||
|
|
1074f20f9c | ||
|
|
9d5482a0c7 | ||
|
|
c7574a3d73 | ||
|
|
03e3684865 | ||
|
|
9ee7909eb0 | ||
|
|
e7d577fe17 | ||
|
|
0805bf6456 | ||
|
|
7fcb2c4cb0 | ||
|
|
a7aa45a891 | ||
|
|
239140d5e6 | ||
|
|
25e896a096 | ||
|
|
829c5b9a35 | ||
|
|
8ae9670250 | ||
|
|
56453266a6 | ||
|
|
5c42d96259 | ||
|
|
7efae88a5d | ||
|
|
515c6fe943 | ||
|
|
763df858de | ||
|
|
76cb95cd07 | ||
|
|
31a120ea9a | ||
|
|
a349d6934d | ||
|
|
7e964795b5 | ||
|
|
723334a1c1 | ||
|
|
5a37719111 | ||
|
|
d8d803ab8c | ||
|
|
313fde0bc6 | ||
|
|
d0b691cafb | ||
|
|
ed04da30dc | ||
|
|
0e45eed32a | ||
|
|
979b14bfae | ||
|
|
0fa105e781 | ||
|
|
b3c8abd0d8 | ||
|
|
5c095bb00b | ||
|
|
bad15df75d | ||
|
|
dfeae52619 | ||
|
|
795d695300 | ||
|
|
200fe5ab64 | ||
|
|
dd5894d690 | ||
|
|
1c1c464165 | ||
|
|
655324e179 | ||
|
|
5b0aa52d93 | ||
|
|
a4a2cb9721 | ||
|
|
881063e9fb | ||
|
|
63fe98d8ac | ||
|
|
08b4e9c709 | ||
|
|
41861a8d1f | ||
|
|
5feacb3b69 | ||
|
|
6325d56864 | ||
|
|
a811f49f58 | ||
|
|
bd883c53d2 | ||
|
|
fb71c3e1ce | ||
|
|
b415a9a598 | ||
|
|
b5ee31bad3 | ||
|
|
af5f521454 | ||
|
|
0761bff179 | ||
|
|
2a5d777219 | ||
|
|
6244502d87 | ||
|
|
4cb527795c | ||
|
|
a4361a447c | ||
|
|
4b77f648dd | ||
|
|
0a224c442b | ||
|
|
17d5683d98 | ||
|
|
8bdb9d72a9 | ||
|
|
31ffb0a2a1 | ||
|
|
8d49161b39 | ||
|
|
9281a3acae | ||
|
|
e0aa06cbc9 | ||
|
|
be9f000aad | ||
|
|
6094f5fcb7 | ||
|
|
0f30fa0bc5 | ||
|
|
3b665c28e3 | ||
|
|
55f41a12d7 | ||
|
|
b980363b7c | ||
|
|
1f7df2fd9b | ||
|
|
c02370145e | ||
|
|
ee4ae35eb9 | ||
|
|
33bcc4ba1c | ||
|
|
67c5b57cfd | ||
|
|
a5e2d7d239 | ||
|
|
c4406f4141 | ||
|
|
e8309e2431 | ||
|
|
c1ca971823 | ||
|
|
5bb9620aa1 | ||
|
|
8c2cfe9ab4 | ||
|
|
a962e2aca5 | ||
|
|
c5b8bbe0f4 | ||
|
|
e2ad7cbe2b | ||
|
|
60aeedd80e | ||
|
|
e8d7fd0953 | ||
|
|
18222b2467 | ||
|
|
84d8695677 | ||
|
|
24c2dd49ff | ||
|
|
5980af1caa | ||
|
|
91b9ccdb19 | ||
|
|
457a5d934a | ||
|
|
3d86e32eb5 | ||
|
|
48db65b178 | ||
|
|
6854dc5b02 | ||
|
|
c6f970b52a | ||
|
|
b2171f2e8f | ||
|
|
cc757729bd | ||
|
|
f6c5c63c0d | ||
|
|
871607b89c | ||
|
|
6b462c9895 | ||
|
|
1c258946c2 | ||
|
|
97acb9d4e4 | ||
|
|
e410a6f7ac | ||
|
|
f33e985b84 | ||
|
|
2bf7b49774 | ||
|
|
c65d78ff20 | ||
|
|
c91b7f7442 | ||
|
|
a6c74539f8 | ||
|
|
9e85786f00 | ||
|
|
2d0c73fef1 | ||
|
|
c549385e96 | ||
|
|
ffbe691085 | ||
|
|
6c1c723d50 | ||
|
|
d92ddc061c | ||
|
|
ea86870d7f | ||
|
|
1084f97927 | ||
|
|
3504a08163 | ||
|
|
ddf2e9f717 | ||
|
|
e6bc6591d8 | ||
|
|
4cda211590 | ||
|
|
8a8c82301d | ||
|
|
b78ce68baf | ||
|
|
814d147ad4 | ||
|
|
287089922b | ||
|
|
e4552b6da6 | ||
|
|
29079e5fd2 | ||
|
|
1a57ddef9a | ||
|
|
0eae7c59a9 | ||
|
|
9180481515 | ||
|
|
b1f8f084b8 | ||
|
|
b2f816eb31 | ||
|
|
a34488e47e | ||
|
|
afdfc62ee7 | ||
|
|
b8d796c19e | ||
|
|
255bcb1a99 | ||
|
|
57302403b6 | ||
|
|
ba44bfbe02 | ||
|
|
6bf4a37019 | ||
|
|
afce75826e | ||
|
|
30ceace544 | ||
|
|
f3417a1f3b | ||
|
|
c6f306af49 | ||
|
|
aab9c087bf | ||
|
|
d584f806f0 | ||
|
|
0b1b893740 | ||
|
|
7c9e3dab4f | ||
|
|
a6b46eef90 | ||
|
|
d51825c98d | ||
|
|
598458f759 | ||
|
|
3de7eb134d | ||
|
|
e89f2d5808 | ||
|
|
5136870879 | ||
|
|
06f5ffe296 | ||
|
|
f3a41dc260 | ||
|
|
65fa8c4c20 | ||
|
|
91919d9246 | ||
|
|
eb267862b7 | ||
|
|
dcb0bd26f3 | ||
|
|
e6b99c96e7 | ||
|
|
efe9692ee4 | ||
|
|
dba4dd513a | ||
|
|
92b58b654e | ||
|
|
4198991338 | ||
|
|
a80b2216ce | ||
|
|
6102f78552 | ||
|
|
330883cc81 | ||
|
|
0b2162d70c | ||
|
|
013ddc4bf1 | ||
|
|
c09979389d | ||
|
|
13e37493c9 | ||
|
|
fc1ba3c384 | ||
|
|
19b65e6afd | ||
|
|
716d1554b5 | ||
|
|
83b8c5cc0a | ||
|
|
fd428095d7 | ||
|
|
f83ecc83c8 | ||
|
|
b64569db57 | ||
|
|
c56cd56645 | ||
|
|
604eccb185 | ||
|
|
5fde328016 | ||
|
|
8bc3935130 | ||
|
|
80e610ea41 | ||
|
|
caba790774 | ||
|
|
1161c3f19e | ||
|
|
4be92d4650 | ||
|
|
411022175c | ||
|
|
f5218d53e0 | ||
|
|
2ba7087953 | ||
|
|
911e4072f4 | ||
|
|
9809e88ec0 | ||
|
|
0c7c92c40b | ||
|
|
bc2c96b284 | ||
|
|
2da70e914c | ||
|
|
3baa5ab208 | ||
|
|
6044010ffe | ||
|
|
56e3129f52 | ||
|
|
580ab151f1 | ||
|
|
2ccd0167f3 | ||
|
|
01961b4db6 | ||
|
|
db37d4f680 | ||
|
|
b44178b0ad | ||
|
|
b1e364efb6 | ||
|
|
48e90501c0 | ||
|
|
0b87d80f08 | ||
|
|
54d1c42ea7 | ||
|
|
7e84c2a934 | ||
|
|
8ae25feaee | ||
|
|
c99ef87a5f | ||
|
|
72c96f7054 | ||
|
|
b4e068af38 | ||
|
|
85ae0ef010 | ||
|
|
6e4913ade8 | ||
|
|
1787cd4ea2 | ||
|
|
a731e87267 | ||
|
|
007f9a3696 | ||
|
|
08bddb3dcf | ||
|
|
a638f3c31b | ||
|
|
d2c6f0c0a7 | ||
|
|
6e7645b4f4 | ||
|
|
2d05f45a6d | ||
|
|
b64e41f1cb | ||
|
|
738c491800 | ||
|
|
fe13a0ef23 | ||
|
|
3ab681415b | ||
|
|
bf213bc11f | ||
|
|
946d2a1d5e | ||
|
|
a44441bdda | ||
|
|
c6d71c4c14 | ||
|
|
fc06e1b91e | ||
|
|
e73f9970ee | ||
|
|
4c4d6948cc | ||
|
|
054717cc65 | ||
|
|
58652a5522 | ||
|
|
f7195a0192 | ||
|
|
6a6fb1dab7 | ||
|
|
70c1cef829 | ||
|
|
753399fdc7 | ||
|
|
0a463042e5 | ||
|
|
30e5ad14ae | ||
|
|
1b7ffa00bf | ||
|
|
f606d14b6d | ||
|
|
644a9ee978 | ||
|
|
0b88b6e144 | ||
|
|
99434be7c4 | ||
|
|
68c8ce6010 | ||
|
|
9fe0c6f364 | ||
|
|
3a4d516c24 | ||
|
|
a724993861 | ||
|
|
38f0266ecf | ||
|
|
7a539ef071 | ||
|
|
c4c9fac34a | ||
|
|
49a125ebd6 | ||
|
|
649c5cfe0c | ||
|
|
beb3abb7f3 | ||
|
|
32aa5113b5 | ||
|
|
ff7bb22903 | ||
|
|
c117f1eb60 | ||
|
|
1b1e20bee7 | ||
|
|
d5f143c4cc | ||
|
|
9e3499707c | ||
|
|
1b279acca8 | ||
|
|
831813fd81 | ||
|
|
44e91d4d9d | ||
|
|
7df332b2dc | ||
|
|
50a565f11d | ||
|
|
430872629d | ||
|
|
79650fbcb9 | ||
|
|
7fb56cd467 | ||
|
|
a524d9083f | ||
|
|
e7d190adf4 | ||
|
|
f5e32fb333 | ||
|
|
3d1ba53339 | ||
|
|
d0857dd009 | ||
|
|
4567ce5496 | ||
|
|
37f99a7fa2 | ||
|
|
4feff15973 | ||
|
|
25d7f4149e | ||
|
|
aa081f0080 | ||
|
|
278da5520a | ||
|
|
eba09158c3 | ||
|
|
eaf0265866 | ||
|
|
42ca74cbb0 | ||
|
|
64eeacb829 | ||
|
|
3eea52f5f3 | ||
|
|
3c0087da97 | ||
|
|
bb86f57628 | ||
|
|
57c93d37c2 | ||
|
|
5326351378 | ||
|
|
52e69cf25b | ||
|
|
3a214db461 | ||
|
|
54d82af9ff | ||
|
|
23b02079d3 | ||
|
|
2f6192a6e5 | ||
|
|
3f0df0a5c9 | ||
|
|
7f3543e802 | ||
|
|
017e68b79c | ||
|
|
1e968d6ab1 | ||
|
|
20e9b8e94f | ||
|
|
e71ae2e532 | ||
|
|
45ade381de | ||
|
|
30c18fd1ea | ||
|
|
65d16da98b | ||
|
|
1e6a090810 | ||
|
|
f402dd9692 | ||
|
|
f83bf524a8 | ||
|
|
ad2c8fc08e | ||
|
|
492cf00064 | ||
|
|
e29cfabfe9 | ||
|
|
0b59dd9e2a | ||
|
|
ee17b00288 | ||
|
|
728db354f9 | ||
|
|
1df99748ef | ||
|
|
452b23cc39 | ||
|
|
773a8d6a63 | ||
|
|
a2f836bb66 | ||
|
|
1aacc2b45f | ||
|
|
9562e70450 | ||
|
|
7fece371ad | ||
|
|
94a6c44012 | ||
|
|
b4775d52ed | ||
|
|
37427304fd | ||
|
|
47edebde38 | ||
|
|
1ce514972b | ||
|
|
6b36468d19 | ||
|
|
35e9301a6d | ||
|
|
d933e88f64 | ||
|
|
7549a547de | ||
|
|
51e02f9591 | ||
|
|
2d6184ccfc | ||
|
|
4752d2741e | ||
|
|
ae947a5ca4 | ||
|
|
6ab0506c9a | ||
|
|
0faa786b2e | ||
|
|
824be9278c | ||
|
|
aa00ad74b2 | ||
|
|
c1e2b2dee5 | ||
|
|
229ff7c38b | ||
|
|
e78b0fb447 | ||
|
|
956cfa5d7b | ||
|
|
70abde93de | ||
|
|
69b368e111 | ||
|
|
3019c540a1 | ||
|
|
eef9e38065 | ||
|
|
422d432712 | ||
|
|
74e117191e | ||
|
|
7e6162815f | ||
|
|
984d0fe93c | ||
|
|
4bb1071e1a | ||
|
|
2769d9389a | ||
|
|
6417c93517 | ||
|
|
4f0b0b9116 | ||
|
|
39745e49e7 | ||
|
|
cfb25da11f | ||
|
|
b57414a759 | ||
|
|
e884640785 | ||
|
|
351905fc48 | ||
|
|
648d3f5292 | ||
|
|
845a6b2f68 | ||
|
|
ebe6c2bca7 | ||
|
|
769430b8f0 | ||
|
|
393c9b4072 | ||
|
|
ab3d19d29e | ||
|
|
e94220a906 | ||
|
|
c568af347c | ||
|
|
5c1b4ba796 | ||
|
|
e13ad5ff26 | ||
|
|
5166231481 | ||
|
|
25300cc0e9 | ||
|
|
b637679083 | ||
|
|
c928224b55 | ||
|
|
83378f60c3 | ||
|
|
237b26ae79 | ||
|
|
e393a6db27 | ||
|
|
df45b5543b | ||
|
|
9f86064b81 | ||
|
|
73da2a1d14 | ||
|
|
26683f5c61 | ||
|
|
56572a09ef | ||
|
|
7b58b8c328 | ||
|
|
30b66dcd27 | ||
|
|
26e0dab381 | ||
|
|
93bb169c6c | ||
|
|
4e03fb3894 | ||
|
|
4d9d895b57 | ||
|
|
9fae39b45f | ||
|
|
e2cce3957e | ||
|
|
6bdde0e59a | ||
|
|
1e5a2583df | ||
|
|
b5c3d07ab3 | ||
|
|
705d942124 | ||
|
|
40a68482fe | ||
|
|
4d27d9c0a9 | ||
|
|
955cf86f05 | ||
|
|
b1dd34e18c | ||
|
|
2ea5eaca4c | ||
|
|
a92e749c9f | ||
|
|
8a988a9e84 | ||
|
|
8d1864d0cf | ||
|
|
4015763df6 | ||
|
|
f720c186c3 | ||
|
|
75949fb5ca | ||
|
|
033bc352f4 | ||
|
|
9e8c3f2192 | ||
|
|
39cb69737c | ||
|
|
106d02f4ee | ||
|
|
6fbfd0c6ce | ||
|
|
962f9413bf | ||
|
|
092704a1e1 | ||
|
|
69f0edec74 | ||
|
|
ae7247b008 | ||
|
|
08706b4813 | ||
|
|
a9b587b1cd | ||
|
|
5b806394b6 | ||
|
|
5170f029b2 | ||
|
|
999ec8202e | ||
|
|
658371336e | ||
|
|
447c2f9d52 | ||
|
|
c7dafff817 | ||
|
|
d238c8a7fb | ||
|
|
88b49880e1 | ||
|
|
6cf396f0d4 | ||
|
|
ac9aedecec | ||
|
|
b535fe2926 | ||
|
|
c8fba79f9f | ||
|
|
8f941939e2 | ||
|
|
75d3236fa7 | ||
|
|
6a3903afbe | ||
|
|
aeb9ea9871 | ||
|
|
7712e694b1 | ||
|
|
04ff966d63 | ||
|
|
a99032ccf4 | ||
|
|
953b5c637e | ||
|
|
2f4aef8fb2 | ||
|
|
53cfb1196d | ||
|
|
c7555938a5 | ||
|
|
cf1e7013f4 | ||
|
|
8258843ae1 | ||
|
|
67baae4441 | ||
|
|
a5509797bc | ||
|
|
3ff2d58a25 | ||
|
|
e7e02837e6 | ||
|
|
eaed9886cf | ||
|
|
cb9c6fc8f6 | ||
|
|
b4136568e5 | ||
|
|
8bb465f1e7 | ||
|
|
5511c063d6 | ||
|
|
0e1f66e0e3 | ||
|
|
2c71d2b57e | ||
|
|
a61c4b932c | ||
|
|
8b9d6b2f22 | ||
|
|
87f03c7c17 | ||
|
|
6ca77290ec | ||
|
|
d2a323a970 | ||
|
|
a6ef30cbbd | ||
|
|
184eaef74f | ||
|
|
27d49da7ea | ||
|
|
2ffcb50397 | ||
|
|
55d038e801 | ||
|
|
47066401d0 | ||
|
|
3eb7aa3809 | ||
|
|
1cb345c99f | ||
|
|
870b04a390 | ||
|
|
ec14112d82 | ||
|
|
b20373d59b | ||
|
|
9745b34290 | ||
|
|
b589077669 | ||
|
|
56d0517a47 | ||
|
|
ebaf8c6ccf | ||
|
|
029c54dc2b | ||
|
|
4ab8d0cb35 | ||
|
|
ab0abea781 | ||
|
|
fadbd7629d | ||
|
|
cf2267e196 | ||
|
|
77c4819e98 | ||
|
|
76d58fbbc8 | ||
|
|
7ec2ffc6af | ||
|
|
c848d4fd3b | ||
|
|
e3d43e754d | ||
|
|
bcb55a0e4c | ||
|
|
a9fbec2934 | ||
|
|
140e923982 | ||
|
|
680cf56746 | ||
|
|
7162aa65f4 | ||
|
|
a6e16a4e71 | ||
|
|
93b143a647 | ||
|
|
78aa439660 | ||
|
|
a3fd1a0ac6 | ||
|
|
302b253e9a | ||
|
|
7469b5dd96 | ||
|
|
e4ce10f180 | ||
|
|
2ecff7c12f | ||
|
|
5849a4a93f | ||
|
|
999a2ee86e | ||
|
|
eac4e49ceb | ||
|
|
5c9c34f1d2 | ||
|
|
0302a62af5 | ||
|
|
11774de541 | ||
|
|
90382c5889 | ||
|
|
ce841a3c4f | ||
|
|
d5ee0ef158 | ||
|
|
d06a4b155d | ||
|
|
3ddb48b647 | ||
|
|
957484588e | ||
|
|
cf22541dd5 | ||
|
|
61338bbb0c | ||
|
|
890b8df374 | ||
|
|
981ecb91c9 | ||
|
|
39921730b3 | ||
|
|
641ebef687 | ||
|
|
788ebbcdab | ||
|
|
ce35d6448e | ||
|
|
a1bc147849 |
No files matched your search
@@ -1,6 +1,4 @@
|
||||
# built application files
|
||||
*.apk
|
||||
*.ap_
|
||||
|
||||
# files for the dex VM
|
||||
*.dex
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.owncloud.android"
|
||||
android:versionCode="10040201"
|
||||
android:versionName="1.4.2 RC1">
|
||||
android:versionCode="20170130"
|
||||
android:versionName="20170130" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
@@ -44,6 +44,7 @@
|
||||
<!-- WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
|
||||
API >= 23; the app needs to handle this -->
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
|
||||
|
||||
<!-- Next permissions are always approved in installation time,
|
||||
the apps needs to do nothing special in runtime -->
|
||||
@@ -60,12 +61,12 @@
|
||||
<application
|
||||
android:name=".MainApp"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:label="Nextcloud beta"
|
||||
android:theme="@style/Theme.ownCloud.Toolbar"
|
||||
android:manageSpaceActivity="com.owncloud.android.ui.activity.ManageSpaceActivity">
|
||||
<activity
|
||||
android:name=".ui.activity.FileDisplayActivity"
|
||||
android:label="@string/app_name"
|
||||
android:label="Nextcloud beta"
|
||||
android:theme="@style/Theme.ownCloud.Toolbar.Drawer">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
@@ -81,6 +82,7 @@
|
||||
|
||||
android:taskAffinity=""
|
||||
android:excludeFromRecents="true"
|
||||
android:label="Nextcloud beta"
|
||||
android:theme="@style/Theme.ownCloud.NoActionBar">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
@@ -102,7 +104,7 @@
|
||||
android:theme="@style/Theme.ownCloud.Overlay" />
|
||||
<activity
|
||||
android:name=".ui.preview.PreviewVideoActivity"
|
||||
android:label="@string/app_name"
|
||||
android:label="Nextcloud beta"
|
||||
android:theme="@style/Theme.ownCloud.Fullscreen" />
|
||||
|
||||
<service
|
||||
@@ -142,8 +144,8 @@
|
||||
android:syncable="true" />
|
||||
|
||||
<provider
|
||||
android:name=".providers.UsersAndGroupsSearchProvider"
|
||||
android:authorities="com.nextcloud.android.providers.UsersAndGroupsSearchProvider"
|
||||
android:name="org.nextcloud.providers.UsersAndGroupsSearchProvider"
|
||||
android:authorities="org.nextcloud.beta.android.providers.UsersAndGroupsSearchProvider"
|
||||
android:enabled="true"
|
||||
android:exported="false"
|
||||
android:label="@string/search_users_and_groups_hint" />
|
||||
@@ -171,6 +173,12 @@
|
||||
android:resource="@xml/exposed_filepaths" />
|
||||
</provider>
|
||||
|
||||
<provider
|
||||
android:name=".ui.adapter.DiskLruImageCacheFileProvider"
|
||||
android:authorities="@string/authorityCache"
|
||||
android:exported="true">
|
||||
</provider>
|
||||
|
||||
<activity
|
||||
android:name=".authentication.AuthenticatorActivity"
|
||||
android:exported="true"
|
||||
@@ -206,8 +214,9 @@
|
||||
<activity android:name=".ui.activity.ConflictsResolveActivity"/>
|
||||
<activity android:name=".ui.activity.GenericExplanationActivity"/>
|
||||
<activity android:name=".ui.activity.ErrorsWhileCopyingHandlerActivity"/>
|
||||
|
||||
|
||||
<activity android:name=".ui.activity.LogHistoryActivity"/>
|
||||
<activity android:name=".ui.activity.ErrorReportActivity"/>
|
||||
|
||||
<activity android:name=".ui.errorhandling.ErrorShowActivity" />
|
||||
<activity android:name=".ui.activity.UploadListActivity" />
|
||||
@@ -250,16 +259,16 @@
|
||||
<activity
|
||||
android:name=".ui.activity.CopyToClipboardActivity"
|
||||
android:icon="@drawable/copy_link"
|
||||
android:label="@string/copy_link" />
|
||||
android:label="Copy link" />
|
||||
<activity
|
||||
android:name=".ui.activity.FolderPickerActivity"
|
||||
android:label="@string/app_name" />
|
||||
android:label="Nextcloud beta" />
|
||||
<activity
|
||||
android:name=".ui.activity.UploadPathActivity"
|
||||
android:label="@string/app_name" />
|
||||
android:label="Nextcloud beta" />
|
||||
<activity
|
||||
android:name=".ui.activity.ShareActivity"
|
||||
android:label="@string/share_dialog_title"
|
||||
android:label="Sharing"
|
||||
android:theme="@style/Theme.ownCloud.Dialog.NoTitle"
|
||||
android:launchMode="singleTop"
|
||||
android:windowSoftInputMode="adjustResize" >
|
||||
@@ -270,7 +279,7 @@
|
||||
android:resource="@xml/users_and_groups_searchable"/>
|
||||
</activity>
|
||||
<activity android:name=".ui.activity.ManageSpaceActivity"
|
||||
android:label="@string/manage_space_title"
|
||||
android:label="Manage space"
|
||||
android:theme="@style/Theme.ownCloud" />
|
||||
</application>
|
||||
|
||||
|
||||
@@ -1,79 +1,127 @@
|
||||
## 1.4.1 (January 27, 2017)
|
||||
- Share URLs to Nextcloud
|
||||
- Improve performance of Auto Upload view
|
||||
- Fix for removing files
|
||||
- Proper email sharee handling
|
||||
- Navigation drawer: Fix lag on older devices
|
||||
- Android 7: Pending jobs in upload view
|
||||
- Android 7: Auto upload: ignore ".tmp" files and folders
|
||||
- Bugfixes and design improvements
|
||||
## 2017-01-30
|
||||
- New sorting order dialog (nextcloud/newSortingLayout) [https://api.github.com/repos/nextcloud/android/pulls/575] added
|
||||
- Properly encode the share link password (nextcloud/encodeShareLinkPassword) [https://api.github.com/repos/nextcloud/android/pulls/510] added
|
||||
- New sorting order dialog (nextcloud/newSortingLayout) [https://api.github.com/repos/nextcloud/android/pulls/575] updated
|
||||
- Properly encode the share link password (nextcloud/encodeShareLinkPassword) [https://api.github.com/repos/nextcloud/android/pulls/510] updated
|
||||
- Fix DavDroid integration append necessary addition to mURI (justin-sleep/upstream) [https://api.github.com/repos/nextcloud/android/pulls/401] updated
|
||||
|
||||
## 1.4.0 (December 8, 2016)
|
||||
## 2017-01-22
|
||||
- prevent NoClassDefFound #547
|
||||
|
||||
- External SD card support
|
||||
- Auto Upload (Android 7+)
|
||||
- What's new start screen
|
||||
- Show/hide hidden folders & files
|
||||
- Upload view: switch between grid/list view
|
||||
- Descend into folder after creating it in uploader
|
||||
- Provisioning links to launch and prefill app with login data
|
||||
- Add open URL file feature
|
||||
- Sort favorite files first in list
|
||||
- Account switcher optimizations
|
||||
- Bugfixes and design improvements
|
||||
- Update library to 1.0.9
|
||||
## 2017-01-17
|
||||
- Fix quota display #544
|
||||
|
||||
## 1.3.1 (September 20, 2016)
|
||||
## 2017-01-10
|
||||
- Fix NPE an improve performance of Auto Upload view #530
|
||||
|
||||
- Move action hard to discover - difference between single/multi selection
|
||||
- Show move/copy context in toolbar title
|
||||
- Share file with dictadroid to Nextcloud
|
||||
- Don't show upload failure notification for already deleted files
|
||||
## 2016-12-31
|
||||
- Proper email sharee handling #492
|
||||
- Disable handling broadcast on Nougat and better #488
|
||||
- Pending jobs in upload view #487
|
||||
- Ignore files ending with ".tmp" #485
|
||||
- Fixed removing files #473 #479
|
||||
- Auto upload: delay job, check file #472
|
||||
- Auto upload: only files, no folders #469
|
||||
|
||||
## 1.3.0 (September 17, 2016)
|
||||
## 2016-12-22
|
||||
- Add upload URL file feature #327
|
||||
|
||||
- Files drop permission in share viewe
|
||||
- Display quota if configured/available in navigation drawer
|
||||
- Resume chunked uploads instead of complete restarts
|
||||
- Filter remote and local file lists
|
||||
- Simple integration with DAVdroid for calender and contacts sync
|
||||
- Mix folders and files on sort by date
|
||||
- Upload when charging option
|
||||
- Revamp upload options Move/Copy/Just-Upload
|
||||
- Text can be selected and shared to Nextcloud
|
||||
- Respect metered wifi and block instant uploads
|
||||
- Proper handling of .djvu files
|
||||
- Bugfixes and design improvements
|
||||
## 2016-12-15
|
||||
- Minor Usability improvements #449
|
||||
- Fix file modification date on upload #451
|
||||
|
||||
## 1.2.0 (July 29, 2016)
|
||||
## 2016-11-22
|
||||
- Updated federated sharing edit options #395
|
||||
|
||||
- Multi select capabilities
|
||||
- Confirmation dialog on account removal
|
||||
- Offline available filter in main menu
|
||||
- Sorting capability when choosing files to be uploaded
|
||||
- Video thumbnails if activated on server
|
||||
- Thumbnails during upload
|
||||
- Fixed user agent for file firewalling
|
||||
- Showing server side folder sizes
|
||||
- Text in test preview can now be selected
|
||||
- Search suggestions fixed for user/group search during sharing
|
||||
- Minor bugfixes
|
||||
## 2016-11-08
|
||||
- Streaming #183
|
||||
|
||||
## 1.1.0 (July 6, 2016)
|
||||
## 2016-10-26
|
||||
- New Instant Upload (Android 5+) #358
|
||||
|
||||
- New main menu to switch accounts easily
|
||||
- Ability to open Nextcloud hosted files (read-only) from other apps that support the standard file chooser (requires Android 4.4 / KitKat or higher)
|
||||
- "Select all files" for upload within a folder
|
||||
- Optional feature to auto-create monthly folders for your instant uploads
|
||||
- Revamped login screen
|
||||
- Minor bugfixes
|
||||
## 2016-10-19
|
||||
- Fix user info route (https://github.com/nextcloud/android-library/pull/21)
|
||||
- Begin debug logs when build type is debug #335
|
||||
- Account switcher optimizations #326
|
||||
- Fix TimSort #339
|
||||
- add preference to show hidden files #328
|
||||
- tune grid view of images #316
|
||||
- add grid view option when choosing a file from within the app #301
|
||||
|
||||
## 1.0.1 (June 20, 2016)
|
||||
## 2016-10-06
|
||||
- put cursor close in finally block to make sure no resource leak occurrs #306
|
||||
- change wordings for davdroid integration #293
|
||||
- added logging to gain information about upload issues
|
||||
- Sorts favourite files first in list #302
|
||||
- Add open URL file feature #298
|
||||
- fix remove failed #241
|
||||
- Crash when sending non-existing log #284
|
||||
- Fix NPE in ExpandableUploadListAdapter...setText #290
|
||||
- change wordings for davdroid integration #293
|
||||
- Fix NullPointerException in PreviewMediaFragment. #295
|
||||
|
||||
- Fix thumbnail preview support for new files
|
||||
- Add support for animated GIFs
|
||||
- Optimized uploader layout
|
||||
## 2016-09-26
|
||||
- update fix crash in dismissLoadingDialog #279
|
||||
- fix crash when sending non-existing log #284
|
||||
|
||||
## 1.0.0 (June 12, 2016)
|
||||
## 2016-09-22
|
||||
- update to latest 1.3.1 functionality
|
||||
- updated What's new #84
|
||||
- fix crash in dismissLoadingDialog #279
|
||||
- Provisioning Links to launch and prefill app with login data #248
|
||||
- fix remove failed #241
|
||||
|
||||
- Initial release of the Nextcloud Android app
|
||||
## 2016-09-18
|
||||
- update to latest 1.3.0 functionality
|
||||
- change caption for move and copy action #265
|
||||
|
||||
## 2016-09-15
|
||||
- update to latest 1.3.0 RC2 functionality
|
||||
- What's new #84
|
||||
|
||||
## 2016-09-07
|
||||
- update Motivate more users #239
|
||||
- DAVdroid login screen prefilled launch #236
|
||||
|
||||
## 2016-09-04
|
||||
- descend into folder after creating it in uploader #206
|
||||
- Motivate more users #239
|
||||
|
||||
## 2016-09-03
|
||||
- Display quota if configured/available in navigation drawer #204
|
||||
- bugfix for empty folder display #229
|
||||
- Update Toolchain/Android-Target to v24 #214
|
||||
- Restore display of remote folder size #235
|
||||
|
||||
## 2016-08-08
|
||||
- update all PR
|
||||
- search for the right ocShare with public link #197
|
||||
- Fix comparator determining order of list of uploads #199
|
||||
- generate thumbnails only if mCurrentUpload is not null #205
|
||||
|
||||
## 2016-07-31
|
||||
- External SD support #92
|
||||
- move / copy updated #178
|
||||
- prevents NPE when selecting empty local folder #180
|
||||
|
||||
## 2016-07-30
|
||||
- Upload when charging #171
|
||||
|
||||
## 2016-07-28
|
||||
Fresh start on current master with these PRs:
|
||||
- Resized images #69
|
||||
- Instant upload in the context of multi account support #98
|
||||
- mix folders and files on sort by date #135
|
||||
- Files drop #141
|
||||
- Receive text file #142
|
||||
- Pinch zoom #143
|
||||
- Resize cache #144
|
||||
- filter for oc file list and local file list #152
|
||||
- djvu is not an image #153
|
||||
- delay instant upload when metered wifi is used #161
|
||||
- rename instant upload path #162
|
||||
- Refresh when app starts #166
|
||||
- Disable suggestions in password field #167
|
||||
- resume chunked uploads #168
|
||||
|
||||
From now on every new PR with "3. to review" will be merged to beta and published
|
||||
@@ -0,0 +1 @@
|
||||
20170130
|
||||
@@ -0,0 +1,16 @@
|
||||
2017-01-30
|
||||
Branches: 14
|
||||
[01 / 14] Integration (nextcloud/integration) [https://api.github.com/repos/nextcloud/android/pulls/590] CONFLICT
|
||||
[02 / 14] Feature user information (nextcloud/feature-user-information) [https://api.github.com/repos/nextcloud/android/pulls/585] CONFLICT
|
||||
[03 / 14] New sorting order dialog (nextcloud/newSortingLayout) [https://api.github.com/repos/nextcloud/android/pulls/575] merged successfully
|
||||
[04 / 14] Search inside of text files (nextcloud/bugfix-454) [https://api.github.com/repos/nextcloud/android/pulls/565] CONFLICT
|
||||
[05 / 14] Avoid toggling favourite for all selected files (mario/improvement-toggle-favourite-only-relevant-files) [https://api.github.com/repos/nextcloud/android/pulls/524] CONFLICT
|
||||
[06 / 14] Properly encode the share link password (nextcloud/encodeShareLinkPassword) [https://api.github.com/repos/nextcloud/android/pulls/510] merged successfully
|
||||
[07 / 14] show SVG images (nextcloud/svgView) [https://api.github.com/repos/nextcloud/android/pulls/465] CONFLICT
|
||||
[08 / 14] Fix file modification date on upload (nextcloud/fix_file_modification_date_on_upload) [https://api.github.com/repos/nextcloud/android/pulls/451] CONFLICT
|
||||
[09 / 14] Fix DavDroid integration append necessary addition to mURI (justin-sleep/upstream) [https://api.github.com/repos/nextcloud/android/pulls/401] merged successfully
|
||||
[10 / 14] Updated federated sharing edit options (nextcloud/federated_sharing_edit_options) [https://api.github.com/repos/nextcloud/android/pulls/395] CONFLICT
|
||||
[11 / 14] Streaming (nextcloud/streaming) [https://api.github.com/repos/nextcloud/android/pulls/183] CONFLICT
|
||||
[12 / 14] Resize cache (nextcloud/resizeCache) [https://api.github.com/repos/nextcloud/android/pulls/144] CONFLICT
|
||||
[13 / 14] Instant upload in the context of multi account support (nextcloud/instant_upload_multi_account) [https://api.github.com/repos/nextcloud/android/pulls/98] CONFLICT
|
||||
[14 / 14] Resized images (nextcloud/resizedImages) [https://api.github.com/repos/nextcloud/android/pulls/69] CONFLICT
|
||||
@@ -0,0 +1,3 @@
|
||||
justin-sleep/upstream
|
||||
nextcloud/encodeShareLinkPassword
|
||||
nextcloud/newSortingLayout
|
||||
@@ -41,7 +41,7 @@ dependencies {
|
||||
/// dependencies for app building
|
||||
compile name: 'touch-image-view'
|
||||
|
||||
compile 'com.github.nextcloud:android-library:1.0.10'
|
||||
compile 'com.github.nextcloud:android-library:beta-SNAPSHOT'
|
||||
compile "com.android.support:support-v4:${supportLibraryVersion}"
|
||||
compile "com.android.support:design:${supportLibraryVersion}"
|
||||
compile 'com.jakewharton:disklrucache:2.0.2'
|
||||
@@ -100,7 +100,14 @@ android {
|
||||
testInstrumentationRunnerArgument "TEST_PASSWORD", "\"$System.env.OCTEST_APP_PASSWORD\""
|
||||
testInstrumentationRunnerArgument "TEST_SERVER_URL", "\"$System.env.OCTEST_SERVER_BASE_URL\""
|
||||
|
||||
applicationId "com.nextcloud.client"
|
||||
applicationId "com.nextcloud.android.beta"
|
||||
versionCode 20170130
|
||||
versionName "20170130"
|
||||
|
||||
// disable the experimental Jack build tools.
|
||||
jackOptions {
|
||||
enabled false
|
||||
}
|
||||
}
|
||||
|
||||
// adapt structure from Eclipse to Gradle/Android Studio expectations;
|
||||
@@ -139,9 +146,15 @@ android {
|
||||
preDexLibraries = preDexEnabled && !travisBuild
|
||||
}
|
||||
|
||||
dexOptions {
|
||||
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
|
||||
preDexLibraries = preDexEnabled && !travisBuild
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
incremental false
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
@@ -151,6 +164,10 @@ android {
|
||||
packagingOptions {
|
||||
exclude 'META-INF/LICENSE.txt'
|
||||
}
|
||||
signingConfigs {
|
||||
release
|
||||
}
|
||||
|
||||
task checkstyle(type: Checkstyle) {
|
||||
configFile = file("${rootProject.projectDir}/checkstyle.xml")
|
||||
configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/config/quality/checkstyle/suppressions.xml").absolutePath
|
||||
@@ -202,4 +219,16 @@ android {
|
||||
}
|
||||
check.dependsOn 'checkstyle', 'findbugs', 'pmd', 'lint'
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.hasProperty('RELEASE_STORE_FILE')) {
|
||||
android.signingConfigs.release.storeFile = file(RELEASE_STORE_FILE)
|
||||
android.signingConfigs.release.storePassword = RELEASE_STORE_PASSWORD
|
||||
android.signingConfigs.release.keyAlias = RELEASE_KEY_ALIAS
|
||||
android.signingConfigs.release.keyPassword = RELEASE_KEY_PASSWORD
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="25.6"
|
||||
height="25.6"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.0 r15299"
|
||||
sodipodi:docname="alphabetical_asc.svg"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\newSortingLayout\res\drawable-xxxhdpi\ic_alphabetical_asc.png"
|
||||
inkscape:export-xdpi="360"
|
||||
inkscape:export-ydpi="360">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1005"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="27.81"
|
||||
inkscape:cx="5.6317334"
|
||||
inkscape:cy="12"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<g
|
||||
id="g4174"
|
||||
transform="matrix(0.92801764,0,0,0.92801764,3.1474097,-0.40986228)"
|
||||
style="fill:#757575;fill-opacity:1">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4"
|
||||
d="m 4.9604453,12.687998 v 1.805869 h 4.0659743 v 0.05724 L 4.535752,20.951046 v 1.190987 H 11.86263 V 20.326932 H 7.4088934 v -0.07571 L 11.796157,13.954685 V 12.687992 H 4.9604453 Z"
|
||||
style="fill:#757575;fill-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4-2"
|
||||
d="M 6.9569297,2.3102604 4.0357798,11.764298 h 2.2416409 l 0.679509,-2.5536989 h 2.7328076 l 0.7367497,2.5536989 h 2.326579 L 9.7931408,2.3102604 Z m 1.314702,1.539974 h 0.027698 L 8.5356806,4.7587082 8.781264,5.6764144 9.3776808,7.6798582 H 7.2689873 L 7.8358603,5.6948791 8.0629788,4.7679408 Z"
|
||||
style="fill:#757575;fill-opacity:1" />
|
||||
</g>
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 19.12569,12.771205 -1.428741,-0.0014 -0.0086,6.184289 -1.53692,-1.544835 -1.015429,1.013386 3.263957,3.275355 3.275354,-3.263958 -1.013385,-1.015428 -1.544836,1.53692 z"
|
||||
id="path4-3"
|
||||
sodipodi:nodetypes="cccccccccc"
|
||||
style="fill:#757575;fill-opacity:1" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="25.6"
|
||||
height="25.6"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.0 r15299"
|
||||
sodipodi:docname="alphabetical_desc.svg"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\newSortingLayout\res\drawable-xxxhdpi\ic_alphabetical_desc.png"
|
||||
inkscape:export-xdpi="360"
|
||||
inkscape:export-ydpi="360">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1005"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="27.81"
|
||||
inkscape:cx="-2.5868955"
|
||||
inkscape:cy="12"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<path
|
||||
style="fill:#757575;fill-opacity:1"
|
||||
d="m 7.7507904,1.734489 v 1.675878 h 3.7732956 v 0.05312 L 7.3566676,9.402743 V 10.508 H 14.15614 V 8.823554 H 10.022993 V 8.753294 L 14.094451,2.909997 V 1.734483 H 7.7507904 Z"
|
||||
id="path4"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="fill:#757575;fill-opacity:1"
|
||||
d="M 9.6035632,11.364486 6.8926845,20.138 H 8.9729668 L 9.6035632,17.768122 H 12.139657 L 12.823374,20.138 h 2.159106 l -2.746863,-8.773514 z m 1.2200668,1.429123 h 0.0257 l 0.219338,0.84308 0.227906,0.851647 0.553485,1.859232 H 9.8931541 l 0.5260679,-1.842096 0.21077,-0.860215 0.193634,-0.851648 z"
|
||||
id="path4-2"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 19.12569,12.771205 -1.428741,-0.0014 -0.0086,6.184289 -1.53692,-1.544835 -1.015429,1.013386 3.263957,3.275355 3.275354,-3.263958 -1.013385,-1.015428 -1.544836,1.53692 z"
|
||||
id="path4-3"
|
||||
sodipodi:nodetypes="cccccccccc"
|
||||
style="fill:#757575;fill-opacity:1" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z" /></svg>
|
||||
|
After Width: | Height: | Size: 366 B |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z" /></svg>
|
||||
|
After Width: | Height: | Size: 426 B |
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="25.6"
|
||||
height="25.6"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.0 r15299"
|
||||
sodipodi:docname="modified_asc.svg"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\newSortingLayout\res\drawable-xxxhdpi\ic_modification_asc.png"
|
||||
inkscape:export-xdpi="360"
|
||||
inkscape:export-ydpi="360">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1005"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="22.63"
|
||||
inkscape:cx="15.581769"
|
||||
inkscape:cy="6.7845462"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<path
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.06666672"
|
||||
d="M 11.589844 2.1328125 A 9.4570668 9.4570668 0 0 0 2.1328125 11.589844 C 2.1328125 16.79123 6.3600875 21.048828 11.589844 21.048828 A 9.4570668 9.4570668 0 0 0 13.015625 20.921875 L 13.015625 19.017578 A 7.5656534 7.5656534 0 0 1 11.589844 19.15625 A 7.5656534 7.5656534 0 0 1 4.0253906 11.589844 A 7.5656534 7.5656534 0 0 1 11.589844 4.0253906 A 7.5656534 7.5656534 0 0 1 18.978516 10 L 20.902344 10 A 9.4570668 9.4570668 0 0 0 11.589844 2.1328125 z M 10.644531 6.8632812 L 10.644531 12.535156 L 13.015625 13.957031 L 13.015625 12.392578 L 12.0625 11.826172 L 12.0625 6.8632812 L 10.644531 6.8632812 z "
|
||||
transform="scale(0.93749999)"
|
||||
id="path4" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 13.720313,16.930993 h 5.580275 v -1.736354 h -5.580275 m 0,-4.340882 v 1.736354 h 8.370413 v -1.736354 m -8.370413,10.418118 h 2.790138 v -1.736351 h -2.790138 z"
|
||||
id="path4-8"
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.16980636" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="25.6"
|
||||
height="25.6"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.0 r15299"
|
||||
sodipodi:docname="modified_desc.svg"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\newSortingLayout\res\drawable-xxxhdpi\ic_modified_desc.png"
|
||||
inkscape:export-xdpi="360"
|
||||
inkscape:export-ydpi="360">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1005"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="22.63"
|
||||
inkscape:cx="15.581769"
|
||||
inkscape:cy="6.7845462"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<path
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.06666672"
|
||||
d="M 11.589844 2.1328125 A 9.4570668 9.4570668 0 0 0 2.1328125 11.589844 C 2.1328125 16.79123 6.3600875 21.048828 11.589844 21.048828 A 9.4570668 9.4570668 0 0 0 13.015625 20.921875 L 13.015625 19.017578 A 7.5656534 7.5656534 0 0 1 11.589844 19.15625 A 7.5656534 7.5656534 0 0 1 4.0253906 11.589844 A 7.5656534 7.5656534 0 0 1 11.589844 4.0253906 A 7.5656534 7.5656534 0 0 1 18.978516 10 L 20.902344 10 A 9.4570668 9.4570668 0 0 0 11.589844 2.1328125 z M 10.644531 6.8632812 L 10.644531 12.535156 L 13.015625 13.957031 L 13.015625 12.392578 L 12.0625 11.826172 L 12.0625 6.8632812 L 10.644531 6.8632812 z "
|
||||
transform="scale(0.93749999)"
|
||||
id="path4" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 13.720313,15.194639 h 5.580275 v 1.736354 h -5.580275 m 0,4.340882 v -1.736354 h 8.370413 v 1.736354 M 13.720313,10.853757 h 2.790138 v 1.736351 h -2.790138 z"
|
||||
id="path4-8"
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.16980636" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="25.6"
|
||||
height="25.6"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.0 r15299"
|
||||
sodipodi:docname="size_asc.svg"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\newSortingLayout\res\drawable-xxxhdpi\ic_size_asc.png"
|
||||
inkscape:export-xdpi="360"
|
||||
inkscape:export-ydpi="360">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1005"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="22.627418"
|
||||
inkscape:cx="15.398362"
|
||||
inkscape:cy="7.3901816"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer3"
|
||||
inkscape:label="Layer 3" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Layer 2"
|
||||
style="display:inline" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 13.720501,15.194819 h 5.580275 v 1.736354 h -5.580275 m 0,4.340882 v -1.736354 h 8.370414 v 1.736354 M 13.720501,10.853937 h 2.790138 v 1.736351 h -2.790138 z"
|
||||
id="path4-8"
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.16980636" />
|
||||
<path
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.06666672"
|
||||
d="M 10.412109 1.8046875 A 9.4570668 9.4570668 0 0 0 0.95507812 11.259766 A 9.4570668 9.4570668 0 0 0 10.412109 20.71875 A 9.4570668 9.4570668 0 0 0 13.015625 20.337891 L 13.015625 18.351562 A 7.5656534 7.5656534 0 0 1 10.412109 18.826172 A 7.5656534 7.5656534 0 0 1 2.8457031 11.259766 A 7.5656534 7.5656534 0 0 1 10.412109 3.6953125 A 7.5656534 7.5656534 0 0 1 17.869141 10 L 19.773438 10 A 9.4570668 9.4570668 0 0 0 10.412109 1.8046875 z M 10.412109 5.5878906 L 10.412109 11.259766 L 6.4023438 15.269531 C 8.191236 17.058424 10.881148 17.400168 13.015625 16.296875 L 13.015625 10 L 15.941406 10 C 15.711784 8.9928477 15.206905 8.0355871 14.419922 7.2519531 C 13.313445 6.1360192 11.859041 5.5878906 10.412109 5.5878906 z "
|
||||
transform="scale(0.93749999)"
|
||||
id="path4-88" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="25.6"
|
||||
height="25.6"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.0 r15299"
|
||||
sodipodi:docname="size_desc.svg"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\newSortingLayout\res\drawable-xxxhdpi\ic_size_desc.png"
|
||||
inkscape:export-xdpi="360"
|
||||
inkscape:export-ydpi="360">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1005"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="22.63"
|
||||
inkscape:cx="11.152894"
|
||||
inkscape:cy="8.874615"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer3"
|
||||
inkscape:label="Layer 3" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Layer 2"
|
||||
style="display:inline" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1" />
|
||||
<path
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.06666672"
|
||||
d="M 10.412109 1.8046875 A 9.4570668 9.4570668 0 0 0 0.95507812 11.259766 A 9.4570668 9.4570668 0 0 0 10.412109 20.71875 A 9.4570668 9.4570668 0 0 0 13.015625 20.337891 L 13.015625 18.351562 A 7.5656534 7.5656534 0 0 1 10.412109 18.826172 A 7.5656534 7.5656534 0 0 1 2.8457031 11.259766 A 7.5656534 7.5656534 0 0 1 10.412109 3.6953125 A 7.5656534 7.5656534 0 0 1 17.869141 10 L 19.773438 10 A 9.4570668 9.4570668 0 0 0 10.412109 1.8046875 z M 10.412109 5.5878906 L 10.412109 11.259766 L 6.4023438 15.269531 C 8.191236 17.058424 10.881148 17.400168 13.015625 16.296875 L 13.015625 10 L 15.941406 10 C 15.711784 8.9928477 15.206905 8.0355871 14.419922 7.2519531 C 13.313445 6.1360192 11.859041 5.5878906 10.412109 5.5878906 z "
|
||||
transform="scale(0.93749999)"
|
||||
id="path4-88" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 13.720312,16.930993 h 5.580275 v -1.736354 h -5.580275 m 0,-4.340882 v 1.736354 h 8.370413 v -1.736354 m -8.370413,10.418118 h 2.790138 v -1.736351 h -2.790138 z"
|
||||
id="path4-8"
|
||||
style="fill:#757575;fill-opacity:1;stroke-width:1.16980636" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -1,4 +1,4 @@
|
||||
#Tue Aug 16 10:44:46 CEST 2016
|
||||
#Sat Sep 03 07:48:32 CEST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@anim/shake_interpolator"
|
||||
android:duration="500"
|
||||
android:fromXDelta="0.0"
|
||||
android:toXDelta="5.0"
|
||||
>
|
||||
</translate>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<cycleInterpolator
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:cycles="6.0"
|
||||
>
|
||||
</cycleInterpolator>
|
||||
|
After Width: | Height: | Size: 958 B |
|
After Width: | Height: | Size: 976 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 739 B |
|
After Width: | Height: | Size: 728 B |
|
After Width: | Height: | Size: 839 B |
|
After Width: | Height: | Size: 836 B |
|
After Width: | Height: | Size: 911 B |
|
After Width: | Height: | Size: 919 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
@@ -0,0 +1,225 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2012 Bartek Przybylski
|
||||
Copyright (C) 2015 ownCloud Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2,
|
||||
as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/standard_padding">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/header"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/pass_code_enter_pass_code"
|
||||
android:textColor="@android:color/black"
|
||||
android:gravity="center_horizontal"
|
||||
android:textSize="@dimen/two_line_primary_text_size"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/explanation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/pass_code_configure_your_pass_code_explanation"
|
||||
android:textAppearance="@android:style/TextAppearance.Small"
|
||||
android:gravity="center_horizontal"
|
||||
android:textSize="@dimen/two_line_secondary_text_size"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center">
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/passcode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:errorEnabled="true"
|
||||
android:layout_weight="10">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/passcodeEditText"
|
||||
android:focusable="true"
|
||||
android:cursorVisible="true"
|
||||
android:imeOptions="flagNoExtractUi"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center"
|
||||
android:layout_margin="10dp"
|
||||
android:inputType="numberPassword"
|
||||
android:digits="1234567890"
|
||||
android:maxLength="4"
|
||||
android:maxLines="1"
|
||||
android:textIsSelectable="false"
|
||||
android:longClickable="false">
|
||||
<requestFocus/>
|
||||
</EditText>
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/cancel"
|
||||
android:theme="@style/Button.Primary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/common_cancel"
|
||||
android:layout_weight="1"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button1"
|
||||
android:text="1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button2"
|
||||
android:text="2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button3"
|
||||
android:text="3"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button4"
|
||||
android:text="4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button5"
|
||||
android:text="5"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button6"
|
||||
android:text="6"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button7"
|
||||
android:text="7"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button8"
|
||||
android:text="8"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button9"
|
||||
android:text="9"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/clear"
|
||||
android:text="CLEAR"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button0"
|
||||
android:text="0"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/back"
|
||||
android:text="BACK\nSoftKey"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dp"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -26,7 +26,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:singleLine="false"
|
||||
android:layout_margin="@dimen/standard_margin"
|
||||
style="?android:attr/editTextPreferenceStyle"
|
||||
android:text="@string/manage_space_description"
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<!--
|
||||
Nextcloud Android client application
|
||||
|
||||
Copyright (C) 2016 Andy Scherzinger
|
||||
Copyright (C) 2016 Nextcloud.
|
||||
Copyright (C) 2015 Andy Scherzinger
|
||||
Copyright (C) 2016 Nextcloud
|
||||
Copyright (C) 2015 ownCloud
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<!--
|
||||
Nextcloud Android client application
|
||||
|
||||
Copyright (C) 2016 Andy Scherzinger
|
||||
Copyright (C) 2016 Nextcloud.
|
||||
Copyright (C) 2015 Andy Scherzinger
|
||||
Copyright (C) 2016 Nextcloud
|
||||
Copyright (C) 2015 ownCloud
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2015 ownCloud Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2,
|
||||
as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="1" >
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/scrollView1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginBottom="@dimen/standard_margin"
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/standard_padding"
|
||||
android:paddingRight="@dimen/standard_padding">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/logTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/empty"
|
||||
android:typeface="monospace"/>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/historyButtonBar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="@dimen/standard_margin"
|
||||
android:layout_marginLeft="@dimen/standard_margin"
|
||||
android:layout_marginRight="@dimen/standard_margin">
|
||||
|
||||
<Button
|
||||
android:id="@+id/cancelErrorLogButton"
|
||||
android:theme="@style/Button"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/error_log_exit" />
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/sendErrorLogButton"
|
||||
android:theme="@style/Button.Primary"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/error_log_send" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -18,11 +18,13 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/standard_padding" >
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/standard_padding">
|
||||
|
||||
|
||||
<TextView
|
||||
@@ -33,7 +35,7 @@
|
||||
android:textColor="@android:color/black"
|
||||
android:gravity="center_horizontal"
|
||||
android:textSize="@dimen/two_line_primary_text_size"
|
||||
/>
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/explanation"
|
||||
@@ -43,42 +45,33 @@
|
||||
android:textAppearance="@android:style/TextAppearance.Small"
|
||||
android:gravity="center_horizontal"
|
||||
android:textSize="@dimen/two_line_secondary_text_size"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
/>
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/passcode"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal" >
|
||||
app:errorEnabled="true">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txt0"
|
||||
android:id="@+id/passcodeEditText"
|
||||
android:focusable="true"
|
||||
style="@style/PassCodeStyle"
|
||||
android:cursorVisible="true"
|
||||
android:imeOptions="flagNoExtractUi"
|
||||
><requestFocus/></EditText>
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center"
|
||||
android:layout_margin="10dp"
|
||||
android:inputType="numberPassword"
|
||||
android:digits="1234567890"
|
||||
android:maxLength="4"
|
||||
android:maxLines="1"
|
||||
android:textIsSelectable="false"
|
||||
android:longClickable="false">
|
||||
<requestFocus/>
|
||||
</EditText>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txt1"
|
||||
style="@style/PassCodeStyle"
|
||||
android:cursorVisible="true"
|
||||
android:imeOptions="flagNoExtractUi"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txt2"
|
||||
style="@style/PassCodeStyle"
|
||||
android:cursorVisible="true"
|
||||
android:imeOptions="flagNoExtractUi"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txt3"
|
||||
style="@style/PassCodeStyle"
|
||||
android:cursorVisible="true"
|
||||
android:imeOptions="flagNoExtractUi"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/cancel"
|
||||
@@ -87,4 +80,137 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/common_cancel" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button1"
|
||||
android:text="1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button2"
|
||||
android:text="2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button3"
|
||||
android:text="3"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button4"
|
||||
android:text="4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button5"
|
||||
android:text="5"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button6"
|
||||
android:text="6"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button7"
|
||||
android:text="7"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button8"
|
||||
android:text="8"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button9"
|
||||
android:text="9"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/clear"
|
||||
android:text="CLEAR"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/button0"
|
||||
android:text="0"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/back"
|
||||
android:text="BACK\nSoftKey"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dp"
|
||||
android:theme="@style/Button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,279 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Nextcloud Android client application
|
||||
|
||||
Copyright (C) 2017 Andy Scherzinger
|
||||
Copyright (C) 2017 Nextcloud
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3 of the License, or any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public
|
||||
License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<LinearLayout
|
||||
android:id="@+id/root"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="300dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/header"
|
||||
style="@style/Base.DialogWindowTitle.AppCompat"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/standard_margin"
|
||||
android:text="@string/sort_by"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/scrollableSortings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sortByNameAscending"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingLeft="@dimen/standard_padding"
|
||||
android:paddingRight="@dimen/standard_half_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:src="@drawable/ic_alphabetical_asc"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sortByNameAZText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="1"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingRight="@dimen/standard_double_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:text="@string/menu_item_sort_by_name_a_z"
|
||||
android:textColor="@color/standard_grey"
|
||||
android:textSize="@dimen/two_line_primary_text_size"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/standard_margin"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sortByNameDescending"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingLeft="@dimen/standard_padding"
|
||||
android:paddingRight="@dimen/standard_half_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:src="@drawable/ic_alphabetical_desc"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sortByNameZAText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="1"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingRight="@dimen/standard_double_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:text="@string/menu_item_sort_by_name_z_a"
|
||||
android:textColor="@color/standard_grey"
|
||||
android:textSize="@dimen/two_line_primary_text_size"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sortByModificationDateDescending"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingLeft="@dimen/standard_padding"
|
||||
android:paddingRight="@dimen/standard_half_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:src="@drawable/ic_modification_desc"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sortByModificationDateNewestFirstText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="1"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingRight="@dimen/standard_double_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:text="@string/menu_item_sort_by_date_newest_first"
|
||||
android:textColor="@color/standard_grey"
|
||||
android:textSize="@dimen/two_line_primary_text_size"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/standard_margin"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sortByModificationDateAscending"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingLeft="@dimen/standard_padding"
|
||||
android:paddingRight="@dimen/standard_half_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:src="@drawable/ic_modification_asc"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sortByModificationDateOldestFirstText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="1"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingRight="@dimen/standard_double_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:text="@string/menu_item_sort_by_date_oldest_first"
|
||||
android:textColor="@color/standard_grey"
|
||||
android:textSize="@dimen/two_line_primary_text_size"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sortBySizeDescending"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingLeft="@dimen/standard_padding"
|
||||
android:paddingRight="@dimen/standard_half_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:src="@drawable/ic_size_desc"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sortBySizeBiggestFirstText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="1"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingRight="@dimen/standard_double_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:text="@string/menu_item_sort_by_size_biggest_first"
|
||||
android:textColor="@color/standard_grey"
|
||||
android:textSize="@dimen/two_line_primary_text_size"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/standard_margin"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sortBySizeAscending"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingLeft="@dimen/standard_padding"
|
||||
android:paddingRight="@dimen/standard_half_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:src="@drawable/ic_size_asc"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sortBySizeSmallestFirstText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="1"
|
||||
android:paddingBottom="@dimen/standard_half_padding"
|
||||
android:paddingRight="@dimen/standard_double_padding"
|
||||
android:paddingTop="@dimen/standard_half_padding"
|
||||
android:text="@string/menu_item_sort_by_size_smallest_first"
|
||||
android:textColor="@color/standard_grey"
|
||||
android:textSize="@dimen/two_line_primary_text_size"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/cancel"
|
||||
style="@style/Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/common_cancel"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -29,6 +29,13 @@
|
||||
app:showAsAction="never"
|
||||
android:showAsAction="never"
|
||||
android:orderInCategory="1" />
|
||||
<item
|
||||
android:id="@+id/action_stream_file"
|
||||
android:title="@string/action_stream_file"
|
||||
android:icon="@drawable/ic_view"
|
||||
app:showAsAction="never"
|
||||
android:showAsAction="never"
|
||||
android:orderInCategory="1" />
|
||||
<item
|
||||
android:id="@+id/action_open_file_with"
|
||||
android:title="@string/actionbar_open_with"
|
||||
|
||||
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 38 KiB |
@@ -26,10 +26,4 @@
|
||||
<item>@string/uploader_upload_files_behaviour_only_upload</item>
|
||||
<item>@string/uploader_upload_files_behaviour_upload_and_delete_from_source</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="menu_items_sort_by_options" translatable="false">
|
||||
<item>@string/menu_item_sort_by_name</item>
|
||||
<item>@string/menu_item_sort_by_date</item>
|
||||
<item>@string/menu_item_sort_by_size</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@@ -44,6 +44,7 @@
|
||||
<!-- Colors -->
|
||||
<color name="color_accent">@color/owncloud_blue_accent</color>
|
||||
<color name="dialog_list_item">#1F1F1F</color>
|
||||
<color name="standard_grey">#757575</color>
|
||||
|
||||
<!-- standard material color definitions -->
|
||||
<color name="primary">@color/owncloud_blue</color>
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
<dimen name="file_icon_size_grid">128dp</dimen>
|
||||
<dimen name="file_avatar_size">128dp</dimen>
|
||||
<dimen name="standard_padding">16dp</dimen>
|
||||
<dimen name="standard_double_padding">32dp</dimen>
|
||||
<dimen name="standard_half_padding">8dp</dimen>
|
||||
<dimen name="standard_quarter_padding">4dp</dimen>
|
||||
<dimen name="standard_margin">16dp</dimen>
|
||||
|
||||
@@ -4,17 +4,20 @@
|
||||
<bool name="is_beta">false</bool>
|
||||
|
||||
<!-- App name and other strings-->
|
||||
<string name="app_name">Nextcloud</string>
|
||||
<string name="account_type">nextcloud</string> <!-- better if was a domain name; but changing it now would require migrate accounts when the app is updated -->
|
||||
<string name="authority">org.nextcloud</string> <!-- better if was the app package with ".provider" appended ; it identifies the provider -->
|
||||
<string name="document_provider_authority">org.nextcloud.documents</string>
|
||||
<string name="file_provider_authority">org.nextcloud.files</string>
|
||||
<string name="app_name">Nextcloud beta</string>
|
||||
<string name="account_type">nextcloud.beta</string> <!-- better if was a domain name; but changing it now would require
|
||||
migrate accounts when the app is updated -->
|
||||
<string name="authority">org.nextcloud.beta.provider</string> <!-- better if was the app package with ".provider" appended ; it identifies the provider -->
|
||||
<string name="authorityCache">org.nextcloud.beta.imageCache.provider</string>
|
||||
<string name="authoritySearch">org.nextcloud.beta.android.providers.UsersAndGroupsSearchProvider</string>
|
||||
<string name="document_provider_authority">org.nextcloud.beta.documents</string>
|
||||
<string name="file_provider_authority">org.nextcloud.beta.files</string>
|
||||
<string name ="db_file">nextcloud.db</string>
|
||||
<string name ="db_name">nextcloud</string>
|
||||
<string name ="data_folder">nextcloud</string>
|
||||
<string name ="log_name">nextcloud</string>
|
||||
<string name ="log_name">beta</string>
|
||||
<string name ="default_display_name_for_root_folder">Nextcloud</string>
|
||||
<string name ="user_agent">Mozilla/5.0 (Android) ownCloud-android/%1$s</string>
|
||||
<string name ="user_agent">Mozilla/5.0 (Android) nextcloud-android/%1$s</string>
|
||||
|
||||
<!-- URLs and flags related -->
|
||||
<string name="server_url"></string>
|
||||
@@ -64,8 +67,10 @@
|
||||
<bool name="imprint_enabled">false</bool>
|
||||
<bool name="recommend_enabled">true</bool>
|
||||
<bool name="feedback_enabled">true</bool>
|
||||
<bool name="logger_enabled">false</bool>
|
||||
<bool name="logger_enabled">true</bool>
|
||||
<string name="url_help">https://help.nextcloud.com/c/feature</string>
|
||||
<string name="beta_link">https://github.com/nextcloud/android/raw/beta/apks/nextcloud-beta-</string>
|
||||
<string name="beta_latest">https://github.com/nextcloud/android/raw/beta/apks/latest</string>
|
||||
<string name="url_imprint"></string>
|
||||
<string name="mail_recommend">"mailto:"</string>
|
||||
<string name="mail_feedback">"mailto:[email protected]"</string>
|
||||
|
||||
@@ -13,9 +13,14 @@
|
||||
<string name="actionbar_send_file">Send</string>
|
||||
<string name="actionbar_sort">Sort</string>
|
||||
<string name="actionbar_sort_title">Sort by</string>
|
||||
<string name="menu_item_sort_by_name">A - Z</string>
|
||||
<string name="menu_item_sort_by_date">Newest - Oldest</string>
|
||||
<string name="menu_item_sort_by_size">Biggest - Smallest</string>
|
||||
<string name="sort_by">Sort by</string>
|
||||
<string name="menu_item_sort_by_name_a_z">A - Z</string>
|
||||
<string name="menu_item_sort_by_name_z_a">Z - A</string>
|
||||
<string name="menu_item_sort_by_date_newest_first">Newest first</string>
|
||||
<string name="menu_item_sort_by_date_oldest_first">Oldest first</string>
|
||||
<string name="menu_item_sort_by_size_biggest_first">Biggest first</string>
|
||||
<string name="menu_item_sort_by_size_smallest_first">Smallest first</string>
|
||||
|
||||
<string name="drawer_item_all_files">All files</string>
|
||||
<string name="drawer_item_on_device">On device</string>
|
||||
<string name="drawer_item_settings">Settings</string>
|
||||
@@ -317,10 +322,16 @@
|
||||
<string name="preview_image_description">Image preview</string>
|
||||
<string name="preview_image_error_unknown_format">This image cannot be shown</string>
|
||||
|
||||
<string name="error_log_exit">Exit</string>
|
||||
<string name="error_log_send">Send Log</string>
|
||||
<string name="error_log_title">Error Log</string>
|
||||
|
||||
<string name="error__upload__local_file_not_copied">%1$s could not be copied to %2$s local folder</string>
|
||||
<string name="prefs_instant_upload_path_title">Instant upload folder</string>
|
||||
<string name="prefs_folder_sync_local_path_title">Local folder</string>
|
||||
<string name="prefs_folder_sync_remote_path_title">Remote folder</string>
|
||||
<string name="prefs_instant_upload_account">Account</string>
|
||||
<string name="prefs_instant_upload_path">Path</string>
|
||||
<string name="prefs_instant_upload_path_use_subfolders_title">Use subfolders</string>
|
||||
<string name="prefs_instant_upload_path_use_subfolders_summary">Store in subfolders based on year and month</string>
|
||||
|
||||
@@ -446,12 +457,17 @@
|
||||
<string name="upload_move_files">Move file</string>
|
||||
<string name="select_all">Select all</string>
|
||||
|
||||
<string name="action_stream_file">Stream file with external player</string>
|
||||
<string name="stream_expose_password">Do you want to stream this file with an external app?\n\nCAUTION: This may expose your password locally on the display!</string>
|
||||
|
||||
<string name="pref_behaviour_entries_keep_file">kept in original folder</string>
|
||||
<string name="pref_behaviour_entries_move">moved to app folder</string>
|
||||
<string name="pref_behaviour_entries_delete_file">deleted</string>
|
||||
<string name="prefs_storage_path">Storage path</string>
|
||||
<string name="prefs_common">Common</string>
|
||||
|
||||
<string name="pref_cache_size">Cache size</string>
|
||||
|
||||
<string name="share_dialog_title">Sharing</string>
|
||||
<string name="share_file">Share %1$s</string>
|
||||
<string name="share_with_user_section_title">Share with users and groups</string>
|
||||
@@ -484,6 +500,7 @@
|
||||
<string name="share_privilege_can_edit_delete">delete</string>
|
||||
<string name="edit_share_unshare">Stop sharing</string>
|
||||
<string name="edit_share_done">done</string>
|
||||
<string name="changelog">https://github.com/nextcloud/android/raw/beta/CHANGELOG.md</string>
|
||||
|
||||
<string name="action_retry_uploads">Retry failed</string>
|
||||
<string name="action_clear_failed_uploads">Clear failed</string>
|
||||
@@ -553,6 +570,7 @@
|
||||
<string name="storage_description_default">Default</string>
|
||||
<string name="storage_description_sd_no">SD card %1$d</string>
|
||||
<string name="storage_description_unknown">Unknown</string>
|
||||
<string name="prefs_category_beta">Beta</string>
|
||||
|
||||
<!-- What's new feature and texts to show -->
|
||||
<string name="whats_new_title">What\'s new in Nextcloud</string>
|
||||
|
||||
@@ -253,21 +253,7 @@
|
||||
<item name="@android:windowEnterAnimation">@anim/pump_bottom</item>
|
||||
<item name="@android:windowExitAnimation">@anim/disappear</item>
|
||||
</style>
|
||||
|
||||
<style name="PassCodeStyle">
|
||||
<item name="android:layout_width">50dp</item>
|
||||
<item name="android:layout_height">50dp</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:layout_margin">10dp</item>
|
||||
<item name="android:inputType">numberDecimal</item>
|
||||
<item name="android:numeric">decimal</item>
|
||||
<item name="android:digits">1234567890</item>
|
||||
<item name="android:maxLength">1</item>
|
||||
<item name="android:password">true</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<style name="OAuthDialog" parent="style/Theme.AppCompat.Light.Dialog.Alert">
|
||||
<item name="windowNoTitle">false</item>
|
||||
<item name="colorAccent">@color/owncloud_blue_accent</item>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle android:key="instant_uploading"
|
||||
android:title="@string/prefs_instant_upload"
|
||||
android:summary="@string/prefs_instant_upload_summary"/>
|
||||
<com.owncloud.android.ui.PreferenceWithLongSummary
|
||||
<com.owncloud.android.ui.PreferenceWithTwoLineLongSummary
|
||||
android:title="@string/prefs_instant_upload_path_title"
|
||||
android:key="instant_upload_path" />
|
||||
<com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle
|
||||
@@ -36,8 +36,6 @@
|
||||
android:summary="@string/prefs_instant_upload_path_use_subfolders_summary"
|
||||
android:key="instant_upload_path_use_subfolders" />
|
||||
<com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle
|
||||
android:dependency="instant_uploading"
|
||||
android:disableDependentsState="true"
|
||||
android:title="@string/instant_upload_on_wifi"
|
||||
android:key="instant_upload_on_wifi"/>
|
||||
<com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle
|
||||
@@ -81,6 +79,7 @@
|
||||
<PreferenceCategory android:title="@string/prefs_category_details">
|
||||
<android.preference.CheckBoxPreference android:title="@string/prefs_passcode" android:key="set_pincode" />
|
||||
<android.preference.CheckBoxPreference android:title="@string/prefs_show_hidden_files" android:key="show_hidden_files" />
|
||||
<EditTextPreference android:title="@string/pref_cache_size" android:key="pref_cache_size" android:digits="0123456789"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/prefs_category_more" android:key="more">
|
||||
@@ -95,4 +94,15 @@
|
||||
<Preference android:title="@string/about_title" android:id="@+id/about_app" android:key="about_app" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/prefs_category_beta" android:key="beta_category">
|
||||
<Preference android:id="@+id/beta_link"
|
||||
android:title="Download latest beta version"
|
||||
android:key="beta_link" />
|
||||
|
||||
<Preference android:id="@+id/changelog_link"
|
||||
android:title="Changelog beta version"
|
||||
android:key="changelog_link" />
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -22,7 +22,7 @@
|
||||
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:label="@string/app_name"
|
||||
android:hint="@string/search_users_and_groups_hint"
|
||||
android:searchSuggestAuthority="com.nextcloud.android.providers.UsersAndGroupsSearchProvider"
|
||||
android:searchSuggestIntentAction="com.nextcloud.android.providers.UsersAndGroupsSearchProvider.action.SHARE_WITH"
|
||||
android:searchSuggestAuthority="org.nextcloud.beta.android.providers.UsersAndGroupsSearchProvider"
|
||||
android:searchSuggestIntentAction="org.nextcloud.beta.android.providers.UsersAndGroupsSearchProvider.action.SHARE_WITH"
|
||||
android:searchSuggestThreshold="1" >
|
||||
</searchable>
|
||||
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
date=$(date +%Y%m%d)
|
||||
|
||||
# use the current date
|
||||
mkdir -p apks
|
||||
echo $date > apks/latest
|
||||
sed -i s"#android:versionCode=.*#android:versionCode=\"$date\"#" AndroidManifest.xml
|
||||
sed -i s"#versionCode .*#versionCode $date#" build.gradle
|
||||
|
||||
sed -i s"#android:versionName=.*\"#android:versionName=\"$date\"#" AndroidManifest.xml
|
||||
sed -i s"#versionName .*#versionName \"$date\"#" build.gradle
|
||||
|
||||
sed -e 's#\@string/app_name#Nextcloud beta#' -e 's#\@string/copy_link#Copy link#' -e 's#\@string/share_dialog_title#Sharing#' -e 's#\@string/manage_space_title#Manage space#' AndroidManifest.xml -i
|
||||
|
||||
# build signed apk
|
||||
gradle assembleRelease
|
||||
|
||||
if [ $? != 0 ] ; then
|
||||
echo "Build error!"
|
||||
exit
|
||||
fi
|
||||
|
||||
mv build/outputs/apk/android-release.apk apks/nextcloud-beta-$date.apk
|
||||
cp apks/nextcloud-beta-$date.apk apks/latest.apk
|
||||
|
||||
# remove all but the latest 5 apks
|
||||
/bin/ls -t apks/*.apk | awk 'NR>6' | xargs rm -f
|
||||
|
||||
git add .
|
||||
git commit
|
||||
git push
|
||||
|
||||
git tag beta-$date
|
||||
git push origin beta-$date
|
||||
|
||||
# remove all but the latest 5 tags
|
||||
git tag|grep beta | sort -r | awk 'NR>5' | xargs -n 1 git push --delete origin
|
||||
git tag|grep beta | sort -r | awk 'NR>5' | xargs -n 1 git tag -d
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ~/.git/githubPass
|
||||
|
||||
pullRequests=$(curl -u "$GITHUB_USER:$GITHUB_PASS" 2>/dev/null https://api.github.com/search/issues?q=repo:nextcloud/android+state:open+type:pr+label:%22ready%20for%20beta%22 | grep pulls | cut -d'"' -f4)
|
||||
|
||||
for pr in $pullRequests; do
|
||||
xml=$(curl -u "$GITHUB_USER:$GITHUB_PASS" 2> /dev/null $pr)
|
||||
branchName=$(echo "$xml" | grep \"label\" | head -n1 | cut -d'"' -f 4| tr ":" "/")
|
||||
title=$(echo "$xml" | grep "title" | head -n1 | cut -d'"' -f 4 | tr -d "(" | tr -d ")" | tr -d "[" | tr -d "]")
|
||||
|
||||
echo "$title ("$branchName") ["$pr"]"
|
||||
done
|
||||
|
||||
## add remote repos
|
||||
for repoUrl in $(curl -u "$GITHUB_USER:$GITHUB_PASS" 2> /dev/null $pullRequests | grep \"git_url\" | sort | uniq | cut -f4 -d"\"" ); do
|
||||
repoName=$(echo $repoUrl | cut -f4 -d"/")
|
||||
git remote add $repoName $repoUrl 2>/dev/null
|
||||
done
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "git pull:"
|
||||
git pull || exit
|
||||
echo
|
||||
|
||||
branches=$(scripts/getBranchesForBeta)
|
||||
branchesCount=$(echo $branches | tr " " "\n" | wc -l)
|
||||
count=1
|
||||
echo "Branches: $branchesCount"
|
||||
|
||||
for branch in $branches; do
|
||||
echo "[$count / $branchesCount]" $branch
|
||||
|
||||
if [ $(echo $branch | grep -c "^origin") -eq 0 ] ; then
|
||||
# remote repo
|
||||
git fetch $(echo $branch | cut -f1 -d"/")
|
||||
fi
|
||||
|
||||
git merge --no-edit $branch 1> /dev/null
|
||||
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "resolve conflict in androidStudio, after resolving press RETURN"
|
||||
read
|
||||
git add . && git commit --no-edit 1> /dev/null
|
||||
else
|
||||
echo " merged"
|
||||
fi
|
||||
|
||||
let count++
|
||||
done
|
||||
|
||||
git push
|
||||
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
|
||||
statusFile="betaUpdateStatus"
|
||||
|
||||
git pull -q || exit
|
||||
|
||||
branches=$(scripts/getBranchesForBeta)
|
||||
branchesCount=$(echo "$branches" | wc -l)
|
||||
count=1
|
||||
|
||||
date +%F > $statusFile
|
||||
echo "Branches: $branchesCount" >> $statusFile
|
||||
|
||||
while read -r branch; do
|
||||
echo -n "[$(printf "%02d" $count) / $(printf "%02d" $branchesCount)] " >> $statusFile
|
||||
|
||||
branchName=$(echo $branch | cut -d"(" -f2 | cut -d")" -f1 | tr ":" "/")
|
||||
|
||||
if [ $(echo $branchName | grep -c "^origin") -eq 0 ] ; then
|
||||
# remote repo
|
||||
git fetch -q $(echo $branchName | cut -f1 -d"/") 1> /dev/null
|
||||
fi
|
||||
|
||||
git merge --no-edit $branchName 1> /dev/null
|
||||
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "$branch CONFLICT" >> $statusFile
|
||||
git merge --abort
|
||||
else
|
||||
echo "$branch merged successfully" >> $statusFile
|
||||
fi
|
||||
|
||||
let count++
|
||||
done <<< "$branches"
|
||||
|
||||
## Update Changelog.md
|
||||
tmpFile=$(tempfile)
|
||||
cp CHANGELOG.md $tmpFile
|
||||
|
||||
echo "## $(date +%F)" > CHANGELOG.md
|
||||
|
||||
## add new branches
|
||||
if [ $(comm -13 branches_old <(cat betaUpdateStatus | grep succ | cut -d"(" -f2 | cut -d")" -f1 | sort) | wc -l) -gt 0 ] ; then
|
||||
egrep "$(comm -13 branches_old <(cat betaUpdateStatus | grep succ | cut -d"(" -f2 | cut -d")" -f1 | sort) )" betaUpdateStatus | cut -d"]" -f2 | sed s'#$#]#'g | sed s'#^#-#'g | sed s'#$# added#'g >> CHANGELOG.md
|
||||
fi
|
||||
cat betaUpdateStatus | grep succ | cut -d"(" -f2 | cut -d")" -f1 | sort > branches_old
|
||||
|
||||
## add updated branches
|
||||
if [ $(cat betaUpdateStatus | grep succ -c) -gt 0 ]; then
|
||||
cat betaUpdateStatus | grep succ | cut -d"]" -f2 | sed s'#$#]#'g | sed s'#^#-#'g | sed s'#$# updated#'g >> CHANGELOG.md
|
||||
fi
|
||||
|
||||
echo >> CHANGELOG.md
|
||||
cat $tmpFile >> CHANGELOG.md
|
||||
|
||||
git add .
|
||||
git commit -m "daily beta build"
|
||||
git push
|
||||
@@ -42,6 +42,9 @@ import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.services.observer.SyncedFolderObserverService;
|
||||
import com.owncloud.android.ui.activity.Preferences;
|
||||
import com.owncloud.android.ui.activity.WhatsNewActivity;
|
||||
import com.owncloud.android.utils.ExceptionHandler;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
@@ -76,10 +79,15 @@ public class MainApp extends Application {
|
||||
@SuppressWarnings("unused")
|
||||
private boolean mBound;
|
||||
|
||||
@SuppressFBWarnings("ST") public void onCreate(){
|
||||
@SuppressFBWarnings("ST")
|
||||
public void onCreate(){
|
||||
super.onCreate();
|
||||
MainApp.mContext = getApplicationContext();
|
||||
|
||||
// Setup handler for uncaught exceptions.
|
||||
Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));
|
||||
|
||||
|
||||
SharedPreferences appPrefs =
|
||||
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
MainApp.storagePath = appPrefs.getString(Preferences.PreferenceKeys.STORAGE_PATH, Environment.
|
||||
@@ -96,17 +104,15 @@ public class MainApp extends Application {
|
||||
|
||||
// initialise thumbnails cache on background thread
|
||||
new ThumbnailsCacheManager.InitDiskCacheTask().execute();
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
|
||||
String dataFolder = getDataFolder();
|
||||
|
||||
// Set folder for store logs
|
||||
Log_OC.setLogDataFolder(dataFolder);
|
||||
String dataFolder = getDataFolder() + getAppContext().getResources().getString(R.string.log_name);
|
||||
|
||||
Log_OC.startLogging(MainApp.storagePath);
|
||||
Log_OC.d("Debug", "start logging");
|
||||
}
|
||||
// Set folder for store logs
|
||||
Log_OC.setLogDataFolder(dataFolder);
|
||||
|
||||
Log_OC.startLogging(MainApp.storagePath);
|
||||
Log_OC.d("Debug", "start logging");
|
||||
|
||||
Log_OC.d("SyncedFolderObserverService", "Start service SyncedFolderObserverService");
|
||||
Intent i = new Intent(this, SyncedFolderObserverService.class);
|
||||
@@ -169,7 +175,7 @@ public class MainApp extends Application {
|
||||
MainApp.storagePath = path;
|
||||
}
|
||||
|
||||
// Methods to obtain Strings referring app_name
|
||||
// Methods to obtain Strings referring app_name
|
||||
// From AccountAuthenticator
|
||||
// public static final String ACCOUNT_TYPE = "owncloud";
|
||||
public static String getAccountType() {
|
||||
|
||||
@@ -40,6 +40,7 @@ public class AccountUtils {
|
||||
private static final String TAG = AccountUtils.class.getSimpleName();
|
||||
|
||||
public static final String WEBDAV_PATH_4_0_AND_LATER = "/remote.php/webdav";
|
||||
public static final String DAV_PATH = "/remote.php/dav";
|
||||
private static final String ODAV_PATH = "/remote.php/odav";
|
||||
private static final String SAML_SSO_PATH = "/remote.php/webdav";
|
||||
public static final String STATUS_PATH = "/status.php";
|
||||
@@ -331,4 +332,28 @@ public class AccountUtils {
|
||||
}
|
||||
return (serverVersion != null ? serverVersion.isSearchUsersSupported() : false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns account for instant upload or null, if not defined.
|
||||
* @return instant upload account or null
|
||||
*/
|
||||
public static Account getInstantUploadAccount(Context context) {
|
||||
return getAccount(com.owncloud.android.db.PreferenceManager.instantPictureUploadPathAccount(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns account for instant video upload or null, if not defined.
|
||||
* @return instant video upload account or null
|
||||
*/
|
||||
public static Account getInstantVideoUploadAccount(Context context) {
|
||||
return getAccount(com.owncloud.android.db.PreferenceManager.instantVideoUploadPathAccount(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns account for given account name or null, if not defined.
|
||||
* @return account named accountNam or null
|
||||
*/
|
||||
private static Account getAccount(String accountName) {
|
||||
return getOwnCloudAccountByName(MainApp.getAppContext(), accountName);
|
||||
}
|
||||
}
|
||||
@@ -22,19 +22,29 @@
|
||||
package com.owncloud.android.datamodel;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Bitmap.CompressFormat;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Point;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.media.ThumbnailUtils;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.view.Display;
|
||||
import android.view.MenuItem;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.view.View;
|
||||
import android.view.WindowManager;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import com.owncloud.android.MainApp;
|
||||
import com.owncloud.android.R;
|
||||
@@ -67,12 +77,12 @@ public class ThumbnailsCacheManager {
|
||||
private static final String TAG = ThumbnailsCacheManager.class.getSimpleName();
|
||||
|
||||
private static final String CACHE_FOLDER = "thumbnailCache";
|
||||
private static final Integer CACHE_SIZE_MB = 10;
|
||||
|
||||
private static final Object mThumbnailsDiskCacheLock = new Object();
|
||||
private static DiskLruImageCache mThumbnailCache = null;
|
||||
private static boolean mThumbnailCacheStarting = true;
|
||||
|
||||
private static final int DISK_CACHE_SIZE = 1024 * 1024 * 10; // 10MB
|
||||
|
||||
private static final CompressFormat mCompressFormat = CompressFormat.JPEG;
|
||||
private static final int mCompressQuality = 70;
|
||||
private static OwnCloudClient mClient = null;
|
||||
@@ -89,7 +99,7 @@ public class ThumbnailsCacheManager {
|
||||
R.drawable.file_movie
|
||||
);
|
||||
|
||||
|
||||
|
||||
public static class InitDiskCacheTask extends AsyncTask<File, Void, Void> {
|
||||
|
||||
@Override
|
||||
@@ -99,7 +109,19 @@ public class ThumbnailsCacheManager {
|
||||
|
||||
if (mThumbnailCache == null) {
|
||||
try {
|
||||
// Check if media is mounted or storage is built-in, if so,
|
||||
SharedPreferences appPrefs =
|
||||
PreferenceManager.getDefaultSharedPreferences(MainApp.getAppContext());
|
||||
// due to backward compatibility
|
||||
Integer cacheSize = CACHE_SIZE_MB * 1024 * 1024;
|
||||
try {
|
||||
cacheSize = appPrefs.getInt("pref_cache_size", cacheSize);
|
||||
} catch (ClassCastException e) {
|
||||
String temp = appPrefs.getString("pref_cache_size",
|
||||
cacheSize.toString());
|
||||
cacheSize = Integer.decode(temp) * 1024 * 1024;
|
||||
}
|
||||
|
||||
// Check if media is mounted or storage is built-in, if so,
|
||||
// try and use external cache dir; otherwise use internal cache dir
|
||||
final String cachePath =
|
||||
MainApp.getAppContext().getExternalCacheDir().getPath() +
|
||||
@@ -108,7 +130,7 @@ public class ThumbnailsCacheManager {
|
||||
final File diskCacheDir = new File(cachePath);
|
||||
mThumbnailCache = new DiskLruImageCache(
|
||||
diskCacheDir,
|
||||
DISK_CACHE_SIZE,
|
||||
cacheSize,
|
||||
mCompressFormat,
|
||||
mCompressQuality
|
||||
);
|
||||
@@ -163,6 +185,7 @@ public class ThumbnailsCacheManager {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static Bitmap getBitmapFromDiskCache(String key) {
|
||||
synchronized (mThumbnailsDiskCacheLock) {
|
||||
// Wait while disk cache is started from background thread
|
||||
@@ -180,14 +203,40 @@ public class ThumbnailsCacheManager {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets max size of cache
|
||||
* @param maxSize in MB
|
||||
* @return
|
||||
*/
|
||||
public static boolean setMaxSize(long maxSize){
|
||||
if (mThumbnailCache != null){
|
||||
mThumbnailCache.setMaxSize(maxSize * 1024 * 1024);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows max cache size
|
||||
* @return max cache size in MB.
|
||||
*/
|
||||
public static long getMaxSize(){
|
||||
if (mThumbnailCache == null) {
|
||||
new ThumbnailsCacheManager.InitDiskCacheTask().execute();
|
||||
}
|
||||
return mThumbnailCache.getMaxSize() / 1024 / 1024;
|
||||
}
|
||||
|
||||
public static class ThumbnailGenerationTask extends AsyncTask<Object, Void, Bitmap> {
|
||||
private final WeakReference<ImageView> mImageViewReference;
|
||||
private WeakReference<ProgressBar> mProgressWheelRef;
|
||||
private static Account mAccount;
|
||||
private Object mFile;
|
||||
private Boolean mIsThumbnail;
|
||||
private String mImageKey = null;
|
||||
private FileDataStorageManager mStorageManager;
|
||||
|
||||
|
||||
public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager,
|
||||
Account account) {
|
||||
// Use a WeakReference to ensure the ImageView can be garbage collected
|
||||
@@ -208,6 +257,12 @@ public class ThumbnailsCacheManager {
|
||||
mImageViewReference = null;
|
||||
}
|
||||
|
||||
public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager,
|
||||
Account account, ProgressBar progressWheel) {
|
||||
this(imageView, storageManager, account);
|
||||
mProgressWheelRef = new WeakReference<ProgressBar>(progressWheel);
|
||||
}
|
||||
|
||||
public ThumbnailGenerationTask(ImageView imageView) {
|
||||
// Use a WeakReference to ensure the ImageView can be garbage collected
|
||||
mImageViewReference = new WeakReference<ImageView>(imageView);
|
||||
@@ -229,18 +284,20 @@ public class ThumbnailsCacheManager {
|
||||
}
|
||||
|
||||
mFile = params[0];
|
||||
if (params.length == 2) {
|
||||
mImageKey = (String) params[1];
|
||||
mIsThumbnail = (Boolean) params[1];
|
||||
|
||||
if (params.length == 3){
|
||||
mImageKey = (String) params[2];
|
||||
}
|
||||
|
||||
if (mFile instanceof OCFile) {
|
||||
thumbnail = doOCFileInBackground();
|
||||
thumbnail = doOCFileInBackground(mIsThumbnail);
|
||||
|
||||
if (MimeTypeUtil.isVideo((OCFile) mFile) && thumbnail != null) {
|
||||
thumbnail = addVideoOverlay(thumbnail);
|
||||
}
|
||||
} else if (mFile instanceof File) {
|
||||
thumbnail = doFileInBackground();
|
||||
thumbnail = doFileInBackground(mIsThumbnail);
|
||||
|
||||
String url = ((File) mFile).getAbsolutePath();
|
||||
String mMimeType = FileStorageUtils.getMimeTypeFromName(url);
|
||||
@@ -273,12 +330,41 @@ public class ThumbnailsCacheManager {
|
||||
tagId = String.valueOf(mFile.hashCode());
|
||||
}
|
||||
if (String.valueOf(imageView.getTag()).equals(tagId)) {
|
||||
if (mProgressWheelRef != null) {
|
||||
final ProgressBar progressWheel = mProgressWheelRef.get();
|
||||
if (progressWheel != null) {
|
||||
progressWheel.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
imageView.setImageBitmap(bitmap);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add thumbnail to cache
|
||||
* @param imageKey: thumb key
|
||||
* @param bitmap: image for extracting thumbnail
|
||||
* @param path: image path
|
||||
* @param pxW: thumbnail width in pixel
|
||||
* @param pxH: thumbnail height in pixel
|
||||
* @return Bitmap
|
||||
*/
|
||||
private Bitmap addThumbnailToCache(String imageKey, Bitmap bitmap, String path,
|
||||
int pxW, int pxH){
|
||||
|
||||
Bitmap thumbnail = ThumbnailUtils.extractThumbnail(bitmap, pxW, pxH);
|
||||
|
||||
// Rotate image, obeying exif tag
|
||||
thumbnail = BitmapUtils.rotateImage(thumbnail,path);
|
||||
|
||||
// Add thumbnail to cache
|
||||
addBitmapToCache(imageKey, thumbnail);
|
||||
|
||||
return thumbnail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts size of file icon from dp to pixel
|
||||
* @return int
|
||||
@@ -290,31 +376,56 @@ public class ThumbnailsCacheManager {
|
||||
return d.intValue();
|
||||
}
|
||||
|
||||
private Bitmap doOCFileInBackground() {
|
||||
private Point getScreenDimension(){
|
||||
WindowManager wm = (WindowManager) MainApp.getAppContext().
|
||||
getSystemService(Context.WINDOW_SERVICE);
|
||||
Display display = wm.getDefaultDisplay();
|
||||
Point test = new Point();
|
||||
display.getSize(test);
|
||||
return test;
|
||||
}
|
||||
|
||||
private Bitmap doOCFileInBackground(Boolean isThumbnail) {
|
||||
Bitmap thumbnail = null;
|
||||
OCFile file = (OCFile)mFile;
|
||||
|
||||
final String imageKey = String.valueOf(file.getRemoteId());
|
||||
// distinguish between thumbnail and resized image
|
||||
String temp = String.valueOf(file.getRemoteId());
|
||||
if (isThumbnail){
|
||||
temp = "t" + temp;
|
||||
} else {
|
||||
temp = "r" + temp;
|
||||
}
|
||||
|
||||
final String imageKey = temp;
|
||||
|
||||
// Check disk cache in background thread
|
||||
Bitmap thumbnail = getBitmapFromDiskCache(imageKey);
|
||||
thumbnail = getBitmapFromDiskCache(imageKey);
|
||||
|
||||
// Not found in disk cache
|
||||
if (thumbnail == null || file.needsUpdateThumbnail()) {
|
||||
|
||||
int px = getThumbnailDimension();
|
||||
int pxW = 0;
|
||||
int pxH = 0;
|
||||
if (mIsThumbnail) {
|
||||
pxW = pxH = getThumbnailDimension();
|
||||
} else {
|
||||
Point p = getScreenDimension();
|
||||
pxW = p.x;
|
||||
pxH = p.y;
|
||||
}
|
||||
|
||||
if (file.isDown()) {
|
||||
Bitmap temp = BitmapUtils.decodeSampledBitmapFromFile(
|
||||
file.getStoragePath(), px, px);
|
||||
Bitmap bitmap = ThumbnailUtils.extractThumbnail(temp, px, px);
|
||||
Bitmap bitmap = BitmapUtils.decodeSampledBitmapFromFile(
|
||||
file.getStoragePath(), pxW, pxH);
|
||||
|
||||
if (bitmap != null) {
|
||||
// Handle PNG
|
||||
if (file.getMimetype().equalsIgnoreCase("image/png")) {
|
||||
bitmap = handlePNG(bitmap, px);
|
||||
bitmap = handlePNG(bitmap, pxW);
|
||||
}
|
||||
|
||||
thumbnail = addThumbnailToCache(imageKey, bitmap, file.getStoragePath(), px);
|
||||
thumbnail = addThumbnailToCache(imageKey, bitmap, file.getStoragePath(),
|
||||
pxW, pxH);
|
||||
|
||||
file.setNeedsUpdateThumbnail(false);
|
||||
mStorageManager.saveFile(file);
|
||||
@@ -327,30 +438,47 @@ public class ThumbnailsCacheManager {
|
||||
if (serverOCVersion.supportsRemoteThumbnails()) {
|
||||
GetMethod get = null;
|
||||
try {
|
||||
String uri = mClient.getBaseUri() + "" +
|
||||
"/index.php/apps/files/api/v1/thumbnail/" +
|
||||
px + "/" + px + Uri.encode(file.getRemotePath(), "/");
|
||||
Log_OC.d("Thumbnail", "URI: " + uri);
|
||||
get = new GetMethod(uri);
|
||||
get.setRequestHeader("Cookie",
|
||||
"nc_sameSiteCookielax=true;nc_sameSiteCookiestrict=true");
|
||||
int status = mClient.executeMethod(get);
|
||||
if (status == HttpStatus.SC_OK) {
|
||||
InputStream inputStream = get.getResponseBodyAsStream();
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
|
||||
thumbnail = ThumbnailUtils.extractThumbnail(bitmap, px, px);
|
||||
|
||||
// Handle PNG
|
||||
if (file.getMimetype().equalsIgnoreCase("image/png")) {
|
||||
thumbnail = handlePNG(thumbnail, px);
|
||||
}
|
||||
|
||||
// Add thumbnail to cache
|
||||
if (thumbnail != null) {
|
||||
addBitmapToCache(imageKey, thumbnail);
|
||||
if (mIsThumbnail) {
|
||||
String uri = mClient.getBaseUri() + "" +
|
||||
"/index.php/apps/files/api/v1/thumbnail/" +
|
||||
pxW + "/" + pxH + Uri.encode(file.getRemotePath(), "/");
|
||||
Log_OC.d("Thumbnail", "URI: " + uri);
|
||||
get = new GetMethod(uri);
|
||||
get.setRequestHeader("Cookie",
|
||||
"nc_sameSiteCookielax=true;nc_sameSiteCookiestrict=true");
|
||||
int status = mClient.executeMethod(get);
|
||||
if (status == HttpStatus.SC_OK) {
|
||||
InputStream inputStream = get.getResponseBodyAsStream();
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
|
||||
thumbnail = ThumbnailUtils.extractThumbnail(bitmap, pxW, pxH);
|
||||
}
|
||||
} else {
|
||||
mClient.exhaustResponse(get.getResponseBodyAsStream());
|
||||
String uri = mClient.getBaseUri() + "" +
|
||||
"/index.php/apps/gallery/api/preview/" +
|
||||
Integer.parseInt(file.getRemoteId().substring(0,8)) +
|
||||
"/" + pxW + "/" + pxH;
|
||||
Log_OC.d("Thumbnail", "FileName: " + file.getFileName() +
|
||||
" Download URI: " + uri);
|
||||
get = new GetMethod(uri);
|
||||
get.setRequestHeader("Cookie",
|
||||
"nc_sameSiteCookielax=true;nc_sameSiteCookiestrict=true");
|
||||
int status = mClient.executeMethod(get);
|
||||
if (status == HttpStatus.SC_OK) {
|
||||
InputStream inputStream = get.getResponseBodyAsStream();
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
|
||||
// Download via gallery app
|
||||
thumbnail = bitmap;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle PNG
|
||||
if (file.getMimetype().equalsIgnoreCase("image/png")) {
|
||||
thumbnail = handlePNG(thumbnail, pxW);
|
||||
}
|
||||
|
||||
// Add thumbnail to cache
|
||||
if (thumbnail != null) {
|
||||
addBitmapToCache(imageKey, thumbnail);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log_OC.d(TAG, e.getMessage(), e);
|
||||
@@ -370,7 +498,7 @@ public class ThumbnailsCacheManager {
|
||||
|
||||
}
|
||||
|
||||
private Bitmap doFileInBackground() {
|
||||
private Bitmap doFileInBackground(Boolean mIsThumbnail) {
|
||||
File file = (File)mFile;
|
||||
|
||||
final String imageKey;
|
||||
@@ -380,19 +508,33 @@ public class ThumbnailsCacheManager {
|
||||
imageKey = String.valueOf(file.hashCode());
|
||||
}
|
||||
|
||||
// distinguish between thumbnail and resized image
|
||||
if (mIsThumbnail){
|
||||
mImageKey = "t" + mImageKey;
|
||||
} else {
|
||||
mImageKey = "r" + mImageKey;
|
||||
}
|
||||
|
||||
// Check disk cache in background thread
|
||||
Bitmap thumbnail = getBitmapFromDiskCache(imageKey);
|
||||
|
||||
// Not found in disk cache
|
||||
if (thumbnail == null) {
|
||||
|
||||
int px = getThumbnailDimension();
|
||||
int pxW = 0;
|
||||
int pxH = 0;
|
||||
if (mIsThumbnail) {
|
||||
pxW = pxH = getThumbnailDimension();
|
||||
} else {
|
||||
Point p = getScreenDimension();
|
||||
pxW = p.x;
|
||||
pxH = p.y;
|
||||
}
|
||||
|
||||
Bitmap bitmap = BitmapUtils.decodeSampledBitmapFromFile(
|
||||
file.getAbsolutePath(), px, px);
|
||||
file.getAbsolutePath(), pxW, pxH);
|
||||
|
||||
if (bitmap != null) {
|
||||
thumbnail = addThumbnailToCache(imageKey, bitmap, file.getPath(), px);
|
||||
thumbnail = addThumbnailToCache(imageKey, bitmap, file.getPath(), pxW, pxH);
|
||||
}
|
||||
}
|
||||
return thumbnail;
|
||||
|
||||
@@ -22,6 +22,8 @@ package com.owncloud.android.db;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import com.owncloud.android.MainApp;
|
||||
import com.owncloud.android.authentication.AccountUtils;
|
||||
import com.owncloud.android.utils.FileStorageUtils;
|
||||
|
||||
/**
|
||||
@@ -38,17 +40,25 @@ public abstract class PreferenceManager {
|
||||
private static final String AUTO_PREF__UPLOAD_FILE_EXTENSION_MAP_URL = "prefs_upload_file_extension_map_url";
|
||||
private static final String AUTO_PREF__UPLOAD_FILE_EXTENSION_URL = "prefs_upload_file_extension_url";
|
||||
private static final String AUTO_PREF__UPLOADER_BEHAVIOR = "prefs_uploader_behaviour";
|
||||
private static final String AUTO_PREF__GRID_COLUMNS = "grid_columns";
|
||||
private static final String PREF__INSTANT_UPLOADING = "instant_uploading";
|
||||
private static final String PREF__INSTANT_UPLOAD_PATH_ACCOUNT = "instant_upload_path_account";
|
||||
private static final String PREF__INSTANT_VIDEO_UPLOADING = "instant_video_uploading";
|
||||
private static final String PREF__INSTANT_UPLOAD_PATH_USE_SUBFOLDERS = "instant_upload_path_use_subfolders";
|
||||
private static final String PREF__INSTANT_UPLOAD_ON_WIFI = "instant_upload_on_wifi";
|
||||
private static final String PREF__INSTANT_VIDEO_UPLOAD_ON_WIFI = "instant_video_upload_on_wifi";
|
||||
private static final String PREF__INSTANT_VIDEO_UPLOAD_PATH_USE_SUBFOLDERS = "instant_video_upload_path_use_subfolders";
|
||||
private static final String PREF__INSTANT_VIDEO_UPLOAD_PATH_ACCOUNT = "instant_video_upload_path_account";
|
||||
|
||||
public static boolean instantPictureUploadEnabled(Context context) {
|
||||
return getDefaultSharedPreferences(context).getBoolean(PREF__INSTANT_UPLOADING, false);
|
||||
}
|
||||
|
||||
public static String instantPictureUploadPathAccount(Context context) {
|
||||
return getDefaultSharedPreferences(context).getString(PREF__INSTANT_UPLOAD_PATH_ACCOUNT,
|
||||
AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext()).name);
|
||||
}
|
||||
|
||||
public static boolean instantVideoUploadEnabled(Context context) {
|
||||
return getDefaultSharedPreferences(context).getBoolean(PREF__INSTANT_VIDEO_UPLOADING, false);
|
||||
}
|
||||
@@ -61,6 +71,11 @@ public abstract class PreferenceManager {
|
||||
return getDefaultSharedPreferences(context).getBoolean(PREF__INSTANT_UPLOAD_ON_WIFI, false);
|
||||
}
|
||||
|
||||
public static String instantVideoUploadPathAccount(Context context) {
|
||||
return getDefaultSharedPreferences(context).getString(PREF__INSTANT_VIDEO_UPLOAD_PATH_ACCOUNT,
|
||||
AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext()).name);
|
||||
}
|
||||
|
||||
public static boolean instantVideoUploadPathUseSubfolders(Context context) {
|
||||
return getDefaultSharedPreferences(context).getBoolean(PREF__INSTANT_VIDEO_UPLOAD_PATH_USE_SUBFOLDERS, false);
|
||||
}
|
||||
@@ -205,22 +220,44 @@ public abstract class PreferenceManager {
|
||||
saveIntPreference(context, AUTO_PREF__UPLOADER_BEHAVIOR, uploaderBehaviour);
|
||||
}
|
||||
|
||||
public static void saveBooleanPreference(Context context, String key, boolean value) {
|
||||
/**
|
||||
* Gets the grid columns which the user has set last.
|
||||
*
|
||||
* @param context Caller {@link Context}, used to access to shared preferences manager.
|
||||
* @return grid columns grid columns
|
||||
*/
|
||||
public static float getGridColumns(Context context) {
|
||||
return getDefaultSharedPreferences(context).getFloat(AUTO_PREF__GRID_COLUMNS, -1.0f);
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the grid columns which the user has set last.
|
||||
*
|
||||
* @param context Caller {@link Context}, used to access to shared preferences manager.
|
||||
* @param gridColumns the uploader behavior
|
||||
*/
|
||||
public static void setGridColumns(Context context, float gridColumns) {
|
||||
saveFloatPreference(context, AUTO_PREF__GRID_COLUMNS, gridColumns);
|
||||
}
|
||||
|
||||
private static void saveBooleanPreference(Context context, String key, boolean value) {
|
||||
SharedPreferences.Editor appPreferences = getDefaultSharedPreferences(context.getApplicationContext()).edit();
|
||||
appPreferences.putBoolean(key, value);
|
||||
appPreferences.apply();
|
||||
appPreferences.putBoolean(key, value).apply();
|
||||
}
|
||||
|
||||
private static void saveStringPreference(Context context, String key, String value) {
|
||||
SharedPreferences.Editor appPreferences = getDefaultSharedPreferences(context.getApplicationContext()).edit();
|
||||
appPreferences.putString(key, value);
|
||||
appPreferences.apply();
|
||||
appPreferences.putString(key, value).apply();
|
||||
}
|
||||
|
||||
private static void saveIntPreference(Context context, String key, int value) {
|
||||
SharedPreferences.Editor appPreferences = getDefaultSharedPreferences(context.getApplicationContext()).edit();
|
||||
appPreferences.putInt(key, value);
|
||||
appPreferences.apply();
|
||||
appPreferences.putInt(key, value).apply();
|
||||
}
|
||||
|
||||
private static void saveFloatPreference(Context context, String key, float value) {
|
||||
SharedPreferences.Editor appPreferences = getDefaultSharedPreferences(context.getApplicationContext()).edit();
|
||||
appPreferences.putFloat(key, value).apply();
|
||||
}
|
||||
|
||||
public static SharedPreferences getDefaultSharedPreferences(Context context) {
|
||||
|
||||
@@ -32,6 +32,7 @@ import com.owncloud.android.files.services.FileUploader.FileUploaderBinder;
|
||||
import com.owncloud.android.lib.resources.status.OCCapability;
|
||||
import com.owncloud.android.services.OperationsService.OperationsServiceBinder;
|
||||
import com.owncloud.android.ui.activity.ComponentsGetter;
|
||||
import com.owncloud.android.utils.MimeTypeUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -243,6 +244,12 @@ public class FileMenuFilter {
|
||||
toShow.add(R.id.action_unfavorite_file);
|
||||
}
|
||||
|
||||
// STREAM
|
||||
if (isSingleFile() && !anyFileDown() && (anyFileAudio() || anyFileVideo())){
|
||||
toShow.add(R.id.action_stream_file);
|
||||
} else {
|
||||
toHide.add(R.id.action_stream_file);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean anyFileSynchronizing() {
|
||||
@@ -320,6 +327,24 @@ public class FileMenuFilter {
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean anyFileAudio() {
|
||||
for(OCFile file: mFiles) {
|
||||
if(MimeTypeUtil.isAudio(file)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean anyFileVideo() {
|
||||
for(OCFile file: mFiles) {
|
||||
if(MimeTypeUtil.isVideo(file)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean allFavorites() {
|
||||
for(OCFile file: mFiles) {
|
||||
if(!file.isFavorite()) {
|
||||
|
||||
@@ -96,9 +96,9 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
|
||||
return;
|
||||
}
|
||||
|
||||
Account account = AccountUtils.getCurrentOwnCloudAccount(context);
|
||||
Account account = AccountUtils.getInstantUploadAccount(context);
|
||||
if (account == null) {
|
||||
Log_OC.w(TAG, "No account found for instant upload, aborting");
|
||||
Log_OC.w(TAG, "No account found for instant photo upload, aborting");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -184,9 +184,9 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
|
||||
return;
|
||||
}
|
||||
|
||||
Account account = AccountUtils.getCurrentOwnCloudAccount(context);
|
||||
Account account = AccountUtils.getInstantVideoUploadAccount(context);
|
||||
if (account == null) {
|
||||
Log_OC.w(TAG, "No account found for instant upload, aborting");
|
||||
Log_OC.w(TAG, "No account found for instant video upload, aborting");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -964,9 +964,10 @@ public class FileUploader extends Service
|
||||
final ThumbnailsCacheManager.ThumbnailGenerationTask task =
|
||||
new ThumbnailsCacheManager.ThumbnailGenerationTask(mStorageManager, mCurrentAccount);
|
||||
|
||||
Object[] params = new Object[2];
|
||||
params[0] = new File(mCurrentUpload.getOriginalStoragePath());
|
||||
params[1] = mCurrentUpload.getFile().getRemoteId();
|
||||
Object[] params = new Object[3];
|
||||
params[0] = mCurrentUpload.getFile();
|
||||
params[1] = true;
|
||||
params[2] = mCurrentUpload.getFile().getRemoteId();
|
||||
|
||||
task.execute(params);
|
||||
}
|
||||
|
||||
@@ -21,25 +21,30 @@
|
||||
package com.owncloud.android.media;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.app.Activity;
|
||||
import android.app.NotificationManager;
|
||||
import android.app.PendingIntent;
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.media.AudioManager;
|
||||
import android.media.MediaPlayer;
|
||||
import android.media.MediaPlayer.OnCompletionListener;
|
||||
import android.media.MediaPlayer.OnErrorListener;
|
||||
import android.media.MediaPlayer.OnPreparedListener;
|
||||
import android.net.Uri;
|
||||
import android.net.wifi.WifiManager;
|
||||
import android.net.wifi.WifiManager.WifiLock;
|
||||
import android.os.IBinder;
|
||||
import android.os.PowerManager;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.support.v7.app.NotificationCompat;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
import com.owncloud.android.lib.common.accounts.AccountUtils;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.ui.activity.FileActivity;
|
||||
import com.owncloud.android.ui.activity.FileDisplayActivity;
|
||||
@@ -214,6 +219,25 @@ public class MediaService extends Service implements OnCompletionListener, OnPre
|
||||
return context.getString(messageId);
|
||||
}
|
||||
|
||||
public static AlertDialog.Builder streamWithExternalApp(final Uri uri, final Activity activity){
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
||||
builder.setMessage(activity.getString(R.string.stream_expose_password))
|
||||
.setPositiveButton(activity.getString(R.string.common_yes),
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
Intent i = new Intent(Intent.ACTION_VIEW);
|
||||
i.setData(uri);
|
||||
activity.startActivity(i);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(activity.getString(R.string.common_no), new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
// User cancelled the dialog
|
||||
}
|
||||
});
|
||||
return builder;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@@ -435,12 +459,7 @@ public class MediaService extends Service implements OnCompletionListener, OnPre
|
||||
releaseResources(false); // release everything except MediaPlayer
|
||||
|
||||
try {
|
||||
if (mFile == null) {
|
||||
Toast.makeText(this, R.string.media_err_nothing_to_play, Toast.LENGTH_LONG).show();
|
||||
processStopRequest(true);
|
||||
return;
|
||||
|
||||
} else if (mAccount == null) {
|
||||
if (mAccount == null) {
|
||||
Toast.makeText(this, R.string.media_err_not_in_owncloud, Toast.LENGTH_LONG).show();
|
||||
processStopRequest(true);
|
||||
return;
|
||||
@@ -449,12 +468,12 @@ public class MediaService extends Service implements OnCompletionListener, OnPre
|
||||
createMediaPlayerIfNeeded();
|
||||
mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
||||
String url = mFile.getStoragePath();
|
||||
/* Streaming is not possible right now
|
||||
|
||||
if (url == null || url.length() <= 0) {
|
||||
url = AccountUtils.constructFullURLForAccount(this, mAccount) + mFile.getRemotePath();
|
||||
}
|
||||
mIsStreaming = url.startsWith("http:") || url.startsWith("https:");
|
||||
*/
|
||||
|
||||
mIsStreaming = false;
|
||||
|
||||
mPlayer.setDataSource(url);
|
||||
@@ -495,6 +514,8 @@ public class MediaService extends Service implements OnCompletionListener, OnPre
|
||||
Toast.makeText(this, String.format(getString(R.string.media_err_unexpected), mFile.getFileName()),
|
||||
Toast.LENGTH_LONG).show();
|
||||
processStopRequest(true);
|
||||
} catch (AccountUtils.AccountNotFoundException e) {
|
||||
Log_OC.e(TAG, "playMedia - Account missing",e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ package com.owncloud.android.operations;
|
||||
import android.accounts.Account;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
import com.owncloud.android.files.services.FileDownloader;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* ownCloud Android client application
|
||||
*
|
||||
* @author David A. Velasco
|
||||
* Copyright (C) 2016 ownCloud Inc.
|
||||
* Copyright (C) 2016 ownCloud GmbH.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2,
|
||||
@@ -349,37 +349,26 @@ public class UploadFileOperation extends SyncOperation {
|
||||
String expectedPath = FileStorageUtils.getDefaultSavePathFor(mAccount.name, mFile);
|
||||
expectedFile = new File(expectedPath);
|
||||
|
||||
/// copy the file locally before uploading
|
||||
if (mLocalBehaviour == FileUploader.LOCAL_BEHAVIOUR_COPY &&
|
||||
!mOriginalStoragePath.equals(expectedPath)) {
|
||||
|
||||
String temporalPath = FileStorageUtils.getTemporalPath(mAccount.name) + mFile.getRemotePath();
|
||||
mFile.setStoragePath(temporalPath);
|
||||
temporalFile = new File(temporalPath);
|
||||
|
||||
result = copy(originalFile, temporalFile);
|
||||
if (result != null) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
if (mCancellationRequested.get()) {
|
||||
throw new OperationCancelledException();
|
||||
}
|
||||
|
||||
// Get the last modification date of the file from the file system
|
||||
Long timeStampLong = originalFile.lastModified()/1000;
|
||||
String timeStamp = timeStampLong.toString();
|
||||
|
||||
/// perform the upload
|
||||
if ( mChunked &&
|
||||
(new File(mFile.getStoragePath())).length() >
|
||||
ChunkedUploadRemoteFileOperation.CHUNK_SIZE ) {
|
||||
mUploadOperation = new ChunkedUploadRemoteFileOperation(mContext, mFile.getStoragePath(),
|
||||
mFile.getRemotePath(), mFile.getMimetype(), mFile.getEtagInConflict());
|
||||
mFile.getRemotePath(), mFile.getMimetype(), mFile.getEtagInConflict(), timeStamp);
|
||||
} else {
|
||||
mUploadOperation = new UploadRemoteFileOperation(mFile.getStoragePath(),
|
||||
mFile.getRemotePath(), mFile.getMimetype(), mFile.getEtagInConflict());
|
||||
mFile.getRemotePath(), mFile.getMimetype(), mFile.getEtagInConflict(), timeStamp);
|
||||
}
|
||||
Iterator <OnDatatransferProgressListener> listener = mDataTransferListeners.iterator();
|
||||
while (listener.hasNext()) {
|
||||
mUploadOperation.addDatatransferProgressListener(listener.next());
|
||||
for (OnDatatransferProgressListener mDataTransferListener : mDataTransferListeners) {
|
||||
mUploadOperation.addDatatransferProgressListener(mDataTransferListener);
|
||||
}
|
||||
|
||||
if (mCancellationRequested.get()) {
|
||||
@@ -405,9 +394,7 @@ public class UploadFileOperation extends SyncOperation {
|
||||
} else {
|
||||
mFile.setStoragePath(expectedPath);
|
||||
|
||||
if (temporalFile != null) { // FileUploader.LOCAL_BEHAVIOUR_COPY
|
||||
move(temporalFile, expectedFile);
|
||||
} else { // FileUploader.LOCAL_BEHAVIOUR_MOVE
|
||||
if (mLocalBehaviour == FileUploader.LOCAL_BEHAVIOUR_MOVE) {
|
||||
move(originalFile, expectedFile);
|
||||
getStorageManager().deleteFileInMediaScan(originalFile.getAbsolutePath());
|
||||
}
|
||||
@@ -436,15 +423,14 @@ public class UploadFileOperation extends SyncOperation {
|
||||
if (result.getException() != null) {
|
||||
if(result.isCancelled()){
|
||||
Log_OC.w(TAG, "Upload of " + mOriginalStoragePath + " to " + mRemotePath +
|
||||
": " + result.getLogMessage());
|
||||
" has been canceled: " + result.getLogMessage());
|
||||
} else {
|
||||
Log_OC.e(TAG, "Upload of " + mOriginalStoragePath + " to " + mRemotePath +
|
||||
": " + result.getLogMessage(), result.getException());
|
||||
}
|
||||
|
||||
} else {
|
||||
Log_OC.e(TAG, "Upload of " + mOriginalStoragePath + " to " + mRemotePath +
|
||||
": " + result.getLogMessage());
|
||||
Log_OC.e(TAG, "Upload of " + mOriginalStoragePath + " to " + mRemotePath + "ResultCode(" +
|
||||
result.getCode().name() + "): " + result.getLogMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ public class FolderObserver extends FileObserver {
|
||||
public void startWatching(String fileName) {
|
||||
synchronized (mObservedChildren) {
|
||||
if (!mObservedChildren.containsKey(fileName)) {
|
||||
mObservedChildren.put(fileName, Boolean.FALSE);
|
||||
mObservedChildren.put(fileName, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,9 @@ class SyncedFolderObserver extends RecursiveFileObserver {
|
||||
File temp = new File(path);
|
||||
|
||||
// do not upload "null"-files, test if file exists and is a real file
|
||||
if (!temp.getName().equalsIgnoreCase("null") && temp.isFile() && !temp.getName().endsWith(".tmp")) {
|
||||
if (!temp.getName().equalsIgnoreCase("null")
|
||||
&& temp.isFile()
|
||||
&& !temp.getName().endsWith(".tmp")) {
|
||||
PersistableBundle bundle = new PersistableBundle();
|
||||
// TODO extract
|
||||
bundle.putString(SyncedFolderJobService.LOCAL_PATH, path);
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* Copyright (C) 2016 Nextcloud
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 3,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.owncloud.android.ui;
|
||||
|
||||
import android.content.Context;
|
||||
import android.preference.Preference;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
public class PreferenceWithTwoLineLongSummary extends Preference{
|
||||
|
||||
public PreferenceWithTwoLineLongSummary(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public PreferenceWithTwoLineLongSummary(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
public PreferenceWithTwoLineLongSummary(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindView(View view) {
|
||||
super.onBindView(view);
|
||||
TextView titleView = (TextView) view.findViewById(android.R.id.summary);
|
||||
titleView.setSingleLine(false);
|
||||
titleView.setMaxLines(2);
|
||||
titleView.setEllipsize(TextUtils.TruncateAt.MIDDLE);
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,7 @@
|
||||
*
|
||||
* @author Andy Scherzinger
|
||||
* Copyright (C) 2016 Andy Scherzinger
|
||||
* Copyright (C) 2016 Nextcloud
|
||||
* Copyright (C) 2016 ownCloud Inc.
|
||||
* Copyright (C) 2016 Nextcloud.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
@@ -174,7 +173,7 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
|
||||
setupQuotaElement();
|
||||
|
||||
// show folder sync menu item only for Android 7+
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
mNavigationView.getMenu().removeItem(R.id.nav_folder_sync);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/**
|
||||
* ownCloud Android client application
|
||||
*
|
||||
* Copyright (C) 2015 ownCloud Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.owncloud.android.ui.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v4.app.FragmentManager;
|
||||
import android.support.v4.app.FragmentTransaction;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.ui.dialog.LoadingDialog;
|
||||
import com.owncloud.android.utils.FileStorageUtils;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
|
||||
public class ErrorReportActivity extends AppCompatActivity {
|
||||
|
||||
private static final String TAG = ErrorReportActivity.class.getSimpleName();
|
||||
|
||||
private String mLogText;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setContentView(R.layout.error_send);
|
||||
setTitle(getString(R.string.error_log_title));
|
||||
Button cancelErrorLogButton = (Button) findViewById(R.id.cancelErrorLogButton);
|
||||
Button sendErrorLogButton = (Button) findViewById(R.id.sendErrorLogButton);
|
||||
TextView logTV = (TextView) findViewById(R.id.logTV);
|
||||
|
||||
Intent intent = getIntent();
|
||||
String action = intent.getAction();
|
||||
String type = intent.getType();
|
||||
|
||||
if (Intent.ACTION_SEND.equals(action) && type != null) {
|
||||
mLogText = intent.getStringExtra(Intent.EXTRA_TEXT);
|
||||
} else {
|
||||
// Handle other intents, such as being started from the home screen
|
||||
mLogText = "Error, nothing received!";
|
||||
}
|
||||
|
||||
logTV.setText(mLogText);
|
||||
|
||||
cancelErrorLogButton.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
finishAffinity();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
sendErrorLogButton.setOnClickListener(new OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
sendMail();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Start activity for sending email with logs attached
|
||||
*/
|
||||
private void sendMail() {
|
||||
Intent sendIntent = new Intent();
|
||||
sendIntent.setAction(Intent.ACTION_SEND);
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, mLogText);
|
||||
sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
sendIntent.setType("text/plain");
|
||||
startActivity(sendIntent);
|
||||
}
|
||||
}
|
||||
@@ -66,6 +66,8 @@ import com.owncloud.android.lib.common.operations.RemoteOperation;
|
||||
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
||||
import com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCode;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.media.MediaService;
|
||||
import com.owncloud.android.media.MediaServiceBinder;
|
||||
import com.owncloud.android.operations.CopyFileOperation;
|
||||
import com.owncloud.android.operations.CreateFolderOperation;
|
||||
import com.owncloud.android.operations.MoveFileOperation;
|
||||
@@ -76,6 +78,7 @@ import com.owncloud.android.operations.SynchronizeFileOperation;
|
||||
import com.owncloud.android.operations.UploadFileOperation;
|
||||
import com.owncloud.android.services.observer.FileObserverService;
|
||||
import com.owncloud.android.syncadapter.FileSyncAdapter;
|
||||
import com.owncloud.android.ui.dialog.SortingOrderDialogFragment;
|
||||
import com.owncloud.android.ui.fragment.FileDetailFragment;
|
||||
import com.owncloud.android.ui.fragment.FileFragment;
|
||||
import com.owncloud.android.ui.fragment.OCFileListFragment;
|
||||
@@ -88,12 +91,14 @@ import com.owncloud.android.ui.preview.PreviewTextFragment;
|
||||
import com.owncloud.android.ui.preview.PreviewVideoActivity;
|
||||
import com.owncloud.android.utils.DisplayUtils;
|
||||
import com.owncloud.android.utils.ErrorMessageAdapter;
|
||||
import com.owncloud.android.utils.MimeTypeUtil;
|
||||
import com.owncloud.android.utils.PermissionUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
import static com.owncloud.android.db.PreferenceManager.getSortAscending;
|
||||
import static com.owncloud.android.db.PreferenceManager.getSortOrder;
|
||||
|
||||
/**
|
||||
@@ -102,7 +107,7 @@ import static com.owncloud.android.db.PreferenceManager.getSortOrder;
|
||||
|
||||
public class FileDisplayActivity extends HookActivity
|
||||
implements FileFragment.ContainerActivity,
|
||||
OnEnforceableRefreshListener {
|
||||
OnEnforceableRefreshListener, SortingOrderDialogFragment.OnSortingOrderListener {
|
||||
|
||||
private SyncBroadcastReceiver mSyncBroadcastReceiver;
|
||||
private UploadFinishReceiver mUploadFinishReceiver;
|
||||
@@ -117,6 +122,8 @@ public class FileDisplayActivity extends HookActivity
|
||||
private static final String KEY_SYNC_IN_PROGRESS = "SYNC_IN_PROGRESS";
|
||||
private static final String KEY_WAITING_TO_SEND = "WAITING_TO_SEND";
|
||||
|
||||
private static final String SORT_ORDER_DIALOG_TAG = "SORT_ORDER_DIALOG";
|
||||
|
||||
public static final String ACTION_DETAILS = "com.owncloud.android.ui.activity.action.DETAILS";
|
||||
|
||||
public static final int REQUEST_CODE__SELECT_CONTENT_FROM_APPS = REQUEST_CODE__LAST_SHARED + 1;
|
||||
@@ -139,7 +146,10 @@ public class FileDisplayActivity extends HookActivity
|
||||
|
||||
private Collection<MenuItem> mDrawerMenuItemstoShowHideList;
|
||||
|
||||
private MediaServiceBinder mMediaServiceBinder = null;
|
||||
private MediaServiceConnection mMediaServiceConnection = null;
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
Log_OC.v(TAG, "onCreate() start");
|
||||
@@ -248,7 +258,7 @@ public class FileDisplayActivity extends HookActivity
|
||||
*/
|
||||
private void upgradeNotificationForInstantUpload() {
|
||||
// check for Android 7+ if legacy instant upload is activated --> disable + show info
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N &&
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
|
||||
(PreferenceManager.instantPictureUploadEnabled(this) ||
|
||||
PreferenceManager.instantPictureUploadEnabled(this))) {
|
||||
|
||||
@@ -624,28 +634,16 @@ public class FileDisplayActivity extends HookActivity
|
||||
break;
|
||||
}
|
||||
case R.id.action_sort: {
|
||||
Integer sortOrder = getSortOrder(this);
|
||||
FragmentManager fm = getSupportFragmentManager();
|
||||
FragmentTransaction ft = fm.beginTransaction();
|
||||
ft.addToBackStack(null);
|
||||
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setTitle(R.string.actionbar_sort_title)
|
||||
.setSingleChoiceItems(R.array.menu_items_sort_by_options, sortOrder,
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
switch (which) {
|
||||
case 0:
|
||||
sortByName(true);
|
||||
break;
|
||||
case 1:
|
||||
sortByDate(false);
|
||||
break;
|
||||
case 2:
|
||||
sortBySize(false);
|
||||
}
|
||||
SortingOrderDialogFragment mSortingOrderDialogFragment = SortingOrderDialogFragment.newInstance(
|
||||
getSortOrder(this),
|
||||
getSortAscending(this)
|
||||
);
|
||||
mSortingOrderDialogFragment.show(ft, SORT_ORDER_DIALOG_TAG);
|
||||
|
||||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
builder.create().show();
|
||||
break;
|
||||
}
|
||||
case R.id.action_switch_view: {
|
||||
@@ -981,6 +979,33 @@ public class FileDisplayActivity extends HookActivity
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSortingOrderChosen(int selection) {
|
||||
switch (selection) {
|
||||
case SortingOrderDialogFragment.BY_NAME_ASC:
|
||||
sortByName(true);
|
||||
break;
|
||||
case SortingOrderDialogFragment.BY_NAME_DESC:
|
||||
sortByName(false);
|
||||
break;
|
||||
case SortingOrderDialogFragment.BY_MODIFICATION_DATE_ASC:
|
||||
sortByDate(true);
|
||||
break;
|
||||
case SortingOrderDialogFragment.BY_MODIFICATION_DATE_DESC:
|
||||
sortByDate(false);
|
||||
break;
|
||||
case SortingOrderDialogFragment.BY_SIZE_ASC:
|
||||
sortBySize(true);
|
||||
break;
|
||||
case SortingOrderDialogFragment.BY_SIZE_DESC:
|
||||
sortBySize(false);
|
||||
break;
|
||||
default: // defaulting to alphabetical-ascending
|
||||
Log_OC.w(TAG, "Unknown sort order, defaulting to alphabetical-ascending!");
|
||||
sortByName(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private class SyncBroadcastReceiver extends BroadcastReceiver {
|
||||
|
||||
@@ -1391,8 +1416,38 @@ public class FileDisplayActivity extends HookActivity
|
||||
mUploaderBinder = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private MediaServiceConnection newMediaConnection(){
|
||||
return new MediaServiceConnection();
|
||||
}
|
||||
|
||||
/** Defines callbacks for service binding, passed to bindService() */
|
||||
private class MediaServiceConnection implements ServiceConnection {
|
||||
|
||||
@Override
|
||||
public void onServiceConnected(ComponentName component, IBinder service) {
|
||||
|
||||
if (component.equals(new ComponentName(FileDisplayActivity.this, MediaService.class))) {
|
||||
Log_OC.d(TAG, "Media service connected");
|
||||
mMediaServiceBinder = (MediaServiceBinder) service;
|
||||
|
||||
}else {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onServiceDisconnected(ComponentName component) {
|
||||
if (component.equals(new ComponentName(FileDisplayActivity.this,
|
||||
MediaService.class))) {
|
||||
Log_OC.e(TAG, "Media service disconnected");
|
||||
mMediaServiceBinder = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Updates the view associated to the activity after the finish of some operation over files
|
||||
* in the current account.
|
||||
@@ -1461,6 +1516,7 @@ public class FileDisplayActivity extends HookActivity
|
||||
|
||||
if (result.isSuccess()) {
|
||||
OCFile removedFile = operation.getFile();
|
||||
tryStopPlaying(removedFile);
|
||||
FileFragment second = getSecondFragment();
|
||||
if (second != null && removedFile.equals(second.getFile())) {
|
||||
if (second instanceof PreviewMediaFragment) {
|
||||
@@ -1481,6 +1537,21 @@ public class FileDisplayActivity extends HookActivity
|
||||
}
|
||||
}
|
||||
|
||||
public void setMediaServiceConnection() {
|
||||
mMediaServiceConnection = newMediaConnection();// mediaServiceConnection;
|
||||
if (mMediaServiceConnection != null) {
|
||||
bindService(new Intent(this, MediaService.class), mMediaServiceConnection,
|
||||
Context.BIND_AUTO_CREATE);
|
||||
}
|
||||
}
|
||||
|
||||
private void tryStopPlaying(OCFile file){
|
||||
if (mMediaServiceConnection != null && MimeTypeUtil.isAudio(file)){
|
||||
if (mMediaServiceBinder.isPlaying(file)){
|
||||
mMediaServiceBinder.pause();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the view associated to the activity after the finish of an operation trying to move a
|
||||
@@ -1710,7 +1781,7 @@ public class FileDisplayActivity extends HookActivity
|
||||
// another window floating over
|
||||
}
|
||||
},
|
||||
DELAY_TO_REQUEST_REFRESH_OPERATION_LATER
|
||||
DELAY_TO_REQUEST_OPERATIONS_LATER + 350
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@@ -22,29 +22,149 @@
|
||||
*/
|
||||
package com.owncloud.android.ui.activity;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.Intent;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.design.widget.Snackbar;
|
||||
import android.support.design.widget.TextInputLayout;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.AppCompatButton;
|
||||
import android.text.Editable;
|
||||
import android.text.Html;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.view.View.OnLongClickListener;
|
||||
import android.view.ViewTreeObserver;
|
||||
import android.view.WindowManager;
|
||||
import android.view.animation.Animation;
|
||||
import android.view.animation.AnimationUtils;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
|
||||
public class PassCodeActivity extends AppCompatActivity {
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import static android.content.Context.INPUT_METHOD_SERVICE;
|
||||
|
||||
|
||||
class SoftKeyboardUtil {
|
||||
private static final String TAG = SoftKeyboardUtil.class.getSimpleName();
|
||||
|
||||
private AppCompatActivity mActivity;
|
||||
private boolean mIsSoftKeyboardOpened;
|
||||
private SoftKeyboardListener mSoftKeyboardListener;
|
||||
private int mHideCount;
|
||||
|
||||
public interface SoftKeyboardListener {
|
||||
void onClose();
|
||||
}
|
||||
|
||||
private void setListenerToRootView() {
|
||||
View view = mActivity.findViewById(android.R.id.content).getRootView();
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||
@Override
|
||||
public void onGlobalLayout() {
|
||||
// navigation bar height
|
||||
int navigationBarHeight = 0;
|
||||
int resourceId = mActivity.getResources().getIdentifier("navigation_bar_height", "dimen", "android");
|
||||
if (resourceId > 0) {
|
||||
navigationBarHeight = mActivity.getResources().getDimensionPixelSize(resourceId);
|
||||
}
|
||||
|
||||
// status bar height
|
||||
int statusBarHeight = 0;
|
||||
resourceId = mActivity.getResources().getIdentifier("status_bar_height", "dimen", "android");
|
||||
if (resourceId > 0) {
|
||||
statusBarHeight = mActivity.getResources().getDimensionPixelSize(resourceId);
|
||||
}
|
||||
|
||||
// display window size for the app layout
|
||||
Rect rect = new Rect();
|
||||
mActivity.getWindow().getDecorView().getWindowVisibleDisplayFrame(rect);
|
||||
int appHeight = rect.height();
|
||||
|
||||
// screen height
|
||||
View view = mActivity.findViewById(android.R.id.content).getRootView();
|
||||
int screenHeight = view.getHeight();
|
||||
|
||||
// soft keyboard height
|
||||
int softKeyboardHeight = screenHeight - (statusBarHeight + navigationBarHeight + appHeight);
|
||||
|
||||
if (softKeyboardHeight <= 0) {
|
||||
if (mIsSoftKeyboardOpened) {
|
||||
// soft keyboard was closed
|
||||
if (mHideCount == 0) {
|
||||
// back key was pressed
|
||||
mSoftKeyboardListener.onClose();
|
||||
}
|
||||
mHideCount = 0;
|
||||
}
|
||||
mIsSoftKeyboardOpened = false;
|
||||
} else {
|
||||
mIsSoftKeyboardOpened = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public SoftKeyboardUtil(AppCompatActivity activity, SoftKeyboardListener softKeyboardListener) {
|
||||
mActivity = activity;
|
||||
mSoftKeyboardListener = softKeyboardListener;
|
||||
if (softKeyboardListener != null) {
|
||||
setListenerToRootView();
|
||||
}
|
||||
mHideCount = 0;
|
||||
}
|
||||
|
||||
public void initHidden() {
|
||||
mActivity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
|
||||
}
|
||||
|
||||
public void initVisible() {
|
||||
mActivity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
|
||||
}
|
||||
|
||||
public void show() {
|
||||
mHideCount = 0;
|
||||
View focusedView = mActivity.getCurrentFocus();
|
||||
if (focusedView != null) {
|
||||
InputMethodManager imm = (InputMethodManager) mActivity.getSystemService(INPUT_METHOD_SERVICE);
|
||||
imm.showSoftInput(focusedView, 0);
|
||||
} else {
|
||||
Log_OC.i(TAG, "focusedView = null in show()");
|
||||
new Handler().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
show();
|
||||
}
|
||||
}, 10);
|
||||
}
|
||||
}
|
||||
public void hide() {
|
||||
mHideCount++;
|
||||
View focusedView = mActivity.getCurrentFocus();
|
||||
if (focusedView != null) {
|
||||
InputMethodManager imm = (InputMethodManager) mActivity.getSystemService(INPUT_METHOD_SERVICE);
|
||||
imm.hideSoftInputFromWindow(focusedView.getWindowToken(), 0);
|
||||
} else {
|
||||
Log_OC.i(TAG, "focusedView = null in hide()");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class PassCodeActivity extends AppCompatActivity implements SoftKeyboardUtil.SoftKeyboardListener {
|
||||
|
||||
private static final String TAG = PassCodeActivity.class.getSimpleName();
|
||||
|
||||
@@ -52,7 +172,7 @@ public class PassCodeActivity extends AppCompatActivity {
|
||||
public final static String ACTION_CHECK_WITH_RESULT = "ACTION_CHECK_WITH_RESULT";
|
||||
public final static String ACTION_CHECK = "ACTION_CHECK";
|
||||
|
||||
public final static String KEY_PASSCODE = "KEY_PASSCODE";
|
||||
public final static String KEY_PASSCODE = "KEY_PASSCODE";
|
||||
public final static String KEY_CHECK_RESULT = "KEY_CHECK_RESULT";
|
||||
|
||||
// NOTE: PREFERENCE_SET_PASSCODE must have the same value as preferences.xml-->android:key for passcode preference
|
||||
@@ -64,42 +184,94 @@ public class PassCodeActivity extends AppCompatActivity {
|
||||
public final static String PREFERENCE_PASSCODE_D3 = "PrefPinCode3";
|
||||
public final static String PREFERENCE_PASSCODE_D4 = "PrefPinCode4";
|
||||
|
||||
private Button mBCancel;
|
||||
private static final boolean ENABLE_GO_HOME = false;
|
||||
private static final boolean INIT_SOFT_KEYBOARD_MODE = false; // true=soft keyboard / false=buttons
|
||||
private static final boolean ENABLE_SWITCH_SOFT_KEYBOARD = true;
|
||||
private static final int GUARD_TIME = 3000; // (ms)
|
||||
private static final boolean ENABLE_SUFFLE_BUTTONS = false;
|
||||
|
||||
private TextView mPassCodeHdr;
|
||||
private TextView mPassCodeHdrExplanation;
|
||||
private EditText[] mPassCodeEditTexts = new EditText[4];
|
||||
private EditText mPassCodeEditText;
|
||||
|
||||
private String [] mPassCodeDigits = {"","","",""};
|
||||
private static final String KEY_PASSCODE_DIGITS = "PASSCODE_DIGITS";
|
||||
private boolean mConfirmingPassCode = false;
|
||||
private String mConfirmingPassCode;
|
||||
private boolean mConfirmingPassCodeFlag = false;
|
||||
private static final String KEY_CONFIRMING_PASSCODE = "CONFIRMING_PASSCODE";
|
||||
|
||||
private boolean mBChange = true; // to control that only one blocks jump
|
||||
|
||||
private static final int mButtonsIDList[] = {
|
||||
R.id.button0,
|
||||
R.id.button1,
|
||||
R.id.button2,
|
||||
R.id.button3,
|
||||
R.id.button4,
|
||||
R.id.button5,
|
||||
R.id.button6,
|
||||
R.id.button7,
|
||||
R.id.button8,
|
||||
R.id.button9,
|
||||
R.id.clear,
|
||||
R.id.back,
|
||||
};
|
||||
private static final String mButtonsMainStr[] = {
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9",
|
||||
"Clear",
|
||||
"Back"
|
||||
};
|
||||
private static String mButtonsSubStr[] = {
|
||||
"",
|
||||
"",
|
||||
"abc",
|
||||
"def",
|
||||
"ghi",
|
||||
"jkl",
|
||||
"mno",
|
||||
"pqrs",
|
||||
"tuv",
|
||||
"wxyz",
|
||||
"",
|
||||
"softkey..."
|
||||
};
|
||||
private static final String mButtonFormat = "<big>%s</big><br/><font color=\"grey\"><small>%s</small></font>";
|
||||
private Integer[] mButtonsIDListShuffle = new Integer[12];
|
||||
private AppCompatButton[] mButtonsList = new AppCompatButton[12];
|
||||
private int mButtonVisibilityPrev = 0; // 0=startup/1=visible/2=invisible
|
||||
private boolean mSoftKeyboardMode;
|
||||
private boolean mShowButtonsWhenSoftKeyboardClose = true;
|
||||
private SoftKeyboardUtil mSoftKeyboard;
|
||||
|
||||
/**
|
||||
* Initializes the activity.
|
||||
*
|
||||
* <p>
|
||||
* An intent with a valid ACTION is expected; if none is found, an
|
||||
* {@link IllegalArgumentException} will be thrown.
|
||||
*
|
||||
* @param savedInstanceState Previously saved state - irrelevant in this case
|
||||
* @param savedInstanceState Previously saved state - irrelevant in this case
|
||||
*/
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.passcodelock);
|
||||
|
||||
mBCancel = (Button) findViewById(R.id.cancel);
|
||||
|
||||
mPassCodeHdr = (TextView) findViewById(R.id.header);
|
||||
mPassCodeHdrExplanation = (TextView) findViewById(R.id.explanation);
|
||||
mPassCodeEditTexts[0] = (EditText) findViewById(R.id.txt0);
|
||||
mPassCodeEditTexts[0].requestFocus();
|
||||
getWindow().setSoftInputMode(
|
||||
android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
||||
mPassCodeEditTexts[1] = (EditText) findViewById(R.id.txt1);
|
||||
mPassCodeEditTexts[2] = (EditText) findViewById(R.id.txt2);
|
||||
mPassCodeEditTexts[3] = (EditText) findViewById(R.id.txt3);
|
||||
setupButtons();
|
||||
setupPassCodeEditText();
|
||||
mSoftKeyboardMode = INIT_SOFT_KEYBOARD_MODE;
|
||||
mSoftKeyboard = new SoftKeyboardUtil(this, this);
|
||||
if (!ENABLE_SWITCH_SOFT_KEYBOARD) {
|
||||
mButtonsSubStr[11] = "";
|
||||
}
|
||||
|
||||
boolean needKeyboardSetup = true;
|
||||
if (ACTION_CHECK.equals(getIntent().getAction())) {
|
||||
/// this is a pass code request; the user has to input the right value
|
||||
mPassCodeHdr.setText(R.string.pass_code_enter_pass_code);
|
||||
@@ -108,21 +280,43 @@ public class PassCodeActivity extends AppCompatActivity {
|
||||
|
||||
} else if (ACTION_REQUEST_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
if (savedInstanceState != null) {
|
||||
mConfirmingPassCode = savedInstanceState.getBoolean(PassCodeActivity.KEY_CONFIRMING_PASSCODE);
|
||||
mPassCodeDigits = savedInstanceState.getStringArray(PassCodeActivity.KEY_PASSCODE_DIGITS);
|
||||
mConfirmingPassCodeFlag = savedInstanceState.getBoolean(PassCodeActivity.KEY_CONFIRMING_PASSCODE);
|
||||
mConfirmingPassCode = savedInstanceState.getString(PassCodeActivity.KEY_PASSCODE);
|
||||
}
|
||||
if(mConfirmingPassCode){
|
||||
//the app was in the passcodeconfirmation
|
||||
requestPassCodeConfirmation();
|
||||
}else{
|
||||
if (!mConfirmingPassCodeFlag) {
|
||||
/// pass code preference has just been activated in Preferences;
|
||||
// will receive and confirm pass code value
|
||||
mPassCodeHdr.setText(R.string.pass_code_configure_your_pass_code);
|
||||
//mPassCodeHdr.setText(R.string.pass_code_enter_pass_code);
|
||||
// TODO choose a header, check iOS
|
||||
mPassCodeHdrExplanation.setVisibility(View.VISIBLE);
|
||||
setCancelButtonEnabled(true);
|
||||
|
||||
if (mSoftKeyboardMode) {
|
||||
needKeyboardSetup = false;
|
||||
setButtonsVisibility(false);
|
||||
}
|
||||
View view = findViewById(android.R.id.content);
|
||||
Snackbar
|
||||
.make(view, R.string.pass_code_configure_your_pass_code_explanation,
|
||||
Snackbar.LENGTH_LONG)
|
||||
.setAction(R.string.common_ok, new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
// nothing to do
|
||||
}
|
||||
})
|
||||
.setCallback(new Snackbar.Callback() {
|
||||
@Override
|
||||
public void onDismissed(Snackbar snackbar, int event) {
|
||||
if (mSoftKeyboardMode) {
|
||||
setupKeyboard();
|
||||
}
|
||||
}
|
||||
})
|
||||
.show();
|
||||
} else {
|
||||
//the app was in the passcodeconfirmation
|
||||
requestPassCodeConfirmation();
|
||||
}
|
||||
setCancelButtonEnabled(true);
|
||||
|
||||
} else if (ACTION_CHECK_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
/// pass code preference has just been disabled in Preferences;
|
||||
@@ -136,397 +330,389 @@ public class PassCodeActivity extends AppCompatActivity {
|
||||
+ TAG);
|
||||
}
|
||||
|
||||
setTextListeners();
|
||||
if (needKeyboardSetup) {
|
||||
setupKeyboard();
|
||||
if (mSoftKeyboardMode) {
|
||||
mSoftKeyboard.initVisible();
|
||||
} else {
|
||||
mSoftKeyboard.initHidden();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
clearPassCodeEditText();
|
||||
}
|
||||
|
||||
private void setupKeyboard() {
|
||||
mShowButtonsWhenSoftKeyboardClose = true;
|
||||
if (mSoftKeyboardMode) {
|
||||
showSoftKeyboard();
|
||||
setButtonsVisibility(false);
|
||||
} else {
|
||||
hideSoftKeyboard();
|
||||
setButtonsVisibility(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void setupButtons() {
|
||||
for (int i = 0; i < mButtonsIDList.length; i++) {
|
||||
mButtonsIDListShuffle[i] = i;
|
||||
}
|
||||
for (int i = 0; i < mButtonsIDList.length; i++) {
|
||||
mButtonsList[i] = (AppCompatButton) findViewById(mButtonsIDList[i]);
|
||||
mButtonsList[i].setAllCaps(false);
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonAnimation(View view, boolean visible, int duration) {
|
||||
ObjectAnimator objectAnimator;
|
||||
if (visible) {
|
||||
objectAnimator = ObjectAnimator.ofFloat(view, "alpha", 0f, 1f);
|
||||
} else {
|
||||
objectAnimator = ObjectAnimator.ofFloat(view, "alpha", 1f, 0f);
|
||||
}
|
||||
objectAnimator.setDuration(duration);
|
||||
objectAnimator.start();
|
||||
}
|
||||
|
||||
private void setButtonsVisibility(boolean visible) {
|
||||
int duration = mButtonVisibilityPrev == 0 ? 0 : 500;
|
||||
if (visible && mButtonVisibilityPrev != 1) {
|
||||
mButtonVisibilityPrev = 1;
|
||||
if (ENABLE_SUFFLE_BUTTONS) {
|
||||
List<Integer> list = Arrays.asList(mButtonsIDListShuffle);
|
||||
Collections.shuffle(list);
|
||||
mButtonsIDListShuffle = list.toArray(new Integer[list.size()]);
|
||||
}
|
||||
for (int i = 0; i < mButtonsList.length; i++) {
|
||||
AppCompatButton b = mButtonsList[i];
|
||||
int j = ENABLE_SUFFLE_BUTTONS ? mButtonsIDListShuffle[i] : i;
|
||||
buttonAnimation(b, true, duration);
|
||||
b.setClickable(true);
|
||||
String s = String.format(mButtonFormat, mButtonsMainStr[j], mButtonsSubStr[j]);
|
||||
b.setText(Html.fromHtml(s));
|
||||
b.setOnClickListener(new ButtonClicked(mPassCodeEditText, j));
|
||||
if (j == 11 && ENABLE_SWITCH_SOFT_KEYBOARD) {
|
||||
b.setLongClickable(true);
|
||||
b.setOnLongClickListener(new OnLongClickListener() {
|
||||
@Override
|
||||
public boolean onLongClick(View v) {
|
||||
mSoftKeyboardMode = !mSoftKeyboardMode;
|
||||
setupKeyboard();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
} else if (!visible && mButtonVisibilityPrev != 2) {
|
||||
mButtonVisibilityPrev = 2;
|
||||
for (AppCompatButton b: mButtonsList) {
|
||||
buttonAnimation(b, false, duration);
|
||||
b.setClickable(false);
|
||||
b.setOnClickListener(null);
|
||||
b.setLongClickable(false);
|
||||
b.setOnLongClickListener(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables or disables the cancel button to allow the user interrupt the ACTION
|
||||
* requested to the activity.
|
||||
*
|
||||
* @param enabled 'True' makes the cancel button available, 'false' hides it.
|
||||
* @param enabled 'True' makes the cancel button available, 'false' hides it.
|
||||
*/
|
||||
protected void setCancelButtonEnabled(boolean enabled){
|
||||
if(enabled){
|
||||
mBCancel.setVisibility(View.VISIBLE);
|
||||
mBCancel.setOnClickListener(new OnClickListener() {
|
||||
protected void setCancelButtonEnabled(boolean enabled) {
|
||||
AppCompatButton cancel = (AppCompatButton) findViewById(R.id.cancel);
|
||||
if (enabled) {
|
||||
cancel.setVisibility(View.VISIBLE);
|
||||
cancel.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
mBCancel.setVisibility(View.GONE);
|
||||
mBCancel.setVisibility(View.INVISIBLE);
|
||||
mBCancel.setOnClickListener(null);
|
||||
cancel.setVisibility(View.GONE);
|
||||
cancel.setOnClickListener(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Binds the appropiate listeners to the input boxes receiving each digit of the pass code.
|
||||
*/
|
||||
protected void setTextListeners() {
|
||||
|
||||
/// First input field
|
||||
mPassCodeEditTexts[0].addTextChangedListener(new PassCodeDigitTextWatcher(0, false));
|
||||
|
||||
|
||||
/*------------------------------------------------
|
||||
* SECOND BOX
|
||||
-------------------------------------------------*/
|
||||
mPassCodeEditTexts[1].addTextChangedListener(new PassCodeDigitTextWatcher(1, false));
|
||||
|
||||
mPassCodeEditTexts[1].setOnKeyListener(new View.OnKeyListener() {
|
||||
|
||||
protected void setupPassCodeEditText() {
|
||||
TextInputLayout til = (TextInputLayout) findViewById(R.id.passcode);
|
||||
EditText et = til.getEditText();
|
||||
et.setTextIsSelectable(false); // TODO:no effect for double tap?
|
||||
//et.setContextClickable(false);
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
et.setShowSoftInputOnFocus(false); // for disabling popup soft keyboard when double clicked
|
||||
}
|
||||
et.requestFocus();
|
||||
et.addTextChangedListener(new TextWatcher(){
|
||||
@Override
|
||||
public boolean onKey(View v, int keyCode, KeyEvent event) {
|
||||
if (keyCode == KeyEvent.KEYCODE_DEL && mBChange) { // TODO WIP: event should be
|
||||
// used to control what's exactly happening with DEL, not any custom field...
|
||||
mPassCodeEditTexts[0].setText("");
|
||||
mPassCodeEditTexts[0].requestFocus();
|
||||
if (!mConfirmingPassCode) {
|
||||
mPassCodeDigits[0] = "";
|
||||
}
|
||||
mBChange = false;
|
||||
|
||||
} else if (!mBChange) {
|
||||
mBChange = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
mPassCodeEditTexts[1].setOnFocusChangeListener(new View.OnFocusChangeListener() {
|
||||
|
||||
@Override
|
||||
public void onFocusChange(View v, boolean hasFocus) {
|
||||
/// TODO WIP: should take advantage of hasFocus to reduce processing
|
||||
if (mPassCodeEditTexts[0].getText().toString().equals("")) { // TODO WIP validation
|
||||
// could be done in a global way, with a single OnFocusChangeListener for all the
|
||||
// input fields
|
||||
mPassCodeEditTexts[0].requestFocus();
|
||||
public void afterTextChanged(Editable s) {
|
||||
String passCode = mPassCodeEditText.getText().toString();
|
||||
if (passCode.length() == 4) {
|
||||
processFullPassCode(passCode);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------
|
||||
* THIRD BOX
|
||||
-------------------------------------------------*/
|
||||
mPassCodeEditTexts[2].addTextChangedListener(new PassCodeDigitTextWatcher(2, false));
|
||||
|
||||
mPassCodeEditTexts[2].setOnKeyListener(new View.OnKeyListener() {
|
||||
|
||||
@Override
|
||||
public boolean onKey(View v, int keyCode, KeyEvent event) {
|
||||
if (keyCode == KeyEvent.KEYCODE_DEL && mBChange) {
|
||||
mPassCodeEditTexts[1].requestFocus();
|
||||
if (!mConfirmingPassCode) {
|
||||
mPassCodeDigits[1] = "";
|
||||
}
|
||||
mPassCodeEditTexts[1].setText("");
|
||||
mBChange = false;
|
||||
|
||||
} else if (!mBChange) {
|
||||
mBChange = true;
|
||||
|
||||
}
|
||||
return false;
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||
// nothing to do
|
||||
}
|
||||
});
|
||||
|
||||
mPassCodeEditTexts[2].setOnFocusChangeListener(new View.OnFocusChangeListener() {
|
||||
|
||||
@Override
|
||||
public void onFocusChange(View v, boolean hasFocus) {
|
||||
if (mPassCodeEditTexts[0].getText().toString().equals("")) {
|
||||
mPassCodeEditTexts[0].requestFocus();
|
||||
} else if (mPassCodeEditTexts[1].getText().toString().equals("")) {
|
||||
mPassCodeEditTexts[1].requestFocus();
|
||||
}
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
// nothing to do
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------
|
||||
* FOURTH BOX
|
||||
-------------------------------------------------*/
|
||||
mPassCodeEditTexts[3].addTextChangedListener(new PassCodeDigitTextWatcher(3, true));
|
||||
|
||||
mPassCodeEditTexts[3].setOnKeyListener(new View.OnKeyListener() {
|
||||
|
||||
@Override
|
||||
public boolean onKey(View v, int keyCode, KeyEvent event) {
|
||||
if (keyCode == KeyEvent.KEYCODE_DEL && mBChange) {
|
||||
mPassCodeEditTexts[2].requestFocus();
|
||||
if (!mConfirmingPassCode) {
|
||||
mPassCodeDigits[2] = "";
|
||||
}
|
||||
mPassCodeEditTexts[2].setText("");
|
||||
mBChange = false;
|
||||
|
||||
} else if (!mBChange) {
|
||||
mBChange = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
mPassCodeEditTexts[3].setOnFocusChangeListener(new View.OnFocusChangeListener() {
|
||||
|
||||
@Override
|
||||
public void onFocusChange(View v, boolean hasFocus) {
|
||||
|
||||
if (mPassCodeEditTexts[0].getText().toString().equals("")) {
|
||||
mPassCodeEditTexts[0].requestFocus();
|
||||
} else if (mPassCodeEditTexts[1].getText().toString().equals("")) {
|
||||
mPassCodeEditTexts[1].requestFocus();
|
||||
} else if (mPassCodeEditTexts[2].getText().toString().equals("")) {
|
||||
mPassCodeEditTexts[2].requestFocus();
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
} // end setTextListener
|
||||
|
||||
mPassCodeEditText = et;
|
||||
}
|
||||
|
||||
/**
|
||||
* Processes the pass code entered by the user just after the last digit was in.
|
||||
*
|
||||
* <p>
|
||||
* Takes into account the action requested to the activity, the currently saved pass code and
|
||||
* the previously typed pass code, if any.
|
||||
*/
|
||||
private void processFullPassCode() {
|
||||
private void processFullPassCode(String passCode) {
|
||||
if (ACTION_CHECK.equals(getIntent().getAction())) {
|
||||
if (checkPassCode()) {
|
||||
if (checkPassCode(passCode)) {
|
||||
/// pass code accepted in request, user is allowed to access the app
|
||||
hideSoftKeyboard();
|
||||
finish();
|
||||
|
||||
} else {
|
||||
showErrorAndRestart(R.string.pass_code_wrong, R.string.pass_code_enter_pass_code,
|
||||
View.INVISIBLE);
|
||||
} else {
|
||||
mPassCodeHdr.setText(R.string.pass_code_enter_pass_code);
|
||||
showErrorMessage(R.string.pass_code_wrong);
|
||||
startGuard();
|
||||
}
|
||||
|
||||
} else if (ACTION_CHECK_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
if (checkPassCode()) {
|
||||
if (checkPassCode(passCode)) {
|
||||
Intent resultIntent = new Intent();
|
||||
resultIntent.putExtra(KEY_CHECK_RESULT, true);
|
||||
setResult(RESULT_OK, resultIntent);
|
||||
hideSoftKeyboard();
|
||||
finish();
|
||||
} else {
|
||||
showErrorAndRestart(R.string.pass_code_wrong, R.string.pass_code_enter_pass_code,
|
||||
View.INVISIBLE);
|
||||
mPassCodeHdr.setText(R.string.pass_code_enter_pass_code);
|
||||
showErrorMessage(R.string.pass_code_wrong);
|
||||
startGuard();
|
||||
}
|
||||
|
||||
} else if (ACTION_REQUEST_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
/// enabling pass code
|
||||
if (!mConfirmingPassCode) {
|
||||
if (!mConfirmingPassCodeFlag) {
|
||||
requestPassCodeConfirmation();
|
||||
mConfirmingPassCodeFlag = true;
|
||||
mConfirmingPassCode = passCode;
|
||||
|
||||
} else if (confirmPassCode()) {
|
||||
} else if (mConfirmingPassCode.equals(passCode)) {
|
||||
/// confirmed: user typed the same pass code twice
|
||||
savePassCodeAndExit();
|
||||
Intent resultIntent = new Intent();
|
||||
resultIntent.putExtra(KEY_PASSCODE, mConfirmingPassCode);
|
||||
setResult(RESULT_OK, resultIntent);
|
||||
finish();
|
||||
|
||||
} else {
|
||||
showErrorAndRestart(
|
||||
R.string.pass_code_mismatch, R.string.pass_code_configure_your_pass_code, View.VISIBLE
|
||||
);
|
||||
mPassCodeHdr.setText(R.string.pass_code_configure_your_pass_code);
|
||||
showErrorMessage(R.string.pass_code_mismatch);
|
||||
startGuard();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void hideSoftKeyboard() {
|
||||
View focusedView = getCurrentFocus();
|
||||
if (focusedView != null) {
|
||||
InputMethodManager inputMethodManager =
|
||||
(InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
|
||||
inputMethodManager.hideSoftInputFromWindow(
|
||||
focusedView.getWindowToken(),
|
||||
0
|
||||
);
|
||||
private void showErrorMessage(int errorMessage) {
|
||||
CharSequence errorSeq = getString(errorMessage);
|
||||
TextInputLayout til = (TextInputLayout) findViewById(R.id.passcode);
|
||||
til.setError(errorSeq);
|
||||
}
|
||||
|
||||
private void eraseErrorMessage() {
|
||||
TextInputLayout til = (TextInputLayout) findViewById(R.id.passcode);
|
||||
til.setError(null);
|
||||
}
|
||||
|
||||
private void startGuard() {
|
||||
if (!mSoftKeyboardMode) {
|
||||
setButtonsVisibility(false);
|
||||
} else {
|
||||
hideSoftKeyboard();
|
||||
}
|
||||
// mPassCodeEditText.setFocusable(false);
|
||||
mPassCodeEditText.setClickable(false);
|
||||
Animation animation = AnimationUtils.loadAnimation(PassCodeActivity.this, R.anim.shake);
|
||||
mPassCodeEditText.startAnimation(animation);
|
||||
TextInputLayout til = (TextInputLayout) findViewById(R.id.passcode);
|
||||
til.setPasswordVisibilityToggleEnabled(false);
|
||||
new Handler().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
endGuard();
|
||||
}
|
||||
}, GUARD_TIME);
|
||||
}
|
||||
|
||||
private void endGuard() {
|
||||
// mPassCodeEditText.setFocusable(true); // TODO:
|
||||
mPassCodeEditText.setClickable(true);
|
||||
mPassCodeEditText.requestFocus();
|
||||
eraseErrorMessage();
|
||||
TextInputLayout til = (TextInputLayout) findViewById(R.id.passcode);
|
||||
til.setPasswordVisibilityToggleEnabled(true);
|
||||
if (ACTION_CHECK.equals(getIntent().getAction())) {
|
||||
setupKeyboard();
|
||||
clearPassCodeEditText();
|
||||
} else if (ACTION_CHECK_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
Intent resultIntent = new Intent();
|
||||
resultIntent.putExtra(KEY_CHECK_RESULT, true);
|
||||
setResult(RESULT_CANCELED, resultIntent);
|
||||
finish();
|
||||
} else if (ACTION_REQUEST_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
setupKeyboard();
|
||||
clearPassCodeEditText();
|
||||
mPassCodeHdrExplanation.setVisibility(View.VISIBLE);
|
||||
mConfirmingPassCodeFlag = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void showErrorAndRestart(int errorMessage, int headerMessage,
|
||||
int explanationVisibility) {
|
||||
Arrays.fill(mPassCodeDigits, null);
|
||||
CharSequence errorSeq = getString(errorMessage);
|
||||
Toast.makeText(this, errorSeq, Toast.LENGTH_LONG).show();
|
||||
mPassCodeHdr.setText(headerMessage); // TODO check if really needed
|
||||
mPassCodeHdrExplanation.setVisibility(explanationVisibility); // TODO check if really needed
|
||||
clearBoxes();
|
||||
private void hideSoftKeyboard() {
|
||||
mShowButtonsWhenSoftKeyboardClose = false;
|
||||
mSoftKeyboard.hide();
|
||||
}
|
||||
|
||||
private void showSoftKeyboard() {
|
||||
mSoftKeyboard.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* Ask to the user for retyping the pass code just entered before saving it as the current pass
|
||||
* code.
|
||||
*/
|
||||
protected void requestPassCodeConfirmation(){
|
||||
clearBoxes();
|
||||
protected void requestPassCodeConfirmation() {
|
||||
clearPassCodeEditText();
|
||||
mPassCodeHdr.setText(R.string.pass_code_reenter_your_pass_code);
|
||||
mPassCodeHdrExplanation.setVisibility(View.INVISIBLE);
|
||||
mConfirmingPassCode = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares pass code entered by the user with the value currently saved in the app.
|
||||
*
|
||||
* @return 'True' if entered pass code equals to the saved one.
|
||||
* @return 'True' if entered pass code equals to the saved one.
|
||||
*/
|
||||
protected boolean checkPassCode(){
|
||||
protected boolean checkPassCode(String passCode) {
|
||||
SharedPreferences appPrefs = PreferenceManager
|
||||
.getDefaultSharedPreferences(getApplicationContext());
|
||||
.getDefaultSharedPreferences(getApplicationContext());
|
||||
|
||||
String savedPassCodeDigits[] = new String[4];
|
||||
savedPassCodeDigits[0] = appPrefs.getString(PREFERENCE_PASSCODE_D1, null);
|
||||
savedPassCodeDigits[1] = appPrefs.getString(PREFERENCE_PASSCODE_D2, null);
|
||||
savedPassCodeDigits[2] = appPrefs.getString(PREFERENCE_PASSCODE_D3, null);
|
||||
savedPassCodeDigits[3] = appPrefs.getString(PREFERENCE_PASSCODE_D4, null);
|
||||
String savedPassCode = "";
|
||||
savedPassCode += appPrefs.getString(PREFERENCE_PASSCODE_D1, null);
|
||||
savedPassCode += appPrefs.getString(PREFERENCE_PASSCODE_D2, null);
|
||||
savedPassCode += appPrefs.getString(PREFERENCE_PASSCODE_D3, null);
|
||||
savedPassCode += appPrefs.getString(PREFERENCE_PASSCODE_D4, null);
|
||||
|
||||
boolean result = true;
|
||||
for (int i = 0; i < mPassCodeDigits.length && result; i++) {
|
||||
result = (mPassCodeDigits[i] != null) &&
|
||||
mPassCodeDigits[i].equals(savedPassCodeDigits[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares pass code retyped by the user in the input fields with the value entered just
|
||||
* before.
|
||||
*
|
||||
* @return 'True' if retyped pass code equals to the entered before.
|
||||
*/
|
||||
protected boolean confirmPassCode(){
|
||||
mConfirmingPassCode = false;
|
||||
|
||||
boolean result = true;
|
||||
for (int i = 0; i < mPassCodeEditTexts.length && result; i++) {
|
||||
result = ((mPassCodeEditTexts[i].getText().toString()).equals(mPassCodeDigits[i]));
|
||||
}
|
||||
return result;
|
||||
return passCode.equals(savedPassCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the input fields to empty strings and puts the focus on the first one.
|
||||
*/
|
||||
protected void clearBoxes(){
|
||||
for (int i=0; i < mPassCodeEditTexts.length; i++) {
|
||||
mPassCodeEditTexts[i].setText("");
|
||||
}
|
||||
mPassCodeEditTexts[0].requestFocus();
|
||||
protected void clearPassCodeEditText() {
|
||||
mPassCodeEditText.setText("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides click on the BACK arrow to correctly cancel ACTION_ENABLE or ACTION_DISABLE, while
|
||||
* preventing than ACTION_CHECK may be worked around.
|
||||
*
|
||||
* @param keyCode Key code of the key that triggered the down event.
|
||||
* @param event Event triggered.
|
||||
* @return 'True' when the key event was processed by this method.
|
||||
* @param keyCode Key code of the key that triggered the down event.
|
||||
* @param event Event triggered.
|
||||
* @return 'True' when the key event was processed by this method.
|
||||
*/
|
||||
@Override
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event){
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount()== 0){
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
|
||||
if (ACTION_REQUEST_WITH_RESULT.equals(getIntent().getAction()) ||
|
||||
ACTION_CHECK_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
finish();
|
||||
} // else, do nothing, but report that the key was consumed to stay alive
|
||||
} else {
|
||||
if (ENABLE_GO_HOME) {
|
||||
goHome();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return super.onKeyDown(keyCode, event);
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the pass code input by the user as the current pass code.
|
||||
*/
|
||||
protected void savePassCodeAndExit() {
|
||||
Intent resultIntent = new Intent();
|
||||
resultIntent.putExtra(KEY_PASSCODE,
|
||||
mPassCodeDigits[0] + mPassCodeDigits[1] + mPassCodeDigits[2] + mPassCodeDigits[3]);
|
||||
|
||||
setResult(RESULT_OK, resultIntent);
|
||||
|
||||
finish();
|
||||
private void goHome() {
|
||||
Intent homeIntent = new Intent(Intent.ACTION_MAIN);
|
||||
homeIntent.addCategory(Intent.CATEGORY_HOME);
|
||||
homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
startActivity(homeIntent);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putBoolean(PassCodeActivity.KEY_CONFIRMING_PASSCODE, mConfirmingPassCode);
|
||||
outState.putStringArray(PassCodeActivity.KEY_PASSCODE_DIGITS, mPassCodeDigits);
|
||||
outState.putBoolean(PassCodeActivity.KEY_CONFIRMING_PASSCODE, mConfirmingPassCodeFlag);
|
||||
outState.putString(PassCodeActivity.KEY_PASSCODE, mConfirmingPassCode);
|
||||
}
|
||||
|
||||
private class PassCodeDigitTextWatcher implements TextWatcher {
|
||||
private class ButtonClicked implements OnClickListener {
|
||||
|
||||
private int mIndex = -1;
|
||||
private boolean mLastOne = false;
|
||||
private int mIndex;
|
||||
private EditText mEditText;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param index Position in the pass code of the input field that will be bound to
|
||||
* this watcher.
|
||||
* @param lastOne 'True' means that watcher corresponds to the last position of the
|
||||
* pass code.
|
||||
*/
|
||||
public PassCodeDigitTextWatcher(int index, boolean lastOne) {
|
||||
public ButtonClicked(EditText editText, int index) {
|
||||
mEditText = editText;
|
||||
mIndex = index;
|
||||
mLastOne = lastOne;
|
||||
if (mIndex < 0) {
|
||||
throw new IllegalArgumentException(
|
||||
"Invalid index in " + PassCodeDigitTextWatcher.class.getSimpleName() +
|
||||
" constructor"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
private int next() {
|
||||
return mLastOne ? 0 : mIndex + 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs several actions when the user types a digit in an input field:
|
||||
* - saves the input digit to the state of the activity; this will allow retyping the
|
||||
* pass code to confirm it.
|
||||
* - moves the focus automatically to the next field
|
||||
* - for the last field, triggers the processing of the full pass code
|
||||
*
|
||||
* @param s Changed text
|
||||
*/
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
if (s.length() > 0) {
|
||||
if (!mConfirmingPassCode) {
|
||||
mPassCodeDigits[mIndex] = mPassCodeEditTexts[mIndex].getText().toString();
|
||||
}
|
||||
mPassCodeEditTexts[next()].requestFocus();
|
||||
|
||||
if (mLastOne) {
|
||||
processFullPassCode();
|
||||
}
|
||||
|
||||
public void onClick(View v) {
|
||||
if (mIndex <= 9) {
|
||||
// 0,1,2,...,8,9
|
||||
int key = KeyEvent.KEYCODE_0 + mIndex;
|
||||
mEditText.dispatchKeyEvent(
|
||||
new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, key, 0));
|
||||
mEditText.dispatchKeyEvent(
|
||||
new KeyEvent(0, 0, KeyEvent.ACTION_UP, key, 0));
|
||||
} else if (mIndex == 10) {
|
||||
// clear
|
||||
mEditText.setText("");
|
||||
} else {
|
||||
Log_OC.d(TAG, "Text box " + mIndex + " was cleaned");
|
||||
// delete
|
||||
mEditText.dispatchKeyEvent(
|
||||
new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL, 0));
|
||||
mEditText.dispatchKeyEvent(
|
||||
new KeyEvent(0, 0, KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL, 0));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// when softKeyboard close
|
||||
@Override
|
||||
public void onClose()
|
||||
{
|
||||
if (ENABLE_SWITCH_SOFT_KEYBOARD) {
|
||||
if (mShowButtonsWhenSoftKeyboardClose) {
|
||||
mSoftKeyboardMode = false;
|
||||
setButtonsVisibility(true);
|
||||
}
|
||||
} else {
|
||||
if (ACTION_REQUEST_WITH_RESULT.equals(getIntent().getAction()) ||
|
||||
ACTION_CHECK_WITH_RESULT.equals(getIntent().getAction())) {
|
||||
// same as cancel button
|
||||
finish();
|
||||
} else {
|
||||
if (ENABLE_GO_HOME) {
|
||||
goHome();
|
||||
} else {
|
||||
showErrorMessage(R.string.pass_code_enter_pass_code);
|
||||
startGuard();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,7 @@ import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.content.res.Configuration;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
@@ -59,6 +60,7 @@ import com.owncloud.android.MainApp;
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.authentication.AccountUtils;
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
import com.owncloud.android.datamodel.ThumbnailsCacheManager;
|
||||
import com.owncloud.android.datastorage.DataStorageProvider;
|
||||
import com.owncloud.android.datastorage.StoragePoint;
|
||||
import com.owncloud.android.lib.common.OwnCloudAccount;
|
||||
@@ -66,7 +68,11 @@ import com.owncloud.android.lib.common.OwnCloudClientManagerFactory;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.utils.DisplayUtils;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
/**
|
||||
* An Activity that allows the user to change the application's settings.
|
||||
@@ -90,12 +96,35 @@ public class Preferences extends PreferenceActivity
|
||||
*/
|
||||
private Uri mUri;
|
||||
|
||||
public static final String INSTANT_UPLOAD_PATH_ACCOUNT = "instant_upload_path_account";
|
||||
public static final String INSTANT_UPLOAD_PATH = "instant_upload_path";
|
||||
public static final String INSTANT_VIDEO_UPLOAD_PATH = "instant_video_upload_path";
|
||||
public static final String INSTANT_VIDEO_UPLOAD_PATH_ACCOUNT = "instant_video_upload_path_account";
|
||||
public static final String INSTANT_VIDEO_UPLOAD_PATH_USE_SUBFOLDERS = "instant_video_upload_path_use_subfolders";
|
||||
public static final String INSTANT_VIDEO_UPLOAD_ON_WIFI = "instant_video_upload_on_wifi";
|
||||
public static final String INSTANT_VIDEO_UPLOADING = "instant_video_uploading";
|
||||
public static final String PREFS_INSTANT_BEHAVIOUR = "prefs_instant_behaviour";
|
||||
public static final String ABOUT_APP = "about_app";
|
||||
public static final String INSTANT_UPLOADING_CATEGORY = "instant_uploading_category";
|
||||
public static final String INSTANT_UPLOAD_PATH_USE_SUBFOLDERS = "instant_upload_path_use_subfolders";
|
||||
public static final String INSTANT_UPLOAD_ON_WIFI = "instant_upload_on_wifi";
|
||||
public static final String INSTANT_UPLOADING = "instant_uploading";
|
||||
public static final String LOGGER = "logger";
|
||||
public static final String FEEDBACK = "feedback";
|
||||
public static final String RECOMMEND = "recommend";
|
||||
public static final String MORE = "more";
|
||||
public static final String HELP = "help";
|
||||
|
||||
private static String INSTANT_UPLOAD_ACCOUNT_LABEL;
|
||||
private static String INSTANT_UPLOAD_PATH_LABEL;
|
||||
|
||||
private CheckBoxPreference pCode;
|
||||
private CheckBoxPreference mShowHiddenFiles;
|
||||
private Preference pAboutApp;
|
||||
private AppCompatDelegate mDelegate;
|
||||
|
||||
private String mUploadPath;
|
||||
private String mUploadPathAccount;
|
||||
private PreferenceCategory mPrefInstantUploadCategory;
|
||||
private Preference mPrefInstantUpload;
|
||||
private Preference mPrefInstantUploadBehaviour;
|
||||
@@ -109,6 +138,7 @@ public class Preferences extends PreferenceActivity
|
||||
private Preference mPrefInstantVideoUploadPathWiFi;
|
||||
private Preference mPrefInstantVideoUploadOnlyOnCharging;
|
||||
private String mUploadVideoPath;
|
||||
private String mUploadVideoPathAccount;
|
||||
private ListPreference mPrefStoragePath;
|
||||
private String mStoragePath;
|
||||
|
||||
@@ -189,7 +219,27 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
});
|
||||
|
||||
PreferenceCategory preferenceCategory = (PreferenceCategory) findPreference("more");
|
||||
PreferenceCategory preferenceCategory = (PreferenceCategory) findPreference(MORE);
|
||||
final Preference pCacheSize = findPreference("pref_cache_size");
|
||||
if (pCacheSize != null){
|
||||
final SharedPreferences appPrefs =
|
||||
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
Long cacheSize = ThumbnailsCacheManager.getMaxSize();
|
||||
pCacheSize.setSummary(cacheSize + " MB");
|
||||
pCacheSize.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
int size = Integer.decode((String) newValue);
|
||||
if (ThumbnailsCacheManager.setMaxSize(size)){
|
||||
appPrefs.edit().putInt("pref_cache_size", size);
|
||||
pCacheSize.setSummary(size + " MB");
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
boolean calendarContactsEnabled = getResources().getBoolean(R.bool.calendar_contacts_enabled);
|
||||
Preference pCalendarContacts = findPreference("calendar_contacts");
|
||||
@@ -217,8 +267,8 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
|
||||
boolean helpEnabled = getResources().getBoolean(R.bool.help_enabled);
|
||||
Preference pHelp = findPreference("help");
|
||||
if (pHelp != null) {
|
||||
Preference pHelp = findPreference(HELP);
|
||||
if (pHelp != null ) {
|
||||
if (helpEnabled) {
|
||||
pHelp.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@Override
|
||||
@@ -237,8 +287,8 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
}
|
||||
|
||||
boolean recommendEnabled = getResources().getBoolean(R.bool.recommend_enabled);
|
||||
Preference pRecommend = findPreference("recommend");
|
||||
boolean recommendEnabled = getResources().getBoolean(R.bool.recommend_enabled);
|
||||
Preference pRecommend = findPreference(RECOMMEND);
|
||||
if (pRecommend != null) {
|
||||
if (recommendEnabled) {
|
||||
pRecommend.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@@ -270,7 +320,7 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
|
||||
boolean feedbackEnabled = getResources().getBoolean(R.bool.feedback_enabled);
|
||||
Preference pFeedback = findPreference("feedback");
|
||||
Preference pFeedback = findPreference(FEEDBACK);
|
||||
if (pFeedback != null) {
|
||||
if (feedbackEnabled) {
|
||||
pFeedback.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@@ -295,7 +345,7 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
|
||||
boolean loggerEnabled = getResources().getBoolean(R.bool.logger_enabled) || BuildConfig.DEBUG;
|
||||
Preference pLogger = findPreference("logger");
|
||||
Preference pLogger = findPreference(LOGGER);
|
||||
if (pLogger != null) {
|
||||
if (loggerEnabled) {
|
||||
pLogger.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@@ -366,11 +416,11 @@ public class Preferences extends PreferenceActivity
|
||||
|
||||
}
|
||||
|
||||
mPrefInstantUploadCategory = (PreferenceCategory) findPreference("instant_uploading_category");
|
||||
mPrefInstantUploadCategory = (PreferenceCategory) findPreference(INSTANT_UPLOADING_CATEGORY);
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
// Instant upload via preferences on pre Android Nougat
|
||||
mPrefInstantUploadPath = findPreference("instant_upload_path");
|
||||
mPrefInstantUploadPath = findPreference(PreferenceKeys.INSTANT_UPLOAD_PATH);
|
||||
if (mPrefInstantUploadPath != null) {
|
||||
|
||||
mPrefInstantUploadPath.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@@ -385,28 +435,27 @@ public class Preferences extends PreferenceActivity
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
mPrefInstantUploadCategory = (PreferenceCategory) findPreference("instant_uploading_category");
|
||||
mPrefInstantUploadUseSubfolders = findPreference(INSTANT_UPLOAD_PATH_USE_SUBFOLDERS);
|
||||
mPrefInstantUploadPathWiFi = findPreference(INSTANT_UPLOAD_ON_WIFI);
|
||||
mPrefInstantUpload = findPreference(INSTANT_UPLOADING);
|
||||
mPrefInstantPictureUploadOnlyOnCharging = findPreference("instant_upload_on_charging");
|
||||
|
||||
mPrefInstantUploadUseSubfolders = findPreference("instant_upload_path_use_subfolders");
|
||||
mPrefInstantUploadPathWiFi = findPreference("instant_upload_on_wifi");
|
||||
mPrefInstantPictureUploadOnlyOnCharging = findPreference("instant_upload_on_charging");
|
||||
mPrefInstantUpload = findPreference("instant_uploading");
|
||||
toggleInstantPictureOptions(((CheckBoxPreference) mPrefInstantUpload).isChecked());
|
||||
|
||||
toggleInstantPictureOptions(((CheckBoxPreference) mPrefInstantUpload).isChecked());
|
||||
mPrefInstantUpload.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
||||
|
||||
mPrefInstantUpload.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
toggleInstantPictureOptions((Boolean) newValue);
|
||||
toggleInstantUploadBehaviour(
|
||||
((CheckBoxPreference) mPrefInstantVideoUpload).isChecked(),
|
||||
(Boolean) newValue);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
toggleInstantPictureOptions((Boolean) newValue);
|
||||
toggleInstantUploadBehaviour(
|
||||
((CheckBoxPreference)mPrefInstantVideoUpload).isChecked(),
|
||||
(Boolean) newValue);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
mPrefInstantVideoUploadPath = findPreference(PreferenceKeys.INSTANT_VIDEO_UPLOAD_PATH);
|
||||
if (mPrefInstantVideoUploadPath != null){
|
||||
@@ -426,12 +475,14 @@ public class Preferences extends PreferenceActivity
|
||||
});
|
||||
}
|
||||
|
||||
mPrefInstantVideoUploadUseSubfolders = findPreference("instant_video_upload_path_use_subfolders");
|
||||
mPrefInstantVideoUploadPathWiFi = findPreference("instant_video_upload_on_wifi");
|
||||
mPrefInstantVideoUpload = findPreference("instant_video_uploading");
|
||||
mPrefInstantVideoUploadOnlyOnCharging = findPreference("instant_video_upload_on_charging");
|
||||
toggleInstantVideoOptions(((CheckBoxPreference) mPrefInstantVideoUpload).isChecked());
|
||||
mPrefInstantVideoUpload.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
||||
mPrefInstantVideoUploadUseSubfolders = findPreference(INSTANT_VIDEO_UPLOAD_PATH_USE_SUBFOLDERS);
|
||||
mPrefInstantVideoUploadPathWiFi = findPreference(INSTANT_VIDEO_UPLOAD_ON_WIFI);
|
||||
mPrefInstantVideoUpload = findPreference(INSTANT_VIDEO_UPLOADING);
|
||||
mPrefInstantVideoUploadOnlyOnCharging = findPreference("instant_video_upload_on_charging");
|
||||
toggleInstantVideoOptions(((CheckBoxPreference) mPrefInstantVideoUpload).isChecked());
|
||||
|
||||
mPrefInstantVideoUpload.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
||||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
toggleInstantVideoOptions((Boolean) newValue);
|
||||
@@ -442,10 +493,10 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
});
|
||||
|
||||
mPrefInstantUploadBehaviour = findPreference("prefs_instant_behaviour");
|
||||
toggleInstantUploadBehaviour(
|
||||
((CheckBoxPreference) mPrefInstantVideoUpload).isChecked(),
|
||||
((CheckBoxPreference) mPrefInstantUpload).isChecked());
|
||||
mPrefInstantUploadBehaviour = findPreference(PREFS_INSTANT_BEHAVIOUR);
|
||||
toggleInstantUploadBehaviour(
|
||||
((CheckBoxPreference)mPrefInstantVideoUpload).isChecked(),
|
||||
((CheckBoxPreference)mPrefInstantUpload).isChecked());
|
||||
|
||||
loadInstantUploadPath();
|
||||
loadInstantUploadVideoPath();
|
||||
@@ -455,13 +506,87 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
|
||||
/* About App */
|
||||
pAboutApp = findPreference("about_app");
|
||||
if (pAboutApp != null) {
|
||||
pAboutApp.setTitle(String.format(getString(R.string.about_android), getString(R.string.app_name)));
|
||||
pAboutApp.setSummary(String.format(getString(R.string.about_version), appVersion));
|
||||
pAboutApp = (Preference) findPreference(ABOUT_APP);
|
||||
if (pAboutApp != null) {
|
||||
pAboutApp.setTitle(String.format(getString(R.string.about_android),
|
||||
getString(R.string.app_name)));
|
||||
try {
|
||||
Integer currentVersion = getPackageManager().getPackageInfo
|
||||
(getPackageName(), 0).versionCode;
|
||||
pAboutApp.setSummary(String.format(getString(R.string.about_version),
|
||||
currentVersion));
|
||||
} catch (NameNotFoundException e) {
|
||||
Log_OC.e(TAG, "Error setting about app summary", e);
|
||||
}
|
||||
}
|
||||
|
||||
INSTANT_UPLOAD_ACCOUNT_LABEL = getResources().getString(R.string.prefs_instant_upload_account);
|
||||
INSTANT_UPLOAD_PATH_LABEL = getResources().getString(R.string.prefs_instant_upload_path);
|
||||
|
||||
INSTANT_UPLOAD_ACCOUNT_LABEL = getResources().getString(R.string.prefs_instant_upload_account);
|
||||
INSTANT_UPLOAD_PATH_LABEL = getResources().getString(R.string.prefs_instant_upload_path);
|
||||
|
||||
INSTANT_UPLOAD_ACCOUNT_LABEL = getResources().getString(R.string.prefs_instant_upload_account);
|
||||
INSTANT_UPLOAD_PATH_LABEL = getResources().getString(R.string.prefs_instant_upload_path);
|
||||
|
||||
loadStoragePath();
|
||||
/* Link to Beta apks */
|
||||
Preference pBetaLink = findPreference("beta_link");
|
||||
if (pBetaLink != null ){
|
||||
pBetaLink.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@Override
|
||||
public boolean onPreferenceClick(Preference preference) {
|
||||
Integer latestVersion = -1;
|
||||
Integer currentVersion = -1;
|
||||
try {
|
||||
currentVersion = getPackageManager().getPackageInfo
|
||||
(getPackageName(), 0).versionCode;
|
||||
LoadingVersionNumberTask loadTask = new LoadingVersionNumberTask();
|
||||
loadTask.execute();
|
||||
latestVersion = loadTask.get();
|
||||
} catch (InterruptedException | ExecutionException | NameNotFoundException e) {
|
||||
Log_OC.e(TAG, "Error detecting app version", e);
|
||||
}
|
||||
if (latestVersion == -1 || currentVersion == -1) {
|
||||
Toast.makeText(getApplicationContext(), "No information available!",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
if (latestVersion > currentVersion) {
|
||||
String betaLinkWeb = (String) getText(R.string.beta_link) +
|
||||
latestVersion + ".apk";
|
||||
if (betaLinkWeb != null && betaLinkWeb.length() > 0) {
|
||||
Uri uriUrl = Uri.parse(betaLinkWeb);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, uriUrl);
|
||||
startActivity(intent);
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
Toast.makeText(getApplicationContext(), "No new version available!",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
loadStoragePath();
|
||||
/* Link to beta changelog */
|
||||
Preference pChangelogLink = findPreference("changelog_link");
|
||||
if (pChangelogLink != null) {
|
||||
pChangelogLink.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@Override
|
||||
public boolean onPreferenceClick(Preference preference) {
|
||||
String betaLinkWeb = getString(R.string.changelog);
|
||||
if (betaLinkWeb != null && betaLinkWeb.length() > 0) {
|
||||
Uri uriUrl = Uri.parse(betaLinkWeb);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, uriUrl);
|
||||
startActivity(intent);
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void launchDavDroidLogin()
|
||||
@@ -476,7 +601,7 @@ public class Preferences extends PreferenceActivity
|
||||
if (getPackageManager().resolveActivity(davDroidLoginIntent, 0) != null) {
|
||||
// arguments
|
||||
if (mUri != null) {
|
||||
davDroidLoginIntent.putExtra("url", mUri.toString());
|
||||
davDroidLoginIntent.putExtra("url", mUri.toString() + AccountUtils.DAV_PATH);
|
||||
}
|
||||
davDroidLoginIntent.putExtra("username", AccountUtils.getAccountUsername(account.name));
|
||||
//loginIntent.putExtra("password", "...");
|
||||
@@ -601,8 +726,10 @@ public class Preferences extends PreferenceActivity
|
||||
|
||||
mUploadPath = DisplayUtils.getPathWithoutLastSlash(mUploadPath);
|
||||
|
||||
mUploadPathAccount = AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext()).name;
|
||||
|
||||
// Show the path on summary preference
|
||||
mPrefInstantUploadPath.setSummary(mUploadPath);
|
||||
mPrefInstantUploadPath.setSummary(getUploadAccountPath(mUploadPathAccount, mUploadPath));
|
||||
|
||||
saveInstantUploadPathOnPreferences();
|
||||
|
||||
@@ -614,8 +741,10 @@ public class Preferences extends PreferenceActivity
|
||||
|
||||
mUploadVideoPath = DisplayUtils.getPathWithoutLastSlash(mUploadVideoPath);
|
||||
|
||||
mUploadVideoPathAccount = AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext()).name;
|
||||
|
||||
// Show the video path on summary preference
|
||||
mPrefInstantVideoUploadPath.setSummary(mUploadVideoPath);
|
||||
mPrefInstantVideoUploadPath.setSummary(getUploadAccountPath(mUploadVideoPathAccount, mUploadVideoPath));
|
||||
|
||||
saveInstantUploadVideoPathOnPreferences();
|
||||
} else if (requestCode == ACTION_REQUEST_PASSCODE && resultCode == RESULT_OK) {
|
||||
@@ -724,14 +853,24 @@ public class Preferences extends PreferenceActivity
|
||||
return mDelegate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a combined string of accountName and uploadPath to be displayed to user.
|
||||
*/
|
||||
private String getUploadAccountPath(String accountName, String uploadPath) {
|
||||
return INSTANT_UPLOAD_ACCOUNT_LABEL + ": " + accountName + "\n"
|
||||
+ INSTANT_UPLOAD_PATH_LABEL + ": " + uploadPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load upload path set on preferences
|
||||
*/
|
||||
private void loadInstantUploadPath() {
|
||||
SharedPreferences appPrefs =
|
||||
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
mUploadPath = appPrefs.getString(PreferenceKeys.INSTANT_UPLOAD_PATH, getString(R.string.instant_upload_path));
|
||||
mPrefInstantUploadPath.setSummary(mUploadPath);
|
||||
mUploadPath = appPrefs.getString(INSTANT_UPLOAD_PATH, getString(R.string.instant_upload_path));
|
||||
mUploadPathAccount = appPrefs.getString(INSTANT_UPLOAD_PATH_ACCOUNT,
|
||||
AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext()).name);
|
||||
mPrefInstantUploadPath.setSummary(getUploadAccountPath(mUploadPathAccount, mUploadPath));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -750,6 +889,7 @@ public class Preferences extends PreferenceActivity
|
||||
mPrefStoragePath.setValue(newStoragePath);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Load storage path set on preferences
|
||||
*/
|
||||
@@ -763,13 +903,14 @@ public class Preferences extends PreferenceActivity
|
||||
}
|
||||
|
||||
/**
|
||||
* Save the "Instant Upload Path" on preferences
|
||||
* Save the "Instant Upload Path" and corresponding account on preferences
|
||||
*/
|
||||
private void saveInstantUploadPathOnPreferences() {
|
||||
SharedPreferences appPrefs =
|
||||
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
SharedPreferences.Editor editor = appPrefs.edit();
|
||||
editor.putString(PreferenceKeys.INSTANT_UPLOAD_PATH, mUploadPath);
|
||||
editor.putString(PreferenceKeys.INSTANT_UPLOAD_PATH, mUploadPath)
|
||||
.putString(INSTANT_UPLOAD_PATH_ACCOUNT, mUploadPathAccount);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
@@ -779,18 +920,21 @@ public class Preferences extends PreferenceActivity
|
||||
private void loadInstantUploadVideoPath() {
|
||||
SharedPreferences appPrefs =
|
||||
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
mUploadVideoPath = appPrefs.getString("instant_video_upload_path", getString(R.string.instant_upload_path));
|
||||
mPrefInstantVideoUploadPath.setSummary(mUploadVideoPath);
|
||||
mUploadVideoPath = appPrefs.getString(INSTANT_VIDEO_UPLOAD_PATH, getString(R.string.instant_upload_path));
|
||||
mUploadVideoPathAccount = appPrefs.getString(INSTANT_VIDEO_UPLOAD_PATH_ACCOUNT,
|
||||
AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext()).name);
|
||||
mPrefInstantVideoUploadPath.setSummary(getUploadAccountPath(mUploadVideoPathAccount, mUploadVideoPath));
|
||||
}
|
||||
|
||||
/**
|
||||
* Save the "Instant Video Upload Path" on preferences
|
||||
* Save the "Instant Video Upload Path" and corresponding account on preferences
|
||||
*/
|
||||
private void saveInstantUploadVideoPathOnPreferences() {
|
||||
SharedPreferences appPrefs =
|
||||
PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
SharedPreferences.Editor editor = appPrefs.edit();
|
||||
editor.putString(PreferenceKeys.INSTANT_VIDEO_UPLOAD_PATH, mUploadVideoPath);
|
||||
editor.putString(INSTANT_VIDEO_UPLOAD_PATH, mUploadVideoPath)
|
||||
.putString(INSTANT_VIDEO_UPLOAD_PATH_ACCOUNT, mUploadVideoPathAccount);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
@@ -806,4 +950,27 @@ public class Preferences extends PreferenceActivity
|
||||
// Migration was canceled so we don't do anything
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Class for loading the version number
|
||||
*
|
||||
*/
|
||||
private class LoadingVersionNumberTask extends AsyncTask<Void, Void, Integer> {
|
||||
protected Integer doInBackground(Void... args) {
|
||||
try {
|
||||
URL url = new URL(getString(R.string.beta_latest));
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
|
||||
|
||||
Integer latestVersion = Integer.parseInt(in.readLine());
|
||||
in.close();
|
||||
|
||||
return latestVersion;
|
||||
|
||||
} catch (IOException e) {
|
||||
Log_OC.e(TAG, "Error loading version number", e);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -38,11 +38,11 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.lib.resources.shares.OCShare;
|
||||
import com.owncloud.android.lib.resources.shares.ShareType;
|
||||
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
|
||||
import com.owncloud.android.operations.CreateShareViaLinkOperation;
|
||||
import com.owncloud.android.operations.GetSharesForFileOperation;
|
||||
import com.owncloud.android.operations.UnshareOperation;
|
||||
import com.owncloud.android.operations.UpdateSharePermissionsOperation;
|
||||
import com.owncloud.android.providers.UsersAndGroupsSearchProvider;
|
||||
import com.owncloud.android.ui.dialog.ShareLinkToDialog;
|
||||
import com.owncloud.android.ui.fragment.EditShareFragment;
|
||||
import com.owncloud.android.ui.fragment.SearchShareesFragment;
|
||||
@@ -51,6 +51,8 @@ import com.owncloud.android.ui.fragment.ShareFragmentListener;
|
||||
import com.owncloud.android.utils.ErrorMessageAdapter;
|
||||
import com.owncloud.android.utils.GetShareWithUsersAsyncTask;
|
||||
|
||||
import org.nextcloud.providers.UsersAndGroupsSearchProvider;
|
||||
|
||||
|
||||
/**
|
||||
* Activity for sharing files
|
||||
@@ -142,11 +144,28 @@ public class ShareActivity extends FileActivity
|
||||
if (getFile().isSharedWithMe()) {
|
||||
return OCShare.READ_PERMISSION_FLAG; // minimum permissions
|
||||
|
||||
} else if (getFile().isFolder()) {
|
||||
return (isFederated) ? OCShare.FEDERATED_PERMISSIONS_FOR_FOLDER : OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER;
|
||||
|
||||
} else { // isFile
|
||||
return (isFederated) ? OCShare.FEDERATED_PERMISSIONS_FOR_FILE : OCShare.MAXIMUM_PERMISSIONS_FOR_FILE;
|
||||
} else if (isFederated) {
|
||||
OwnCloudVersion serverVersion =
|
||||
com.owncloud.android.authentication.AccountUtils.getServerVersion(getAccount());
|
||||
if (serverVersion != null && serverVersion.isNotReshareableFederatedSupported()) {
|
||||
return (
|
||||
getFile().isFolder() ?
|
||||
OCShare.FEDERATED_PERMISSIONS_FOR_FOLDER_AFTER_OC9 :
|
||||
OCShare.FEDERATED_PERMISSIONS_FOR_FILE_AFTER_OC9
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
getFile().isFolder() ?
|
||||
OCShare.FEDERATED_PERMISSIONS_FOR_FOLDER_UP_TO_OC9 :
|
||||
OCShare.FEDERATED_PERMISSIONS_FOR_FILE_UP_TO_OC9
|
||||
);
|
||||
}
|
||||
} else {
|
||||
return (
|
||||
getFile().isFolder() ?
|
||||
OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER :
|
||||
OCShare.MAXIMUM_PERMISSIONS_FOR_FILE
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||