Merge "Fix NPE for Open With ChooserActivity Logging Bug" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7e9bfdfd63
@@ -191,6 +191,9 @@ public interface ChooserActivityLogger {
|
|||||||
* ChooserActivity.
|
* ChooserActivity.
|
||||||
*/
|
*/
|
||||||
default int typeFromIntentString(String intent) {
|
default int typeFromIntentString(String intent) {
|
||||||
|
if (intent == null) {
|
||||||
|
return FrameworkStatsLog.SHARESHEET_STARTED__INTENT_TYPE__INTENT_DEFAULT;
|
||||||
|
}
|
||||||
switch (intent) {
|
switch (intent) {
|
||||||
case Intent.ACTION_VIEW:
|
case Intent.ACTION_VIEW:
|
||||||
return FrameworkStatsLog.SHARESHEET_STARTED__INTENT_TYPE__INTENT_ACTION_VIEW;
|
return FrameworkStatsLog.SHARESHEET_STARTED__INTENT_TYPE__INTENT_ACTION_VIEW;
|
||||||
|
|||||||
Reference in New Issue
Block a user