Commit Graph

21 Commits

Author SHA1 Message Date
Jonas Kalderstam 7926f8058b Fix some lint stuff
Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
2015-04-28 12:28:44 +02:00
Jonas Kalderstam 711e68f20f Update license and version
Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
2015-04-28 00:18:53 +02:00
Jonas Kalderstam 33d8c38bd6 Update to Material Design
and newer API using RecyclerView.

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
2015-04-28 00:18:52 +02:00
Jonas Kalderstam 67c127d677 Fix some lint warnings
Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
2014-09-16 21:24:28 +02:00
Andrey 5ec39c4ba8 NPE on empty directory
Use listFiles variable instead of calling again File.listFiles
2014-07-13 19:33:17 +04:00
Andrey 66d24112ff NPE on empty directory
Fixes NullPointerException when SD card is empty. 
File.listFiles() can return null.
http://developer.android.com/reference/java/io/File.html#listFiles%28%29
2014-07-13 19:29:10 +04:00
Jonas Kalderstam 717a460a80 Add a default constructor for filepicker
Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
2014-06-12 12:12:10 +02:00
Jonas Kalderstam b334a0161e Added a null check on fragment 2014-04-03 01:51:09 +02:00
Jonas Kalderstam 1d976cd634 Set attributes protected instead of private 2014-04-03 01:51:09 +02:00
Jonas Kalderstam a17d6552d7 Handle case if directory does not exist in FilePicker
Fixes #4
2014-04-02 12:17:44 +02:00
Jonas Kalderstam 31956cabb9 Made getWindowTitle non-abstract
It's a general implementation. Possible to override if another
title is desired.

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
2014-04-02 11:27:45 +02:00
Jonas Kalderstam 8d64a147d8 Add modes to activity also 2014-04-02 02:03:05 +02:00
Jonas Kalderstam 26b05955df Picker now has more options
Removed onlyDirs in favor of a mode variable. Now possible to
select between: Files, Dirs, or Both.

The ability to create directories is now an option as well
which defaults to false.

Fixes #1
Fixes #2
2014-04-02 01:54:19 +02:00
Jonas Kalderstam fca1731e05 Fix directory handling with single select 2014-04-01 01:50:04 +02:00
Jonas Kalderstam 8fdb934556 Better sample 2014-04-01 01:25:56 +02:00
Jonas Kalderstam d099226c9c Fix a lint comment
Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
2014-04-01 00:31:20 +02:00
Jonas Kalderstam 423716aae4 Can now mark multiple files
Also generalized the dialog
2014-04-01 00:20:07 +02:00
Jonas Kalderstam cab9cd63a3 Basis for selecting multiple files. Need UI parts. 2014-03-31 17:53:39 +02:00
Jonas Kalderstam a66bfdb4d2 Lint fixes 2014-03-31 02:44:38 +02:00
Jonas Kalderstam 9a0882a1be File version fully operational 2014-03-31 02:32:06 +02:00
Jonas Kalderstam 9804654347 Basic functionality implemented 2014-03-30 19:19:53 +02:00