导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - RefreshInstalledRecommendToLockAppsCacheJobIntentService.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 RefreshInstalledRecommendToLockAppsCacheJobIntentService.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.fancyclean.boost.applock.service;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import androidx.annotation.Nullable;
import c7.e;
import i5.a;
import i5.f;
import java.util.ArrayList;
import java.util.Iterator;

public class RefreshInstalledRecommendToLockAppsCacheJobIntentService extends e {
    public static final int c = 0;

    public final void onHandleWork(@Nullable Intent intent) {
        ArrayList e = a.c(getApplicationContext()).e();
        ArrayList b = f.a(getApplicationContext()).b();
        if (e.size() > 0 && b != null && b.size() > 0) {
            ArrayList arrayList = new ArrayList();
            Iterator it = b.iterator();
            while (it.hasNext()) {
                r5.a aVar = (r5.a) it.next();
                if (e.indexOf(aVar) >= 0) {
                    arrayList.add(aVar);
                }
            }
            a c10 = a.c(getApplicationContext());
            c10.getClass();
            StringBuilder sb2 = new StringBuilder();
            Iterator it2 = arrayList.iterator();
            while (it2.hasNext()) {
                r5.a aVar2 = (r5.a) it2.next();
                if (sb2.length() > 0) {
                    sb2.append("|");
                }
                sb2.append(aVar2.c);
            }
            String sb3 = sb2.toString();
            SharedPreferences sharedPreferences = c10.a.getSharedPreferences("app_lock", 0);
            SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
            if (edit != null) {
                edit.putString("installed_recommend_to_lock_apps_cache", sb3);
                edit.apply();
            }
            Context applicationContext = getApplicationContext();
            long currentTimeMillis = System.currentTimeMillis();
            SharedPreferences sharedPreferences2 = applicationContext.getSharedPreferences("app_lock", 0);
            SharedPreferences.Editor edit2 = sharedPreferences2 != null ? sharedPreferences2.edit() : null;
            if (edit2 == null) {
                return;
            }
            edit2.putLong("cache_installed_recommend_to_lock_apps_time", currentTimeMillis);
            edit2.apply();
        }
    }
}