Loading core/java/com/android/internal/app/ChooserActivity.java +34 −28 Original line number Diff line number Diff line Loading @@ -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(); Loading @@ -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; } Loading @@ -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) { Loading Loading
core/java/com/android/internal/app/ChooserActivity.java +34 −28 Original line number Diff line number Diff line Loading @@ -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(); Loading @@ -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; } Loading @@ -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) { Loading