Merge "Fix NPE for Open With ChooserActivity Logging Bug" into rvc-dev am: 7e9bfdfd63 am: 9b2b5a114a am: 9d2209281e

Change-Id: Idaaeb612c5b07910c8cc181d03349bae3191f7bf
This commit is contained in:
Susi Kharraz-Post
2020-04-06 22:48:28 +00:00
committed by Automerger Merge Worker

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;