Commit graph

503 commits

Author SHA1 Message Date
tibbi
b6ee141c9c remove a writeexif line when opening weird images, like K9 attachments 2017-01-23 19:33:44 +01:00
tibbi
90f7b0fb4c update version to 2.3.4 with Whats new update 2017-01-22 20:04:40 +01:00
tibbi
10670a8f0d wrap the whole exif part of photofragment in try catch 2017-01-22 18:58:04 +01:00
tibbi
9773a481c8 add some null checks to obtaining directories 2017-01-22 18:53:32 +01:00
tibbi
d1995d129a fix #138, add displaying photos on map, if theres coords available 2017-01-22 18:36:27 +01:00
tibbi
06e6f8a3f5 add a menu item for showing photo or video on map 2017-01-22 18:03:14 +01:00
tibbi
c4f49c56c9 use the main thread when deleting images from fullscreen view 2017-01-22 17:44:27 +01:00
tibbi
e13a37edf9 remove the Source field from the copy dialog 2017-01-16 20:45:07 +01:00
tibbi
876f81c0e7 add a null check before displaying properties dialog 2017-01-15 11:59:47 +01:00
tibbi
40ec71c5c2 remember scroll position when going from media to fullscreen mode 2017-01-15 11:51:18 +01:00
tibbi
c6c945eb36 cache 40 photos per folder 2017-01-15 11:46:21 +01:00
tibbi
bbd7cb17b3 add Exif additions to release notes 2017-01-14 23:53:49 +01:00
tibbi
6c7fc3683e change the way third party photos are shared 2017-01-14 19:58:39 +01:00
tibbi
c060a45edf properly open some special attachments, like k9 mail ones 2017-01-14 19:14:44 +01:00
tibbi
eed7be0f40 catch exceptions at trying to display fullscreen photos 2017-01-14 13:49:13 +01:00
tibbi
8b37560ed4 cache 30 images per folder for faster loading the second time 2017-01-14 13:04:22 +01:00
tibbi
a259a0240c make some activity variables nonstatic 2017-01-14 12:26:32 +01:00
tibbi
c2f268d004 show a spinner while loading directories for the first time 2017-01-14 12:18:37 +01:00
tibbi
c2741f6dcb move folder filtering to getParents() 2017-01-13 23:52:04 +01:00
tibbi
a48358bef3 filter out hidden folders asap, if appropriate 2017-01-13 23:49:56 +01:00
tibbi
289e82cc1e what a stupid condition 2017-01-13 23:41:27 +01:00
tibbi
c1f1e92c14 lets always use lastModified as dateTaken and hope nobody is using it 2017-01-13 23:38:56 +01:00
tibbi
ef28b40186 create a config context extension 2017-01-13 23:36:05 +01:00
tibbi
59096651d6 implement Show All at media view 2017-01-13 23:21:28 +01:00
tibbi
59bf41745a move some folder getting functions in context extensions 2017-01-13 23:09:27 +01:00
tibbi
ae5113b1f0 add some smaller helper functions for getting directories 2017-01-12 23:29:15 +01:00
tibbi
c09e472a14 rework the way of obtaining images and videos 2017-01-12 21:51:29 +01:00
tibbi
23d85f6ff9 switch to the new way of getting images again, with some tweak later 2017-01-11 18:47:49 +01:00
tibbi
d2ec946a3d updating commons to 2.3.4 2017-01-10 18:42:26 +01:00
tibbi
9d300b7da8 check for null crop rect at editing an image 2017-01-10 18:34:22 +01:00
tibbi
271fa72abb revert to the previous way of obtaining images 2017-01-10 18:22:39 +01:00
tibbi
a0ec0de5a4 couple threading fixes related to delete 2017-01-08 22:45:11 +01:00
tibbi
c81a54b9e3 adding photoview license 2017-01-07 19:59:31 +01:00
tibbi
544f92104a hide subsamplingscaleimageview if the image failed to load 2017-01-07 19:48:37 +01:00
tibbi
f41d75aca1 update the way we are getting images, so we get more of them 2017-01-07 19:44:05 +01:00
tibbi
80c9044eab rescan paths obtained from third parties 2017-01-07 17:27:41 +01:00
tibbi
926a45c72e small get directories style tweak 2017-01-07 16:10:38 +01:00
tibbi
0efdb071cc allow creating new folders at Copy or Save as dialogs 2017-01-07 16:08:15 +01:00
tibbi
92959d474c update commons to 2.2.0 2017-01-07 15:58:01 +01:00
tibbi
aaab1593c0 remove some redundant brackets 2017-01-07 12:27:08 +01:00
tibbi
61a621fc3c remove the Undo function from folder view 2017-01-07 12:22:25 +01:00
tibbi
e9b40a6c13 add zooming in whatsnew 2017-01-07 12:08:10 +01:00
tibbi
de63b61bf6 use a background thread for deleting stuff 2017-01-07 12:06:29 +01:00
tibbi
b6fbe68643 add PhotoView for zoomable gifs and pngs 2017-01-07 11:41:31 +01:00
tibbi
e7c9964d4a simplify the settings spinner initialization 2017-01-06 21:08:34 +01:00
tibbi
df5981f74c show .nomedia folders if Show hidden folders is checked 2017-01-06 16:59:29 +01:00
tibbi
ccf71496e2 small photofragment update 2017-01-06 16:56:37 +01:00
tibbi
c564e63135 tweak the photo fragment a bit 2017-01-06 14:31:32 +01:00
tibbi
7b9503229f rewrite the way fullscreen images are loaded, for better quality, close #90, #84 2017-01-06 14:15:05 +01:00
tibbi
e3779f6321 cache the directories to show instantly 2017-01-04 22:06:03 +01:00
tibbi
c7dd7b7e2e handle cases when column _data does not exist 2017-01-04 21:32:34 +01:00
tibbi
3d089db697 do not convert medium and dir arrays to strings 2017-01-04 21:29:26 +01:00
tibbi
311f412c87 fixing a couple crashes 2017-01-04 21:24:17 +01:00
tibbi
f76a0cf0ce reuse the built in fade animations 2017-01-04 20:19:11 +01:00
tibbi
2f8f3b4362 move icons into drawables and reuse some from Commons library 2017-01-04 20:13:26 +01:00
tibbi
1b4e98eb08 use the commons viewpager 2017-01-02 22:47:47 +01:00
tibbi
219f736471 do not pass the colors in adapter viewholders 2017-01-02 22:46:45 +01:00
tibbi
23768d847f store dialog holders as views, not viewgroups 2016-12-29 23:48:34 +01:00
tibbi
5eb44b5bcf leave WhatsNewDialog checking to commons library 2016-12-29 22:58:28 +01:00
tibbi
e6bc2e4da7 set image type to image/* when setting wallpaper 2016-12-29 20:00:31 +01:00
tibbi
0383769c9e use Glide for displaying fullscreen images, if subsampling fails 2016-12-29 19:58:16 +01:00
tibbi
2dd6976e60 do now display the Whats new dialog to new users 2016-12-28 20:45:19 +01:00
tibbi
085c62b10b loop the video if set so 2016-12-28 20:37:10 +01:00
tibbi
1bbca50bac add the looping Setting switchcompat 2016-12-28 20:31:18 +01:00
tibbi
028d55d843 use the background color as image placeholder at directories 2016-12-27 22:44:33 +01:00
tibbi
6ba436db80 Improve the performance by removing file validity check 2016-12-27 20:06:38 +01:00
tibbi
4e75a84660 select the proper item at settings spinner 2016-12-27 01:09:56 +01:00
tibbi
fe85ef685b use the stored background color as placeholder for image loading 2016-12-27 00:51:28 +01:00
tibbi
9e9d164f9f make zooming in and out a bit easier 2016-12-27 00:39:54 +01:00
tibbi
044ccb3619 update commons and add Whats new dialog handling 2016-12-26 23:52:59 +01:00
tibbi
b0413fd756 properly initialize Autoplay setting 2016-12-26 22:36:27 +01:00
tibbi
60739762b0 use the inherited prefs variable for shared preferences 2016-12-26 21:54:00 +01:00
tibbi
6ad748d16a make sure the proper image is the directory thumbnail 2016-12-26 20:40:08 +01:00
tibbi
727bd490d3 allow only pinch zooming, not double tap 2016-12-26 19:09:07 +01:00
tibbi
74dd400731 properly update foreground selector color if changed 2016-12-26 18:53:27 +01:00
tibbi
431acaf092 remove the explicit setView call at dialogs 2016-12-26 13:14:54 +01:00
tibbi
c383a530dd replace fileproperties with commons 2016-12-26 13:12:01 +01:00
tibbi
16d97e9a92 replace filepicker library with commons 2016-12-26 12:00:50 +01:00
tibbi
a118990170 set proper long press selector colors to media screen too 2016-12-25 23:40:43 +01:00
tibbi
b02fa1c409 color the directory selected foreground properly 2016-12-25 23:16:27 +01:00
tibbi
f7d774a439 add a helper function for getting the proper view in adapters 2016-12-25 21:20:55 +01:00
tibbi
c2fb9ce0f3 add a black splash screen 2016-12-25 20:23:05 +01:00
tibbi
7cf5e658d8 check every photo, if it exists 2016-12-25 17:15:35 +01:00
tibbi
674c82c15d add a Select all button to the directories screen too 2016-12-25 16:32:19 +01:00
tibbi
08879ee1e1 use the commons confirmation dialog in a couple other places too 2016-12-25 16:26:29 +01:00
tibbi
dea5d0a721 shorten some switch case code 2016-12-25 16:19:28 +01:00
tibbi
517f6a5825 use the commons confirmationdialog, not the filepicker one 2016-12-25 16:04:49 +01:00
tibbi
240c043422 update fullscreen activity actionbar to gradient 2016-12-25 15:37:37 +01:00
tibbi
81ee5f46f5 use our custom views where appropriate 2016-12-25 15:17:15 +01:00
tibbi
0efab3ef60 updating the dialog colors 2016-12-19 23:47:18 +01:00
tibbi
8fc683e6f4 tweak settings layout 2016-12-18 20:02:18 +01:00
tibbi
0864f4ac81 remove a redundant function 2016-12-18 19:43:22 +01:00
tibbi
a34685176f add a file to invalids only if it doesnt exist 2016-12-18 18:25:12 +01:00
tibbi
a803948657 add the customization activity 2016-12-15 22:49:23 +01:00
tibbi
667befcb52 add license activity 2016-12-14 00:11:33 +01:00
tibbi
e7b307401b updating some things related to adding Commons library 2016-12-13 23:53:59 +01:00
tibbi
f43da0654e take some strings from Commons 2016-12-13 21:51:50 +01:00
Tibor Kaputa
1fd4169d26 small update to Copy / Move string 2016-12-13 15:22:24 +01:00
tibbi
9cabc09e4f small photofragment update 2016-12-12 23:01:50 +01:00
tibbi
04339ac28b let the models convert themselves to strings 2016-12-12 21:28:38 +01:00
tibbi
774f9d691b simplify some dialogs 2016-12-12 19:11:30 +01:00
tibbi
fe61fdd66a rely on the null check inside initMediaPlayer() 2016-12-11 22:51:02 +01:00
tibbi
0011f41cdb add a mediaplayer nullcheck 2016-12-11 22:50:05 +01:00
tibbi
33af23878a lets define File type too 2016-12-11 22:34:55 +01:00
tibbi
81f543f792 add a directory check at renaming 2016-12-11 22:33:26 +01:00
tibbi
9bb9e3496c store the amount of columns 2016-12-11 21:54:40 +01:00
tibbi
72381ba53d allow changing directory column cnt too 2016-12-11 21:38:15 +01:00
tibbi
f2074a4d16 move zoom handling into an own function 2016-12-11 21:35:05 +01:00
tibbi
b9d5c004e0 allow changing grid column count by pinching 2016-12-11 21:22:07 +01:00
tibbi
af9b5bd81e update some strings 2016-12-10 23:47:40 +01:00
tibbi
2e88f83844 add the functionality to filter images or videos only 2016-12-10 23:38:07 +01:00
tibbi
ce4c098e32 add a spinner for displaying images or videos only 2016-12-10 21:16:53 +01:00
tibbi
960267c543 updated the About activity 2016-12-10 11:20:47 +01:00
tibbi
0926c60dd3 animate directory removal too 2016-12-08 22:53:04 +01:00
tibbi
ca62b62bec add some animations at item deleting 2016-12-08 22:46:28 +01:00
tibbi
7fe6d616c0 add Select all to media screen 2016-12-08 22:01:35 +01:00
tibbi
c449ce43a5 lets actually remove Deselect all, there is the back button for it... 2016-12-08 21:31:48 +01:00
tibbi
26dfea3adb add cab buttons for de/selecting all items 2016-12-08 21:27:13 +01:00
tibbi
5c9c0d4ac9 replace some functions with filepicker extensions 2016-12-08 21:02:40 +01:00
tibbi
31f42118bb update filename in mediastore at Rename 2016-12-08 20:40:26 +01:00
tibbi
06e1796902 check SD card permissions also if moving files from SD card 2016-12-08 19:02:35 +01:00
tibbi
dad7404fdc remove a redundant variable 2016-12-07 20:51:22 +01:00
tibbi
86d9652204 update deleted files from media screen manually 2016-12-07 20:50:19 +01:00
tibbi
5df874ff43 update the deletefiles function with stdlib 2016-12-07 20:37:37 +01:00
tibbi
b28f7dcc78 remove the Undo option at removing from media view 2016-12-07 20:36:42 +01:00
tibbi
62d11861ca update mediastore after deleted files manually 2016-12-07 20:17:18 +01:00
tibbi
1ae4e0cc02 update renamed videos properly too 2016-12-07 19:37:39 +01:00
tibbi
4a2d8076d0 do now show the old folder after renaming 2016-12-07 19:31:00 +01:00
tibbi
e319bb1623 update mediastore after a rename manually, so its instant 2016-12-07 19:16:50 +01:00
tibbi
74d8287333 add an Edit button to media cab 2016-12-06 23:30:22 +01:00
tibbi
ade06101a5 add a Rename action button to the media screen 2016-12-06 22:53:11 +01:00
tibbi
4abc2d4b59 rename directory cab_edit to cab_rename 2016-12-06 22:40:09 +01:00
tibbi
1ed45dcc3d update the actionbar title after renaming an item 2016-12-06 22:35:37 +01:00
tibbi
6c5a428b40 split filename and extension at save dialog 2016-12-06 22:31:17 +01:00
tibbi
ae927425aa reload the viewpager after editing an image 2016-12-06 22:13:09 +01:00
tibbi
6449316f47 resize the saved image if wanted so 2016-12-06 22:09:40 +01:00
tibbi
d53000b667 validate the inserted resolution 2016-12-06 22:00:22 +01:00
tibbi
e99451b2f0 flip width and height if the image is rotated 2016-12-06 20:55:11 +01:00
tibbi
900dbbff32 properly update the Resize dialog values if we are keeping aspect ratio 2016-12-06 20:50:16 +01:00
tibbi
6d32e55bf4 creating the resize dialog 2016-12-06 20:15:33 +01:00
tibbi
463992a80d add some Resize related assets 2016-12-06 19:06:54 +01:00
tibbi
4c0a0a43b8 add Camera, Settings and About to ShowAll actionbar 2016-12-06 18:11:15 +01:00
tibbi
3e779c0a98 move some activity intent actions to SimpleActivity 2016-12-06 18:03:27 +01:00
tibbi
6f11b05e25 store Show All in shared prefs making it permanent 2016-12-06 17:59:54 +01:00
tibbi
73cd9a5638 initialize viewpager mMedia at creation 2016-12-06 17:35:05 +01:00
tibbi
7ff2d43f64 handle showAll at viewpager properly 2016-12-06 17:29:12 +01:00
tibbi
b1fa8bca89 show all media files in the appropriate section 2016-12-06 17:14:54 +01:00
tibbi
c3e3d550d1 add a couple things related to displaying all media at once 2016-12-06 16:57:17 +01:00
tibbi
105866987d allow copying items in folders that contain no media, fix #62 2016-12-06 16:18:50 +01:00
tibbi
a2c485cbe8 check null displayname 2016-12-06 00:06:28 +01:00
tibbi
f0f07d9c8d fix some crashes related unitialized lateinit variable 2016-12-06 00:04:27 +01:00
tibbi
2b8d644388 fix some issues at Moving files 2016-12-05 23:46:55 +01:00
tibbi
3d6329766a remove a redundant variable 2016-12-05 23:21:06 +01:00
tibbi
d0e81a3410 wait for mediascanner at some callbacks 2016-12-05 23:17:02 +01:00
tibbi
609cfbd580 implement the sorting by date taken 2016-12-05 22:51:13 +01:00
tibbi
8a24eeba86 store the date_taken at media and directories 2016-12-05 22:14:51 +01:00
tibbi
b0c9d72044 rename timestamp of media and directories to date_modified 2016-12-05 22:07:44 +01:00
tibbi
e6585180c3 show pin/unpin actionmenu item only when needed 2016-12-05 21:58:46 +01:00
tibbi
830f456359 update the hidden folders check 2016-12-05 21:50:16 +01:00
tibbi
411ae47136 move pinned items to front 2016-12-05 21:48:49 +01:00
tibbi
0857391189 update some functions related to pinning and hiding folders 2016-12-05 20:36:43 +01:00
tibbi
b5b4e15990 add some folder pinning related things 2016-12-05 20:20:38 +01:00
tibbi
de967340ad fix #74, properly set the viewpager position after delete 2016-12-05 18:50:23 +01:00
tibbi
2c9c91396a at copy from the main screen, copy the directory content 2016-12-05 18:05:46 +01:00
tibbi
ed3a386984 invalidate the actionbar at viewpager update 2016-12-04 23:21:47 +01:00
tibbi
388a6dd2c1 fix fullscreen toggle on some devices 2016-12-04 23:11:41 +01:00
tibbi
a51083be16 load png files as argb_8888 for higher quality 2016-12-04 21:45:28 +01:00
tibbi
ac9132bf6b update media screen items on delete, dont recreate 2016-12-04 21:01:21 +01:00
tibbi
f06fc85bdb fill viewpager items asynchronously 2016-12-04 20:53:05 +01:00
tibbi
6f60d3fcfd use the initialization function for reloading the viewpager 2016-12-04 19:46:11 +01:00
tibbi
df5dc70f61 fix some issues at reloading the viewpager after deleting an image 2016-12-04 19:21:59 +01:00
tibbi
c4644c73a5 remove the Undo option of deleting at viewpager, as there is a confirmation box 2016-12-04 18:57:58 +01:00
tibbi
bbdafef491 some more performance improvements 2016-12-04 18:07:26 +01:00
tibbi
c9c5f549be some updates to the way we get media from mediastore 2016-12-04 17:52:10 +01:00
tibbi
c9eb50944d small code style update 2016-12-04 16:59:21 +01:00
tibbi
d046cbc1ec allow swiping at opening an image for example from Downloads 2016-12-04 15:57:42 +01:00
tibbi
9fb2ec55d9 allow editing third party images 2016-12-04 15:47:46 +01:00
tibbi
a66d72abde allow changing the save path of edited image 2016-12-04 15:39:22 +01:00
tibbi
8ed6bff447 move Config and Constants into Helpers folder 2016-12-04 15:25:30 +01:00
tibbi
b04022d365 move the remaining Utils functions into extensions 2016-12-04 15:24:09 +01:00
tibbi
802789d1da move hasNavBar into an activity extension 2016-12-04 15:20:48 +01:00
tibbi
9ff47e6b6f use the filepickers getmimetype function instead of a custom one 2016-12-04 15:17:32 +01:00
tibbi
40e50dddc8 show the path at Save as dialog of editor 2016-12-04 13:20:37 +01:00
tibbi
5c12491fc1 add Set as wallpaper to photovideoactivity 2016-12-04 12:58:47 +01:00
tibbi
679deb424a add more action buttons to PhotoVideoActivity used by third parties 2016-12-04 12:25:54 +01:00
tibbi
72e56796b9 move OpenWith in extension 2016-12-04 12:07:22 +01:00
tibbi
56ba895302 move some constants outside of the constants object 2016-12-04 12:02:48 +01:00
tibbi
b3f285f7f4 move wallpaper setting to an extension 2016-12-04 12:00:19 +01:00
tibbi
f70eb2b2fc allow swiping between images if opened from third party app 2016-12-04 11:39:40 +01:00
tibbi
b0f3ac99a4 make sure dialogs are cancellable by clicking outside 2016-12-04 10:27:53 +01:00
tibbi
49247ee9f1 wrap the sorting dialog in a scrollview 2016-12-03 21:00:55 +01:00
tibbi
747e007fd0 removing a check from sorting, not sure why was it there 2016-12-03 18:32:30 +01:00
tibbi
421214057a add an extra check to prevent deleting directories with documentFile 2016-12-01 23:42:47 +01:00
tibbi
865df01f3a allow directory comparison end in result 0 2016-12-01 23:36:51 +01:00
tibbi
0ab0edd78a always try the simple way of deleting files too, like from internal storage 2016-11-30 23:22:10 +01:00
tibbi
5f64a02763 do not hide the system UI at initiating fullscreen photo/video 2016-11-30 23:15:22 +01:00
tibbi
66221ff82d update the medium comparison function, allow result 0 2016-11-30 23:09:48 +01:00
tibbi
75adc50906 update the Medium serialVersionUID 2016-11-30 22:52:27 +01:00
tibbi
c262755401 scan invalid files before sorting 2016-11-30 22:48:37 +01:00
tibbi
7c6ba51066 fix #66, totally hide the navigation bar at fullscreen mode 2016-11-22 23:18:45 +01:00