CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 d.java 源代码,内容仅作参考
package d.c.e.a.z;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import d.c.a.j.s;
import i.c.a.c.w;
import java.util.Objects;
import kotlin.Metadata;
import n.i.b.h;
import n.m.k;
import org.commons.screenadapt.recyclerview.ScreenViewHolder;
import org.godfootsteps.arch.api.AppClient;
import org.godfootsteps.arch.api.model.BookCaseBook;
import org.godfootsteps.arch.dao.BookDatabase;
import org.godfootsteps.book.BookDetailActivity;
import org.godfootsteps.book.BookReadActivity;
import org.godfootsteps.book.HtmlArticleActivity;
import org.godfootsteps.book.NewsArticleActivity;
import org.godfootsteps.book.UseHelpArticleActivity;
import org.godfootsteps.book.lucene.BookIndexService;
import org.godfootsteps.book.model.ReadPosition;
import org.godfootsteps.book.util.BookDownloadManager;
import org.godfootsteps.book.util.SyncKt;
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0014\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016J\b\u0010\u0006\u001a\u00020\u0007H\u0016J\b\u0010\b\u001a\u00020\u0007H\u0016J\u0018\u0010\t\u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u000bH\u0016J\f\u0010\f\u001a\u0006\u0012\u0002\b\u00030\rH\u0016J\b\u0010\u000e\u001a\u00020\u000fH\u0016J\u0010\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0010\u0010\u0011\u001a\u00020\u000f2\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0010\u0010\u0012\u001a\u00020\u000f2\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0010\u0010\u0013\u001a\u00020\u000f2\u0006\u0010\u0014\u001a\u00020\u0015H\u0016J\u0018\u0010\u0016\u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u000bH\u0016J\u001a\u0010\u0017\u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00042\b\u0010\u0018\u001a\u0004\u0018\u00010\u0004H\u0016J8\u0010\u0019\u001a\u00020\u00072\u0006\u0010\u001a\u001a\u00020\u00042\u0006\u0010\u001b\u001a\u00020\u00042\u0006\u0010\u001c\u001a\u00020\u00042\u0006\u0010\u001d\u001a\u00020\u00042\u0006\u0010\u001e\u001a\u00020\u00042\u0006\u0010\u001f\u001a\u00020\u0004H\u0016J(\u0010 \u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0018\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010!\u001a\u00020\u0004H\u0016J\u0018\u0010\"\u001a\u00020\u00072\u0006\u0010#\u001a\u00020\u00042\u0006\u0010$\u001a\u00020\u000fH\u0016J2\u0010\"\u001a\u00020\u00072\u0006\u0010#\u001a\u00020\u00042\u0006\u0010\u001b\u001a\u00020%2\u0006\u0010&\u001a\u00020\u00042\u0006\u0010'\u001a\u00020\u00042\b\u0010(\u001a\u0004\u0018\u00010\u0004H\u0016J\"\u0010\"\u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0018\u001a\u00020\u00042\b\u0010(\u001a\u0004\u0018\u00010\u0004H\u0016J\u001a\u0010\"\u001a\u00020\u00072\u0006\u0010#\u001a\u00020\u00042\b\u0010(\u001a\u0004\u0018\u00010\u0004H\u0016J\u001a\u0010)\u001a\u00020\u00072\u0006\u0010\u001b\u001a\u00020%2\b\u0010(\u001a\u0004\u0018\u00010\u0004H\u0016J\u0010\u0010*\u001a\u00020\u00072\u0006\u0010\u001b\u001a\u00020\u0004H\u0016J\u001a\u0010+\u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00042\b\u0010\u0018\u001a\u0004\u0018\u00010\u0004H\u0016J,\u0010,\u001a\u00020\u00072\u0006\u0010-\u001a\u00020\u000f2\f\u0010.\u001a\b\u0012\u0004\u0012\u00020\u00070/2\f\u00100\u001a\b\u0012\u0004\u0012\u00020\u00070/H\u0016¨\u00061"}, d2 = {"Lorg/godfootsteps/cag/app/serviceProvider/BookServiceImpl;", "Lorg/godfootsteps/router/BookService;", "()V", "bookName", "", "bookId", "clearDataBase", "", "clearSyncData", "download", "holder", "Lorg/commons/screenadapt/recyclerview/ScreenViewHolder;", "getHtmlArticleClass", "Ljava/lang/Class;", "hasUnSyncedData", "", "isBookDownloaded", "isBookNeedUpdate", "isDownloading", "isHtmlActivity", "activity", "Landroid/app/Activity;", "onBindVH", "removeIndex", "pieceId", "startBookDetailActivity", "cover", "id", "detail", "title", "category", "coverPath", "startBookReadActivity", "pieceName", "startHtmlActivity", "url", "isAboutUs", "", "mode", "cssPath", "share", "startNewsHtmlActivity", "startUsingHelpActivity", "updateIndex", "uploadBookDataBeforeLogout", "logout", "onSuccess", "Lkotlin/Function0;", "onFailed", "cag_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class d implements d.c.i.c {
@Override
public boolean a() {
BookDatabase.a aVar = BookDatabase.f15235n;
BookDatabase bookDatabase = BookDatabase.f15243v;
return (bookDatabase.q().h().isEmpty() ^ true) || (bookDatabase.t().h().isEmpty() ^ true) || (bookDatabase.r().h().isEmpty() ^ true) || (bookDatabase.u().h().isEmpty() ^ true);
}
@Override
public void b() {
BookDatabase.a aVar = BookDatabase.f15235n;
BookDatabase.f15243v.c();
}
@Override
public void c(String str, String str2) {
h.e(str, "bookId");
Context c = w.c();
int i2 = BookIndexService.f15753i;
Intent intent = new Intent(c, BookIndexService.class);
intent.setAction("action.DELETE_INDEX");
intent.putExtra("extra.BOOK_ID", str);
intent.putExtra("extra.PIECE_ID", str2);
c.startService(intent);
}
@Override
public boolean d(String str) {
h.e(str, "bookId");
return BookDownloadManager.a.g(str) != null;
}
@Override
public void e(String str, String str2, String str3) {
h.e(str, "bookId");
h.e(str2, "pieceId");
HtmlArticleActivity.z.a(str, str2, str3);
}
@Override
public boolean f(Activity activity) {
h.e(activity, "activity");
return activity instanceof HtmlArticleActivity;
}
@Override
public void g(String str, boolean z) {
h.e(str, "url");
HtmlArticleActivity.a.b(HtmlArticleActivity.z, str, 0, null, null, null, z, true, 30);
}
@Override
public void h(String str, String str2) {
h.e(str, "bookId");
BookIndexService.c(w.c(), str, str2);
}
@Override
public void i(String str, String str2, String str3, String str4) {
h.e(str, "bookId");
h.e(str2, "pieceId");
h.e(str3, "bookName");
h.e(str4, "pieceName");
BookReadActivity.a.a(BookReadActivity.B, new ReadPosition(str, str2, 0, false, false, null, null, false, null, 508, null), false, str3, str4, 2);
}
@Override
public void j(String str, String str2) {
h.e(str, "url");
HtmlArticleActivity.a.b(HtmlArticleActivity.z, str, 0, null, null, str2, false, false, 110);
}
@Override
public void k(String str, int i2, String str2, String str3, String str4) {
h.e(str, "url");
h.e(str2, "mode");
h.e(str3, "cssPath");
HtmlArticleActivity.a.b(HtmlArticleActivity.z, str, i2, str2, str3, str4, false, false, 96);
}
@Override
public String l(String str) {
if (str == null) {
return null;
}
return d.c.a.m.a.U(str);
}
@Override
public void m(int i2, String str) {
NewsArticleActivity.j0(i2, str);
}
@Override
public void n(String str, ScreenViewHolder screenViewHolder) {
h.e(str, "bookId");
h.e(screenViewHolder, "holder");
BookDownloadManager.a.c(str, screenViewHolder);
}
@Override
public void o(String str, ScreenViewHolder screenViewHolder) {
h.e(str, "bookId");
h.e(screenViewHolder, "holder");
BookDownloadManager.a.k(str, screenViewHolder);
}
@Override
public void p(boolean z, n.i.a.a<n.e> aVar, n.i.a.a<n.e> aVar2) {
h.e(aVar, "onSuccess");
h.e(aVar2, "onFailed");
k<Object>[] kVarArr = SyncKt.a;
h.e(aVar, "onSuccess");
h.e(aVar2, "onFailed");
SyncKt.d(z, aVar, aVar2);
}
@Override
public void q(String str, String str2, String str3, String str4, String str5, String str6) {
h.e(str, "cover");
h.e(str2, "id");
h.e(str3, "detail");
h.e(str4, "title");
h.e(str5, "category");
h.e(str6, "coverPath");
BookDetailActivity.f15651n.a(new BookCaseBook(str, str2, str3, str4, "", str5, str6, false, 128, null));
}
@Override
public void r(String str) {
h.e(str, "id");
h.e(str, "id");
Bundle bundle = new Bundle();
bundle.putString("id", str);
StringBuilder sb = new StringBuilder();
Objects.requireNonNull(AppClient.a);
sb.append("https://appservercn.kingdomsalvation.org");
sb.append("/medias/");
sb.append((Object) s.a());
sb.append("/article/css/guid.css");
bundle.putString("cssUrl", sb.toString());
bundle.putBoolean("noShare", true);
bundle.putBoolean("noChat", true);
e.c0.a.j0(bundle, UseHelpArticleActivity.class);
}
}