Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52fe4239 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Do not open archives inline in picker.



Otherwise it's impossible to select archives.

Test: Tested with Gmail.
Bug: 32486431
Change-Id: I894c6d15af6c8ab439ab4234d3deb01914c22b31
Signed-off-by: default avatarTomasz Mikolajewski <mtomasz@google.com>
(cherry picked from commit 912e3652)
parent 6a0a5688
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -338,7 +338,9 @@ public class PickActivity extends BaseActivity implements ActionHandler.Addons {
    @Override
    public void onDocumentPicked(DocumentInfo doc) {
        final FragmentManager fm = getFragmentManager();
        if (doc.isContainer()) {
        // Do not inline-open archives, as otherwise it would be impossible to pick
        // archive files. Note, that picking files inside archives is not supported.
        if (doc.isDirectory()) {
            mInjector.actions.openContainerDocument(doc);
        } else if (mState.action == ACTION_OPEN || mState.action == ACTION_GET_CONTENT) {
            // Explicit file picked, return