Skip to content

Commit

Permalink
Fixed bugs. Updated libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciotogneri committed Jul 2, 2016
1 parent 891ed40 commit afd12e5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ apply plugin: 'com.android.application'

android
{
compileSdkVersion 23
buildToolsVersion "23.0.3"
compileSdkVersion 24
buildToolsVersion "24"

defaultConfig
{
applicationId "com.mauriciotogneri.fileexplorer"
minSdkVersion 14
targetSdkVersion 22
versionCode 2
versionName "1.0.1"
versionCode 3
versionName "1.0.3"
}

signingConfigs
Expand Down Expand Up @@ -42,9 +42,9 @@ android

dependencies
{
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:support-v4:24.0.0'

compile 'com.android.support:design:23.4.0'
compile 'com.android.support:design:24.0.0'

compile 'ch.acra:acra:4.8.5'
compile 'ch.acra:acra:4.9.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ else if (!lhs.isDirectory() && rhs.isDirectory())

for (File file : files)
{
result.add(new FileInfo(file));
if (file != null)
{
result.add(new FileInfo(file));
}
}

return result;
Expand Down Expand Up @@ -249,7 +252,7 @@ public void onShare()
{
shareSingle(selectedItems.get(0));
}
else
else if (!selectedItems.isEmpty())
{
shareMultiple(selectedItems);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ public List<FileInfo> files()
{
for (File currentFile : file.listFiles())
{
FileInfo fileInfo = new FileInfo(currentFile);

result.addAll(fileInfo.files());
if (currentFile != null)
{
FileInfo fileInfo = new FileInfo(currentFile);
result.addAll(fileInfo.files());
}
}
}
else
Expand All @@ -61,8 +63,11 @@ public boolean delete()
{
for (File currentFile : file.listFiles())
{
FileInfo fileInfo = new FileInfo(currentFile);
fileInfo.delete();
if (currentFile != null)
{
FileInfo fileInfo = new FileInfo(currentFile);
fileInfo.delete();
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript

dependencies
{
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.android.tools.build:gradle:2.1.2'
}
}

Expand Down

0 comments on commit afd12e5

Please sign in to comment.