cakeuser 发表于 2025-2-13 10:23

2025解题领红包 Android初级

本帖最后由 Coxxs 于 2025-2-13 11:27 编辑


```
@Override // androidx.fragment.app.Fragment   
public void onViewCreated(View view, Bundle savedInstanceState) {
Intrinsics.checkNotNullParameter(view, "view");
super.onViewCreated(view, savedInstanceState);
final ImageView imageView = (ImageView) view.findViewById(C1347R.id.imageView);
final GestureDetector gestureDetector = new GestureDetector(requireContext(), new GestureDetector.SimpleOnGestureListener() { // from class: com.zj.wuaipojie2025.FoldFragment2$onViewCreated$gestureDetector$1            @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener            public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {                long j;
      int i;
      int i2;
      int i3;
      float f;
      float f2;
      float f3;
      float f4;
      float f5;
      float f6;
      float f7;
      float f8;
      Intrinsics.checkNotNullParameter(e2, "e2");
      if (e1 == null) {
      return true;
      }
      long currentTimeMillis = System.currentTimeMillis();
      j = FoldFragment2.this.l;
      long j2 = currentTimeMillis - j;
      i = FoldFragment2.this.g;
      if (j2 < i) {
      return true;
      }
      float x = e2.getX() - e1.getX();
      i2 = FoldFragment2.this.f;
      if (x >= (-i2)) {
      i3 = FoldFragment2.this.f;
      if (x > i3) {
          FoldFragment2 foldFragment2 = FoldFragment2.this;
          f = foldFragment2.a;
          f2 = FoldFragment2.this.r;
          foldFragment2.a = RangesKt.coerceAtLeast(f - f2, 0.0 f);
      }
      } else {
      FoldFragment2 foldFragment22 = FoldFragment2.this;
      f6 = foldFragment22.a;
      f7 = FoldFragment2.this.r;
      float f9 = f6 + f7;
      f8 = FoldFragment2.this.b;
      foldFragment22.a = RangesKt.coerceAtMost(f9, f8);
      }
      ImageView imageView2 = imageView;
      f3 = FoldFragment2.this.a;
      imageView2.setRotationY(f3);
      f4 = FoldFragment2.this.a;
      f5 = FoldFragment2.this.b;
      if (f4 >= f5) {
      SPU spu = SPU.INSTANCE;
      Context requireContext = FoldFragment2.this.requireContext();
      Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
      spu.m136s(requireContext, 1, "2hyWtSLN69+QWLHQ");
      }
      FoldFragment2.this.l = currentTimeMillis;
      return true;
    }
});
/* JADX INFO: Access modifiers changed from: private */
public static final void startLongPressTimer$lambda$1(FoldFragment2 this$0) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
this$0.un = true;
SPU spu = SPU.INSTANCE;
Context requireContext = this$0.requireContext();
Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
spu.m136s(requireContext, 2, "hjyaQ8jNSdp+mZic7Kdtyw==");
this$0.getParentFragmentManager().beginTransaction().replace(C1347R.id.fold2, new FoldFragment1()).addToBackStack(null).commit();
Toast.makeText(this$0.requireContext(), C1349TO.INSTANCE.m142db("cYoiUd2BfEDc/V9e4LdciBz9Mzwzs3yr0kgrLA=="), 0).show();
}
```


把2hyWtSLN69+QWLHQ
hjyaQ8jNSdp+mZic7Kdtyw==
分别拷贝覆盖掉cYoiUd2BfEDc/V9e4LdciBz9Mzwzs3yr0kgrLA==
再把MainActivity中的viewPager2.setUserInputEnabled(false)改为true
打包成apk,安装。。。得到flag{ 和 xnkl2025!}两个字符串,合起来就是Flag

cattie 发表于 2025-2-13 10:24

建议用markdown重新排一下版,把代码用代码块框一下
现在的格式混乱了。

cakeuser 发表于 2025-2-13 10:29

不太会用发代码

uLY3M 发表于 2025-2-13 10:49

这个看的有点感人

wcnjeusr 发表于 2025-2-13 11:36

改完setUserInputEnabled,看逻辑是写配置文件,直接去preference文件就拿到了。

Coxxs 发表于 2025-2-13 11:40

Markdown 可以用 ``` 符号把代码框选起来,格式就不会混乱了。已经辅助编辑了,只修正了格式,未作其他改动。
页: [1]
查看完整版本: 2025解题领红包 Android初级