Commit graph

10742 commits

Author SHA1 Message Date
eho
4ebf83fce6 ui:preview Simplified lambda expressions. 2018-05-22 11:04:13 +02:00
eho
9ecdcdd613 ui:preview Removed unused import. 2018-05-22 11:03:39 +02:00
eho
1896ffe66e ui:preview Removed single-use downloadFile() method. 2018-05-22 11:03:22 +02:00
eho
158451d316 ui:preview Removed unused public method switchToFullScreen() 2018-05-22 10:53:20 +02:00
eho
044b59c2f2 ui:preview Moved full screen toggle code to dedicated method.
Reduces duplicate code.
2018-05-22 10:53:00 +02:00
Mario Đanić
f2039686f4
Merge pull request #2602 from nextcloud/ui-preview-checkerboardrefactor
ui:preview Simplified generateCheckerboardLayeredDrawable()
2018-05-22 10:37:53 +02:00
eho
0ae79863e5 ui:preview Simplified layerDrawable dimension calculation even further. 2018-05-22 10:36:49 +02:00
eho
e61aa30b6f ui:preview Simplified layerDrawable dimension calculation. 2018-05-22 10:30:26 +02:00
Tobias Kaminsky
e59181544e Merge branch 'master' of https://github.com/nextcloud/android 2018-05-22 08:45:11 +02:00
Nextcloud bot
4f8669d6d4
[tx-robot] updated from transifex 2018-05-22 00:48:17 +00:00
Tobias Kaminsky
c12e49ee94 daily dev 20180522 2018-05-22 00:32:11 +02:00
Tobias Kaminsky
de83abfdaa Merge branch 'master' of git://github.com/nextcloud/android 2018-05-22 00:30:09 +02:00
eho
ab13851438 ui:preview Ensure getActivity() is not null before generating LayerDrawable. 2018-05-21 22:15:33 +02:00
eho
71466768f7 ui:preview Replaced setLayerHeight and setLayerWidth calls with setLayerSize().
Saves a few lines of code. Always a good thing.
2018-05-21 22:14:32 +02:00
Andy Scherzinger
36328e242e
Merge pull request #2519 from nextcloud/rippleEffect
Add ripple effect
2018-05-21 21:40:14 +02:00
AndyScherzinger
637fc68581
reformat layouts due to review 2018-05-21 19:51:50 +02:00
eho
d5d6a6b4fd ui:preview Replaced anonymous types with lambdas. 2018-05-21 19:21:20 +02:00
eho
ea769e3ff7 ui:preview: Removed unused @Override method so that we simply inherit it.
Overriding a method just to call the same method from the super class without performing any other actions is useless and misleading.
2018-05-21 19:20:48 +02:00
eho
fdce4339a9 ui:preview Adjusted access declarations. Follow the principle of least privileged. 2018-05-21 19:19:29 +02:00
eho
a78ab4ba97 ui:preview Removed redundant variable. 2018-05-21 19:18:59 +02:00
eho
572ff50943 res:styles: Don't use a translucent navigation bar.
This causes view elements at the bottom to overlap with the navigation bar which makes it impossible to interact with said elements.
2018-05-21 19:13:21 +02:00
AndyScherzinger
86d60238fe
codacy: organize imports 2018-05-21 12:48:35 +02:00
tobiasKaminsky
77c253f48d
add ripple effect
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2018-05-21 12:48:35 +02:00
Andy Scherzinger
daee7d101b
Merge pull request #2593 from nextcloud/2583-feature-photoview
Replaced legacy custom ImageView and ViewPager class with PhotoView and stock ViewPager
2018-05-21 12:16:01 +02:00
eho
066936a5f3 ui:preview Use static string constants for mime types.
Duplicating hard coded strings all over the place is generally a bad idea and will lead to typos.
2018-05-21 10:43:43 +02:00
eho
a26f3b6b44 ui:preview Refactored image rendering. Show checkerboard with svg's as well. 2018-05-21 10:40:50 +02:00
eho
2b1cff9172 ui:preview Consolidate checkerboard LayerDrawable generation in dedicated method. 2018-05-20 21:35:22 +02:00
eho
6b7f748690 ui:preview Re-introduce the setImageDrawable call to load downloaded png's into imageView. 2018-05-20 21:21:00 +02:00
eho
d1520e6a5e ui:preview Cleaned up formatting. Extracted layerDrawable bounds setting to separate method. 2018-05-20 20:00:10 +02:00
eho
1ce4c51ed2 ui:preview Use equalsIgnoreCase() for svg mime check. 2018-05-20 19:51:25 +02:00
eho
295bd2f0f1 ui:preview Updated handling of downloaded gif's.
Using a GifDrawable gives us animated gifs.
2018-05-20 19:49:12 +02:00
eho
0128bd8bda gradle: Added android-gif library dependency.
- Library used for displaying animated gif's.
2018-05-20 19:46:13 +02:00
eho
01cb5ffc67 res:layout Removed commented block of code.
Use git to track legacy code instead of leaving commented code blocks in source.
2018-05-20 19:15:54 +02:00
eho
89655f63c0 res:layout Removed unused namespace declaration. 2018-05-20 19:14:55 +02:00
eho
d89e2178f8 ui:preview remove useless return statement in void method. 2018-05-20 19:13:58 +02:00
eho
88c942584c ui:preview Use lambdas 2018-05-20 19:13:36 +02:00
Nextcloud bot
fbe64ef06a
[tx-robot] updated from transifex 2018-05-20 00:46:51 +00:00
Tobias Kaminsky
763a9c0839 daily dev 20180520 2018-05-20 00:32:02 +02:00
Tobias Kaminsky
2e2dbf0855 Merge branch 'master' of git://github.com/nextcloud/android 2018-05-20 00:30:13 +02:00
eho
0bc74d79f2 Merge branch '2583-feature-photoview' of github.com:nextcloud/android into 2583-feature-photoview 2018-05-19 18:49:22 +02:00
eho
0231972869 ui:preview Correctly load svg files into PhotoView. 2018-05-19 18:46:55 +02:00
nextcloud-android-bot
5dd55e8a62 Drone: update Lint results to reflect reduced error/warning count [skip ci] 2018-05-19 16:43:48 +00:00
ardevd
d51f1206a3
Merge c52f8e25b3 into 9430466823 2018-05-19 16:23:58 +00:00
eho
c52f8e25b3 ui: Correctly load and display downloaded gif's. 2018-05-19 18:23:49 +02:00
Andy Scherzinger
9430466823
Merge pull request #2594 from nextcloud/libToMaster
Ignore "unused quantity"
2018-05-19 14:50:38 +02:00
tobiasKaminsky
6128422817
ignore "unused quantity"
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2018-05-19 13:19:32 +02:00
Nextcloud bot
b9023355f8
[tx-robot] updated from transifex 2018-05-19 00:47:14 +00:00
Tobias Kaminsky
1885ff0238 daily dev 20180519 2018-05-19 00:32:09 +02:00
Tobias Kaminsky
5cbb12bb9d Merge branch 'master' of git://github.com/nextcloud/android 2018-05-19 00:30:09 +02:00
Andy Scherzinger
94afb0f4e0
Merge pull request #2590 from nextcloud/libToMaster
Lib refers always to master
2018-05-18 22:10:45 +02:00