导航菜单

页面标题

页面副标题

管控平台 v5.2.3.0. - EmptyActivity.java 源代码

正在查看: 管控平台 v5.2.3.0. 应用的 EmptyActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.iflytek.mdmservice.ui;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import androidx.annotation.Nullable;
import com.iflytek.mdmcommon.LogUtil;

public class EmptyActivity extends Activity {

    boolean f552a = false;

    private void a() {
        Window window = getWindow();
        window.setGravity(51);
        WindowManager.LayoutParams attributes = window.getAttributes();
        attributes.x = 0;
        attributes.y = 0;
        attributes.height = 1;
        attributes.width = 1;
        window.setAttributes(attributes);
        getWindow().addFlags(262160);
    }

    @Override
    protected void onCreate(@Nullable Bundle bundle) {
        LogUtil.i("BlueBlue", "EmptyActivity.onCreate");
        super.onCreate(bundle);
        a();
        Intent intent = getIntent();
        int intExtra = intent.hasExtra("alarm_id") ? intent.getIntExtra("alarm_id", -1) : -1;
        if (intExtra < 0) {
            return;
        }
        Intent intent2 = new Intent("com.simplemobiletools.clock");
        intent2.setComponent(new ComponentName("com.simplemobiletools.clock", "com.simplemobiletools.clock.activities.EmptyActivity"));
        intent2.setFlags(268468224);
        intent2.putExtra("open_tab", 1);
        intent2.putExtra("alarm_id", intExtra);
        try {
            startActivity(intent2);
        } catch (Exception e) {
            LogUtil.e("BlueBlue", "EmptyActivity.startActivity.exception: " + e.getMessage());
        }
        this.f552a = true;
    }

    @Override
    protected void onResume() {
        if (this.f552a) {
            finish();
        }
        super.onResume();
    }
}