mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-02 01:01:17 +00:00
* Fallback to built-in path selector (fixes #111) * Update APK version to 0.14.51.11 / 4174
This commit is contained in:
parent
334f24f027
commit
6712ca657d
2 changed files with 9 additions and 3 deletions
|
@ -36,8 +36,8 @@ android {
|
||||||
applicationId "com.github.catfriend1.syncthingandroid"
|
applicationId "com.github.catfriend1.syncthingandroid"
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 26
|
targetSdkVersion 26
|
||||||
versionCode 4173
|
versionCode 4174
|
||||||
versionName "0.14.51.10"
|
versionName "0.14.51.11"
|
||||||
testApplicationId 'com.github.catfriend1.syncthingandroid.test'
|
testApplicationId 'com.github.catfriend1.syncthingandroid.test'
|
||||||
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
|
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
|
||||||
playAccountConfig = playAccountConfigs.defaultAccountConfig
|
playAccountConfig = playAccountConfigs.defaultAccountConfig
|
||||||
|
|
|
@ -257,7 +257,13 @@ public class FolderActivity extends SyncthingActivity
|
||||||
}
|
}
|
||||||
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
|
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
|
||||||
intent.putExtra("android.content.extra.SHOW_ADVANCED", true);
|
intent.putExtra("android.content.extra.SHOW_ADVANCED", true);
|
||||||
|
try {
|
||||||
startActivityForResult(intent, CHOOSE_FOLDER_REQUEST);
|
startActivityForResult(intent, CHOOSE_FOLDER_REQUEST);
|
||||||
|
} catch (android.content.ActivityNotFoundException e) {
|
||||||
|
Log.e(TAG, "onPathViewClick exception, falling back to built-in FolderPickerActivity.", e);
|
||||||
|
startActivityForResult(FolderPickerActivity.createIntent(this, mFolder.path, null),
|
||||||
|
FolderPickerActivity.DIRECTORY_REQUEST_CODE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue