正在查看: Hyouka private v5.8.9 应用的 EmptyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 EmptyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project.screens;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import androidx.fragment.app.Fragment;
import com.beint.project.MainActivity;
import com.beint.project.ZangiEngine;
import com.beint.project.core.services.impl.ZangiConfigurationService;
import com.beint.project.core.utils.Log;
import com.beint.project.core.utils.NotificationCenter;
import com.beint.project.screens.sms.AppModeNotifierActivity;
import com.beint.project.screens.sms.ConversationView;
import com.beint.project.services.PassCodeController;
import com.beint.project.utils.color.ColorsManger;
import java.lang.ref.WeakReference;
public final class EmptyActivity extends AppModeNotifierActivity {
public static final Companion Companion = new Companion(null);
private static WeakReference<EmptyActivity> sInstance;
private FrameLayout hideContentView;
public static final class Companion {
private Companion() {
}
public Companion(kotlin.jvm.internal.g gVar) {
this();
}
public final WeakReference<EmptyActivity> getSInstance() {
return EmptyActivity.sInstance;
}
public final void setSInstance(WeakReference<EmptyActivity> weakReference) {
EmptyActivity.sInstance = weakReference;
}
}
@SuppressLint({"ClickableViewAccessibility"})
private final FrameLayout getHideContentView() {
if (this.hideContentView == null) {
FrameLayout frameLayout = new FrameLayout(this);
this.hideContentView = frameLayout;
kotlin.jvm.internal.k.c(frameLayout);
frameLayout.setBackgroundResource(ColorsManger.background_color);
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(-1, -1);
FrameLayout frameLayout2 = this.hideContentView;
kotlin.jvm.internal.k.c(frameLayout2);
frameLayout2.setLayoutParams(layoutParams);
FrameLayout frameLayout3 = this.hideContentView;
kotlin.jvm.internal.k.c(frameLayout3);
frameLayout3.setOnTouchListener(new View.OnTouchListener() {
@Override
public final boolean onTouch(View view, MotionEvent motionEvent) {
boolean hideContentView$lambda$0;
hideContentView$lambda$0 = EmptyActivity.getHideContentView$lambda$0(view, motionEvent);
return hideContentView$lambda$0;
}
});
FrameLayout frameLayout4 = this.hideContentView;
kotlin.jvm.internal.k.c(frameLayout4);
frameLayout4.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
EmptyActivity.getHideContentView$lambda$1(view);
}
});
}
return this.hideContentView;
}
public static final boolean getHideContentView$lambda$0(View view, MotionEvent motionEvent) {
return true;
}
public static final void getHideContentView$lambda$1(View view) {
}
public void onBackPressed() {
Intent intent;
if (getSupportFragmentManager().o0() > 1) {
super.onBackPressed();
return;
}
if (getSupportFragmentManager().v0().size() == 1) {
if (getSupportFragmentManager().v0().get(0) instanceof ConversationView) {
if (ZangiEngine.getMainActivity() != null) {
if (HomeActivity.getInstance() != null) {
HomeActivity.getInstance().finish();
}
intent = new Intent((Context) this, (Class<?>) HomeActivity.class);
startActivity(intent);
} else {
intent = new Intent((Context) this, (Class<?>) MainActivity.class);
startActivity(intent);
}
}
intent = null;
} else if (getSupportFragmentManager().v0().size() != 2 || !kotlin.jvm.internal.k.b(((Fragment) getSupportFragmentManager().v0().get(0)).getTag(), "ImageCache") || !(getSupportFragmentManager().v0().get(1) instanceof ConversationView)) {
if (getSupportFragmentManager().v0().size() == 2 && ((getSupportFragmentManager().v0().get(0) instanceof ConversationView) || (getSupportFragmentManager().v0().get(1) instanceof ConversationView))) {
if (ZangiEngine.getMainActivity() != null) {
if (HomeActivity.getInstance() != null) {
HomeActivity.getInstance().finish();
}
intent = new Intent((Context) this, (Class<?>) HomeActivity.class);
startActivity(intent);
} else {
intent = new Intent((Context) this, (Class<?>) MainActivity.class);
startActivity(intent);
}
}
intent = null;
} else if (ZangiEngine.getMainActivity() != null) {
if (HomeActivity.getInstance() != null) {
HomeActivity.getInstance().finish();
}
intent = new Intent((Context) this, (Class<?>) HomeActivity.class);
startActivity(intent);
} else {
intent = new Intent((Context) this, (Class<?>) MainActivity.class);
startActivity(intent);
}
if (intent == null) {
try {
startActivity(new Intent((Context) this, (Class<?>) HomeActivity.class));
} catch (Exception e) {
e.printStackTrace();
}
}
ZangiConfigurationService.INSTANCE.putBoolean("ACTIVITY_RECREATED", true, false);
finish();
}
@Override
protected void onCreate(Bundle bundle) {
PassCodeController passCodeController = PassCodeController.INSTANCE;
passCodeController.toWorkPassCode();
setTheme(2131951927);
overridePendingTransition(2130772033, 2130772032);
super.onCreate(bundle);
sInstance = new WeakReference<>(this);
FrameLayout frameLayout = new FrameLayout(this);
setContentView(frameLayout);
frameLayout.setId(2131362423);
ConversationManager conversationManager = ConversationManager.INSTANCE;
if (conversationManager.getTransferConversation() != null) {
ConversationManager.openConversation$default(conversationManager, conversationManager.getTransferConversation(), this, 2131362423, null, false, false, 56, null);
conversationManager.setTransferConversation(null);
} else {
Bundle extras = getIntent().getExtras();
String string = extras != null ? extras.getString("com.beint.project.c_jid", null) : null;
if (string != null) {
ConversationManager.openConversationWithJid$default(conversationManager, string, null, this, false, null, null, 2131362423, false, 128, null);
} else {
ConversationManager.openConversation$default(conversationManager, null, this, 2131362423, null, false, false, 56, null);
}
}
NotificationCenter.INSTANCE.addObserver(this, NotificationCenter.NotificationType.UN_HIDE_CONTENT_HIDED_VIEW, new EmptyActivity$onCreate$1(frameLayout, this));
if (passCodeController.checkNeedToAddHideContentView()) {
frameLayout.addView(getHideContentView());
}
}
@Override
protected void onDestroy() {
super.onDestroy();
Log.i(ConversationManager.INSTANCE.getTAG(), "onDestroy EmptyActivity");
NotificationCenter.INSTANCE.removeObserver(this);
}
@Override
protected void onStart() {
super.onStart();
}
}