20 lines
812 B
Java
20 lines
812 B
Java
|
package com.huawei.hms.utils;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import com.huawei.hms.support.api.entity.common.CommonConstant;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class IntentUtil {
|
||
|
public static Intent modifyIntentBehaviorsSafe(Intent intent) {
|
||
|
if (intent == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String action = intent.getAction();
|
||
|
if ("android.intent.action.SEND".equals(action) || "android.intent.action.SEND_MULTIPLE".equals(action) || "android.media.action.IMAGE_CAPTURE".equals(action) || "android.media.action.IMAGE_CAPTURE_SECURE".equals(action) || "android.media.action.VIDEO_CAPTURE".equals(action)) {
|
||
|
intent.setAction(CommonConstant.ACTION.HWID_SCHEME_URL);
|
||
|
}
|
||
|
intent.setFlags(intent.getFlags() & (-196));
|
||
|
return intent;
|
||
|
}
|
||
|
}
|