Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit a83de0f

Browse files
author
Angad
committed
Version 1.0.9
1 parent fb88716 commit a83de0f

File tree

5 files changed

+48
-14
lines changed

5 files changed

+48
-14
lines changed

CONTRIBUTING.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# How to become a contributor and submit your own code
2+
3+
## Contributor License Agreements
4+
5+
We'd love to accept your sample apps and patches! Before we can take them, we
6+
have to jump a couple of legal hurdles.
7+
8+
Please fill out either the individual or corporate Contributor License Agreement (CLA).
9+
10+
* If you are an individual writing original source code and you're sure you
11+
own the intellectual property, then you'll need to sign an [individual CLA]
12+
(https://cla.developers.google.com).
13+
* If you work for a company that wants to allow you to contribute your work,
14+
then you'll need to sign a [corporate CLA]
15+
(https://cla.developers.google.com).
16+
17+
Follow either of the two links above to access the appropriate CLA and
18+
instructions for how to sign and return it. Once we receive it, we'll be able to
19+
accept your pull requests.
20+
21+
## Contributing A Patch
22+
23+
1. Submit an issue describing your proposed change to the repo in question.
24+
2. The repo owner will respond to your issue promptly.
25+
3. If your proposed change is accepted, and you haven't already done so, sign a
26+
Contributor License Agreement (see details above).
27+
4. Fork the desired repo, develop and test your code changes.
28+
5. Ensure that your code adheres to the existing style in the sample to which
29+
you are contributing. Refer to the
30+
[Android Code Style Guide]
31+
(https://source.android.com/source/code-style.html) for the
32+
recommended coding standards for this organization.
33+
6. Ensure that your code has an appropriate set of unit tests which all pass.
34+
7. Submit a pull request.

Readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Super Lite Android Library to select files/directories from Device Storage.
55
[Angad Singh](https://www.github.com/angads25) ([@angads25](https://www.twitter.com/angads25))
66

77
### Benchmark:
8-
[![API](https://img.shields.io/badge/API-9%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=9) <a href="http://www.methodscount.com/?lib=com.github.angads25%3Afilepicker%3A1.0.6"><img src="https://img.shields.io/badge/Size-36 KB-e91e63.svg"/></a>
8+
[![API](https://img.shields.io/badge/API-9%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=9) <a href="http://www.methodscount.com/?lib=com.github.angads25%3Afilepicker%3A1.0.9"><img src="https://img.shields.io/badge/Size-36 KB-e91e63.svg"/></a>
99

1010
### Where to Find:
1111
[ ![Download](https://api.bintray.com/packages/angads25/maven/filepicker/images/download.svg) ](https://bintray.com/angads25/maven/filepicker/_latestVersion) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.angads25/filepicker/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.angads25/filepicker) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FilePicker-blue.svg?style=flat)](http://android-arsenal.com/details/1/3950)
@@ -23,28 +23,28 @@ Super Lite Android Library to select files/directories from Device Storage.
2323

2424
* Library is also Available in MavenCentral, So just put this in your app dependencies to use it:
2525
```gradle
26-
compile 'com.github.angads25:filepicker:1.0.8'
26+
compile 'com.github.angads25:filepicker:1.0.9'
2727
```
2828

2929
### Usage
3030
## FilePickerDialog
3131
1. Start by creating an instance of `DialogProperties`.
3232

3333
```java
34-
DialogProperties properties=new DialogProperties();
34+
DialogProperties properties = new DialogProperties();
3535
```
3636

3737
Now 'DialogProperties' has certain parameters.
3838

3939
2. Assign values to each Dialog Property using `DialogConfig` class.
4040

4141
```java
42-
properties.selection_mode=DialogConfigs.SINGLE_MODE;
43-
properties.selection_type=DialogConfigs.FILE_SELECT;
44-
properties.root=new File(DialogConfigs.DEFAULT_DIR);
45-
properties.error_dir=new File(DialogConfigs.DEFAULT_DIR);
46-
properties.offset=new File(DialogConfigs.DEFAULT_DIR);
47-
properties.extensions=null;
42+
properties.selection_mode = DialogConfigs.SINGLE_MODE;
43+
properties.selection_type = DialogConfigs.FILE_SELECT;
44+
properties.root = new File(DialogConfigs.DEFAULT_DIR);
45+
properties.error_dir = new File(DialogConfigs.DEFAULT_DIR);
46+
properties.offset = new File(DialogConfigs.DEFAULT_DIR);
47+
properties.extensions = null;
4848
```
4949

5050
3. Next create an instance of `FilePickerDialog`, and pass `Context` and `DialogProperties` references as parameters. Optional: You can change the title of dialog. Default is current directory name. Set the positive button string. Default is Select. Set the negative button string. Defalut is Cancel.
@@ -91,7 +91,7 @@ Marshmallow and above requests for the permission on runtime. You should overrid
9191
}
9292
```
9393

94-
That's It. You are good to go further.
94+
That's It. You are good to proceed further.
9595

9696
###FilePickerPreference
9797

@@ -141,7 +141,7 @@ Marshmallow and above requests for the permission on runtime. You should overrid
141141
That's It. You are good to move further.
142142

143143
###Important:
144-
* `defaultValue`, `error_dir`, `root_dir` must have valid directory/file paths.
144+
* `defaultValue`, `error_dir`, `root_dir`, `offset_dir` must have valid directory/file paths.
145145
* `defaultValue` paths should end with ':'.
146146
* `defaultValue` can have multiple paths, there should be a ':' between two paths.
147147
* `extensions` must not have '.'.

filepicker/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
siteUrl = 'https://github.com/angads25/android-filepicker'
1414
gitUrl = 'https://github.com/angads25/android-filepicker.git'
1515

16-
libraryVersion = '1.0.8'
16+
libraryVersion = '1.0.9'
1717

1818
developerId = 'angads25'
1919
developerName = 'Angad Singh'

filepicker/src/main/java/com/github/angads25/filepicker/view/FilePickerPreference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ else if (attr == R.styleable.FilePickerPreference_error_dir) {
196196
}
197197
}
198198
else if (attr == R.styleable.FilePickerPreference_offset) {
199-
String offset_dir=tarr.getString(R.styleable.FilePickerPreference_offset);
199+
String offset_dir=tarr.getString(R.styleable.FilePickerPreference_offset_dir);
200200
if(offset_dir!=null&&!offset_dir.equals(""))
201201
{ properties.offset=new File(offset_dir);
202202
}

filepicker/src/main/res/values/attrs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
format="string"/>
2121

2222
<attr
23-
name="offset"
23+
name="offset_dir"
2424
format="string"/>
2525

2626
<attr

0 commit comments

Comments
 (0)