Shandong video conference v3.2.10版本的 MD5 值为:e9e908f971313b4c4bca5737f96781ef

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


package com.ainemo.android.activity.business.actions;

import android.log.L;
import android.os.Build;
import android.os.Bundle;
import android.os.RemoteException;
import android.util.Base64;
import android.utils.QRCodeUtil;
import android.utils.imagecache.ImageLoader;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import cn.gov.sdongmeeting.video.R;
import com.ainemo.android.activity.BaseMobileActivity;
import com.ainemo.android.rest.model.LoginResponse;
import com.ainemo.android.rest.model.UserProfile;
import com.google.zxing.WriterException;
public class UserProfileQRCodeActivity extends BaseMobileActivity {
    private int density;
    private byte[] encryptKey;
    private String encryptObj;
    private ImageLoader imageLoader;
    private TextView mProfileName;
    private ImageView mProfilePicture;
    private ImageView mProfileQRCodePicture;
    private String qrcodeUrl;
    private QRCodeUtil qrcodeUtil = new QRCodeUtil();
    private int dimension = 230;

    private void loadUserInfo() {
        if (getAIDLService() != null) {
            LoginResponse loginResponse = null;
            try {
                loginResponse = getAIDLService().e0();
            } catch (RemoteException unused) {
            }
            if (loginResponse != null) {
                UserProfile userProfile = loginResponse.getUserProfile();
                this.mProfileName.setText(userProfile.getDisplayName());
                if (userProfile.getProfilePicture() != null) {
                    this.imageLoader.a(userProfile.getProfilePicture(), this.mProfilePicture, 0);
                }
                String format = String.format(this.encryptObj, userProfile.getCellPhone());
                this.encryptObj = format;
                try {
                    String encodeToString = Base64.encodeToString(android.utils.i.b(this.encryptKey, format.getBytes()), 2);
                    String str = com.xylink.net.manager.g.K() + "://www.zaijia.com/app?" + QrCodeCaptureActivity.OBJ + "%s";
                    this.qrcodeUrl = str;
                    this.qrcodeUrl = String.format(str, encodeToString);
                } catch (Exception e2) {
                    L.e("QR encrypt error", e2);
                }
                try {
                    this.mProfileQRCodePicture.setImageBitmap(this.qrcodeUtil.encodeString(this.qrcodeUrl, this.dimension));
                } catch (WriterException unused2) {
                }
            }
        }
    }

    @Override
    @androidx.annotation.l0(api = 21)
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (Build.VERSION.SDK_INT >= 23) {
            getWindow().setStatusBarColor(getResources().getColor(R.color.WHITE));
            getWindow().getDecorView().setSystemUiVisibility(8192);
        } else {
            getWindow().clearFlags(67108864);
            getWindow().addFlags(Integer.MIN_VALUE);
            getWindow().setStatusBarColor(getResources().getColor(R.color.WHITE));
        }
        setContentView(R.layout.activity_user_profile_qrcode);
        setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
        this.mProfileName = (TextView) findViewById(R.id.user_profile_name);
        this.mProfilePicture = (ImageView) findViewById(R.id.user_profile_picture);
        this.mProfileQRCodePicture = (ImageView) findViewById(R.id.user_profile_qrcode);
        this.imageLoader = ImageLoader.b();
        this.encryptKey = android.utils.i.a();
        this.encryptObj = "cellphone=%s";
        int i2 = (int) getResources().getDisplayMetrics().density;
        this.density = i2;
        this.dimension *= i2;
    }

    @Override
    public void onViewAndServiceReady(d.a aVar) {
        loadUserInfo();
    }
}