49 lines
1.9 KiB
Java
49 lines
1.9 KiB
Java
|
package com.huawei.hms.update.note;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.Intent;
|
||
|
import android.view.KeyEvent;
|
||
|
import com.huawei.hms.activity.IBridgeActivityDelegate;
|
||
|
import com.huawei.hms.support.log.HMSLog;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class DoNothingResolution implements IBridgeActivityDelegate {
|
||
|
@Override // com.huawei.hms.activity.IBridgeActivityDelegate
|
||
|
public int getRequestCode() {
|
||
|
HMSLog.i("DoNothingResolution", "<DoNothingResolution getRequestCode>");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.activity.IBridgeActivityDelegate
|
||
|
public void onBridgeActivityCreate(Activity activity) {
|
||
|
HMSLog.i("DoNothingResolution", "<DoNothingResolution onBridgeActivityCreate>");
|
||
|
if (activity != null && !activity.isFinishing()) {
|
||
|
activity.setResult(30);
|
||
|
activity.finish();
|
||
|
} else {
|
||
|
HMSLog.e("DoNothingResolution", "<Resolution onBridgeActivityCreate> activity is null or finishing");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.activity.IBridgeActivityDelegate
|
||
|
public void onBridgeActivityDestroy() {
|
||
|
HMSLog.i("DoNothingResolution", "<DoNothingResolution onBridgeActivityDestroy>");
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.activity.IBridgeActivityDelegate
|
||
|
public boolean onBridgeActivityResult(int i, int i2, Intent intent) {
|
||
|
HMSLog.i("DoNothingResolution", "<DoNothingResolution onBridgeActivityResult>");
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.activity.IBridgeActivityDelegate
|
||
|
public void onBridgeConfigurationChanged() {
|
||
|
HMSLog.i("DoNothingResolution", "<DoNothingResolution onBridgeConfigurationChanged>");
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.activity.IBridgeActivityDelegate
|
||
|
public void onKeyUp(int i, KeyEvent keyEvent) {
|
||
|
HMSLog.i("DoNothingResolution", "<DoNothingResolution onKeyUp>");
|
||
|
}
|
||
|
}
|