星辰影院解锁vip v1.0.4版本的 MD5 值为:3d99bbcbb0d5d5e568b9f6134424c24e
以下内容为反编译后的 ScreenFragment.java 源代码,内容仅作参考
package com.swmansion.rnscreens;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.widget.FrameLayout;
import androidx.fragment.app.Fragment;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.uimanager.UIManagerModule;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.sensorsdata.analytics.android.sdk.autotrack.aop.FragmentTrackHelper;
import java.util.ArrayList;
import java.util.List;
public class ScreenFragment extends Fragment {
protected Screen a;
private List<ScreenContainer> f10070b = new ArrayList();
public ScreenFragment() {
throw new IllegalStateException("Screen fragments should never be restored. Follow instructions from https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067 to properly configure your main activity.");
}
public static View t0(View view) {
ViewParent parent = view.getParent();
if (parent != null) {
ViewGroup viewGroup = (ViewGroup) parent;
viewGroup.endViewTransition(view);
viewGroup.removeView(view);
}
view.setVisibility(0);
return view;
}
public void m0() {
((UIManagerModule) ((ReactContext) this.a.getContext()).getNativeModule(UIManagerModule.class)).getEventDispatcher().c(new b(this.a.getId()));
for (ScreenContainer screenContainer : this.f10070b) {
if (screenContainer.getScreenCount() > 0) {
screenContainer.j(screenContainer.getScreenCount() - 1).getFragment().m0();
}
}
}
public void n0() {
((UIManagerModule) ((ReactContext) this.a.getContext()).getNativeModule(UIManagerModule.class)).getEventDispatcher().c(new c(this.a.getId()));
for (ScreenContainer screenContainer : this.f10070b) {
if (screenContainer.getScreenCount() > 0) {
screenContainer.j(screenContainer.getScreenCount() - 1).getFragment().n0();
}
}
}
public void o0() {
((UIManagerModule) ((ReactContext) this.a.getContext()).getNativeModule(UIManagerModule.class)).getEventDispatcher().c(new e(this.a.getId()));
for (ScreenContainer screenContainer : this.f10070b) {
if (screenContainer.getScreenCount() > 0) {
screenContainer.j(screenContainer.getScreenCount() - 1).getFragment().o0();
}
}
}
@Override
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
FrameLayout frameLayout = new FrameLayout(getContext());
this.a.setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
frameLayout.addView(t0(this.a));
return frameLayout;
}
@Override
public void onDestroy() {
super.onDestroy();
ScreenContainer container = this.a.getContainer();
if (container == null || !container.k(this)) {
((UIManagerModule) ((ReactContext) this.a.getContext()).getNativeModule(UIManagerModule.class)).getEventDispatcher().c(new d(this.a.getId()));
}
this.f10070b.clear();
}
@Override
@SensorsDataInstrumented
public void onHiddenChanged(boolean z) {
super.onHiddenChanged(z);
FragmentTrackHelper.trackOnHiddenChanged(this, z);
}
@Override
@SensorsDataInstrumented
public void onPause() {
super.onPause();
FragmentTrackHelper.trackFragmentPause(this);
}
@Override
@SensorsDataInstrumented
public void onResume() {
super.onResume();
FragmentTrackHelper.trackFragmentResume(this);
}
@Override
@SensorsDataInstrumented
public void onViewCreated(View view, Bundle bundle) {
super.onViewCreated(view, bundle);
FragmentTrackHelper.onFragmentViewCreated(this, view, bundle);
}
public void p0() {
((UIManagerModule) ((ReactContext) this.a.getContext()).getNativeModule(UIManagerModule.class)).getEventDispatcher().c(new f(this.a.getId()));
for (ScreenContainer screenContainer : this.f10070b) {
if (screenContainer.getScreenCount() > 0) {
screenContainer.j(screenContainer.getScreenCount() - 1).getFragment().p0();
}
}
}
public Screen q0() {
return this.a;
}
public void r0() {
if (isResumed()) {
m0();
} else {
n0();
}
}
public void s0() {
if (isResumed()) {
o0();
} else {
p0();
}
}
@Override
@SensorsDataInstrumented
public void setUserVisibleHint(boolean z) {
super.setUserVisibleHint(z);
FragmentTrackHelper.trackFragmentSetUserVisibleHint(this, z);
}
public void u0(ScreenContainer screenContainer) {
this.f10070b.add(screenContainer);
}
public void v0(ScreenContainer screenContainer) {
this.f10070b.remove(screenContainer);
}
@SuppressLint({"ValidFragment"})
public ScreenFragment(Screen screen) {
this.a = screen;
}
}