File tree Expand file tree Collapse file tree 4 files changed +18
-12
lines changed
src/main/java/com/aditya/filebrowser Expand file tree Collapse file tree 4 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
33ext {
44 PUBLISH_GROUP_ID = ' com.adityak'
55 PUBLISH_ARTIFACT_ID = ' browsemyfiles'
6- PUBLISH_VERSION = ' 1.5'
6+ PUBLISH_VERSION = ' 1.5.1 '
77}
88
99android {
@@ -14,8 +14,8 @@ android {
1414 // applicationId "com.aditya.filebrowser"
1515 minSdkVersion 15
1616 targetSdkVersion 25
17- versionCode 6
18- versionName " 1.5"
17+ versionCode 7
18+ versionName " 1.5.1 "
1919 }
2020 buildTypes {
2121 release {
Original file line number Diff line number Diff line change @@ -269,9 +269,11 @@ public void onFastScrollStop() {
269269
270270 //switch to initial directory if given
271271 mInitialDirectory = getIntent ().getStringExtra (Constants .INITIAL_DIRECTORY );
272- File initDir = new File (mInitialDirectory );
273- if (mInitialDirectory !=null && !mInitialDirectory .isEmpty () && initDir .exists ())
274- mNavigationHelper .changeDirectory (initDir );
272+ if (mInitialDirectory != null && !mInitialDirectory .isEmpty () ) {
273+ File initDir = new File (mInitialDirectory );
274+ if (initDir .exists ())
275+ mNavigationHelper .changeDirectory (initDir );
276+ }
275277 }
276278
277279 public void switchMode (Constants .CHOICE_MODE mode ) {
Original file line number Diff line number Diff line change @@ -262,9 +262,11 @@ public void onFastScrollStop() {
262262
263263 //switch to initial directory if given
264264 mInitialDirectory = getIntent ().getStringExtra (Constants .INITIAL_DIRECTORY );
265- File initDir = new File (mInitialDirectory );
266- if (mInitialDirectory !=null && !mInitialDirectory .isEmpty () && initDir .exists ())
267- mNavigationHelper .changeDirectory (initDir );
265+ if (mInitialDirectory != null && !mInitialDirectory .isEmpty () ) {
266+ File initDir = new File (mInitialDirectory );
267+ if (initDir .exists ())
268+ mNavigationHelper .changeDirectory (initDir );
269+ }
268270 }
269271
270272 public void switchMode (Constants .CHOICE_MODE mode ) {
Original file line number Diff line number Diff line change @@ -240,9 +240,11 @@ public void onFastScrollStop() {
240240
241241 //switch to initial directory if given
242242 mInitialDirectory = getIntent ().getStringExtra (Constants .INITIAL_DIRECTORY );
243- File initDir = new File (mInitialDirectory );
244- if (mInitialDirectory !=null && !mInitialDirectory .isEmpty () && initDir .exists ())
245- mNavigationHelper .changeDirectory (initDir );
243+ if (mInitialDirectory != null && !mInitialDirectory .isEmpty () ) {
244+ File initDir = new File (mInitialDirectory );
245+ if (initDir .exists ())
246+ mNavigationHelper .changeDirectory (initDir );
247+ }
246248 }
247249
248250 @ Override
You can’t perform that action at this time.
0 commit comments