Merge "Fix NPE for Open With ChooserActivity Logging Bug" into rvc-dev

This commit is contained in:
Susi Kharraz-Post
2020-04-06 21:58:13 +00:00
committed by Android (Google) Code Review

View File

@@ -191,6 +191,9 @@ public interface ChooserActivityLogger {
* ChooserActivity.
*/
default int typeFromIntentString(String intent) {
if (intent == null) {
return FrameworkStatsLog.SHARESHEET_STARTED__INTENT_TYPE__INTENT_DEFAULT;
}
switch (intent) {
case Intent.ACTION_VIEW:
return FrameworkStatsLog.SHARESHEET_STARTED__INTENT_TYPE__INTENT_ACTION_VIEW;