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

Commit 288f23c9 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Merge cherrypicks of [6398461] into qt-release

Change-Id: Ifbe34f42ecc05d4c886e0330ee9cd02b3c64323d
parents 2f084e51 267482b5
Loading
Loading
Loading
Loading
+34 −28
Original line number Diff line number Diff line
@@ -633,6 +633,7 @@ public class ChooserActivity extends ResolverActivity {
        // due to permissions issues
        findViewById(R.id.file_copy_button).setVisibility(View.GONE);

        try {
            ContentResolver resolver = getContentResolver();
            TextView fileNameView = findViewById(R.id.content_preview_filename);
            String action = targetIntent.getAction();
@@ -654,7 +655,8 @@ public class ChooserActivity extends ResolverActivity {
                if (uris.size() == 0) {
                    contentPreviewLayout.setVisibility(View.GONE);
                    Log.i(TAG,
                        "Appears to be no uris available in EXTRA_STREAM, removing preview area");
                            "Appears to be no uris available in EXTRA_STREAM, removing preview "
                                    + "area");
                    return;
                }

@@ -668,6 +670,10 @@ public class ChooserActivity extends ResolverActivity {
                fileIconView.setVisibility(View.VISIBLE);
                fileIconView.setImageResource(R.drawable.ic_file_copy);
            }
        } catch (SecurityException e) {
            Log.w(TAG, "Error loading file preview", e);
            contentPreviewLayout.setVisibility(View.GONE);
        }
    }

    private RoundedRectImageView loadUriIntoView(int imageResourceId, Uri uri) {