mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
Remove unnecessary null pointer check
This commit is contained in:
parent
6c297e060a
commit
fa3041c8ce
@ -83,9 +83,8 @@ public class FileBrowserHelper {
|
|||||||
String intentAction = PICK_DIRECTORY_INTENTS[listIndex][0];
|
String intentAction = PICK_DIRECTORY_INTENTS[listIndex][0];
|
||||||
String uriPrefix = PICK_DIRECTORY_INTENTS[listIndex][1];
|
String uriPrefix = PICK_DIRECTORY_INTENTS[listIndex][1];
|
||||||
Intent intent = new Intent(intentAction);
|
Intent intent = new Intent(intentAction);
|
||||||
if (startPath != null) {
|
intent.setData(Uri.parse(uriPrefix + startPath.getPath()));
|
||||||
intent.setData(Uri.parse(uriPrefix + startPath.getPath()));
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
c.startActivityForResult(intent, requestcode);
|
c.startActivityForResult(intent, requestcode);
|
||||||
success = true;
|
success = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user