Remove unnecessary null pointer check
This commit is contained in:
parent
141e2d2ad9
commit
71c5e3c611
1 changed files with 2 additions and 3 deletions
|
@ -83,9 +83,8 @@ public class FileBrowserHelper {
|
|||
String intentAction = PICK_DIRECTORY_INTENTS[listIndex][0];
|
||||
String uriPrefix = PICK_DIRECTORY_INTENTS[listIndex][1];
|
||||
Intent intent = new Intent(intentAction);
|
||||
if (startPath != null) {
|
||||
intent.setData(Uri.parse(uriPrefix + startPath.getPath()));
|
||||
}
|
||||
intent.setData(Uri.parse(uriPrefix + startPath.getPath()));
|
||||
|
||||
try {
|
||||
c.startActivityForResult(intent, requestcode);
|
||||
success = true;
|
||||
|
|
Loading…
Reference in a new issue