Merge "Address followup comments from 793838."

This commit is contained in:
Steve McKay
2015-10-26 20:51:09 +00:00
committed by Android (Google) Code Review
3 changed files with 5 additions and 3 deletions

View File

@@ -16,6 +16,6 @@
<resources>
<bool name="productivity_device">true</bool>
<!-- intentionally unset. Vendors should set this in an overlay. -->
<!-- Intentionally unset. Vendors should set this in an overlay. -->
<string name="trusted_quick_viewer_package"></string>
</resources>

View File

@@ -334,12 +334,12 @@ public class FilesActivity extends BaseActivity {
startActivity(intent);
return;
} catch (SecurityException e) {
// carry on to regular view mode.
// Carry on to regular view mode.
Log.e(TAG, "Caught security error: " + e.getLocalizedMessage());
}
}
// fallback to traditional VIEW action...
// Fallback to traditional VIEW action...
intent = new Intent(Intent.ACTION_VIEW);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setData(doc.derivedUri);

View File

@@ -92,6 +92,8 @@ final class QuickViewIntentBuilder {
intent.setClipData(mClipData);
return intent;
} else {
Log.e(TAG, "Can't resolve trusted quick view package: " + trustedPkg);
}
}