Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b98b786c10 | ||
|
|
8ef23b1425 | ||
|
|
f0eff92011 | ||
|
|
75b2fe9c36 | ||
|
|
4c04c8d5e0 | ||
|
|
6f7ebd22e3 | ||
|
|
4753f2bae7 | ||
|
|
bf14e37db3 | ||
|
|
90b1202876 | ||
|
|
314146622d | ||
|
|
5f883c7d5c | ||
|
|
08bda3b50d | ||
|
|
f152b93b98 | ||
|
|
7be7c6d9f6 | ||
|
|
6b6abdadf6 | ||
|
|
eeb97c791b | ||
|
|
25a9ec1ef5 | ||
|
|
491b7998ae | ||
|
|
bff45cc5d8 | ||
|
|
613e426468 | ||
|
|
faa6714cd6 | ||
|
|
bd577c2863 | ||
|
|
a04e68d8fe | ||
|
|
7f68bff3fc | ||
|
|
90f483331b | ||
|
|
8cbf227b03 | ||
|
|
84d4c8fa8a | ||
|
|
852fdd59a3 | ||
|
|
181cc6f120 | ||
|
|
a8004ba13f | ||
|
|
0913b58594 | ||
|
|
65ad78725a | ||
|
|
b0590e2928 | ||
|
|
f3b02603e2 | ||
|
|
9dfb068357 | ||
|
|
ae05054fc7 | ||
|
|
55d05dbbf3 | ||
|
|
0d88c5e4f1 | ||
|
|
2fcdd2daf7 | ||
|
|
d25e1c2343 | ||
|
|
3c89d5133d | ||
|
|
e7f7954a3e | ||
|
|
481ce675dc | ||
|
|
b5f995b1fe | ||
|
|
4a7bf985cb | ||
|
|
821dd1b868 | ||
|
|
116a5ad597 | ||
|
|
49cd2c1df2 | ||
|
|
aa3ed90295 | ||
|
|
5890f1b8da | ||
|
|
d3dbdcedc6 | ||
|
|
96666937c9 | ||
|
|
87d1e56b63 | ||
|
|
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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
Nextcloud Android client application
|
||||
|
||||
Copyright (C) 2012 Bartek Przybylski
|
||||
Copyright (C) 2012-2016 ownCloud Inc.
|
||||
@@ -20,8 +20,8 @@
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.owncloud.android"
|
||||
android:versionCode="10030199"
|
||||
android:versionName="1.3.1">
|
||||
android:versionCode="20161107"
|
||||
android:versionName="20161107" >
|
||||
|
||||
<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 -->
|
||||
@@ -62,12 +63,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" />
|
||||
@@ -83,6 +84,7 @@
|
||||
|
||||
android:taskAffinity=""
|
||||
android:excludeFromRecents="true"
|
||||
android:label="Nextcloud beta"
|
||||
android:theme="@style/Theme.ownCloud.NoActionBar">
|
||||
<activity android:name=".ui.activity.LocalDirectorySelectorActivity" />
|
||||
<activity android:name=".ui.activity.StorageMigrationActivity" />
|
||||
@@ -110,7 +112,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
|
||||
@@ -150,8 +152,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" />
|
||||
@@ -179,6 +181,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"
|
||||
@@ -214,11 +222,13 @@
|
||||
<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" />
|
||||
<activity android:name=".ui.activity.WhatsNewActivity" />
|
||||
|
||||
<receiver android:name=".files.services.ConnectivityActionReceiver"
|
||||
android:enabled="true" android:label="ConnectivityActionReceiver">
|
||||
@@ -256,16 +266,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" >
|
||||
@@ -276,7 +286,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,54 +1,89 @@
|
||||
## 1.3.1 (September 20, 2016)
|
||||
## 2016-10-26
|
||||
- New Instant Upload (Android 5+) #358
|
||||
|
||||
- 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-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.3.0 (September 17, 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
|
||||
|
||||
- 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-09-26
|
||||
- update fix crash in dismissLoadingDialog #279
|
||||
- fix crash when sending non-existing log #284
|
||||
|
||||
## 1.2.0 (July 29, 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
|
||||
|
||||
- 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-09-18
|
||||
- update to latest 1.3.0 functionality
|
||||
- change caption for move and copy action #265
|
||||
|
||||
## 1.1.0 (July 6, 2016)
|
||||
## 2016-09-15
|
||||
- update to latest 1.3.0 RC2 functionality
|
||||
- What's new #84
|
||||
|
||||
- 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-09-07
|
||||
- update Motivate more users #239
|
||||
- DAVdroid login screen prefilled launch #236
|
||||
|
||||
## 1.0.1 (June 20, 2016)
|
||||
## 2016-09-04
|
||||
- descend into folder after creating it in uploader #206
|
||||
- Motivate more users #239
|
||||
|
||||
- Fix thumbnail preview support for new files
|
||||
- Add support for animated GIFs
|
||||
- Optimized uploader layout
|
||||
## 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
|
||||
|
||||
## 1.0.0 (June 12, 2016)
|
||||
## 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
|
||||
|
||||
- initial release of the Nextcloud Android app
|
||||
## 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 @@
|
||||
20161107
|
||||
@@ -41,12 +41,13 @@ dependencies {
|
||||
/// dependencies for app building
|
||||
compile name: 'touch-image-view'
|
||||
|
||||
compile 'com.github.nextcloud:android-library:1.0.8'
|
||||
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'
|
||||
compile "com.android.support:appcompat-v7:${supportLibraryVersion}"
|
||||
compile 'com.getbase:floatingactionbutton:1.10.1'
|
||||
compile 'com.google.code.findbugs:annotations:2.0.1'
|
||||
|
||||
|
||||
/// dependencies for local unit tests
|
||||
@@ -99,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 20161107
|
||||
versionName "20161107"
|
||||
|
||||
// disable the experimental Jack build tools.
|
||||
jackOptions {
|
||||
enabled false
|
||||
}
|
||||
}
|
||||
|
||||
// adapt structure from Eclipse to Gradle/Android Studio expectations;
|
||||
@@ -138,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 {
|
||||
@@ -150,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
|
||||
@@ -201,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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
</description>
|
||||
<exclude-pattern>.*/R.java</exclude-pattern>
|
||||
<exclude-pattern>.*/gen/.*</exclude-pattern>
|
||||
<exclude-pattern>.*/third_parties/.*</exclude-pattern>
|
||||
|
||||
<rule ref="rulesets/java/logging-java.xml" />
|
||||
<rule ref="rulesets/java/braces.xml" />
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<!-- drawable/arrow_right.xml -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path android:fillColor="#007CC2" android:pathData="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z" />
|
||||
</vector>
|
||||
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 188 B |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 266 B |
|
After Width: | Height: | Size: 199 B |
|
After Width: | Height: | Size: 357 B |
|
After Width: | Height: | Size: 199 B |
|
After Width: | Height: | Size: 497 B |
|
After Width: | Height: | Size: 255 B |
|
After Width: | Height: | Size: 608 B |
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2015-2016 Bartosz Przybylski
|
||||
Copyright (C) 2015 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 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/>.
|
||||
-->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:bottom="5dp" android:top="5dp" android:right="5dp" android:left="5dp">
|
||||
|
||||
<shape
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/owncloud_blue_dark_transparent"/>
|
||||
<size android:width="8dp" android:height="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2015-2016 Bartosz Przybylski
|
||||
Copyright (C) 2015 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 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/>.
|
||||
-->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:bottom="5dp" android:top="5dp" android:right="5dp" android:left="5dp">
|
||||
<shape
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/owncloud_blue_accent"/>
|
||||
<size android:width="8dp" android:height="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/owncloud_blue_accent"/>
|
||||
</shape>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2015 Bartosz 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/>.
|
||||
-->
|
||||
|
||||
<transition xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/indicator_dot_not_selected" />
|
||||
<item android:drawable="@drawable/indicator_dot_selected" />
|
||||
</transition>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:weightSum="100">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="@string/placeholder_sentence"
|
||||
android:id="@+id/welcomeText"
|
||||
android:layout_margin="5dp"
|
||||
android:layout_weight="10"
|
||||
android:gravity="center"/>
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
android:id="@+id/contentPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="80">
|
||||
</android.support.v4.view.ViewPager>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="10"
|
||||
android:weightSum="3"
|
||||
android:layout_marginBottom="@dimen/standard_margin"
|
||||
android:layout_marginLeft="@dimen/standard_margin"
|
||||
android:layout_marginRight="@dimen/standard_margin">
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
android:id="@+id/skip"
|
||||
style="@style/Button.Borderless"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/whats_new_skip"
|
||||
android:layout_gravity="center_vertical|center_horizontal"/>
|
||||
|
||||
<com.owncloud.android.ui.whatsnew.ProgressIndicator
|
||||
android:id="@+id/progressIndicator"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical|center_horizontal">
|
||||
</com.owncloud.android.ui.whatsnew.ProgressIndicator>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center">
|
||||
<ImageButton
|
||||
android:id="@+id/forward"
|
||||
android:src="@drawable/arrow_right"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:padding="@dimen/standard_padding"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:weightSum="100">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:id="@+id/whatsNewImage"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_weight="50"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/NextcloudTextAppearanceHeadline"
|
||||
android:textStyle="bold"
|
||||
android:text="@string/placeholder_sentence"
|
||||
android:id="@+id/whatsNewTitle"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/NextcloudTextAppearanceMedium"
|
||||
android:text="@string/placeholder_sentence"
|
||||
android:id="@+id/whatsNewText"
|
||||
android:layout_margin="@dimen/standard_margin"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center"/>
|
||||
</LinearLayout>
|
||||
|
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 |
@@ -415,7 +415,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">запазвани в оригиналната папка</string>
|
||||
<string name="pref_behaviour_entries_move">премествани в папката на приложението</string>
|
||||
<string name="pref_behaviour_entries_delete_file">изтривани</string>
|
||||
|
||||
<string name="share_dialog_title">Споделяне</string>
|
||||
<string name="share_file">Споделяне на %1$s</string>
|
||||
<string name="share_with_user_section_title">Споделяне с потребители и групи</string>
|
||||
@@ -471,4 +470,4 @@
|
||||
<item quantity="other">%d избрани</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -355,6 +355,19 @@ správce systému.</string>
|
||||
<string name="uploader_upload_forbidden_permissions">nahrávat do tohoto adresáře</string>
|
||||
<string name="downloader_download_file_not_found">Tento soubor již není dostupný na serveru</string>
|
||||
|
||||
<string name="file_migration_dialog_title">Aktualizace cesty k úložišti</string>
|
||||
<string name="file_migration_finish_button">Dokončit</string>
|
||||
<string name="file_migration_failed_not_enough_space">CHYBA: Nedostatek volného prostoru</string>
|
||||
<string name="file_migration_failed_not_writable">CHYBA: Do souboru nelze zapisovat</string>
|
||||
<string name="file_migration_failed_not_readable">CHYBA: Soubor nelze číst</string>
|
||||
<string name="file_migration_failed_dir_already_exists">CHYBA: Nextcloud adresář již existuje</string>
|
||||
<string name="file_migration_failed_while_coping">CHYBA: V průběhu migrace</string>
|
||||
<string name="file_migration_failed_while_updating_index">CHYBA: V průběhu aktualizace indexu</string>
|
||||
|
||||
<string name="file_migration_directory_already_exists">Datový adresář již existuje, co teď?</string>
|
||||
<string name="file_migration_override_data_folder">Přepsat</string>
|
||||
<string name="file_migration_use_data_folder">Použít existující</string>
|
||||
|
||||
<string name="prefs_category_accounts">Účty</string>
|
||||
<string name="prefs_add_account">Přidat účet</string>
|
||||
<string name="drawer_manage_accounts">Spravovat účty</string>
|
||||
@@ -421,6 +434,8 @@ správce systému.</string>
|
||||
<string name="pref_behaviour_entries_keep_file">ponechán ve výchozím adresáři</string>
|
||||
<string name="pref_behaviour_entries_move">přesunut do adresáře aplikace</string>
|
||||
<string name="pref_behaviour_entries_delete_file">smazáno</string>
|
||||
<string name="prefs_storage_path">Cesta k úložišti</string>
|
||||
<string name="prefs_common">Obvyklý</string>
|
||||
|
||||
<string name="share_dialog_title">Sdílení</string>
|
||||
<string name="share_file">Sdílet %1$s</string>
|
||||
@@ -497,4 +512,8 @@ správce systému.</string>
|
||||
<item quantity="other">vybráno %d</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_default">Výchozí</string>
|
||||
<string name="storage_description_sd_no">SD karta %1$d</string>
|
||||
<string name="storage_description_unknown">Neznámý</string>
|
||||
|
||||
</resources>
|
||||
@@ -356,6 +356,28 @@
|
||||
<string name="uploader_upload_forbidden_permissions">in diesem Order etwas hochzuladen</string>
|
||||
<string name="downloader_download_file_not_found">Diese Datei steht auf dem Server nicht mehr zur Verfügung</string>
|
||||
|
||||
<string name="file_migration_dialog_title">Aktualisiere Speicherort</string>
|
||||
<string name="file_migration_finish_button">Beenden</string>
|
||||
<string name="file_migration_preparing">Bereite Migration vor…</string>
|
||||
<string name="file_migration_checking_destination">Prüfe Zielort…</string>
|
||||
<string name="file_migration_saving_accounts_configuration">Speichere Konteneinstellung…</string>
|
||||
<string name="file_migration_waiting_for_unfinished_sync">Warte auf Abschluss der Synchronisierungen…</string>
|
||||
<string name="file_migration_migrating">Verschiebe Dateien…</string>
|
||||
<string name="file_migration_updating_index">Aktualisiere Index…</string>
|
||||
<string name="file_migration_cleaning">Aufräumen…</string>
|
||||
<string name="file_migration_restoring_accounts_configuration">Konteneinstellung wiederherstellen…</string>
|
||||
<string name="file_migration_ok_finished">Abgeschlossen</string>
|
||||
<string name="file_migration_failed_not_enough_space">FEHLER: Nicht genügend Speicherplatz</string>
|
||||
<string name="file_migration_failed_not_writable">FEHLER: Datei kann nicht geschrieben werden</string>
|
||||
<string name="file_migration_failed_not_readable">FEHLER: Datei nicht lesbar</string>
|
||||
<string name="file_migration_failed_dir_already_exists">FEHLER: Nextcloud Ordner existiert bereits</string>
|
||||
<string name="file_migration_failed_while_coping">FEHLER: Während der Migration</string>
|
||||
<string name="file_migration_failed_while_updating_index">FEHLER: Während der Aktualisierung des Indixes</string>
|
||||
|
||||
<string name="file_migration_directory_already_exists">Datenordner existiert bereits, was soll getan werden?</string>
|
||||
<string name="file_migration_override_data_folder">Überschreiben</string>
|
||||
<string name="file_migration_use_data_folder">Verwende Bestehenden</string>
|
||||
|
||||
<string name="prefs_category_accounts">Konten</string>
|
||||
<string name="prefs_add_account">Konto hinzufügen</string>
|
||||
<string name="drawer_manage_accounts">Konten verwalten</string>
|
||||
@@ -422,6 +444,8 @@
|
||||
<string name="pref_behaviour_entries_keep_file">im Originalordner behalten</string>
|
||||
<string name="pref_behaviour_entries_move">in den App-Ordner verschoben</string>
|
||||
<string name="pref_behaviour_entries_delete_file">gelöscht</string>
|
||||
<string name="prefs_storage_path">Speicherort</string>
|
||||
<string name="prefs_common">Allgemein</string>
|
||||
|
||||
<string name="share_dialog_title">Teilen</string>
|
||||
<string name="share_file">%1$s teilen</string>
|
||||
@@ -497,4 +521,8 @@
|
||||
<item quantity="other">%d ausgewählt</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_default">Standard</string>
|
||||
<string name="storage_description_sd_no">SD Karte %1$d</string>
|
||||
<string name="storage_description_unknown">Unbekannt</string>
|
||||
|
||||
</resources>
|
||||
@@ -356,6 +356,28 @@
|
||||
<string name="uploader_upload_forbidden_permissions">in diesem Order etwas hochzuladen</string>
|
||||
<string name="downloader_download_file_not_found">Diese Datei steht auf dem Server nicht mehr zur Verfügung</string>
|
||||
|
||||
<string name="file_migration_dialog_title">Aktualisiere Speicherort</string>
|
||||
<string name="file_migration_finish_button">Beenden</string>
|
||||
<string name="file_migration_preparing">Bereite Migration vor…</string>
|
||||
<string name="file_migration_checking_destination">Prüfe Zielort…</string>
|
||||
<string name="file_migration_saving_accounts_configuration">Speichere Konteneinstellung…</string>
|
||||
<string name="file_migration_waiting_for_unfinished_sync">Warte auf Abschluss der Synchronisierungen…</string>
|
||||
<string name="file_migration_migrating">Verschiebe Dateien…</string>
|
||||
<string name="file_migration_updating_index">Aktualisiere Index…</string>
|
||||
<string name="file_migration_cleaning">Aufräumen…</string>
|
||||
<string name="file_migration_restoring_accounts_configuration">Konteneinstellung wiederherstellen…</string>
|
||||
<string name="file_migration_ok_finished">Abgeschlossen</string>
|
||||
<string name="file_migration_failed_not_enough_space">FEHLER: Nicht genügend Speicherplatz</string>
|
||||
<string name="file_migration_failed_not_writable">FEHLER: Datei kann nicht geschrieben werden</string>
|
||||
<string name="file_migration_failed_not_readable">FEHLER: Datei nicht lesbar</string>
|
||||
<string name="file_migration_failed_dir_already_exists">FEHLER: Nextcloud Ordner existiert bereits</string>
|
||||
<string name="file_migration_failed_while_coping">FEHLER: Während der Migration</string>
|
||||
<string name="file_migration_failed_while_updating_index">FEHLER: Während der Aktualisierung des Indixes</string>
|
||||
|
||||
<string name="file_migration_directory_already_exists">Datenordner existiert bereits, was soll getan werden?</string>
|
||||
<string name="file_migration_override_data_folder">Überschreiben</string>
|
||||
<string name="file_migration_use_data_folder">Verwende Bestehenden</string>
|
||||
|
||||
<string name="prefs_category_accounts">Konten</string>
|
||||
<string name="prefs_add_account">Konto hinzufügen</string>
|
||||
<string name="drawer_manage_accounts">Benutzerkonten verwalten</string>
|
||||
@@ -422,6 +444,8 @@
|
||||
<string name="pref_behaviour_entries_keep_file">im Originalordner behalten</string>
|
||||
<string name="pref_behaviour_entries_move">in den App-Ordner verschoben</string>
|
||||
<string name="pref_behaviour_entries_delete_file">gelöscht</string>
|
||||
<string name="prefs_storage_path">Speicherort</string>
|
||||
<string name="prefs_common">Allgemein</string>
|
||||
|
||||
<string name="share_dialog_title">Teilen</string>
|
||||
<string name="share_file">Teile %1$s</string>
|
||||
@@ -463,7 +487,7 @@
|
||||
<string name="action_switch_grid_view">Rasteransicht</string>
|
||||
<string name="action_switch_list_view">Listenansicht</string>
|
||||
|
||||
<string name="manage_space_title">verwalte Speicherplatz</string>
|
||||
<string name="manage_space_title">Verwalte Speicherplatz</string>
|
||||
<string name="manage_space_description">Einstellungen, Datenbank und Server-Zertifikate von %1$s\'s Daten werden dauerhaft gelöscht.\n\nHerunter geladene Dateien bleiben unangetastet.\n\nDieser Vorgang kann eine Zeit dauern.</string>
|
||||
<string name="manage_space_clear_data">Daten löschen</string>
|
||||
<string name="manage_space_error">Einige Dateien konnten nicht gelöscht werden.</string>
|
||||
@@ -497,4 +521,8 @@
|
||||
<item quantity="other">%d ausgewählt</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_default">Standard</string>
|
||||
<string name="storage_description_sd_no">SD Karte %1$d</string>
|
||||
<string name="storage_description_unknown">Unbekannt</string>
|
||||
|
||||
</resources>
|
||||
@@ -440,4 +440,4 @@
|
||||
<item quantity="other">%d επιλέχθηκαν</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -356,6 +356,28 @@
|
||||
<string name="uploader_upload_forbidden_permissions">to upload to this folder</string>
|
||||
<string name="downloader_download_file_not_found">The file is no longer available on the server</string>
|
||||
|
||||
<string name="file_migration_dialog_title">Updating storage path</string>
|
||||
<string name="file_migration_finish_button">Finish</string>
|
||||
<string name="file_migration_preparing">Preparing for migration…</string>
|
||||
<string name="file_migration_checking_destination">Checking destination…</string>
|
||||
<string name="file_migration_saving_accounts_configuration">Saving accounts configuration…</string>
|
||||
<string name="file_migration_waiting_for_unfinished_sync">Waiting for unfinished synchronizations…</string>
|
||||
<string name="file_migration_migrating">Moving data…</string>
|
||||
<string name="file_migration_updating_index">Updating index…</string>
|
||||
<string name="file_migration_cleaning">Cleaning…</string>
|
||||
<string name="file_migration_restoring_accounts_configuration">Restoring accounts configuration…</string>
|
||||
<string name="file_migration_ok_finished">Finished</string>
|
||||
<string name="file_migration_failed_not_enough_space">ERROR: Not enough space</string>
|
||||
<string name="file_migration_failed_not_writable">ERROR: File is not writable</string>
|
||||
<string name="file_migration_failed_not_readable">ERROR: File is not readable</string>
|
||||
<string name="file_migration_failed_dir_already_exists">ERROR: Nextcloud directory already exists</string>
|
||||
<string name="file_migration_failed_while_coping">ERROR: While migrating</string>
|
||||
<string name="file_migration_failed_while_updating_index">ERROR: While updating index</string>
|
||||
|
||||
<string name="file_migration_directory_already_exists">Data folder already exists, what to do?</string>
|
||||
<string name="file_migration_override_data_folder">Override</string>
|
||||
<string name="file_migration_use_data_folder">Use existing</string>
|
||||
|
||||
<string name="prefs_category_accounts">Accounts</string>
|
||||
<string name="prefs_add_account">Add account</string>
|
||||
<string name="drawer_manage_accounts">Manage accounts</string>
|
||||
@@ -422,6 +444,8 @@
|
||||
<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="share_dialog_title">Sharing</string>
|
||||
<string name="share_file">Share %1$s</string>
|
||||
@@ -497,4 +521,8 @@
|
||||
<item quantity="other">%d selected</item>
|
||||
</plurals>
|
||||
|
||||
<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>
|
||||
|
||||
</resources>
|
||||
@@ -419,7 +419,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">dejado en la carpeta original</string>
|
||||
<string name="pref_behaviour_entries_move">movido a la carpeta apps</string>
|
||||
<string name="pref_behaviour_entries_delete_file">borrado</string>
|
||||
|
||||
<string name="share_dialog_title">Compartiendo</string>
|
||||
<string name="share_file">Compartir %1$s</string>
|
||||
<string name="share_with_user_section_title">Compartir con usuarios y grupos</string>
|
||||
@@ -482,4 +481,4 @@
|
||||
<item quantity="other">%d seleccionados</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -28,6 +28,7 @@
|
||||
<string name="prefs_accounts">Comptes</string>
|
||||
<string name="prefs_manage_accounts">Gestion des comptes</string>
|
||||
<string name="prefs_passcode">Code de sécurité</string>
|
||||
<string name="prefs_show_hidden_files">Afficher les fichiers cachés</string>
|
||||
<string name="prefs_instant_upload">Téléversement immédiat des photos</string>
|
||||
<string name="prefs_instant_upload_summary">Téléverser immédiatement les photos prises par la caméra</string>
|
||||
<string name="prefs_instant_video_upload">Téléversement immédiat des vidéos</string>
|
||||
@@ -356,6 +357,15 @@ La suppression est irréversible. </string>
|
||||
<string name="uploader_upload_forbidden_permissions">de téléverser dans ce dossier</string>
|
||||
<string name="downloader_download_file_not_found">Ce fichier n’est plus disponible sur le serveur</string>
|
||||
|
||||
<string name="file_migration_finish_button">Terminer</string>
|
||||
<string name="file_migration_ok_finished">Terminé</string>
|
||||
<string name="file_migration_failed_not_enough_space">ERREUR : Pas assez d\'espace</string>
|
||||
<string name="file_migration_failed_not_writable">ERREUR : Le fichier n\'est pas modifiable</string>
|
||||
<string name="file_migration_failed_not_readable">ERREUR : Le fichier n\'est pas lisible</string>
|
||||
<string name="file_migration_failed_dir_already_exists">ERREUR : Le répertoire Nextcloud existe déjà</string>
|
||||
<string name="file_migration_failed_while_coping">ERREUR : Lors de la migration</string>
|
||||
<string name="file_migration_failed_while_updating_index">ERREUR : Lors de la mise à jour de l\'index</string>
|
||||
|
||||
<string name="prefs_category_accounts">Comptes</string>
|
||||
<string name="prefs_add_account">Ajouter un compte</string>
|
||||
<string name="drawer_manage_accounts">Gestion des comptes</string>
|
||||
@@ -422,7 +432,6 @@ La suppression est irréversible. </string>
|
||||
<string name="pref_behaviour_entries_keep_file">gardé dans le dossier original</string>
|
||||
<string name="pref_behaviour_entries_move">déplacé vers le dossier de l\'application</string>
|
||||
<string name="pref_behaviour_entries_delete_file">Supprimé</string>
|
||||
|
||||
<string name="share_dialog_title">Partage</string>
|
||||
<string name="share_file">Partager %1$s</string>
|
||||
<string name="share_with_user_section_title">Partager avec des utilisateurs et des groupes</string>
|
||||
@@ -500,4 +509,7 @@ ou</string>
|
||||
<item quantity="other">%d sélectionnés</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_sd_no">Carte SD %1$d</string>
|
||||
<string name="storage_description_unknown">Inconnu</string>
|
||||
|
||||
</resources>
|
||||
@@ -355,6 +355,28 @@
|
||||
<string name="uploader_upload_forbidden_permissions">ebbe a mappába feltölteni</string>
|
||||
<string name="downloader_download_file_not_found">A fájl már nem érhető el a szerveren</string>
|
||||
|
||||
<string name="file_migration_dialog_title">Tároló útvonal frissítés</string>
|
||||
<string name="file_migration_finish_button">Befejez</string>
|
||||
<string name="file_migration_preparing">Migráció előkészítése…</string>
|
||||
<string name="file_migration_checking_destination">Cél ellenőrzése…</string>
|
||||
<string name="file_migration_saving_accounts_configuration">Fiók beállítások mentése…</string>
|
||||
<string name="file_migration_waiting_for_unfinished_sync">Várakozás a befejezetlen szinkronizációkra…</string>
|
||||
<string name="file_migration_migrating">Adatok áthelyezése…</string>
|
||||
<string name="file_migration_updating_index">Index frissítése…</string>
|
||||
<string name="file_migration_cleaning">Tisztítás…</string>
|
||||
<string name="file_migration_restoring_accounts_configuration">Fiók beállítások visszaállítása…</string>
|
||||
<string name="file_migration_ok_finished">Kész</string>
|
||||
<string name="file_migration_failed_not_enough_space">HIBA: Nincs elég hely</string>
|
||||
<string name="file_migration_failed_not_writable">HIBA: A fájl nem írható</string>
|
||||
<string name="file_migration_failed_not_readable">HIBA: A fájl nem olvasható</string>
|
||||
<string name="file_migration_failed_dir_already_exists">HIBA: A Nextcloud könyvtár már létezik</string>
|
||||
<string name="file_migration_failed_while_coping">HIBA: A migráció közben</string>
|
||||
<string name="file_migration_failed_while_updating_index">HIBA: Az Index frissítése közben</string>
|
||||
|
||||
<string name="file_migration_directory_already_exists">Az adat mappa már létezik, mi tegyünk?</string>
|
||||
<string name="file_migration_override_data_folder">Felülírás</string>
|
||||
<string name="file_migration_use_data_folder">Létező használata</string>
|
||||
|
||||
<string name="prefs_category_accounts">Fiókok</string>
|
||||
<string name="prefs_add_account">Fiók hozzáadása</string>
|
||||
<string name="drawer_manage_accounts">Fiókok kezelése</string>
|
||||
@@ -421,6 +443,8 @@
|
||||
<string name="pref_behaviour_entries_keep_file">megtartani az eredeti mappában</string>
|
||||
<string name="pref_behaviour_entries_move">áthelyezve az alkalmazás mappába</string>
|
||||
<string name="pref_behaviour_entries_delete_file">törölt</string>
|
||||
<string name="prefs_storage_path">Tároló útvonal</string>
|
||||
<string name="prefs_common">Általános</string>
|
||||
|
||||
<string name="share_dialog_title">Megosztás</string>
|
||||
<string name="share_file">%1$s megosztása</string>
|
||||
@@ -497,4 +521,8 @@ vagy</string>
|
||||
<item quantity="other">%d kiválasztott</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_default">Alapértelmezett</string>
|
||||
<string name="storage_description_sd_no">SD kártya %1$d</string>
|
||||
<string name="storage_description_unknown">Ismeretlen</string>
|
||||
|
||||
</resources>
|
||||
@@ -455,4 +455,4 @@
|
||||
<item quantity="other">%d dipilih</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -391,7 +391,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">áfram í upprunalegri möppu</string>
|
||||
<string name="pref_behaviour_entries_move">færð í forritsmöppu</string>
|
||||
<string name="pref_behaviour_entries_delete_file">eytt</string>
|
||||
|
||||
<string name="share_dialog_title">Deiling</string>
|
||||
<string name="share_file">Deila %1$s</string>
|
||||
<string name="share_with_user_section_title">Deila með notendum eða hópum</string>
|
||||
@@ -462,4 +461,4 @@
|
||||
<item quantity="other">%d valið</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -356,6 +356,27 @@
|
||||
<string name="uploader_upload_forbidden_permissions">per caricare in questa cartella</string>
|
||||
<string name="downloader_download_file_not_found">Il file non è più disponibile sul server</string>
|
||||
|
||||
<string name="file_migration_dialog_title">Aggiornamento del percorso di archiviazione</string>
|
||||
<string name="file_migration_finish_button">Fine</string>
|
||||
<string name="file_migration_preparing">Preparazione della migrazione…</string>
|
||||
<string name="file_migration_checking_destination">Controllo della destinazione…</string>
|
||||
<string name="file_migration_saving_accounts_configuration">Salvataggio della configurazione degli account…</string>
|
||||
<string name="file_migration_waiting_for_unfinished_sync">In attesa del completamento delle sincronizzazioni…</string>
|
||||
<string name="file_migration_migrating">Spostamento dei dati…</string>
|
||||
<string name="file_migration_updating_index">Aggiornamento dell\'indice…</string>
|
||||
<string name="file_migration_cleaning">Pulizia…</string>
|
||||
<string name="file_migration_restoring_accounts_configuration">Ripristino della configurazione degli account…</string>
|
||||
<string name="file_migration_ok_finished">Fine</string>
|
||||
<string name="file_migration_failed_not_enough_space">ERRORE: spazio libero insufficiente</string>
|
||||
<string name="file_migration_failed_not_writable">ERRORE: il file non è scrivibile</string>
|
||||
<string name="file_migration_failed_not_readable">ERRORE: il file non è leggibile</string>
|
||||
<string name="file_migration_failed_dir_already_exists">ERRORE: la cartella di Nextcloud esiste già</string>
|
||||
<string name="file_migration_failed_while_coping">ERRORE: durante la migrazione</string>
|
||||
<string name="file_migration_failed_while_updating_index">ERRORE: durante l\'aggiornamento dell\'indice</string>
|
||||
|
||||
<string name="file_migration_directory_already_exists">La cartella dei dati esiste già, cosa vuoi fare?</string>
|
||||
<string name="file_migration_use_data_folder">Utilizza quella esistente</string>
|
||||
|
||||
<string name="prefs_category_accounts">Account</string>
|
||||
<string name="prefs_add_account">Aggiungi account</string>
|
||||
<string name="drawer_manage_accounts">Gestisci account</string>
|
||||
@@ -422,6 +443,8 @@
|
||||
<string name="pref_behaviour_entries_keep_file">lasciato nella cartella originale</string>
|
||||
<string name="pref_behaviour_entries_move">spostato nella cartella dell\'applicazione</string>
|
||||
<string name="pref_behaviour_entries_delete_file">eliminato</string>
|
||||
<string name="prefs_storage_path">Percorso di archiviazione</string>
|
||||
<string name="prefs_common">Comune</string>
|
||||
|
||||
<string name="share_dialog_title">Condivisione</string>
|
||||
<string name="share_file">Condividi %1$s</string>
|
||||
@@ -500,4 +523,8 @@ o</string>
|
||||
<item quantity="other">%d selezionati</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_default">Predefinito</string>
|
||||
<string name="storage_description_sd_no">Scheda SD %1$d</string>
|
||||
<string name="storage_description_unknown">Sconosciuto</string>
|
||||
|
||||
</resources>
|
||||
@@ -400,7 +400,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">원래 폴더에 유지</string>
|
||||
<string name="pref_behaviour_entries_move">앱 폴더로 이동되었습니다.</string>
|
||||
<string name="pref_behaviour_entries_delete_file">삭제됨</string>
|
||||
|
||||
<string name="share_dialog_title">공유</string>
|
||||
<string name="share_file">공유 %1$s</string>
|
||||
<string name="share_with_user_section_title">유저와 그룹에 공유하기</string>
|
||||
@@ -467,4 +466,4 @@
|
||||
<item quantity="other">%d 선택</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -356,6 +356,16 @@
|
||||
<string name="uploader_upload_forbidden_permissions">å laste opp i denne mappen</string>
|
||||
<string name="downloader_download_file_not_found">Filen finnes ikke på tjeneren lenger</string>
|
||||
|
||||
<string name="file_migration_failed_not_enough_space">FEIL: Ikke nok plass</string>
|
||||
<string name="file_migration_failed_not_writable">FEIL: Filen er skrivebeskyttet</string>
|
||||
<string name="file_migration_failed_not_readable">FEIL: er ikke lesbar</string>
|
||||
<string name="file_migration_failed_dir_already_exists">FEIL: Nextcloudmappen finnes allerede</string>
|
||||
<string name="file_migration_failed_while_coping">FEIL: Under migrering</string>
|
||||
<string name="file_migration_failed_while_updating_index">FEIL: Under oppdatering av indeks</string>
|
||||
|
||||
<string name="file_migration_override_data_folder">Overstyr</string>
|
||||
<string name="file_migration_use_data_folder">Bruk eksisterende</string>
|
||||
|
||||
<string name="prefs_category_accounts">Kontoer</string>
|
||||
<string name="prefs_add_account">Legg til en konto</string>
|
||||
<string name="drawer_manage_accounts">Håndter kontoer</string>
|
||||
@@ -422,6 +432,7 @@
|
||||
<string name="pref_behaviour_entries_keep_file">beholdt i opprinnelig mappe</string>
|
||||
<string name="pref_behaviour_entries_move">flyttet til app-mappe</string>
|
||||
<string name="pref_behaviour_entries_delete_file">slettet</string>
|
||||
<string name="prefs_common">Felles</string>
|
||||
|
||||
<string name="share_dialog_title">Deling</string>
|
||||
<string name="share_file">Del %1$s</string>
|
||||
@@ -500,4 +511,8 @@ eller</string>
|
||||
<item quantity="other">%d valgte</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_default">Standard</string>
|
||||
<string name="storage_description_sd_no">SD kort %1$d</string>
|
||||
<string name="storage_description_unknown">Ukjent</string>
|
||||
|
||||
</resources>
|
||||
@@ -70,7 +70,7 @@ Download hier: %2$s</string>
|
||||
<string name="uploader_wrn_no_account_quit_btn_text">Afsluiten</string>
|
||||
<string name="uploader_error_title_no_file_to_upload">Niets te uploaden</string>
|
||||
<string name="uploader_error_message_received_piece_of_text">%1$s kan niet een stuk tekst als bestand uploaden.</string>
|
||||
<string name="uploader_error_message_no_file_to_upload">Ontvangen data bevat geen geldig bestand.</string>
|
||||
<string name="uploader_error_message_no_file_to_upload">Ontvangen gegevens bevat geen geldig bestand.</string>
|
||||
<string name="uploader_error_title_file_cannot_be_uploaded">Bestand kan niet worden geüpload</string>
|
||||
<string name="uploader_error_message_read_permission_not_granted">%1$s is niet toegestaan om een ontvangen bestand te lezen</string>
|
||||
<string name="uploader_error_message_source_file_not_found">Het te uploaden bestand is hier niet. Controleer of het bestand wel bestaat.</string>
|
||||
@@ -359,6 +359,28 @@ Hieronder staan de lokale bestanden en de externe bestanden in %5$s waar ze naar
|
||||
<string name="uploader_upload_forbidden_permissions">om dit bestand in deze map te uploaden</string>
|
||||
<string name="downloader_download_file_not_found">Dit bestand is niet langer beschikbaar op de server</string>
|
||||
|
||||
<string name="file_migration_dialog_title">Opslagpad bijwerken</string>
|
||||
<string name="file_migration_finish_button">Afgerond</string>
|
||||
<string name="file_migration_preparing">Voorbereiden van migratie…</string>
|
||||
<string name="file_migration_checking_destination">Doelmap controleren…</string>
|
||||
<string name="file_migration_saving_accounts_configuration">Account configuratie opslaan…</string>
|
||||
<string name="file_migration_waiting_for_unfinished_sync">Wachten op onvoltooide synchronisaties…</string>
|
||||
<string name="file_migration_migrating">Gegevens verplaatsen…</string>
|
||||
<string name="file_migration_updating_index">Index bijwerken…</string>
|
||||
<string name="file_migration_cleaning">Schoonmaak…</string>
|
||||
<string name="file_migration_restoring_accounts_configuration">Account configuratie herstellen…</string>
|
||||
<string name="file_migration_ok_finished">Afgerond</string>
|
||||
<string name="file_migration_failed_not_enough_space">ERROR: Niet genoeg ruimte</string>
|
||||
<string name="file_migration_failed_not_writable">ERROR: Bestand niet beschrijfbaar</string>
|
||||
<string name="file_migration_failed_not_readable">ERROR: Bestand niet berijkbaar</string>
|
||||
<string name="file_migration_failed_dir_already_exists">ERROR: Nextcloud map bestaat al</string>
|
||||
<string name="file_migration_failed_while_coping">ERROR: Tijdens migratie</string>
|
||||
<string name="file_migration_failed_while_updating_index">ERROR: Tijdens bijwerken index</string>
|
||||
|
||||
<string name="file_migration_directory_already_exists">Folder bestaat al, wat te doen?</string>
|
||||
<string name="file_migration_override_data_folder">Overschrijven</string>
|
||||
<string name="file_migration_use_data_folder">Bestaande gebruiken</string>
|
||||
|
||||
<string name="prefs_category_accounts">Accounts</string>
|
||||
<string name="prefs_add_account">Toevoegen account</string>
|
||||
<string name="drawer_manage_accounts">Beheren accounts</string>
|
||||
@@ -368,7 +390,7 @@ Hieronder staan de lokale bestanden en de externe bestanden in %5$s waar ze naar
|
||||
<string name="log_send_history_button">Verstuur geschiedenis</string>
|
||||
<string name="log_send_no_mail_app">Geen applicatie gevonden voor het versturen van de logs. Installeer een mail applicatie.</string>
|
||||
<string name="log_send_mail_subject">%1$s Android app logs</string>
|
||||
<string name="log_progress_dialog_text">Laden data …</string>
|
||||
<string name="log_progress_dialog_text">gegevens laden …</string>
|
||||
|
||||
<string name="saml_authentication_required_text">Authenticatie vereist</string>
|
||||
<string name="saml_authentication_wrong_pass">Onjuist wachtwoord</string>
|
||||
@@ -425,6 +447,8 @@ Hieronder staan de lokale bestanden en de externe bestanden in %5$s waar ze naar
|
||||
<string name="pref_behaviour_entries_keep_file">bewaard in originele map</string>
|
||||
<string name="pref_behaviour_entries_move">verplaatst naar app map</string>
|
||||
<string name="pref_behaviour_entries_delete_file">verwijderd</string>
|
||||
<string name="prefs_storage_path">Opslagpad</string>
|
||||
<string name="prefs_common">Gemeenschappelijk</string>
|
||||
|
||||
<string name="share_dialog_title">Delen</string>
|
||||
<string name="share_file">Deel %1$s</string>
|
||||
@@ -468,7 +492,7 @@ Neem contact op met je beheerder</string>
|
||||
|
||||
<string name="manage_space_title">Beheer ruimte</string>
|
||||
<string name="manage_space_description">Instellingen, database en servercertificaten van %1$s\'s data zullen permanent worden verwijderd. \n\nGedownloade bestanden blijven onaangeroerd.\n\nDit proces kan even duren.</string>
|
||||
<string name="manage_space_clear_data">Verwijder data</string>
|
||||
<string name="manage_space_clear_data">Gegevens verwijderen</string>
|
||||
<string name="manage_space_error">Sommige bestanden konden niet worden verwijderd</string>
|
||||
|
||||
<string name="permission_storage_access">Aanvullende permssies vereist voor het uploaden en downloaden van bestanden.</string>
|
||||
@@ -502,4 +526,8 @@ of</string>
|
||||
<item quantity="other">%d geselecteerd</item>
|
||||
</plurals>
|
||||
|
||||
<string name="storage_description_default">Standaard</string>
|
||||
<string name="storage_description_sd_no">SD kaart %1$d</string>
|
||||
<string name="storage_description_unknown">Onbekend</string>
|
||||
|
||||
</resources>
|
||||
@@ -422,7 +422,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">zachowany w oryginalnym folderze</string>
|
||||
<string name="pref_behaviour_entries_move">przeniesiony do folderu aplikacji</string>
|
||||
<string name="pref_behaviour_entries_delete_file">usunięty</string>
|
||||
|
||||
<string name="share_dialog_title">Udostępnianie</string>
|
||||
<string name="share_file">Współdziel %1$s</string>
|
||||
<string name="share_with_user_section_title">Współdziel z użytkownikami i grupami</string>
|
||||
@@ -497,4 +496,4 @@
|
||||
<item quantity="other">%d zaznaczonych</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -421,7 +421,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">mantido na pasta original</string>
|
||||
<string name="pref_behaviour_entries_move">movido para a pasta app</string>
|
||||
<string name="pref_behaviour_entries_delete_file">excluído</string>
|
||||
|
||||
<string name="share_dialog_title">Compartilhamento</string>
|
||||
<string name="share_file">Compartilhar %1$s</string>
|
||||
<string name="share_with_user_section_title">Compartilhar com usuários e grupos</string>
|
||||
@@ -498,4 +497,4 @@
|
||||
<item quantity="other">%d selecionados</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -28,6 +28,7 @@
|
||||
<string name="prefs_accounts">Аккаунты</string>
|
||||
<string name="prefs_manage_accounts">Управление аккаунтами</string>
|
||||
<string name="prefs_passcode">Блокировка кодом</string>
|
||||
<string name="prefs_show_hidden_files">Показать скрытые файлы</string>
|
||||
<string name="prefs_instant_upload">Автозагрузка изображений</string>
|
||||
<string name="prefs_instant_upload_summary">Автоматически загружать изображения, сделанные камерой</string>
|
||||
<string name="prefs_instant_video_upload">Автозагрузка видео</string>
|
||||
@@ -422,7 +423,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">оставлен в исходной папке</string>
|
||||
<string name="pref_behaviour_entries_move">перемещен в папку приложения</string>
|
||||
<string name="pref_behaviour_entries_delete_file">Удалён</string>
|
||||
|
||||
<string name="share_dialog_title">Общий доступ</string>
|
||||
<string name="share_file">Поделиться %1$s</string>
|
||||
<string name="share_with_user_section_title">Поделиться с пользователями и группами</string>
|
||||
@@ -495,4 +495,4 @@
|
||||
<item quantity="other">%d выбрано</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -420,7 +420,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">ohrani v izvorni mapi</string>
|
||||
<string name="pref_behaviour_entries_move">premakni v mapo programa</string>
|
||||
<string name="pref_behaviour_entries_delete_file">pobrisano</string>
|
||||
|
||||
<string name="share_dialog_title">Souporaba</string>
|
||||
<string name="share_file">Omogoči souporabo %1$s</string>
|
||||
<string name="share_with_user_section_title">Omogoči souporabo s skupino ali z uporabnikom</string>
|
||||
@@ -492,4 +491,4 @@
|
||||
<item quantity="other">%d izbranih</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -417,7 +417,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">mbajtur në dosjen origjinale</string>
|
||||
<string name="pref_behaviour_entries_move">u kalua te dosja e aplikacionit</string>
|
||||
<string name="pref_behaviour_entries_delete_file">të fshira</string>
|
||||
|
||||
<string name="share_dialog_title">Ndarje me të tjerët</string>
|
||||
<string name="share_file">Ndajeni %1$s</string>
|
||||
<string name="share_with_user_section_title">Ndajeni me përdorues dhe grupe</string>
|
||||
@@ -491,4 +490,4 @@
|
||||
<item quantity="other">%d të përzgjedhura</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -17,7 +17,7 @@
|
||||
<string name="menu_item_sort_by_date">Nyast - Äldst</string>
|
||||
<string name="menu_item_sort_by_size">Störst - Minst</string>
|
||||
<string name="drawer_item_all_files">Alla filer</string>
|
||||
<string name="drawer_item_on_device">På enheten</string>
|
||||
<string name="drawer_item_on_device">Filer på enheten</string>
|
||||
<string name="drawer_item_settings">Inställningar</string>
|
||||
<string name="drawer_item_uploads_list">Uppladdningar</string>
|
||||
<string name="drawer_quota">%1$s av %2$s använt</string>
|
||||
@@ -313,7 +313,7 @@
|
||||
<string name="error__upload__local_file_not_copied">%1$s kunde inte kopieras till %2$s lokal mapp</string>
|
||||
<string name="prefs_instant_upload_path_title">Uppladdningssökväg</string>
|
||||
<string name="prefs_instant_upload_path_use_subfolders_title">Använd undermappar</string>
|
||||
<string name="prefs_instant_upload_path_use_subfolders_summary">Spara i undermappar baserad på år och månad</string>
|
||||
<string name="prefs_instant_upload_path_use_subfolders_summary">Spara i undermappar baserat på år och månad</string>
|
||||
|
||||
<string name="share_link_no_support_share_api">Ledsen, delning är inte aktiverat på din server. Vänligen kontakta din
|
||||
administratör.</string>
|
||||
@@ -417,8 +417,7 @@
|
||||
|
||||
<string name="pref_behaviour_entries_keep_file">behållas i orginalmapp</string>
|
||||
<string name="pref_behaviour_entries_move">flyttas till Nextcloudmapp</string>
|
||||
<string name="pref_behaviour_entries_delete_file">raderad</string>
|
||||
|
||||
<string name="pref_behaviour_entries_delete_file">raderas</string>
|
||||
<string name="share_dialog_title">Dela</string>
|
||||
<string name="share_file">Dela %1$s</string>
|
||||
<string name="share_with_user_section_title">Dela med användare och grupper</string>
|
||||
@@ -450,7 +449,7 @@
|
||||
<string name="edit_share_unshare">Sluta dela</string>
|
||||
<string name="edit_share_done">färdig</string>
|
||||
|
||||
<string name="action_retry_uploads">Återuppladdningsförsök misslyckades</string>
|
||||
<string name="action_retry_uploads">Försök ladda upp misslyckade igen</string>
|
||||
<string name="action_clear_failed_uploads">Rensa misslyckade</string>
|
||||
<string name="action_clear_successful_uploads">Rensa lyckade</string>
|
||||
<string name="action_clear_finished_uploads">Rensa alla färdigställda</string>
|
||||
@@ -470,7 +469,7 @@
|
||||
<string name="uploads_view_upload_status_waiting_for_charging">Väntar på att enheten ska laddas</string>
|
||||
<string name="actionbar_search">Sök</string>
|
||||
<string name="learn_more">Lär dig mer</string>
|
||||
<string name="drawer_participate">Delta</string>
|
||||
<string name="drawer_participate">Hjälp oss att bli bättre</string>
|
||||
<string name="participate_testing_headline">Hjälp oss att testa</string>
|
||||
<string name="participate_testing_bug_text">Har du hittat en bugg? Är det något som är fel?</string>
|
||||
<string name="participate_testing_report_text">Rapportera ett problem på Github</string>
|
||||
|
||||
@@ -470,4 +470,4 @@
|
||||
<item quantity="other">%d seçili</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -421,7 +421,6 @@
|
||||
<string name="pref_behaviour_entries_keep_file">保留在原本的資料夾</string>
|
||||
<string name="pref_behaviour_entries_move">移動到應用程式資料夾</string>
|
||||
<string name="pref_behaviour_entries_delete_file">已刪除</string>
|
||||
|
||||
<string name="share_dialog_title">分享</string>
|
||||
<string name="share_file">分享 %1$s</string>
|
||||
<string name="share_with_user_section_title">分享給其他使用者或群組</string>
|
||||
@@ -496,4 +495,4 @@
|
||||
<item quantity="other">%d 已選</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -1,23 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Beta indicator -->
|
||||
<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>
|
||||
<bool name="show_server_url_input">true</bool>
|
||||
<bool name="show_welcome_link">true</bool>
|
||||
<string name="welcome_link_url">"https://nextcloud.com"</string>
|
||||
<string name="welcome_link_url">"https://nextcloud.com/mobile/new"</string>
|
||||
<string name="share_api_link"></string>
|
||||
|
||||
<!-- Flags to setup the authentication methods available in the app -->
|
||||
@@ -61,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>
|
||||
|
||||
@@ -315,10 +315,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>
|
||||
|
||||
@@ -347,7 +353,7 @@
|
||||
<string name="network_error_socket_timeout_exception">An error occurred while waiting for the server; the operation couldn\'t be completed</string>
|
||||
<string name="network_error_connect_timeout_exception">An error occurred while waiting for the server; the operation couldn\'t be completed</string>
|
||||
<string name="network_host_not_available">The operation couldn\'t be completed; server is unavailable</string>
|
||||
<string name="empty" />
|
||||
<string name="empty" translatable="false" />
|
||||
|
||||
<string name="forbidden_permissions">You do not have permission %s</string>
|
||||
<string name="forbidden_permissions_rename">to rename this file</string>
|
||||
@@ -450,6 +456,8 @@
|
||||
<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>
|
||||
@@ -481,6 +489,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>
|
||||
@@ -544,5 +553,25 @@
|
||||
<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>
|
||||
|
||||
<!-- Welcome to oC intro features -->
|
||||
<string name="welcome_feature_1_title">Instant upload</string>
|
||||
<string name="welcome_feature_1_text">Keep your photos safe</string>
|
||||
|
||||
<string name="welcome_feature_2_title">Manage all your files</string>
|
||||
<string name="welcome_feature_2_text">You can delete, move</string>
|
||||
|
||||
<string name="welcome_feature_3_title">Share</string>
|
||||
<string name="welcome_feature_3_text">You can share files and folders</string>
|
||||
|
||||
<string name="welcome_feature_4_title">MultiAccount</string>
|
||||
<string name="welcome_feature_4_text">Connect to all your clouds</string>
|
||||
|
||||
<string name="welcome_feature_5_title">Your private files synced anywhere</string>
|
||||
<string name="whats_new_skip">Skip</string>
|
||||
</resources>
|
||||
@@ -277,4 +277,14 @@
|
||||
</style>
|
||||
<style name="Theme.ownCloud.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||
<style name="Theme.ownCloud.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
||||
|
||||
<!-- Text styles -->
|
||||
<style name="NextcloudTextAppearanceHeadline" parent="style/TextAppearance.AppCompat.Headline">
|
||||
<item name="android:textSize">28sp</item>
|
||||
<item name="android:textColor">#000000</item>
|
||||
</style>
|
||||
<style name="NextcloudTextAppearanceMedium" parent="style/TextAppearance.AppCompat.Medium">
|
||||
</style>
|
||||
<style name="NextcloudTextAppearanceSmall" parent="style/TextAppearance.AppCompat.Small">
|
||||
</style>
|
||||
</resources>
|
||||
@@ -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,10 @@
|
||||
<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 +97,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>
|
||||
@@ -41,6 +41,10 @@ import com.owncloud.android.lib.common.OwnCloudClientManagerFactory.Policy;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
@@ -69,15 +73,20 @@ public class MainApp extends Application {
|
||||
private static SyncedFolderObserverService mObserverService;
|
||||
private boolean mBound;
|
||||
|
||||
|
||||
|
||||
@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.Keys.STORAGE_PATH, Environment.
|
||||
getExternalStorageDirectory().getAbsolutePath());
|
||||
MainApp.storagePath = appPrefs.getString(Preferences.PreferenceKeys.STORAGE_PATH, Environment.
|
||||
getExternalStorageDirectory().getAbsolutePath());
|
||||
|
||||
boolean isSamlAuth = AUTH_ON.equals(getString(R.string.auth_method_saml_web_sso));
|
||||
|
||||
@@ -90,17 +99,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);
|
||||
@@ -113,6 +120,7 @@ public class MainApp extends Application {
|
||||
@Override
|
||||
public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
|
||||
Log_OC.d(activity.getClass().getSimpleName(), "onCreate(Bundle) starting" );
|
||||
WhatsNewActivity.runIfNeeded(activity);
|
||||
PassCodeManager.getPassCodeManager().onActivityCreated(activity);
|
||||
}
|
||||
|
||||
@@ -162,14 +170,25 @@ 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() {
|
||||
return getAppContext().getResources().getString(R.string.account_type);
|
||||
}
|
||||
|
||||
// From AccountAuthenticator
|
||||
// Non gradle build systems do not provide BuildConfig.VERSION_CODE
|
||||
// so we must fallback to this method :(
|
||||
public static int getVersionCode() {
|
||||
try {
|
||||
String thisPackageName = getAppContext().getPackageName();
|
||||
return getAppContext().getPackageManager().getPackageInfo(thisPackageName, 0).versionCode;
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// From AccountAuthenticator
|
||||
// public static final String AUTHORITY = "org.owncloud";
|
||||
public static String getAuthority() {
|
||||
return getAppContext().getResources().getString(R.string.authority);
|
||||
@@ -209,7 +228,7 @@ public class MainApp extends Application {
|
||||
mOnlyOnDevice = state;
|
||||
}
|
||||
|
||||
public static boolean getOnlyOnDevice(){
|
||||
public static boolean isOnlyOnDevice(){
|
||||
return mOnlyOnDevice;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,8 +87,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
||||
validateAccountType(accountType);
|
||||
} catch (AuthenticatorException e) {
|
||||
Log_OC.e(TAG, "Failed to validate account type " + accountType + ": "
|
||||
+ e.getMessage());
|
||||
e.printStackTrace();
|
||||
+ e.getMessage(), e);
|
||||
return e.getFailureBundle();
|
||||
}
|
||||
|
||||
@@ -133,8 +132,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
||||
validateAccountType(account.type);
|
||||
} catch (AuthenticatorException e) {
|
||||
Log_OC.e(TAG, "Failed to validate account type " + account.type + ": "
|
||||
+ e.getMessage());
|
||||
e.printStackTrace();
|
||||
+ e.getMessage(), e);
|
||||
return e.getFailureBundle();
|
||||
}
|
||||
Intent intent = new Intent(mContext, AuthenticatorActivity.class);
|
||||
@@ -169,8 +167,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
||||
validateAuthTokenType(authTokenType);
|
||||
} catch (AuthenticatorException e) {
|
||||
Log_OC.e(TAG, "Failed to validate account type " + account.type + ": "
|
||||
+ e.getMessage());
|
||||
e.printStackTrace();
|
||||
+ e.getMessage(), e);
|
||||
return e.getFailureBundle();
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ public class AccountUtils {
|
||||
*/
|
||||
public static String getAccountUsername(String accountName) {
|
||||
if (accountName != null) {
|
||||
return accountName.substring(0, accountName.lastIndexOf("@"));
|
||||
return accountName.substring(0, accountName.lastIndexOf('@'));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@@ -135,8 +135,9 @@ public class AccountUtils {
|
||||
Account[] ocAccounts = AccountManager.get(context).getAccountsByType(
|
||||
MainApp.getAccountType());
|
||||
for (Account account : ocAccounts) {
|
||||
if(account.name.equals(accountName))
|
||||
if(account.name.equals(accountName)) {
|
||||
return account;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -241,15 +242,13 @@ public class AccountUtils {
|
||||
);
|
||||
|
||||
// copy type of authentication
|
||||
String isSamlStr = accountMgr.getUserData(account, Constants.KEY_SUPPORTS_SAML_WEB_SSO);
|
||||
boolean isSaml = "TRUE".equals(isSamlStr);
|
||||
if (isSaml) {
|
||||
final String isSamlStr = accountMgr.getUserData(account, Constants.KEY_SUPPORTS_SAML_WEB_SSO);
|
||||
if (Boolean.parseBoolean(isSamlStr)) {
|
||||
accountMgr.setUserData(newAccount, Constants.KEY_SUPPORTS_SAML_WEB_SSO, "TRUE");
|
||||
}
|
||||
|
||||
String isOauthStr = accountMgr.getUserData(account, Constants.KEY_SUPPORTS_OAUTH2);
|
||||
boolean isOAuth = "TRUE".equals(isOauthStr);
|
||||
if (isOAuth) {
|
||||
final String isOauthStr = accountMgr.getUserData(account, Constants.KEY_SUPPORTS_OAUTH2);
|
||||
if (Boolean.parseBoolean(isOauthStr)) {
|
||||
accountMgr.setUserData(newAccount, Constants.KEY_SUPPORTS_OAUTH2, "TRUE");
|
||||
}
|
||||
/* TODO - study if it's possible to run this method in a background thread to copy the authToken
|
||||
@@ -332,4 +331,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);
|
||||
}
|
||||
}
|
||||
@@ -91,7 +91,7 @@ import com.owncloud.android.ui.dialog.SamlWebViewDialog;
|
||||
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;
|
||||
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog.OnSslUntrustedCertListener;
|
||||
import com.owncloud.android.utils.DisplayUtils;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -142,6 +142,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
private static final String KEY_ASYNC_TASK_IN_PROGRESS = "AUTH_IN_PROGRESS";
|
||||
public static final String PROTOCOL_SUFFIX = "://";
|
||||
public static final String LOGIN_URL_DATA_KEY_VALUE_SEPARATOR = ":";
|
||||
private static final String HTTPS_PROTOCOL = "https://";
|
||||
private static final String HTTP_PROTOCOL = "http://";
|
||||
|
||||
/// parameters from EXTRAs in starter Intent
|
||||
private byte mAction;
|
||||
@@ -167,7 +169,6 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
|
||||
private boolean mServerIsChecked = false;
|
||||
private boolean mServerIsValid = false;
|
||||
private boolean mPendingAutoCheck = false;
|
||||
|
||||
private GetServerInfoOperation.ServerInfo mServerInfo = new GetServerInfoOperation.ServerInfo();
|
||||
|
||||
@@ -408,11 +409,11 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
if (mAccount != null) {
|
||||
mServerInfo.mBaseUrl = mAccountMgr.getUserData(mAccount, Constants.KEY_OC_BASE_URL);
|
||||
// TODO do next in a setter for mBaseUrl
|
||||
mServerInfo.mIsSslConn = mServerInfo.mBaseUrl.startsWith("https://");
|
||||
mServerInfo.mIsSslConn = mServerInfo.mBaseUrl.startsWith(HTTPS_PROTOCOL);
|
||||
mServerInfo.mVersion = AccountUtils.getServerVersion(mAccount);
|
||||
} else {
|
||||
mServerInfo.mBaseUrl = getString(R.string.server_url).trim();
|
||||
mServerInfo.mIsSslConn = mServerInfo.mBaseUrl.startsWith("https://");
|
||||
mServerInfo.mIsSslConn = mServerInfo.mBaseUrl.startsWith(HTTPS_PROTOCOL);
|
||||
}
|
||||
} else {
|
||||
mServerStatusText = savedInstanceState.getInt(KEY_SERVER_STATUS_TEXT);
|
||||
@@ -492,24 +493,16 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
findViewById(R.id.scroll).setOnTouchListener(new OnTouchListener() {
|
||||
@Override
|
||||
public boolean onTouch(View view, MotionEvent event) {
|
||||
if (event.getAction() == MotionEvent.ACTION_DOWN) {
|
||||
if (
|
||||
AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(
|
||||
MainApp.getAccountType()
|
||||
).equals(mAuthTokenType) &&
|
||||
mHostUrlInput.hasFocus()
|
||||
) {
|
||||
checkOcServer();
|
||||
}
|
||||
if (event.getAction() == MotionEvent.ACTION_DOWN &&
|
||||
AccountTypeUtils
|
||||
.getAuthTokenTypeSamlSessionCookie(MainApp
|
||||
.getAccountType()).equals(mAuthTokenType) &&
|
||||
mHostUrlInput.hasFocus()) {
|
||||
checkOcServer();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/// step 4 - mark automatic check to be started when OperationsService is ready
|
||||
mPendingAutoCheck = (savedInstanceState == null &&
|
||||
(mAction != ACTION_CREATE || checkHostUrl));
|
||||
}
|
||||
|
||||
|
||||
@@ -1127,8 +1120,9 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
}
|
||||
}
|
||||
|
||||
if (success)
|
||||
if (success) {
|
||||
finish();
|
||||
}
|
||||
} else {
|
||||
updateStatusIconFailUserName();
|
||||
showAuthStatus();
|
||||
@@ -1197,14 +1191,15 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
|
||||
// TODO remove, if possible
|
||||
private String normalizeUrl(String url, boolean sslWhenUnprefixed) {
|
||||
|
||||
if (url != null && url.length() > 0) {
|
||||
url = url.trim();
|
||||
if (!url.toLowerCase().startsWith("http://") &&
|
||||
!url.toLowerCase().startsWith("https://")) {
|
||||
if (!url.toLowerCase().startsWith(HTTP_PROTOCOL) &&
|
||||
!url.toLowerCase().startsWith(HTTP_PROTOCOL)) {
|
||||
if (sslWhenUnprefixed) {
|
||||
url = "https://" + url;
|
||||
url = HTTPS_PROTOCOL + url;
|
||||
} else {
|
||||
url = "http://" + url;
|
||||
url = HTTP_PROTOCOL + url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1259,7 +1254,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
|
||||
case OK_NO_SSL:
|
||||
case OK:
|
||||
if (mHostUrlInput.getText().toString().trim().toLowerCase().startsWith("http://")) {
|
||||
if (mHostUrlInput.getText().toString().trim().toLowerCase().startsWith(HTTP_PROTOCOL)) {
|
||||
mServerStatusText = R.string.auth_connection_established;
|
||||
mServerStatusIcon = R.drawable.ic_ok;
|
||||
} else {
|
||||
@@ -1340,7 +1335,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
|
||||
case OK_NO_SSL:
|
||||
case OK:
|
||||
if (mHostUrlInput.getText().toString().trim().toLowerCase().startsWith("http://")) {
|
||||
if (mHostUrlInput.getText().toString().trim().toLowerCase().startsWith(HTTP_PROTOCOL)) {
|
||||
mAuthStatusText = R.string.auth_connection_established;
|
||||
mAuthStatusIcon = R.drawable.ic_ok;
|
||||
} else {
|
||||
@@ -1576,6 +1571,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
*
|
||||
* TODO Decide how to name the OAuth accounts
|
||||
*/
|
||||
@SuppressFBWarnings("DMI")
|
||||
private boolean createAccount(RemoteOperationResult authResult) {
|
||||
/// create and save new ownCloud account
|
||||
boolean isOAuth = AccountTypeUtils.
|
||||
@@ -1782,11 +1778,10 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
}
|
||||
|
||||
} else if (actionId == EditorInfo.IME_ACTION_NEXT && inputField != null &&
|
||||
inputField.equals(mHostUrlInput)) {
|
||||
if (AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(MainApp.getAccountType()).
|
||||
equals(mAuthTokenType)) {
|
||||
inputField.equals(mHostUrlInput) &&
|
||||
AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(MainApp.getAccountType()).
|
||||
equals(mAuthTokenType)) {
|
||||
checkOcServer();
|
||||
}
|
||||
}
|
||||
return false; // always return false to grant that the software keyboard is hidden anyway
|
||||
}
|
||||
@@ -1847,7 +1842,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
mAuthToken = sessionCookie;
|
||||
getRemoteUserNameOperation(sessionCookie);
|
||||
Fragment fd = getSupportFragmentManager().findFragmentByTag(SAML_DIALOG_TAG);
|
||||
if (fd != null && fd instanceof DialogFragment) {
|
||||
if (fd instanceof DialogFragment) {
|
||||
Dialog d = ((DialogFragment) fd).getDialog();
|
||||
if (d != null && d.isShowing()) {
|
||||
d.dismiss();
|
||||
@@ -1950,7 +1945,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||
|
||||
private void dismissDialog(String dialogTag) {
|
||||
Fragment frag = getSupportFragmentManager().findFragmentByTag(dialogTag);
|
||||
if (frag != null && frag instanceof DialogFragment) {
|
||||
if (frag instanceof DialogFragment) {
|
||||
DialogFragment dialog = (DialogFragment) frag;
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@ import java.lang.ref.WeakReference;
|
||||
*/
|
||||
public class AuthenticatorAsyncTask extends AsyncTask<Object, Void, RemoteOperationResult> {
|
||||
|
||||
private static String REMOTE_PATH = "/";
|
||||
private static boolean SUCCESS_IF_ABSENT = false;
|
||||
private static final String REMOTE_PATH = "/";
|
||||
private static final boolean SUCCESS_IF_ABSENT = false;
|
||||
|
||||
private Context mContext;
|
||||
private final WeakReference<OnAuthenticatorTaskListener> mListener;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class PassCodeManager {
|
||||
// other activities may be exempted, if needed
|
||||
}
|
||||
|
||||
private static int PASS_CODE_TIMEOUT = 1000;
|
||||
private static final int PASS_CODE_TIMEOUT = 1000;
|
||||
// keeping a "low" positive value is the easiest way to prevent the pass code is requested on rotations
|
||||
|
||||
public static PassCodeManager mPassCodeManagerInstance = null;
|
||||
|
||||
@@ -549,22 +549,31 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o instanceof OCFile) {
|
||||
OCFile that = (OCFile) o;
|
||||
if (that != null) {
|
||||
return this.mId == that.mId;
|
||||
}
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
OCFile ocFile = (OCFile) o;
|
||||
|
||||
return mId == ocFile.mId && mParentId == ocFile.mParentId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = (int) (mId ^ (mId >>> 32));
|
||||
result = 31 * result + (int) (mParentId ^ (mParentId >>> 32));
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
String asString = "[id=%s, name=%s, mime=%s, downloaded=%s, local=%s, remote=%s, " +
|
||||
"parentId=%s, favorite=%s etag=%s]";
|
||||
asString = String.format(asString, Long.valueOf(mId), getFileName(), mMimeType, isDown(),
|
||||
mLocalPath, mRemotePath, Long.valueOf(mParentId), Boolean.valueOf(mFavorite),
|
||||
asString = String.format(asString, mId, getFileName(), mMimeType, isDown(),
|
||||
mLocalPath, mRemotePath, mParentId, mFavorite,
|
||||
mEtag);
|
||||
return asString;
|
||||
}
|
||||
@@ -638,7 +647,7 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
|
||||
}
|
||||
|
||||
public boolean isInConflict() {
|
||||
return mEtagInConflict != null && mEtagInConflict != "";
|
||||
return mEtagInConflict != null && !mEtagInConflict.equals("");
|
||||
}
|
||||
|
||||
public void setEtagInConflict(String etagInConflict) {
|
||||
|
||||
@@ -22,19 +22,27 @@
|
||||
package com.owncloud.android.datamodel;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.content.Context;
|
||||
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.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;
|
||||
@@ -57,6 +65,8 @@ import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
/**
|
||||
* Manager for concurrent access to thumbnails cache.
|
||||
*/
|
||||
@@ -65,29 +75,29 @@ 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;
|
||||
|
||||
public static Bitmap mDefaultImg =
|
||||
public static final Bitmap mDefaultImg =
|
||||
BitmapFactory.decodeResource(
|
||||
MainApp.getAppContext().getResources(),
|
||||
R.drawable.file_image
|
||||
);
|
||||
|
||||
public static Bitmap mDefaultVideo =
|
||||
public static final Bitmap mDefaultVideo =
|
||||
BitmapFactory.decodeResource(
|
||||
MainApp.getAppContext().getResources(),
|
||||
R.drawable.file_movie
|
||||
);
|
||||
|
||||
|
||||
|
||||
public static class InitDiskCacheTask extends AsyncTask<File, Void, Void> {
|
||||
|
||||
@Override
|
||||
@@ -97,7 +107,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() +
|
||||
@@ -106,7 +128,7 @@ public class ThumbnailsCacheManager {
|
||||
final File diskCacheDir = new File(cachePath);
|
||||
mThumbnailCache = new DiskLruImageCache(
|
||||
diskCacheDir,
|
||||
DISK_CACHE_SIZE,
|
||||
cacheSize,
|
||||
mCompressFormat,
|
||||
mCompressQuality
|
||||
);
|
||||
@@ -161,6 +183,7 @@ public class ThumbnailsCacheManager {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static Bitmap getBitmapFromDiskCache(String key) {
|
||||
synchronized (mThumbnailsDiskCacheLock) {
|
||||
// Wait while disk cache is started from background thread
|
||||
@@ -178,37 +201,72 @@ 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
|
||||
mImageViewReference = new WeakReference<ImageView>(imageView);
|
||||
if (storageManager == null)
|
||||
if (storageManager == null) {
|
||||
throw new IllegalArgumentException("storageManager must not be NULL");
|
||||
}
|
||||
mStorageManager = storageManager;
|
||||
mAccount = account;
|
||||
}
|
||||
|
||||
public ThumbnailGenerationTask(FileDataStorageManager storageManager, Account account){
|
||||
if (storageManager == null)
|
||||
if (storageManager == null) {
|
||||
throw new IllegalArgumentException("storageManager must not be NULL");
|
||||
}
|
||||
mStorageManager = storageManager;
|
||||
mAccount = account;
|
||||
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);
|
||||
}
|
||||
|
||||
@SuppressFBWarnings("Dm")
|
||||
@Override
|
||||
protected Bitmap doInBackground(Object... params) {
|
||||
Bitmap thumbnail = null;
|
||||
@@ -224,18 +282,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();
|
||||
} else if (mFile instanceof File) {
|
||||
thumbnail = doFileInBackground(mIsThumbnail);
|
||||
|
||||
String url = ((File) mFile).getAbsolutePath();
|
||||
String mMimeType = FileStorageUtils.getMimeTypeFromName(url);
|
||||
@@ -243,16 +303,15 @@ public class ThumbnailsCacheManager {
|
||||
if (MimeTypeUtil.isVideo(mMimeType) && thumbnail != null) {
|
||||
thumbnail = addVideoOverlay(thumbnail);
|
||||
}
|
||||
//} else { do nothing
|
||||
//} else { do nothing
|
||||
}
|
||||
|
||||
}catch(Throwable t){
|
||||
// the app should never break due to a problem with thumbnails
|
||||
Log_OC.e(TAG, "Generation of thumbnail for " + mFile + " failed", t);
|
||||
if (t instanceof OutOfMemoryError) {
|
||||
System.gc();
|
||||
}
|
||||
}
|
||||
} catch(OutOfMemoryError oome) {
|
||||
System.gc();
|
||||
} catch (Throwable t) {
|
||||
// the app should never break due to a problem with thumbnails
|
||||
Log_OC.e(TAG, "Generation of thumbnail for " + mFile + " failed", t);
|
||||
}
|
||||
|
||||
return thumbnail;
|
||||
}
|
||||
@@ -269,12 +328,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
|
||||
@@ -285,31 +373,56 @@ public class ThumbnailsCacheManager {
|
||||
return Math.round(r.getDimension(R.dimen.file_icon_size_grid));
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -322,33 +435,50 @@ 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) {
|
||||
e.printStackTrace();
|
||||
Log_OC.d(TAG, e.getMessage(), e);
|
||||
} finally {
|
||||
if (get != null) {
|
||||
get.releaseConnection();
|
||||
@@ -365,7 +495,7 @@ public class ThumbnailsCacheManager {
|
||||
|
||||
}
|
||||
|
||||
private Bitmap doFileInBackground() {
|
||||
private Bitmap doFileInBackground(Boolean mIsThumbnail) {
|
||||
File file = (File)mFile;
|
||||
|
||||
final String imageKey;
|
||||
@@ -375,19 +505,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;
|
||||
@@ -497,11 +641,13 @@ public class ThumbnailsCacheManager {
|
||||
FileDataStorageManager storageManager, Account account) {
|
||||
mAvatarGenerationListener = new WeakReference<>(avatarGenerationListener);
|
||||
mCallContext = callContext;
|
||||
if (storageManager == null)
|
||||
if (storageManager == null) {
|
||||
throw new IllegalArgumentException("storageManager must not be NULL");
|
||||
}
|
||||
mAccount = account;
|
||||
}
|
||||
|
||||
@SuppressFBWarnings("Dm")
|
||||
@Override
|
||||
protected Bitmap doInBackground(String... params) {
|
||||
Bitmap thumbnail = null;
|
||||
@@ -517,12 +663,11 @@ public class ThumbnailsCacheManager {
|
||||
mUsername = params[0];
|
||||
thumbnail = doAvatarInBackground();
|
||||
|
||||
} catch(OutOfMemoryError oome) {
|
||||
System.gc(); // todo, does this really make sense?
|
||||
} catch(Throwable t){
|
||||
// the app should never break due to a problem with avatars
|
||||
Log_OC.e(TAG, "Generation of avatar for " + mUsername + " failed", t);
|
||||
if (t instanceof OutOfMemoryError) {
|
||||
System.gc();
|
||||
}
|
||||
}
|
||||
|
||||
return thumbnail;
|
||||
@@ -530,15 +675,12 @@ public class ThumbnailsCacheManager {
|
||||
|
||||
protected void onPostExecute(Bitmap bitmap) {
|
||||
if (bitmap != null) {
|
||||
if (mAvatarGenerationListener != null) {
|
||||
AvatarGenerationListener listener = mAvatarGenerationListener.get();
|
||||
AvatarGenerationTask avatarWorkerTask = getAvatarWorkerTask(mCallContext);
|
||||
if (this == avatarWorkerTask) {
|
||||
if (listener.shouldCallGeneratedCallback(mUsername, mCallContext)) {
|
||||
listener.avatarGenerated(new BitmapDrawable(bitmap), mCallContext);
|
||||
}
|
||||
AvatarGenerationListener listener = mAvatarGenerationListener.get();
|
||||
AvatarGenerationTask avatarWorkerTask = getAvatarWorkerTask(mCallContext);
|
||||
if (this == avatarWorkerTask
|
||||
&& listener.shouldCallGeneratedCallback(mUsername, mCallContext)) {
|
||||
listener.avatarGenerated(new BitmapDrawable(bitmap), mCallContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -632,7 +774,7 @@ public class ThumbnailsCacheManager {
|
||||
if (bitmapWorkerTask != null) {
|
||||
final Object bitmapData = bitmapWorkerTask.mFile;
|
||||
// If bitmapData is not yet set or it differs from the new data
|
||||
if (bitmapData == null || bitmapData != file) {
|
||||
if (bitmapData == null || !bitmapData.equals(file)) {
|
||||
// Cancel previous task
|
||||
bitmapWorkerTask.cancel(true);
|
||||
Log_OC.v(TAG, "Cancelled generation of thumbnail for a reused imageView");
|
||||
@@ -646,10 +788,11 @@ public class ThumbnailsCacheManager {
|
||||
}
|
||||
|
||||
public static boolean cancelPotentialAvatarWork(Object file, Object callContext) {
|
||||
if (callContext instanceof ImageView)
|
||||
return cancelPotentialAvatarWork(file, (ImageView)callContext);
|
||||
else if (callContext instanceof MenuItem)
|
||||
if (callContext instanceof ImageView) {
|
||||
return cancelPotentialAvatarWork(file, (ImageView) callContext);
|
||||
} else if (callContext instanceof MenuItem) {
|
||||
return cancelPotentialAvatarWork(file, (MenuItem)callContext);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -660,7 +803,7 @@ public class ThumbnailsCacheManager {
|
||||
if (avatarWorkerTask != null) {
|
||||
final Object usernameData = avatarWorkerTask.mUsername;
|
||||
// If usernameData is not yet set or it differs from the new data
|
||||
if (usernameData == null || usernameData != file) {
|
||||
if (usernameData == null || !usernameData.equals(file)) {
|
||||
// Cancel previous task
|
||||
avatarWorkerTask.cancel(true);
|
||||
Log_OC.v(TAG, "Cancelled generation of avatar for a reused imageView");
|
||||
@@ -679,7 +822,7 @@ public class ThumbnailsCacheManager {
|
||||
if (avatarWorkerTask != null) {
|
||||
final Object usernameData = avatarWorkerTask.mUsername;
|
||||
// If usernameData is not yet set or it differs from the new data
|
||||
if (usernameData == null || usernameData != file) {
|
||||
if (usernameData == null || !usernameData.equals(file)) {
|
||||
// Cancel previous task
|
||||
avatarWorkerTask.cancel(true);
|
||||
Log_OC.v(TAG, "Cancelled generation of avatar for a reused imageView");
|
||||
@@ -734,7 +877,6 @@ public class ThumbnailsCacheManager {
|
||||
|
||||
// offset to top left
|
||||
double ox = - xm;
|
||||
double oy = thumbnail.getHeight() - ym;
|
||||
|
||||
|
||||
c.drawBitmap(thumbnail, 0, 0, null);
|
||||
@@ -749,10 +891,11 @@ public class ThumbnailsCacheManager {
|
||||
}
|
||||
|
||||
public static AvatarGenerationTask getAvatarWorkerTask(Object callContext) {
|
||||
if (callContext instanceof ImageView)
|
||||
if (callContext instanceof ImageView) {
|
||||
return getAvatarWorkerTask(((ImageView)callContext).getDrawable());
|
||||
else if (callContext instanceof MenuItem)
|
||||
} else if (callContext instanceof MenuItem) {
|
||||
return getAvatarWorkerTask(((MenuItem)callContext).getIcon());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ import java.util.Observable;
|
||||
public class UploadsStorageManager extends Observable {
|
||||
|
||||
private ContentResolver mContentResolver;
|
||||
private static final String AND = " AND ";
|
||||
|
||||
static private final String TAG = UploadsStorageManager.class.getSimpleName();
|
||||
|
||||
@@ -391,8 +392,8 @@ public class UploadsStorageManager extends Observable {
|
||||
*/
|
||||
public OCUpload[] getFailedButNotDelayedUploads() {
|
||||
return getUploads(
|
||||
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value + " AND " +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_WIFI.getValue() + " AND " +
|
||||
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value + AND +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_WIFI.getValue() + AND +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_CHARGING.getValue(),
|
||||
null
|
||||
);
|
||||
@@ -405,8 +406,8 @@ public class UploadsStorageManager extends Observable {
|
||||
public long clearFailedButNotDelayedUploads() {
|
||||
long result = getDB().delete(
|
||||
ProviderTableMeta.CONTENT_URI_UPLOADS,
|
||||
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value + " AND " +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_WIFI.getValue() + " AND " +
|
||||
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value + AND +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_WIFI.getValue() + AND +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_CHARGING.getValue(),
|
||||
null
|
||||
);
|
||||
@@ -436,7 +437,7 @@ public class UploadsStorageManager extends Observable {
|
||||
long result = getDB().delete(
|
||||
ProviderTableMeta.CONTENT_URI_UPLOADS,
|
||||
ProviderTableMeta.UPLOADS_STATUS + "=? OR " + ProviderTableMeta.UPLOADS_STATUS + "=? AND " +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_WIFI.getValue() + " AND " +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_WIFI.getValue() + AND +
|
||||
ProviderTableMeta.UPLOADS_LAST_RESULT + "<>" + UploadResult.DELAYED_FOR_CHARGING.getValue(),
|
||||
whereArgs
|
||||
);
|
||||
|
||||
@@ -60,8 +60,9 @@ public class DataStorageProvider {
|
||||
private DataStorageProvider() {}
|
||||
|
||||
public StoragePoint[] getAvailableStoragePoints() {
|
||||
if (mCachedStoragePoints.size() != 0)
|
||||
if (mCachedStoragePoints.size() != 0) {
|
||||
return mCachedStoragePoints.toArray(new StoragePoint[mCachedStoragePoints.size()]);
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
for (File f : MainApp.getAppContext().getExternalFilesDirs(null)) {
|
||||
@@ -70,19 +71,22 @@ public class DataStorageProvider {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (IStoragePointProvider p : mStorageProviders)
|
||||
for (IStoragePointProvider p : mStorageProviders) {
|
||||
if (p.canProvideStoragePoints()) {
|
||||
mCachedStoragePoints.addAll(p.getAvailableStoragePoint());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return mCachedStoragePoints.toArray(new StoragePoint[mCachedStoragePoints.size()]);
|
||||
}
|
||||
|
||||
public String getStorageDescriptionByPath(String path) {
|
||||
for (StoragePoint s : getAvailableStoragePoints())
|
||||
if (s.getPath().equals(path))
|
||||
for (StoragePoint s : getAvailableStoragePoints()) {
|
||||
if (s.getPath().equals(path)) {
|
||||
return s.getDescription();
|
||||
}
|
||||
}
|
||||
return MainApp.getAppContext().getString(R.string.storage_description_unknown);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,9 @@ public class UniqueStorageList extends Vector<StoragePoint> {
|
||||
for (StoragePoint s : this) {
|
||||
String thisCanonPath = new File(s.getPath()).getCanonicalPath();
|
||||
String otherCanonPath = new File(sp.getPath()).getCanonicalPath();
|
||||
if (thisCanonPath.equals(otherCanonPath))
|
||||
if (thisCanonPath.equals(otherCanonPath)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
@@ -47,8 +48,9 @@ public class UniqueStorageList extends Vector<StoragePoint> {
|
||||
|
||||
@Override
|
||||
public synchronized boolean addAll(Collection<? extends StoragePoint> collection) {
|
||||
for (StoragePoint sp : collection)
|
||||
for (StoragePoint sp : collection) {
|
||||
add(sp);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -21,15 +21,18 @@
|
||||
|
||||
package com.owncloud.android.datastorage.providers;
|
||||
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author Bartosz Przybylski
|
||||
*/
|
||||
abstract public class AbstractCommandLineStoragePoint extends AbstractStoragePointProvider {
|
||||
abstract class AbstractCommandLineStoragePoint extends AbstractStoragePointProvider {
|
||||
private static final String TAG = AbstractCommandLineStoragePoint.class.getSimpleName();
|
||||
|
||||
static protected final int sCommandLineOKReturnValue = 0;
|
||||
private static final int COMMAND_LINE_OK_RETURN_VALUE = 0;
|
||||
|
||||
protected abstract String[] getCommand();
|
||||
|
||||
@@ -42,23 +45,24 @@ abstract public class AbstractCommandLineStoragePoint extends AbstractStoragePoi
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
return process != null && process.exitValue() == sCommandLineOKReturnValue;
|
||||
return process != null && process.exitValue() == COMMAND_LINE_OK_RETURN_VALUE;
|
||||
}
|
||||
|
||||
protected String getCommandLineResult() {
|
||||
String s = "";
|
||||
String getCommandLineResult() {
|
||||
StringBuilder s = new StringBuilder();
|
||||
try {
|
||||
final Process process = new ProcessBuilder().command(getCommand())
|
||||
.redirectErrorStream(true).start();
|
||||
final Process process = new ProcessBuilder().command(getCommand()).redirectErrorStream(true).start();
|
||||
|
||||
process.waitFor();
|
||||
final InputStream is = process.getInputStream();
|
||||
final byte buffer[] = new byte[1024];
|
||||
while (is.read(buffer) != -1)
|
||||
s += new String(buffer);
|
||||
while (is.read(buffer) != -1) {
|
||||
s.append(new String(buffer, "UTF8"));
|
||||
}
|
||||
is.close();
|
||||
} catch (final Exception e) { }
|
||||
return s;
|
||||
} catch (final Exception e) {
|
||||
Log_OC.e(TAG, "Error retrieving command line results!", e);
|
||||
}
|
||||
return s.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -29,13 +29,19 @@ import java.util.Vector;
|
||||
/**
|
||||
* @author Bartosz Przybylski
|
||||
*/
|
||||
abstract public class AbstractStoragePointProvider implements IStoragePointProvider {
|
||||
abstract class AbstractStoragePointProvider implements IStoragePointProvider {
|
||||
|
||||
protected boolean canBeAddedToAvailableList(Vector<StoragePoint> currentList, String path) {
|
||||
if (path == null) return false;
|
||||
for (StoragePoint storage : currentList)
|
||||
if (storage.getPath().equals(path))
|
||||
boolean canBeAddedToAvailableList(Vector<StoragePoint> currentList, String path) {
|
||||
if (path == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (StoragePoint storage : currentList) {
|
||||
if (storage.getPath().equals(path)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
File f = new File(path);
|
||||
return f.exists() && f.isDirectory() && f.canRead() && f.canWrite();
|
||||
}
|
||||
|
||||
@@ -50,9 +50,12 @@ public class EnvironmentStoragePointProvider extends AbstractStoragePointProvide
|
||||
|
||||
private void addEntriesFromEnv(Vector<StoragePoint> result, String envName) {
|
||||
String env = System.getenv(envName);
|
||||
if (env != null)
|
||||
for (String p : env.split(":"))
|
||||
if (canBeAddedToAvailableList(result, p))
|
||||
if (env != null) {
|
||||
for (String p : env.split(":")) {
|
||||
if (canBeAddedToAvailableList(result, p)) {
|
||||
result.add(new StoragePoint(p, p));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ import java.util.Vector;
|
||||
*/
|
||||
public class HardcodedStoragePointProvider extends AbstractStoragePointProvider {
|
||||
|
||||
static private final String[] sPaths = {
|
||||
private static final String[] PATHS = {
|
||||
"/mnt/external_sd/",
|
||||
"/mnt/extSdCard/",
|
||||
"/storage/extSdCard",
|
||||
@@ -47,9 +47,11 @@ public class HardcodedStoragePointProvider extends AbstractStoragePointProvider
|
||||
public Vector<StoragePoint> getAvailableStoragePoint() {
|
||||
Vector<StoragePoint> result = new Vector<>();
|
||||
|
||||
for (String s : sPaths)
|
||||
if (canBeAddedToAvailableList(result, s))
|
||||
for (String s : PATHS) {
|
||||
if (canBeAddedToAvailableList(result, s)) {
|
||||
result.add(new StoragePoint(s, s));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -45,9 +45,11 @@ public class MountCommandStoragePointProvider extends AbstractCommandLineStorage
|
||||
public Vector<StoragePoint> getAvailableStoragePoint() {
|
||||
Vector<StoragePoint> result = new Vector<>();
|
||||
|
||||
for (String p : getPotentialPaths(getCommandLineResult()))
|
||||
if (canBeAddedToAvailableList(result, p))
|
||||
for (String p : getPotentialPaths(getCommandLineResult())) {
|
||||
if (canBeAddedToAvailableList(result, p)) {
|
||||
result.add(new StoragePoint(p, p));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -55,15 +57,16 @@ public class MountCommandStoragePointProvider extends AbstractCommandLineStorage
|
||||
private Vector<String> getPotentialPaths(String mounted) {
|
||||
final Vector<String> result = new Vector<>();
|
||||
|
||||
for (String line : mounted.split("\n"))
|
||||
for (String line : mounted.split("\n")) {
|
||||
if (!line.toLowerCase(Locale.US).contains("asec") && sPattern.matcher(line).matches()) {
|
||||
String parts[] = line.split(" ");
|
||||
for (String path : parts) {
|
||||
if (path.startsWith("/") &&
|
||||
!path.toLowerCase(Locale.US).contains("vold"))
|
||||
if (path.startsWith("/") && !path.toLowerCase(Locale.US).contains("vold")) {
|
||||
result.add(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -58,13 +58,15 @@ public class VDCStoragePointProvider extends AbstractCommandLineStoragePoint {
|
||||
String vdcLine[] = line.split(" ");
|
||||
try {
|
||||
int status = Integer.parseInt(vdcLine[0]);
|
||||
if (status != sVDCVolumeList)
|
||||
if (status != sVDCVolumeList) {
|
||||
continue;
|
||||
}
|
||||
final String description = vdcLine[1];
|
||||
final String path = vdcLine[2];
|
||||
|
||||
if (canBeAddedToAvailableList(result, path))
|
||||
if (canBeAddedToAvailableList(result, path)) {
|
||||
result.add(new StoragePoint(description, path));
|
||||
}
|
||||
|
||||
} catch (NumberFormatException e) {
|
||||
Log_OC.e(TAG, "Incorrect VDC output format " + e);
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
@@ -36,17 +38,25 @@ public abstract class PreferenceManager {
|
||||
private static final String AUTO_PREF__SORT_ORDER = "sort_order";
|
||||
private static final String AUTO_PREF__SORT_ASCENDING = "sort_ascending";
|
||||
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);
|
||||
}
|
||||
@@ -59,6 +69,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);
|
||||
}
|
||||
@@ -159,22 +174,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) {
|
||||
|
||||
@@ -44,19 +44,20 @@ public class ProviderMeta {
|
||||
public static final String CAPABILITIES_TABLE_NAME = "capabilities";
|
||||
public static final String UPLOADS_TABLE_NAME = "list_of_uploads";
|
||||
public static final String SYNCED_FOLDERS_TABLE_NAME = "synced_folders";
|
||||
public static final Uri CONTENT_URI = Uri.parse("content://"
|
||||
private static final String CONTENT_PREFIX = "content://";
|
||||
public static final Uri CONTENT_URI = Uri.parse(CONTENT_PREFIX
|
||||
+ MainApp.getAuthority() + "/");
|
||||
public static final Uri CONTENT_URI_FILE = Uri.parse("content://"
|
||||
public static final Uri CONTENT_URI_FILE = Uri.parse(CONTENT_PREFIX
|
||||
+ MainApp.getAuthority() + "/file");
|
||||
public static final Uri CONTENT_URI_DIR = Uri.parse("content://"
|
||||
public static final Uri CONTENT_URI_DIR = Uri.parse(CONTENT_PREFIX
|
||||
+ MainApp.getAuthority() + "/dir");
|
||||
public static final Uri CONTENT_URI_SHARE = Uri.parse("content://"
|
||||
public static final Uri CONTENT_URI_SHARE = Uri.parse(CONTENT_PREFIX
|
||||
+ MainApp.getAuthority() + "/shares");
|
||||
public static final Uri CONTENT_URI_CAPABILITIES = Uri.parse("content://"
|
||||
public static final Uri CONTENT_URI_CAPABILITIES = Uri.parse(CONTENT_PREFIX
|
||||
+ MainApp.getAuthority() + "/capabilities");
|
||||
public static final Uri CONTENT_URI_UPLOADS = Uri.parse("content://"
|
||||
public static final Uri CONTENT_URI_UPLOADS = Uri.parse(CONTENT_PREFIX
|
||||
+ MainApp.getAuthority() + "/uploads");
|
||||
public static final Uri CONTENT_URI_SYNCED_FOLDERS = Uri.parse("content://"
|
||||
public static final Uri CONTENT_URI_SYNCED_FOLDERS = Uri.parse(CONTENT_PREFIX
|
||||
+ MainApp.getAuthority() + "/synced_folders");
|
||||
|
||||
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.owncloud.file";
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
/**
|
||||
* ownCloud Android client application
|
||||
*
|
||||
* @author Bartosz Przybylski
|
||||
* Copyright (C) 2015 Bartosz 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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.owncloud.android.features;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.owncloud.android.BuildConfig;
|
||||
import com.owncloud.android.MainApp;
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* @author Bartosz Przybylski
|
||||
*/
|
||||
public class FeatureList {
|
||||
|
||||
static final private boolean SHOW_ON_FIRST_RUN = true;
|
||||
static final private boolean SHOW_ON_UPGRADE = false;
|
||||
|
||||
|
||||
static final private FeatureItem featuresList[] = {
|
||||
// Basic features showed on first install
|
||||
new FeatureItem(R.drawable.what_new_instant_upload, R.string.welcome_feature_1_title, R.string.welcome_feature_1_text, "1.0.0", "0", SHOW_ON_FIRST_RUN),
|
||||
new FeatureItem(R.drawable.whats_new_files, R.string.welcome_feature_2_title, R.string.welcome_feature_2_text, "1.0.0", "0", SHOW_ON_FIRST_RUN),
|
||||
new FeatureItem(R.drawable.whats_new_share, R.string.welcome_feature_3_title, R.string.welcome_feature_3_text, "1.0.0", "0" ,SHOW_ON_FIRST_RUN),
|
||||
new FeatureItem(R.drawable.whats_new_accounts, R.string.welcome_feature_4_title, R.string.welcome_feature_4_text, "1.0.0", "0", SHOW_ON_FIRST_RUN),
|
||||
// Features introduced in certain point in time
|
||||
};
|
||||
|
||||
|
||||
static public FeatureItem[] get() {
|
||||
return featuresList;
|
||||
}
|
||||
|
||||
static public FeatureItem[] getFiltered(final int lastSeenVersionCode, final boolean isFirstRun, boolean isBeta) {
|
||||
List<FeatureItem> features = new LinkedList<>();
|
||||
|
||||
for (FeatureItem item : get()) {
|
||||
final int itemVersionCode = isBeta ? item.getBetaVersionNumber() : item.getVersionNumber();
|
||||
if (isFirstRun && item.shouldShowOnFirstRun()) {
|
||||
features.add(item);
|
||||
} else if (!isFirstRun && !item.shouldShowOnFirstRun() &&
|
||||
MainApp.getVersionCode() >= itemVersionCode &&
|
||||
lastSeenVersionCode < itemVersionCode) {
|
||||
features.add(item);
|
||||
}
|
||||
}
|
||||
return features.toArray(new FeatureItem[features.size()]);
|
||||
}
|
||||
|
||||
static public class FeatureItem implements Parcelable {
|
||||
public static final int DO_NOT_SHOW = -1;
|
||||
private int image;
|
||||
private int titleText;
|
||||
private int contentText;
|
||||
private int versionNumber;
|
||||
private int betaVersion;
|
||||
private boolean showOnInitialRun;
|
||||
|
||||
public FeatureItem(int image, int titleText, int contentText, String version, String betaVersion) {
|
||||
this(image, titleText, contentText, version, betaVersion, false);
|
||||
}
|
||||
|
||||
public FeatureItem(int image, int titleText, int contentText, String version, String betaVersion, boolean showOnInitialRun) {
|
||||
this.image = image;
|
||||
this.titleText = titleText;
|
||||
this.contentText = contentText;
|
||||
this.versionNumber = versionCodeFromString(version);
|
||||
this.betaVersion = Integer.parseInt(betaVersion);
|
||||
this.showOnInitialRun = showOnInitialRun;
|
||||
}
|
||||
|
||||
public boolean shouldShowImage() { return image != DO_NOT_SHOW; }
|
||||
public int getImage() { return image; }
|
||||
|
||||
public boolean shouldShowTitleText() { return titleText != DO_NOT_SHOW; }
|
||||
public int getTitleText() { return titleText; }
|
||||
|
||||
public boolean shouldShowContentText() { return contentText != DO_NOT_SHOW; }
|
||||
public int getContentText() { return contentText; }
|
||||
|
||||
public int getVersionNumber() { return versionNumber; }
|
||||
public int getBetaVersionNumber() { return betaVersion; }
|
||||
public boolean shouldShowOnFirstRun() { return showOnInitialRun; }
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeInt(image);
|
||||
dest.writeInt(titleText);
|
||||
dest.writeInt(contentText);
|
||||
dest.writeInt(versionNumber);
|
||||
dest.writeInt(betaVersion);
|
||||
dest.writeByte((byte) (showOnInitialRun ? 1 : 0));
|
||||
}
|
||||
|
||||
private FeatureItem(Parcel p) {
|
||||
image = p.readInt();
|
||||
titleText = p.readInt();
|
||||
contentText = p.readInt();
|
||||
versionNumber = p.readInt();
|
||||
betaVersion = p.readInt();
|
||||
showOnInitialRun = p.readByte() == 1;
|
||||
}
|
||||
public static final Parcelable.Creator CREATOR =
|
||||
new Parcelable.Creator() {
|
||||
|
||||
@Override
|
||||
public Object createFromParcel(Parcel source) {
|
||||
return new FeatureItem(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object[] newArray(int size) {
|
||||
return new FeatureItem[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
static int versionCodeFromString(String version) {
|
||||
String v[] = version.split(Pattern.quote("."));
|
||||
if (v.length != 3) {
|
||||
Log_OC.wtf("FeatureList", "Version string is incorrect " + version);
|
||||
return 0;
|
||||
}
|
||||
int result = Integer.parseInt(v[0])*(int)(10e6) +
|
||||
Integer.parseInt(v[1])*(int)(10e4) +
|
||||
Integer.parseInt(v[2])*100;
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,7 @@ import android.content.Intent;
|
||||
*/
|
||||
public class BootupBroadcastReceiver extends BroadcastReceiver {
|
||||
|
||||
private static String TAG = BootupBroadcastReceiver.class.getSimpleName();
|
||||
private static final String TAG = BootupBroadcastReceiver.class.getSimpleName();
|
||||
|
||||
/**
|
||||
* Receives broadcast intent reporting that the system was just boot up.
|
||||
|
||||
@@ -43,17 +43,17 @@ import com.owncloud.android.utils.FileStorageUtils;
|
||||
|
||||
public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
|
||||
|
||||
private static String TAG = InstantUploadBroadcastReceiver.class.getName();
|
||||
private static final String TAG = InstantUploadBroadcastReceiver.class.getName();
|
||||
// Image action
|
||||
// Unofficial action, works for most devices but not HTC. See: https://github.com/owncloud/android/issues/6
|
||||
private static String NEW_PHOTO_ACTION_UNOFFICIAL = "com.android.camera.NEW_PICTURE";
|
||||
private static final String NEW_PHOTO_ACTION_UNOFFICIAL = "com.android.camera.NEW_PICTURE";
|
||||
// Officially supported action since SDK 14:
|
||||
// http://developer.android.com/reference/android/hardware/Camera.html#ACTION_NEW_PICTURE
|
||||
private static String NEW_PHOTO_ACTION = "android.hardware.action.NEW_PICTURE";
|
||||
private static final String NEW_PHOTO_ACTION = "android.hardware.action.NEW_PICTURE";
|
||||
// Video action
|
||||
// Officially supported action since SDK 14:
|
||||
// http://developer.android.com/reference/android/hardware/Camera.html#ACTION_NEW_VIDEO
|
||||
private static String NEW_VIDEO_ACTION = "android.hardware.action.NEW_VIDEO";
|
||||
private static final String NEW_VIDEO_ACTION = "android.hardware.action.NEW_VIDEO";
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
@@ -93,9 +93,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;
|
||||
}
|
||||
|
||||
@@ -181,9 +181,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -70,22 +70,20 @@ public class ConnectivityActionReceiver extends BroadcastReceiver {
|
||||
Log_OC.v(TAG, "no extras");
|
||||
}
|
||||
|
||||
if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED)) {
|
||||
if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED) &&
|
||||
(PreferenceManager.instantPictureUploadEnabled(context) &&
|
||||
PreferenceManager.instantPictureUploadWhenChargingOnly(context)) ||
|
||||
(PreferenceManager.instantVideoUploadEnabled(context) &&
|
||||
PreferenceManager.instantVideoUploadWhenChargingOnly(context))
|
||||
) {
|
||||
// for the moment, only recovery of instant uploads, similar to behaviour in release 1.9.1
|
||||
if (
|
||||
(PreferenceManager.instantPictureUploadEnabled(context) &&
|
||||
PreferenceManager.instantPictureUploadWhenChargingOnly(context)) ||
|
||||
(PreferenceManager.instantVideoUploadEnabled(context) &&
|
||||
PreferenceManager.instantVideoUploadWhenChargingOnly(context))
|
||||
) {
|
||||
Log_OC.d(TAG, "Requesting retry of instant uploads (& friends) due to charging");
|
||||
FileUploader.UploadRequester requester = new FileUploader.UploadRequester();
|
||||
requester.retryFailedUploads(
|
||||
context,
|
||||
null,
|
||||
UploadResult.DELAYED_FOR_CHARGING // for the rest of enqueued when Wifi fell
|
||||
);
|
||||
}
|
||||
Log_OC.d(TAG, "Requesting retry of instant uploads (& friends) due to charging");
|
||||
FileUploader.UploadRequester requester = new FileUploader.UploadRequester();
|
||||
requester.retryFailedUploads(
|
||||
context,
|
||||
null,
|
||||
UploadResult.DELAYED_FOR_CHARGING // for the rest of enqueued when Wifi fell
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -297,7 +297,9 @@ public class FileDownloader extends Service
|
||||
* @param file A file that could be in the queue of downloads.
|
||||
*/
|
||||
public boolean isDownloading(Account account, OCFile file) {
|
||||
if (account == null || file == null) return false;
|
||||
if (account == null || file == null) {
|
||||
return false;
|
||||
}
|
||||
return (mPendingDownloads.contains(account.name, file.getRemotePath()));
|
||||
}
|
||||
|
||||
@@ -312,7 +314,9 @@ public class FileDownloader extends Service
|
||||
public void addDatatransferProgressListener(
|
||||
OnDatatransferProgressListener listener, Account account, OCFile file
|
||||
) {
|
||||
if (account == null || file == null || listener == null) return;
|
||||
if (account == null || file == null || listener == null) {
|
||||
return;
|
||||
}
|
||||
mBoundListeners.put(file.getFileId(), listener);
|
||||
}
|
||||
|
||||
@@ -327,7 +331,9 @@ public class FileDownloader extends Service
|
||||
public void removeDatatransferProgressListener(
|
||||
OnDatatransferProgressListener listener, Account account, OCFile file
|
||||
) {
|
||||
if (account == null || file == null || listener == null) return;
|
||||
if (account == null || file == null || listener == null) {
|
||||
return;
|
||||
}
|
||||
Long fileId = file.getFileId();
|
||||
if (mBoundListeners.get(fileId) == listener) {
|
||||
mBoundListeners.remove(fileId);
|
||||
@@ -359,8 +365,9 @@ public class FileDownloader extends Service
|
||||
|
||||
public ServiceHandler(Looper looper, FileDownloader service) {
|
||||
super(looper);
|
||||
if (service == null)
|
||||
if (service == null) {
|
||||
throw new IllegalArgumentException("Received invalid NULL in parameter 'service'");
|
||||
}
|
||||
mService = service;
|
||||
}
|
||||
|
||||
|
||||
@@ -721,8 +721,9 @@ public class FileUploader extends Service
|
||||
* @param file A file that could be in the queue of pending uploads
|
||||
*/
|
||||
public boolean isUploading(Account account, OCFile file) {
|
||||
if (account == null || file == null)
|
||||
if (account == null || file == null) {
|
||||
return false;
|
||||
}
|
||||
return (mPendingUploads.contains(account.name, file.getRemotePath()));
|
||||
}
|
||||
|
||||
@@ -750,7 +751,9 @@ public class FileUploader extends Service
|
||||
Account account,
|
||||
OCFile file
|
||||
) {
|
||||
if (account == null || file == null || listener == null) return;
|
||||
if (account == null || file == null || listener == null) {
|
||||
return;
|
||||
}
|
||||
String targetKey = buildRemoteName(account.name, file.getRemotePath());
|
||||
mBoundListeners.put(targetKey, listener);
|
||||
}
|
||||
@@ -766,7 +769,9 @@ public class FileUploader extends Service
|
||||
OnDatatransferProgressListener listener,
|
||||
OCUpload ocUpload
|
||||
) {
|
||||
if (ocUpload == null || listener == null) return;
|
||||
if (ocUpload == null || listener == null) {
|
||||
return;
|
||||
}
|
||||
String targetKey = buildRemoteName(ocUpload.getAccountName(), ocUpload.getRemotePath());
|
||||
mBoundListeners.put(targetKey, listener);
|
||||
}
|
||||
@@ -784,7 +789,9 @@ public class FileUploader extends Service
|
||||
Account account,
|
||||
OCFile file
|
||||
) {
|
||||
if (account == null || file == null || listener == null) return;
|
||||
if (account == null || file == null || listener == null) {
|
||||
return;
|
||||
}
|
||||
String targetKey = buildRemoteName(account.name, file.getRemotePath());
|
||||
if (mBoundListeners.get(targetKey) == listener) {
|
||||
mBoundListeners.remove(targetKey);
|
||||
@@ -802,7 +809,9 @@ public class FileUploader extends Service
|
||||
OnDatatransferProgressListener listener,
|
||||
OCUpload ocUpload
|
||||
) {
|
||||
if (ocUpload == null || listener == null) return;
|
||||
if (ocUpload == null || listener == null) {
|
||||
return;
|
||||
}
|
||||
String targetKey = buildRemoteName(ocUpload.getAccountName(), ocUpload.getRemotePath());
|
||||
if (mBoundListeners.get(targetKey) == listener) {
|
||||
mBoundListeners.remove(targetKey);
|
||||
@@ -851,8 +860,9 @@ public class FileUploader extends Service
|
||||
|
||||
public ServiceHandler(Looper looper, FileUploader service) {
|
||||
super(looper);
|
||||
if (service == null)
|
||||
if (service == null) {
|
||||
throw new IllegalArgumentException("Received invalid NULL in parameter 'service'");
|
||||
}
|
||||
mService = service;
|
||||
}
|
||||
|
||||
@@ -954,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);
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ public class IndexedForest<V> {
|
||||
|
||||
private ConcurrentMap<String, Node<V>> mMap = new ConcurrentHashMap<String, Node<V>>();
|
||||
|
||||
@SuppressWarnings("PMD.ShortClassName")
|
||||
private class Node<V> {
|
||||
String mKey = null;
|
||||
Node<V> mParent = null;
|
||||
@@ -168,7 +169,6 @@ public class IndexedForest<V> {
|
||||
/// remove ancestors if only here due to firstRemoved
|
||||
Node<V> removed = firstRemoved;
|
||||
Node<V> parent = removed.getParent();
|
||||
boolean unlinked = false;
|
||||
while (parent != null) {
|
||||
parent.removeChild(removed);
|
||||
if (!parent.hasChildren()) {
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
/**
|
||||
* 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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.owncloud.android.files.services;
|
||||
|
||||
public interface OnUploadCompletedListener extends Runnable {
|
||||
|
||||
public boolean getUploadResult();
|
||||
|
||||
public void setUploadResult(boolean result);
|
||||
}
|
||||
@@ -65,8 +65,6 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
private TextView mEndTime, mCurrentTime;
|
||||
private boolean mDragging;
|
||||
private static final int SHOW_PROGRESS = 1;
|
||||
StringBuilder mFormatBuilder;
|
||||
Formatter mFormatter;
|
||||
private ImageButton mPauseButton;
|
||||
private ImageButton mFfwdButton;
|
||||
private ImageButton mRewButton;
|
||||
@@ -231,9 +229,6 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
|
||||
mEndTime = (TextView) v.findViewById(R.id.totalTimeText);
|
||||
mCurrentTime = (TextView) v.findViewById(R.id.currentTimeText);
|
||||
mFormatBuilder = new StringBuilder();
|
||||
mFormatter = new Formatter(mFormatBuilder, Locale.getDefault());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -265,14 +260,12 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
@Override
|
||||
public void handleMessage(Message msg) {
|
||||
int pos;
|
||||
switch (msg.what) {
|
||||
case SHOW_PROGRESS:
|
||||
pos = setProgress();
|
||||
if (!mDragging) {
|
||||
msg = obtainMessage(SHOW_PROGRESS);
|
||||
sendMessageDelayed(msg, 1000 - (pos % 1000));
|
||||
}
|
||||
break;
|
||||
if (msg.what == SHOW_PROGRESS) {
|
||||
pos = setProgress();
|
||||
if (!mDragging) {
|
||||
msg = obtainMessage(SHOW_PROGRESS);
|
||||
sendMessageDelayed(msg, 1000 - (pos % 1000));
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -284,7 +277,8 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
int minutes = (totalSeconds / 60) % 60;
|
||||
int hours = totalSeconds / 3600;
|
||||
|
||||
mFormatBuilder.setLength(0);
|
||||
final StringBuilder mFormatBuilder = new StringBuilder();
|
||||
final Formatter mFormatter = new Formatter(mFormatBuilder, Locale.getDefault());
|
||||
if (hours > 0) {
|
||||
return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
|
||||
} else {
|
||||
@@ -308,11 +302,12 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
mProgress.setSecondaryProgress(percent * 10);
|
||||
}
|
||||
|
||||
if (mEndTime != null)
|
||||
if (mEndTime != null) {
|
||||
mEndTime.setText(stringForTime(duration));
|
||||
if (mCurrentTime != null)
|
||||
}
|
||||
if (mCurrentTime != null) {
|
||||
mCurrentTime.setText(stringForTime(position));
|
||||
|
||||
}
|
||||
return position;
|
||||
}
|
||||
|
||||
@@ -355,8 +350,9 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
}
|
||||
|
||||
public void updatePausePlay() {
|
||||
if (mRoot == null || mPauseButton == null)
|
||||
if (mRoot == null || mPauseButton == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mPlayer.isPlaying()) {
|
||||
mPauseButton.setImageResource(android.R.drawable.ic_media_pause);
|
||||
@@ -406,7 +402,9 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
pos = mPlayer.getCurrentPosition();
|
||||
pos -= 5000;
|
||||
mPlayer.seekTo(pos);
|
||||
if (!playing) mPlayer.pause(); // necessary in some 2.3.x devices
|
||||
if (!playing) {
|
||||
mPlayer.pause(); // necessary in some 2.3.x devices
|
||||
}
|
||||
setProgress();
|
||||
break;
|
||||
|
||||
@@ -414,10 +412,11 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
pos = mPlayer.getCurrentPosition();
|
||||
pos += 15000;
|
||||
mPlayer.seekTo(pos);
|
||||
if (!playing) mPlayer.pause(); // necessary in some 2.3.x devices
|
||||
if (!playing) {
|
||||
mPlayer.pause(); // necessary in some 2.3.x devices
|
||||
}
|
||||
setProgress();
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -433,8 +432,9 @@ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeLi
|
||||
long duration = mPlayer.getDuration();
|
||||
long newposition = (duration * progress) / 1000L;
|
||||
mPlayer.seekTo( (int) newposition);
|
||||
if (mCurrentTime != null)
|
||||
mCurrentTime.setText(stringForTime( (int) newposition));
|
||||
if (mCurrentTime != null) {
|
||||
mCurrentTime.setText(stringForTime((int) newposition));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||