Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Revert "Merge pull request #116 from spacecowboy/nougatbug"
Browse files Browse the repository at this point in the history
This reverts commit 49c9981, reversing
changes made to a4605eb.
  • Loading branch information
spacecowboy committed Oct 18, 2016
1 parent 9d9678a commit c00aee8
Show file tree
Hide file tree
Showing 7 changed files with 253 additions and 332 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,23 @@ public void onFilesPicked(@NonNull final List<Uri> files) {
Intent i = new Intent();
i.putExtra(EXTRA_ALLOW_MULTIPLE, true);

ArrayList<String> paths = new ArrayList<>();
for (Uri file : files) {
paths.add(file.toString());
}
i.putStringArrayListExtra(EXTRA_PATHS, paths);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
ClipData clip = null;
for (Uri file : files) {
if (clip == null) {
clip = new ClipData("Paths", new String[]{},
new ClipData.Item(file.toString()));
new ClipData.Item(file));
} else {
clip.addItem(new ClipData.Item(file.toString()));
clip.addItem(new ClipData.Item(file));
}
}
i.setClipData(clip);
} else {
ArrayList<String> paths = new ArrayList<>();
for (Uri file : files) {
paths.add(file.toString());
}
i.putStringArrayListExtra(EXTRA_PATHS, paths);
}

setResult(Activity.RESULT_OK, i);
Expand Down
5 changes: 0 additions & 5 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ android {
compileSdkVersion 24
buildToolsVersion "23.0.3"

dataBinding {
enabled = true
}

packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
Expand Down Expand Up @@ -73,7 +69,6 @@ dependencies {
compile 'com.simplecityapps:recyclerview-fastscroll:1.0.9'

// UI Tests
androidTestCompile 'junit:junit:4.12'
uitestsCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
uitestsCompile 'com.android.support.test:runner:0.5'
uitestsCompile 'com.android.support.test.espresso:espresso-contrib:2.2.2'
Expand Down

This file was deleted.

14 changes: 7 additions & 7 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
</intent-filter>
</activity>

<!-- Test activity, required to deal with runtime permissions -->
<!-- Sample test app -->
<activity
android:name=".NoNonsenseFilePickerTest"
android:name="com.nononsenseapps.filepicker.sample.NoNonsenseFilePickerTest"
android:label="@string/title_activity_no_nonsense_file_picker"/>

<!-- SD-card pickers -->
Expand All @@ -48,7 +48,7 @@
</activity>

<activity
android:name=".FilePickerActivity2"
android:name="com.nononsenseapps.filepicker.sample.FilePickerActivity2"
android:label="@string/title_activity_no_nonsense_file_picker"
android:theme="@style/SampleThemeLight">
<intent-filter>
Expand Down Expand Up @@ -119,22 +119,22 @@

<!-- FtpPickers -->
<activity
android:name=".ftp.FtpPickerActivity"
android:name="com.nononsenseapps.filepicker.sample.ftp.FtpPickerActivity"
android:label="@string/title_activity_no_nonsense_file_picker"
android:theme="@style/SampleTheme" />
<activity
android:name=".ftp.FtpPickerActivity2"
android:name="com.nononsenseapps.filepicker.sample.ftp.FtpPickerActivity2"
android:label="@string/title_activity_no_nonsense_file_picker"
android:theme="@style/SampleThemeLight" />

<!-- Dropbox pickers -->
<activity
android:name=".dropbox.DropboxFilePickerActivity"
android:name="com.nononsenseapps.filepicker.sample.dropbox.DropboxFilePickerActivity"
android:label="@string/title_activity_no_nonsense_file_picker"
android:theme="@style/SampleTheme">
</activity>
<activity
android:name=".dropbox.DropboxFilePickerActivity2"
android:name="com.nononsenseapps.filepicker.sample.dropbox.DropboxFilePickerActivity2"
android:label="@string/title_activity_no_nonsense_file_picker"
android:theme="@style/SampleThemeLight">
</activity>
Expand Down
Loading

0 comments on commit c00aee8

Please sign in to comment.