鸠摩搜书官方正版 v1.7版本的 MD5 值为:01c9a20d2c415de3233d7f691829edf5

以下内容为反编译后的 z.java 源代码,内容仅作参考


package com.panda.offerwall;

import android.app.Activity;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.os.Message;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.List;

public final class z extends Handler {

    final v f390a;

    public z(v vVar) {
        this.f390a = vVar;
    }

    @Override
    public final void handleMessage(Message message) {
        List list;
        com.panda.offerwall.a.b bVar;
        String string = message.getData().getString("imageName");
        if (!string.equals("owg")) {
            try {
                FileInputStream openFileInput = this.f390a.f386a.openFileInput(string);
                BitmapFactory.Options options = new BitmapFactory.Options();
                options.inPreferredConfig = Bitmap.Config.RGB_565;
                Bitmap decodeStream = BitmapFactory.decodeStream(openFileInput, null, options);
                for (int i = 0; i < this.f390a.b.size(); i++) {
                    if (((String) this.f390a.h.get(Integer.valueOf(((com.panda.offerwall.b.a) this.f390a.b.get(i)).a()))).equals(string)) {
                        list = this.f390a.l;
                        list.set(i, decodeStream);
                        this.f390a.d();
                    }
                }
                return;
            } catch (FileNotFoundException e) {
                e.printStackTrace();
                return;
            }
        }
        if (this.f390a.f386a.getFilesDir().list(new aa(this))[0].equals("owg")) {
            try {
                this.f390a.b = com.panda.offerwall.c.c.a(this.f390a.f386a.openFileInput("owg"));
                for (int i2 = 0; i2 < this.f390a.b.size(); i2++) {
                    if (Integer.parseInt(((com.panda.offerwall.b.a) this.f390a.b.get(i2)).h()) == 0) {
                        this.f390a.b.remove(i2);
                    }
                }
                this.f390a.i();
                for (int i3 = 0; i3 < this.f390a.b.size(); i3++) {
                    this.f390a.h.put(Integer.valueOf(((com.panda.offerwall.b.a) this.f390a.b.get(i3)).a()), com.panda.offerwall.c.c.a(((com.panda.offerwall.b.a) this.f390a.b.get(i3)).c()));
                }
                this.f390a.g();
                this.f390a.m();
                if (this.f390a.f != null) {
                    this.f390a.f.a("succees");
                }
            } catch (Exception e2) {
                e2.printStackTrace();
                new Thread(new y(this.f390a, "http://58.61.157.157/cgi-bin/owg")).start();
            }
            com.panda.offerwall.c.c.a(this.f390a.f386a, "configUpdate", "UpdateTime", System.currentTimeMillis());
            Activity activity = this.f390a.f386a;
            bVar = this.f390a.k;
            String a2 = bVar.a();
            SharedPreferences.Editor edit = activity.getSharedPreferences("configUpdate", 0).edit();
            edit.putString("UpdateVersion", a2);
            edit.commit();
        }
    }
}