Skip to content
Snippets Groups Projects
Commit 171eafea authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Always return an Uri

(cherry picked from commit 4483fed6)
parent 3aa429c9
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ public class StartActivity extends Activity {
}
} catch (Exception e) {
Log.e(TAG, "Couldn't download file from mail URI");
return null;
return data;
} finally {
Util.close(is);
Util.close(os);
......@@ -130,11 +130,11 @@ public class StartActivity extends Activity {
// }
} catch (FileNotFoundException e) {
Log.e(TAG, "Couldn't understand the intent");
return null;
return data;
}
}
} else
mUri = intent.getData();
mUri = data;
return mUri;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment