* Fix Find in page taking a stale URL-bar query. Suggestion Filter results can lag behind typing, so SearchItem.f was often only the first character(s). Read the live URL-bar text before closing search mode. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix Find in page losing the URL-bar query to IME focus handoff. Prefill the find field before focus and disable select-all during the handoff, refresh Find suggestion rows from the latest filter constraint, and keep clickable adapter data in sync so a stale first-character snapshot is not used. Co-authored-by: Cursor <cursoragent@cursor.com> * Remove obsolete MyFindView focus nested classes. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix Find in page by tracking URL-bar keystrokes and skipping IME handoff. Keep a findQueryCandidate on each URL-bar edit so Find is not stuck on a stale Filter prefix, and when prefilling Find do not focus or reopen the keyboard (that handoff was still replacing the query with one character). Co-authored-by: Cursor <cursoragent@cursor.com> * Drop intermediate Find-in-page workarounds now that the real fix landed. Keep URL-bar findQueryCandidate plus no IME on prefill; remove Filter refresh, live EditText merge, and MyFindView recompile noise. Co-authored-by: Cursor <cursoragent@cursor.com> * Restore the working Find-in-page fix after an over-aggressive cleanup. The slimmed candidate-only path regressed; bring back Filter sync, live URL-bar merge, and MyFindView prefill hardening from the last known-good commit. Co-authored-by: Cursor <cursoragent@cursor.com> * Shrink Find-in-page diff: drop MyFindView recompile noise only. Keep the known-good Find behavior; restore unrelated nested smali to main and hand-patch only the early prefill into MyFindView.smali. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: drop suggestion Filter refresh. findQueryCandidate and MyFindView prefill hardening remain; stale SearchItem.f sync in the adapters is the next layer under test. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: drop live URL-bar Q0 merge in i1. Prefer findQueryCandidate when set, otherwise SearchItem.f. MyFindView prefill hardening stays for the next test. Co-authored-by: Cursor <cursoragent@cursor.com> * Restore live URL-bar Q0 merge in Find i1 after bisect failure. findQueryCandidate alone was not enough; keep reading the EditText before closing search mode. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: drop findQueryCandidate, keep live Q0. Test whether reading the URL bar in i1 is enough without the keystroke-tracked field. Co-authored-by: Cursor <cursoragent@cursor.com> * Restore findQueryCandidate after live-Q0-only bisect failed. Both the keystroke-tracked field and the live URL-bar read are required in i1. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: drop MyFindView early prefill in b(). AnonymousClass9 still prefills without focus/IME and re-applies after 300ms. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: drop MyFindView 300ms re-apply. Prefill still skips focus/IME; empty Find still focuses and shows the keyboard. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: drop setSelectAllOnFocus(false) on prefill. No-focus setText path remains; select-all stays at the default true for later focus. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: simplify i1 merge to prefer longest text. Keep findQueryCandidate and live Q0; drop the startsWith edge-case checks. Co-authored-by: Cursor <cursoragent@cursor.com> * Restore i1 startsWith merge after longest-only bisect failed. Prefer-longest alone can keep a longer stale suggestion over the real query. Co-authored-by: Cursor <cursoragent@cursor.com> * Bisect Find-in-page: drop clearComposingText before live Q0. Test whether reading the URL bar as-is is enough for the i1 merge. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
41457 lines
2 MiB
41457 lines
2 MiB
package com.mycompany.app.web;
|
|
|
|
import android.animation.Animator;
|
|
import android.animation.ValueAnimator;
|
|
import android.app.Activity;
|
|
import android.content.ActivityNotFoundException;
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.ContentValues;
|
|
import android.content.Context;
|
|
import android.content.DialogInterface;
|
|
import android.content.Intent;
|
|
import android.content.res.Configuration;
|
|
import android.content.res.Resources;
|
|
import android.database.Cursor;
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.Canvas;
|
|
import android.graphics.Paint;
|
|
import android.graphics.drawable.BitmapDrawable;
|
|
import android.graphics.drawable.ColorDrawable;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.net.Uri;
|
|
import android.net.http.SslError;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import android.os.Message;
|
|
import android.print.PrintAttributes;
|
|
import android.print.PrintDocumentAdapter;
|
|
import android.print.PrintJob;
|
|
import android.print.PrintManager;
|
|
import android.speech.tts.TextToSpeech;
|
|
import android.speech.tts.UtteranceProgressListener;
|
|
import android.text.TextUtils;
|
|
import android.util.Base64;
|
|
import android.util.LruCache;
|
|
import android.view.ActionMode;
|
|
import android.view.ContextMenu;
|
|
import android.view.GestureDetector;
|
|
import android.view.KeyEvent;
|
|
import android.view.LayoutInflater;
|
|
import android.view.Menu;
|
|
import android.view.MenuItem;
|
|
import android.view.MotionEvent;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewParent;
|
|
import android.view.Window;
|
|
import android.webkit.DownloadListener;
|
|
import android.webkit.GeolocationPermissions;
|
|
import android.webkit.HttpAuthHandler;
|
|
import android.webkit.JavascriptInterface;
|
|
import android.webkit.JsPromptResult;
|
|
import android.webkit.JsResult;
|
|
import android.webkit.MimeTypeMap;
|
|
import android.webkit.PermissionRequest;
|
|
import android.webkit.RenderProcessGoneDetail;
|
|
import android.webkit.SslErrorHandler;
|
|
import android.webkit.URLUtil;
|
|
import android.webkit.ValueCallback;
|
|
import android.webkit.WebChromeClient;
|
|
import android.webkit.WebResourceError;
|
|
import android.webkit.WebResourceRequest;
|
|
import android.webkit.WebResourceResponse;
|
|
import android.webkit.WebSettings;
|
|
import android.webkit.WebStorage;
|
|
import android.webkit.WebView;
|
|
import android.webkit.WebViewClient;
|
|
import android.webkit.WebViewDatabase;
|
|
import android.widget.FrameLayout;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.RelativeLayout;
|
|
import android.widget.TextView;
|
|
import androidx.appcompat.widget.AppCompatTextView;
|
|
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
|
import androidx.core.app.ActivityCompat;
|
|
import androidx.core.view.ViewCompat;
|
|
import androidx.core.view.WindowInsetsAnimationCompat;
|
|
import androidx.core.view.WindowInsetsCompat;
|
|
import androidx.core.view.WindowInsetsControllerCompat;
|
|
import androidx.fragment.app.Fragment;
|
|
import androidx.fragment.app.FragmentTransaction;
|
|
import androidx.mediarouter.app.MediaRouteButton;
|
|
import androidx.recyclerview.widget.ItemTouchHelper;
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import androidx.viewpager2.widget.ViewPager2;
|
|
import androidx.webkit.WebViewFeature;
|
|
import androidx.webkit.internal.WebViewFeatureInternal;
|
|
import androidx.webkit.internal.WebViewGlueCommunicator;
|
|
import androidx.work.impl.workers.a;
|
|
import com.android.billingclient.api.BillingClient;
|
|
import com.bumptech.glide.Glide;
|
|
import com.bumptech.glide.request.transition.Transition;
|
|
import com.google.android.gms.ads.AdError;
|
|
import com.google.android.gms.ads.MobileAds;
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import com.google.android.gms.ads.initialization.InitializationStatus;
|
|
import com.google.android.gms.ads.initialization.OnInitializationCompleteListener;
|
|
import com.google.android.gms.cast.framework.CastButtonFactory;
|
|
import com.google.android.gms.cast.framework.CastContext;
|
|
import com.google.android.gms.cast.framework.CastSession;
|
|
import com.google.android.gms.cast.framework.CastStateListener;
|
|
import com.google.android.gms.cast.framework.IntroductoryOverlay;
|
|
import com.google.android.gms.cast.framework.Session;
|
|
import com.google.android.gms.cast.framework.SessionManagerListener;
|
|
import com.google.android.gms.common.ConnectionResult;
|
|
import com.google.android.gms.common.internal.ImagesContract;
|
|
import com.google.android.gms.internal.cast.zzbk;
|
|
import com.google.android.gms.internal.cast.zzpm;
|
|
import com.google.android.gms.internal.cast.zzr;
|
|
import com.google.android.gms.internal.consent_sdk.zza;
|
|
import com.google.android.gms.internal.consent_sdk.zzay;
|
|
import com.google.android.gms.internal.consent_sdk.zzbe;
|
|
import com.google.android.gms.internal.consent_sdk.zzbq;
|
|
import com.google.android.gms.internal.consent_sdk.zzbs;
|
|
import com.google.android.gms.internal.consent_sdk.zzcz;
|
|
import com.google.android.gms.internal.consent_sdk.zzg;
|
|
import com.google.android.gms.internal.consent_sdk.zzj;
|
|
import com.google.android.gms.security.ProviderInstaller;
|
|
import com.google.android.gms.tasks.OnCanceledListener;
|
|
import com.google.android.gms.tasks.OnCompleteListener;
|
|
import com.google.android.gms.tasks.OnFailureListener;
|
|
import com.google.android.gms.tasks.OnSuccessListener;
|
|
import com.google.android.gms.tasks.Task;
|
|
import com.google.android.material.appbar.AppBarLayout;
|
|
import com.google.android.ump.ConsentForm;
|
|
import com.google.android.ump.ConsentInformation;
|
|
import com.google.android.ump.FormError;
|
|
import com.google.android.ump.UserMessagingPlatform;
|
|
import com.google.api.client.http.HttpStatusCodes;
|
|
import com.google.mlkit.common.MlKitException;
|
|
import com.google.mlkit.vision.barcode.common.Barcode;
|
|
import com.google.mlkit.vision.codescanner.GmsBarcodeScannerOptions;
|
|
import com.google.mlkit.vision.codescanner.internal.zze;
|
|
import com.mycompany.app.async.MyAsyncTask;
|
|
import com.mycompany.app.behavior.MyBehaviorBot;
|
|
import com.mycompany.app.behavior.MyBehaviorTop;
|
|
import com.mycompany.app.cast.CastLocal;
|
|
import com.mycompany.app.cast.CastUtil;
|
|
import com.mycompany.app.cast.ExpandedControlsActivity;
|
|
import com.mycompany.app.compress.Compress;
|
|
import com.mycompany.app.data.DataAlbum;
|
|
import com.mycompany.app.data.DataCmp;
|
|
import com.mycompany.app.data.DataNews;
|
|
import com.mycompany.app.data.DataPdf;
|
|
import com.mycompany.app.data.DataTrans;
|
|
import com.mycompany.app.data.DataUrl;
|
|
import com.mycompany.app.data.book.DataBookAds;
|
|
import com.mycompany.app.data.book.DataBookDc;
|
|
import com.mycompany.app.data.book.DataBookPop;
|
|
import com.mycompany.app.data.book.DataBookTrans;
|
|
import com.mycompany.app.db.DbUtil;
|
|
import com.mycompany.app.db.book.DbBookDc;
|
|
import com.mycompany.app.db.book.DbBookDown;
|
|
import com.mycompany.app.db.book.DbBookPass;
|
|
import com.mycompany.app.db.book.DbBookPms;
|
|
import com.mycompany.app.db.book.DbBookQuick;
|
|
import com.mycompany.app.db.book.DbBookRecent;
|
|
import com.mycompany.app.db.book.DbBookScript;
|
|
import com.mycompany.app.db.book.DbBookTab;
|
|
import com.mycompany.app.db.book.DbBookWeb;
|
|
import com.mycompany.app.db.book.DbTabState;
|
|
import com.mycompany.app.dialog.DialogAdNative;
|
|
import com.mycompany.app.dialog.DialogAllowPopup;
|
|
import com.mycompany.app.dialog.DialogBlockImage;
|
|
import com.mycompany.app.dialog.DialogBlockLink;
|
|
import com.mycompany.app.dialog.DialogCapture;
|
|
import com.mycompany.app.dialog.DialogConfirm;
|
|
import com.mycompany.app.dialog.DialogCreateAlbum;
|
|
import com.mycompany.app.dialog.DialogDeleteBook;
|
|
import com.mycompany.app.dialog.DialogDeleteItem;
|
|
import com.mycompany.app.dialog.DialogDownBlob;
|
|
import com.mycompany.app.dialog.DialogDownFont;
|
|
import com.mycompany.app.dialog.DialogDownPage;
|
|
import com.mycompany.app.dialog.DialogDownUrl;
|
|
import com.mycompany.app.dialog.DialogEditArea;
|
|
import com.mycompany.app.dialog.DialogEditAuth;
|
|
import com.mycompany.app.dialog.DialogEditMemo;
|
|
import com.mycompany.app.dialog.DialogEditShort;
|
|
import com.mycompany.app.dialog.DialogEditText;
|
|
import com.mycompany.app.dialog.DialogEditUrl;
|
|
import com.mycompany.app.dialog.DialogGuideArea;
|
|
import com.mycompany.app.dialog.DialogGuideNoti;
|
|
import com.mycompany.app.dialog.DialogListBook;
|
|
import com.mycompany.app.dialog.DialogLoadEmg;
|
|
import com.mycompany.app.dialog.DialogLoadHmg;
|
|
import com.mycompany.app.dialog.DialogLoadImg;
|
|
import com.mycompany.app.dialog.DialogMenuList;
|
|
import com.mycompany.app.dialog.DialogMenuMain;
|
|
import com.mycompany.app.dialog.DialogNewsLocale;
|
|
import com.mycompany.app.dialog.DialogNewsMenu;
|
|
import com.mycompany.app.dialog.DialogNewsSearch;
|
|
import com.mycompany.app.dialog.DialogOpenType;
|
|
import com.mycompany.app.dialog.DialogPassInfo;
|
|
import com.mycompany.app.dialog.DialogPermission;
|
|
import com.mycompany.app.dialog.DialogPopupMenu;
|
|
import com.mycompany.app.dialog.DialogPreImage;
|
|
import com.mycompany.app.dialog.DialogPreview;
|
|
import com.mycompany.app.dialog.DialogPrintPage;
|
|
import com.mycompany.app.dialog.DialogPrompt;
|
|
import com.mycompany.app.dialog.DialogQuickEdit;
|
|
import com.mycompany.app.dialog.DialogSeekAudio;
|
|
import com.mycompany.app.dialog.DialogSeekBright;
|
|
import com.mycompany.app.dialog.DialogSeekWebText;
|
|
import com.mycompany.app.dialog.DialogSetAdblock;
|
|
import com.mycompany.app.dialog.DialogSetCookie;
|
|
import com.mycompany.app.dialog.DialogSetDark;
|
|
import com.mycompany.app.dialog.DialogSetDesk;
|
|
import com.mycompany.app.dialog.DialogSetDown;
|
|
import com.mycompany.app.dialog.DialogSetFull;
|
|
import com.mycompany.app.dialog.DialogSetImage;
|
|
import com.mycompany.app.dialog.DialogSetJava;
|
|
import com.mycompany.app.dialog.DialogSetMsg;
|
|
import com.mycompany.app.dialog.DialogSetPopup;
|
|
import com.mycompany.app.dialog.DialogSetPrivacy;
|
|
import com.mycompany.app.dialog.DialogSetRate;
|
|
import com.mycompany.app.dialog.DialogSetRead;
|
|
import com.mycompany.app.dialog.DialogSetScrFil;
|
|
import com.mycompany.app.dialog.DialogSetTmem;
|
|
import com.mycompany.app.dialog.DialogSetTrans;
|
|
import com.mycompany.app.dialog.DialogSetTts;
|
|
import com.mycompany.app.dialog.DialogSetUrl;
|
|
import com.mycompany.app.dialog.DialogSetUseTts;
|
|
import com.mycompany.app.dialog.DialogSetVpn;
|
|
import com.mycompany.app.dialog.DialogTabEdit;
|
|
import com.mycompany.app.dialog.DialogTabMain;
|
|
import com.mycompany.app.dialog.DialogTabMenu;
|
|
import com.mycompany.app.dialog.DialogTabMini;
|
|
import com.mycompany.app.dialog.DialogTransLang;
|
|
import com.mycompany.app.dialog.DialogTransMsg;
|
|
import com.mycompany.app.dialog.DialogUpdateScript;
|
|
import com.mycompany.app.dialog.DialogUrlLink;
|
|
import com.mycompany.app.dialog.DialogVideoList;
|
|
import com.mycompany.app.dialog.DialogVideoMenu;
|
|
import com.mycompany.app.dialog.DialogViewIp;
|
|
import com.mycompany.app.dialog.DialogViewRead;
|
|
import com.mycompany.app.dialog.DialogViewSrc;
|
|
import com.mycompany.app.dialog.DialogViewTrans;
|
|
import com.mycompany.app.dialog.DialogWebBookEdit;
|
|
import com.mycompany.app.dialog.DialogWebBookList;
|
|
import com.mycompany.app.dialog.DialogWebCerti;
|
|
import com.mycompany.app.dialog.DialogWebSelect;
|
|
import com.mycompany.app.dialog.DialogWebView;
|
|
import com.mycompany.app.editor.EditorActivity;
|
|
import com.mycompany.app.help.KeyHelper;
|
|
import com.mycompany.app.help.PayHelper;
|
|
import com.mycompany.app.image.ImageSizeListener;
|
|
import com.mycompany.app.main.BitmapUtil;
|
|
import com.mycompany.app.main.MainActivity;
|
|
import com.mycompany.app.main.MainApp;
|
|
import com.mycompany.app.main.MainConst;
|
|
import com.mycompany.app.main.MainDownAdapter;
|
|
import com.mycompany.app.main.MainDownSvc;
|
|
import com.mycompany.app.main.MainFilterSvc;
|
|
import com.mycompany.app.main.MainItem;
|
|
import com.mycompany.app.main.MainListLoader;
|
|
import com.mycompany.app.main.MainListView;
|
|
import com.mycompany.app.main.MainListView2;
|
|
import com.mycompany.app.main.MainNative;
|
|
import com.mycompany.app.main.MainScriptSvc;
|
|
import com.mycompany.app.main.MainSelectAdapter;
|
|
import com.mycompany.app.main.MainTransNews;
|
|
import com.mycompany.app.main.MainTxtView;
|
|
import com.mycompany.app.main.MainUri;
|
|
import com.mycompany.app.main.MainUrl;
|
|
import com.mycompany.app.main.MainUtil;
|
|
import com.mycompany.app.main.MainWebDestroy;
|
|
import com.mycompany.app.main.image.MainImagePreview;
|
|
import com.mycompany.app.main.image.MainImageQuick;
|
|
import com.mycompany.app.main.image.MainImageWallpaper;
|
|
import com.mycompany.app.main.list.MainListAgent;
|
|
import com.mycompany.app.main.list.MainListAlbum;
|
|
import com.mycompany.app.main.list.MainListCast;
|
|
import com.mycompany.app.main.list.MainListDown;
|
|
import com.mycompany.app.main.list.MainListMemo;
|
|
import com.mycompany.app.pref.PrefAlbum;
|
|
import com.mycompany.app.pref.PrefEditor;
|
|
import com.mycompany.app.pref.PrefFloat;
|
|
import com.mycompany.app.pref.PrefList;
|
|
import com.mycompany.app.pref.PrefMain;
|
|
import com.mycompany.app.pref.PrefPath;
|
|
import com.mycompany.app.pref.PrefPdf;
|
|
import com.mycompany.app.pref.PrefRead;
|
|
import com.mycompany.app.pref.PrefSecret;
|
|
import com.mycompany.app.pref.PrefSet;
|
|
import com.mycompany.app.pref.PrefSync;
|
|
import com.mycompany.app.pref.PrefTts;
|
|
import com.mycompany.app.pref.PrefVideo;
|
|
import com.mycompany.app.pref.PrefWeb;
|
|
import com.mycompany.app.pref.PrefZone;
|
|
import com.mycompany.app.pref.PrefZtri;
|
|
import com.mycompany.app.pref.PrefZtwo;
|
|
import com.mycompany.app.pull.MyPullView;
|
|
import com.mycompany.app.quick.QuickAdapter;
|
|
import com.mycompany.app.quick.QuickAdd;
|
|
import com.mycompany.app.quick.QuickControl;
|
|
import com.mycompany.app.quick.QuickDragHelper;
|
|
import com.mycompany.app.quick.QuickNews;
|
|
import com.mycompany.app.quick.QuickSchEdit;
|
|
import com.mycompany.app.quick.QuickSearch;
|
|
import com.mycompany.app.quick.QuickSubView;
|
|
import com.mycompany.app.quick.QuickView;
|
|
import com.mycompany.app.quick.TabDragHelper;
|
|
import com.mycompany.app.script.Script;
|
|
import com.mycompany.app.script.ScriptCache;
|
|
import com.mycompany.app.script.ScriptCriteria;
|
|
import com.mycompany.app.script.ScriptResource;
|
|
import com.mycompany.app.script.WebViewXmlHttpRequest;
|
|
import com.mycompany.app.setting.SettingAdvanced;
|
|
import com.mycompany.app.setting.SettingClean;
|
|
import com.mycompany.app.setting.SettingCustom;
|
|
import com.mycompany.app.setting.SettingDown;
|
|
import com.mycompany.app.setting.SettingGesture;
|
|
import com.mycompany.app.setting.SettingListAdapter;
|
|
import com.mycompany.app.setting.SettingMain;
|
|
import com.mycompany.app.setting.SettingMenu;
|
|
import com.mycompany.app.setting.SettingNews;
|
|
import com.mycompany.app.setting.SettingPay;
|
|
import com.mycompany.app.setting.SettingPrivacy;
|
|
import com.mycompany.app.setting.SettingQuick;
|
|
import com.mycompany.app.soulbrowser.R;
|
|
import com.mycompany.app.view.GlideApp;
|
|
import com.mycompany.app.view.GlideRequest;
|
|
import com.mycompany.app.view.GlideRequests;
|
|
import com.mycompany.app.view.MyAdNative;
|
|
import com.mycompany.app.view.MyAddrView;
|
|
import com.mycompany.app.view.MyBarFrame;
|
|
import com.mycompany.app.view.MyBarView;
|
|
import com.mycompany.app.view.MyButtonCheck;
|
|
import com.mycompany.app.view.MyButtonImage;
|
|
import com.mycompany.app.view.MyButtonText;
|
|
import com.mycompany.app.view.MyCoverView;
|
|
import com.mycompany.app.view.MyDialogBottom;
|
|
import com.mycompany.app.view.MyDialogLinear;
|
|
import com.mycompany.app.view.MyEditAuto;
|
|
import com.mycompany.app.view.MyEditPure;
|
|
import com.mycompany.app.view.MyEngineMenu;
|
|
import com.mycompany.app.view.MyFadeFrame;
|
|
import com.mycompany.app.view.MyFadeListener;
|
|
import com.mycompany.app.view.MyFadeRelative;
|
|
import com.mycompany.app.view.MyFindView;
|
|
import com.mycompany.app.view.MyGesNoti;
|
|
import com.mycompany.app.view.MyGlideTarget;
|
|
import com.mycompany.app.view.MyIconView;
|
|
import com.mycompany.app.view.MyLineText;
|
|
import com.mycompany.app.view.MyManagerGrid;
|
|
import com.mycompany.app.view.MyManagerLinear;
|
|
import com.mycompany.app.view.MyPopupAdapter;
|
|
import com.mycompany.app.view.MyPopupMenu;
|
|
import com.mycompany.app.view.MyProgressBar;
|
|
import com.mycompany.app.view.MyProgressDrawable;
|
|
import com.mycompany.app.view.MyRecyclerView;
|
|
import com.mycompany.app.view.MyRoundFrame;
|
|
import com.mycompany.app.view.MyRoundImage;
|
|
import com.mycompany.app.view.MyScrollBar;
|
|
import com.mycompany.app.view.MyScrollNavi;
|
|
import com.mycompany.app.view.MySnackbar;
|
|
import com.mycompany.app.view.MyTabFrame;
|
|
import com.mycompany.app.view.MyTouchFrame;
|
|
import com.mycompany.app.view.MyWebBody;
|
|
import com.mycompany.app.view.MyWebCoord;
|
|
import com.mycompany.app.view.MyWebSafe;
|
|
import com.mycompany.app.web.WebClean;
|
|
import com.mycompany.app.web.WebCrashView;
|
|
import com.mycompany.app.web.WebEmgLoad;
|
|
import com.mycompany.app.web.WebGridDialog;
|
|
import com.mycompany.app.web.WebHmgLoad;
|
|
import com.mycompany.app.web.WebLoadTask;
|
|
import com.mycompany.app.web.WebNestFrame;
|
|
import com.mycompany.app.web.WebNestView;
|
|
import com.mycompany.app.web.WebReadTask;
|
|
import com.mycompany.app.web.WebSearchAdapter;
|
|
import com.mycompany.app.web.WebSslView;
|
|
import com.mycompany.app.web.WebTabAdapter;
|
|
import com.mycompany.app.web.WebTabBarAdapter;
|
|
import com.mycompany.app.web.WebTabBarSubView;
|
|
import com.mycompany.app.web.WebVideoFrame;
|
|
import com.mycompany.app.web.WebVideoPip;
|
|
import com.mycompany.app.web.WebViewActivity;
|
|
import com.mycompany.app.widget.WidgetSearchProviderDark;
|
|
import com.mycompany.app.widget.WidgetSearchProviderLight;
|
|
import com.mycompany.app.wview.WebAreaMenu;
|
|
import com.mycompany.app.wview.WebAreaText;
|
|
import com.mycompany.app.wview.WebAreaView;
|
|
import com.mycompany.app.wview.WebCastView;
|
|
import com.mycompany.app.wview.WebDownView;
|
|
import com.mycompany.app.wview.WebFltView;
|
|
import com.mycompany.app.wview.WebMoveText;
|
|
import com.mycompany.app.wview.WebTtsView;
|
|
import com.mycompany.app.wview.WebUpView;
|
|
import com.nostra13.universalimageloader.core.ImageLoader;
|
|
import com.nostra13.universalimageloader.utils.MemoryCacheUtils;
|
|
import java.io.BufferedReader;
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.File;
|
|
import java.io.InputStream;
|
|
import java.io.InputStreamReader;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.lang.ref.WeakReference;
|
|
import java.net.URLDecoder;
|
|
import java.net.URLEncoder;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.util.ArrayList;
|
|
import java.util.Comparator;
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Locale;
|
|
import java.util.Map;
|
|
import java.util.Queue;
|
|
import java.util.Scanner;
|
|
import java.util.Set;
|
|
import java.util.concurrent.Executor;
|
|
import java.util.concurrent.ExecutorService;
|
|
import java.util.concurrent.Executors;
|
|
import kotlin.KotlinVersion;
|
|
import org.chromium.support_lib_boundary.WebStorageBoundaryInterface;
|
|
import org.chromium.support_lib_boundary.util.BoundaryInterfaceReflectionUtil;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class WebViewActivity extends MainActivity {
|
|
public static final int Fo;
|
|
public static final int Go;
|
|
public static final int Ho;
|
|
public static int Io;
|
|
public GlideRequests A1;
|
|
public int A2;
|
|
public QuickSearch A3;
|
|
public String A4;
|
|
public int A5;
|
|
public DialogCapture A6;
|
|
public GeolocationPermissions.Callback A7;
|
|
public String A8;
|
|
public boolean A9;
|
|
public boolean Aa;
|
|
public WebCastView Ab;
|
|
public boolean Ac;
|
|
public boolean Ad;
|
|
public boolean Ae;
|
|
public WebTabAdapter.WebTabItem Af;
|
|
public PrevPageListener Ag;
|
|
public String Ah;
|
|
public int Ai;
|
|
public boolean Aj;
|
|
public boolean Ak;
|
|
public boolean Al;
|
|
public boolean Am;
|
|
public boolean An;
|
|
public String Ao;
|
|
public zzj B1;
|
|
public boolean B2;
|
|
public QuickControl B3;
|
|
public int B4;
|
|
public boolean B5;
|
|
public DialogDownPage B6;
|
|
public int B7;
|
|
public String B8;
|
|
public boolean B9;
|
|
public boolean Ba;
|
|
public MediaRouteButton Bb;
|
|
public boolean Bc;
|
|
public boolean Bd;
|
|
public int Be;
|
|
public WebTabAdapter.WebTabItem Bf;
|
|
public WebNestFrame Bg;
|
|
public String Bh;
|
|
public boolean Bj;
|
|
public String Bk;
|
|
public String Bl;
|
|
public boolean Bm;
|
|
public boolean Bo;
|
|
public boolean C1;
|
|
public MyFindView C2;
|
|
public QuickSchEdit C3;
|
|
public boolean C4;
|
|
public String C5;
|
|
public DialogPrintPage C6;
|
|
public int C7;
|
|
public DbTabState.StateItem C8;
|
|
public boolean C9;
|
|
public GestureDetector Ca;
|
|
public FrameLayout Cb;
|
|
public boolean Cc;
|
|
public boolean Cd;
|
|
public int Ce;
|
|
public WebNestFrame Cf;
|
|
public boolean Cg;
|
|
public int Ch;
|
|
public boolean Ci;
|
|
public String Cj;
|
|
public String Ck;
|
|
public String Cl;
|
|
public boolean Cm;
|
|
public int Cn;
|
|
public long D1;
|
|
public WebSearchAdapter D2;
|
|
public int D3;
|
|
public boolean D4;
|
|
public boolean D5;
|
|
public DialogSetTrans D6;
|
|
public DialogPassInfo D7;
|
|
public String D8;
|
|
public boolean D9;
|
|
public boolean Da;
|
|
public View Db;
|
|
public boolean Dc;
|
|
public boolean Dd;
|
|
public boolean De;
|
|
public WebNestFrame Df;
|
|
public boolean Dg;
|
|
public int Dh;
|
|
public String Dj;
|
|
public String Dk;
|
|
public String Dl;
|
|
public boolean Dm;
|
|
public boolean Dn;
|
|
public boolean Do;
|
|
public boolean E1;
|
|
public SearchTask E2;
|
|
public DialogDeleteItem E3;
|
|
public boolean E4;
|
|
public int E5;
|
|
public DialogTransLang E6;
|
|
public DialogWebSelect E7;
|
|
public boolean E8;
|
|
public boolean E9;
|
|
public boolean Ea;
|
|
public zzbk Eb;
|
|
public boolean Ec;
|
|
public int Ed;
|
|
public int Ee;
|
|
public WebNestFrame Ef;
|
|
public boolean Eg;
|
|
public String Eh;
|
|
public boolean Ei;
|
|
public boolean Ej;
|
|
public String Ek;
|
|
public boolean El;
|
|
public boolean Em;
|
|
public String En;
|
|
public boolean Eo;
|
|
public boolean F1;
|
|
public DialogSetMsg F2;
|
|
public DialogQuickEdit F3;
|
|
public boolean F4;
|
|
public boolean F5;
|
|
public DialogTransMsg F6;
|
|
public DialogMenuMain F7;
|
|
public String F8;
|
|
public String F9;
|
|
public String Fa;
|
|
public WebNestView Fb;
|
|
public boolean Fc;
|
|
public int Fd;
|
|
public int Fe;
|
|
public boolean Ff;
|
|
public int Fg;
|
|
public String Fh;
|
|
public String Fi;
|
|
public String Fj;
|
|
public String Fk;
|
|
public boolean Fl;
|
|
public int Fm;
|
|
public boolean Fn;
|
|
public boolean G1;
|
|
public MyProgressBar G2;
|
|
public QuickSubView G3;
|
|
public boolean G4;
|
|
public boolean G5;
|
|
public DialogViewTrans G6;
|
|
public DialogMenuList G7;
|
|
public boolean G8;
|
|
public boolean G9;
|
|
public ArrayList Ga;
|
|
public WebNestView Gb;
|
|
public boolean Gc;
|
|
public boolean Gd;
|
|
public String Ge;
|
|
public int Gf;
|
|
public boolean Gg;
|
|
public String Gh;
|
|
public String Gi;
|
|
public boolean Gj;
|
|
public int Gk;
|
|
public WebTransControl Gl;
|
|
public int Gm;
|
|
public int Gn;
|
|
public boolean H1;
|
|
public WebNestFrame H2;
|
|
public DialogDeleteItem H3;
|
|
public int H4;
|
|
public int H5;
|
|
public int H6;
|
|
public View H7;
|
|
public boolean H8;
|
|
public EventReceiver H9;
|
|
public String Ha;
|
|
public int Hb;
|
|
public boolean Hc;
|
|
public boolean Hd;
|
|
public String He;
|
|
public WebNestFrame Hf;
|
|
public boolean Hg;
|
|
public boolean Hh;
|
|
public String Hi;
|
|
public boolean Hj;
|
|
public String Hk;
|
|
public View Hl;
|
|
public PermissionRequest Hm;
|
|
public int Hn;
|
|
public boolean I1;
|
|
public WebNestView I2;
|
|
public DialogDeleteItem I3;
|
|
public boolean I4;
|
|
public boolean I5;
|
|
public boolean I6;
|
|
public boolean I7;
|
|
public boolean I8;
|
|
public boolean I9;
|
|
public String Ia;
|
|
public String Ib;
|
|
public boolean Ic;
|
|
public TabAddListener Id;
|
|
public boolean Ie;
|
|
public int If;
|
|
public int Ig;
|
|
public String Ih;
|
|
public boolean Ii;
|
|
public String Ij;
|
|
public String Ik;
|
|
public boolean Il;
|
|
public String Im;
|
|
public int In;
|
|
public boolean J1;
|
|
public boolean J2;
|
|
public DialogTabEdit J3;
|
|
public int J4;
|
|
public boolean J5;
|
|
public boolean J6;
|
|
public boolean J7;
|
|
public boolean J8;
|
|
public boolean J9;
|
|
public String Ja;
|
|
public String Jb;
|
|
public boolean Jc;
|
|
public boolean Jd;
|
|
public int Je;
|
|
public WebNestFrame Jf;
|
|
public boolean Jg;
|
|
public boolean Jh;
|
|
public String Ji;
|
|
public boolean Jj;
|
|
public String Jk;
|
|
public String Jl;
|
|
public GeolocationPermissions.Callback Jm;
|
|
public boolean Jn;
|
|
public boolean K1;
|
|
public boolean K2;
|
|
public int K3;
|
|
public boolean K4;
|
|
public boolean K5;
|
|
public boolean K6;
|
|
public DialogAdNative K7;
|
|
public String K8;
|
|
public int K9;
|
|
public String Ka;
|
|
public boolean Kb;
|
|
public boolean Kc;
|
|
public boolean Kd;
|
|
public int Ke;
|
|
public int Kf;
|
|
public int Kg;
|
|
public boolean Kh;
|
|
public boolean Ki;
|
|
public String Kj;
|
|
public long Kk;
|
|
public String Kl;
|
|
public String Km;
|
|
public String Kn;
|
|
public int[] L1;
|
|
public boolean L2;
|
|
public boolean L3;
|
|
public boolean L4;
|
|
public boolean L5;
|
|
public boolean L6;
|
|
public boolean L7;
|
|
public String L8;
|
|
public boolean L9;
|
|
public String La;
|
|
public boolean Lb;
|
|
public boolean Lc;
|
|
public boolean Ld;
|
|
public boolean Le;
|
|
public WebNestFrame Lf;
|
|
public int Lg;
|
|
public String Lh;
|
|
public boolean Li;
|
|
public String Lj;
|
|
public int Lk;
|
|
public String Ll;
|
|
public String Lm;
|
|
public String Ln;
|
|
public int[] M1;
|
|
public MyPullView M2;
|
|
public boolean M3;
|
|
public int M4;
|
|
public ValueCallback M5;
|
|
public String M6;
|
|
public boolean M7;
|
|
public String M8;
|
|
public float M9;
|
|
public boolean Ma;
|
|
public boolean Mb;
|
|
public boolean Mc;
|
|
public WebNestFrame Md;
|
|
public int Me;
|
|
public WebTabAdapter.WebTabItem Mf;
|
|
public boolean Mg;
|
|
public String Mi;
|
|
public boolean Mj;
|
|
public String Mk;
|
|
public String Ml;
|
|
public String Mm;
|
|
public String Mn;
|
|
public boolean N1;
|
|
public List N2;
|
|
public int N3;
|
|
public int N4;
|
|
public ValueCallback N5;
|
|
public String N6;
|
|
public DialogTabMain N7;
|
|
public String N8;
|
|
public float N9;
|
|
public WebFltView Na;
|
|
public WebFltView Nb;
|
|
public boolean Nc;
|
|
public String Nd;
|
|
public int Ne;
|
|
public ArrayList Nf;
|
|
public int Ng;
|
|
public String Nh;
|
|
public String Ni;
|
|
public boolean Nj;
|
|
public List Nk;
|
|
public boolean Nl;
|
|
public String Nm;
|
|
public String Nn;
|
|
public boolean O1;
|
|
public List O2;
|
|
public int O3;
|
|
public int O4;
|
|
public ValueCallback O5;
|
|
public String O6;
|
|
public DialogTabMini O7;
|
|
public boolean O8;
|
|
public boolean O9;
|
|
public MyPopupMenu Oa;
|
|
public RelativeLayout Ob;
|
|
public boolean Oc;
|
|
public boolean Od;
|
|
public String Oe;
|
|
public ArrayList Of;
|
|
public String Og;
|
|
public boolean Oh;
|
|
public boolean Oi;
|
|
public String Oj;
|
|
public int Ok;
|
|
public int Ol;
|
|
public int Om;
|
|
public List On;
|
|
public boolean P1;
|
|
public int P2;
|
|
public WebUpView P3;
|
|
public int P4;
|
|
public Uri P5;
|
|
public String P6;
|
|
public boolean P7;
|
|
public List P8;
|
|
public boolean P9;
|
|
public String Pa;
|
|
public View Pb;
|
|
public boolean Pc;
|
|
public boolean Pd;
|
|
public String Pe;
|
|
public int Pf;
|
|
public int Pg;
|
|
public String Ph;
|
|
public List Pi;
|
|
public String Pj;
|
|
public ArrayList Pk;
|
|
public int Pl;
|
|
public int Pm;
|
|
public String Pn;
|
|
public boolean Q1;
|
|
public WebNestFrame Q2;
|
|
public boolean Q3;
|
|
public int Q4;
|
|
public int Q5;
|
|
public boolean Q6;
|
|
public boolean Q7;
|
|
public List Q8;
|
|
public boolean Q9;
|
|
public boolean Qa;
|
|
public AppCompatTextView Qb;
|
|
public String Qc;
|
|
public boolean Qd;
|
|
public boolean Qe;
|
|
public ArrayList Qf;
|
|
public int Qg;
|
|
public String Qh;
|
|
public String Qi;
|
|
public boolean Qj;
|
|
public boolean Qk;
|
|
public boolean Ql;
|
|
public String Qm;
|
|
public String Qn;
|
|
public boolean R1;
|
|
public WebNestFrame R2;
|
|
public MyIconView R3;
|
|
public boolean R4;
|
|
public WebVideoFrame R5;
|
|
public String R6;
|
|
public DialogLoadImg R7;
|
|
public List R8;
|
|
public float[] R9;
|
|
public TextToSpeech Ra;
|
|
public ValueAnimator Rb;
|
|
public WebNestFrame Rc;
|
|
public boolean Rd;
|
|
public int Re;
|
|
public ArrayList Rf;
|
|
public WebView Rg;
|
|
public String Rh;
|
|
public String Ri;
|
|
public boolean Rj;
|
|
public String Rk;
|
|
public int Rl;
|
|
public String Rm;
|
|
public String Rn;
|
|
public String S1;
|
|
public boolean S2;
|
|
public MyIconView S3;
|
|
public boolean S4;
|
|
public WebVideoPip S5;
|
|
public int S6;
|
|
public DialogLoadEmg S7;
|
|
public int S8;
|
|
public float[] S9;
|
|
public boolean Sa;
|
|
public ValueAnimator Sb;
|
|
public String Sc;
|
|
public boolean Sd;
|
|
public int Se;
|
|
public TabLimitListener Sf;
|
|
public String Sg;
|
|
public String Sh;
|
|
public Bitmap Si;
|
|
public String Sj;
|
|
public int Sk;
|
|
public int Sl;
|
|
public String Sm;
|
|
public String Sn;
|
|
public boolean T1;
|
|
public int T2;
|
|
public WebDownView T3;
|
|
public int T4;
|
|
public boolean T5;
|
|
public WebFltView T6;
|
|
public DialogLoadHmg T7;
|
|
public boolean T8;
|
|
public boolean T9;
|
|
public boolean Ta;
|
|
public MainFilterSvc Tb;
|
|
public boolean Tc;
|
|
public TabAddListener Td;
|
|
public boolean Te;
|
|
public TabViewListener Tf;
|
|
public WebNestView Tg;
|
|
public boolean Th;
|
|
public boolean Ti;
|
|
public String Tj;
|
|
public List Tk;
|
|
public String Tl;
|
|
public String Tm;
|
|
public boolean Tn;
|
|
public boolean U1;
|
|
public WebNestFrame U2;
|
|
public int U3;
|
|
public boolean U4;
|
|
public MyPopupMenu U5;
|
|
public View U6;
|
|
public WebGridDialog U7;
|
|
public boolean U8;
|
|
public boolean U9;
|
|
public boolean Ua;
|
|
public MainScriptSvc Ub;
|
|
public boolean Uc;
|
|
public boolean Ud;
|
|
public int Ue;
|
|
public ArrayList Uf;
|
|
public String Ug;
|
|
public boolean Uh;
|
|
public boolean Ui;
|
|
public boolean Uj;
|
|
public boolean Uk;
|
|
public boolean Ul;
|
|
public String Um;
|
|
public String Un;
|
|
public boolean V1;
|
|
public WebNestFrame V2;
|
|
public int V3;
|
|
public boolean V4;
|
|
public View V5;
|
|
public WebTransControl V6;
|
|
public WebEmgDialog V7;
|
|
public boolean V8;
|
|
public float V9;
|
|
public float Va;
|
|
public long Vb;
|
|
public boolean Vc;
|
|
public boolean Vd;
|
|
public int Ve;
|
|
public WebNestFrame Vf;
|
|
public String Vg;
|
|
public boolean Vh;
|
|
public WebTabAdapter.WebTabItem Vi;
|
|
public boolean Vj;
|
|
public String Vk;
|
|
public int Vl;
|
|
public String Vm;
|
|
public List Vn;
|
|
public Object W1;
|
|
public boolean W2;
|
|
public boolean W3;
|
|
public boolean W4;
|
|
public MyEngineMenu W5;
|
|
public FrameLayout W6;
|
|
public WebHmgDialog W7;
|
|
public boolean W8;
|
|
public float W9;
|
|
public float Wa;
|
|
public String Wb;
|
|
public boolean Wc;
|
|
public WebNestFrame Wd;
|
|
public boolean We;
|
|
public WebNestFrame Wf;
|
|
public String Wg;
|
|
public boolean Wh;
|
|
public Bitmap Wi;
|
|
public String Wj;
|
|
public String Wk;
|
|
public int Wl;
|
|
public String Wm;
|
|
public List Wn;
|
|
public boolean X1;
|
|
public MyTouchFrame X2;
|
|
public DialogVideoMenu X3;
|
|
public int X4;
|
|
public MyPopupMenu X5;
|
|
public MyPopupMenu X6;
|
|
public DialogVideoList X7;
|
|
public String X8;
|
|
public int X9;
|
|
public String Xa;
|
|
public ScriptCache Xb;
|
|
public TabAddListener Xc;
|
|
public String Xd;
|
|
public String Xe;
|
|
public PrevPageListener Xf;
|
|
public String Xg;
|
|
public boolean Xh;
|
|
public int Xi;
|
|
public String Xj;
|
|
public String Xk;
|
|
public boolean Xl;
|
|
public String Xm;
|
|
public int Xn;
|
|
public boolean Y1;
|
|
public MyRecyclerView Y2;
|
|
public boolean Y3;
|
|
public int Y4;
|
|
public MyPopupMenu Y5;
|
|
public MyPopupMenu aA;
|
|
/** Toggle + drag-reorder dialog for the tab-bar long-press menu. */
|
|
public DialogSetPopup bA;
|
|
/** Toggle + drag-reorder dialog for the URL-bar long-press menu. */
|
|
public DialogSetPopup cA;
|
|
/** Toggle + drag-reorder dialog for the text-selection ActionMode menu. */
|
|
public DialogSetPopup dA;
|
|
public DialogSetDesk Y6;
|
|
public DialogDownFont Y7;
|
|
public boolean Y8;
|
|
public float Y9;
|
|
public String Ya;
|
|
public DialogSetMsg Yb;
|
|
public boolean Yc;
|
|
public boolean Yd;
|
|
public String Ye;
|
|
public boolean Yf;
|
|
public int Yg;
|
|
public boolean Yh;
|
|
public WebVideoFrame Yi;
|
|
public String Yj;
|
|
public File Yk;
|
|
public boolean Yl;
|
|
public boolean Ym;
|
|
public boolean Yn;
|
|
public boolean Z1;
|
|
public MyButtonImage Z2;
|
|
public MyIconView Z3;
|
|
public boolean Z4;
|
|
public DialogTabMenu Z5;
|
|
public DialogSetUrl Z6;
|
|
public DialogPreview Z7;
|
|
public int Z8;
|
|
public float Z9;
|
|
public WebTtsView Za;
|
|
public DialogUpdateScript Zb;
|
|
public WebNestFrame Zc;
|
|
public boolean Zd;
|
|
public boolean Ze;
|
|
public String Zf;
|
|
public String Zg;
|
|
public boolean Zh;
|
|
public int Zi;
|
|
public long Zj;
|
|
public Bitmap Zk;
|
|
public String Zl;
|
|
public int Zm;
|
|
public HashMap Zn;
|
|
public boolean a2;
|
|
public int a3;
|
|
public MyIconView a4;
|
|
public boolean a5;
|
|
public MyPopupMenu a6;
|
|
public DialogOpenType a7;
|
|
public DialogPreImage a8;
|
|
public boolean a9;
|
|
public int aa;
|
|
public WebFltView ab;
|
|
public int ac;
|
|
public String ad;
|
|
public boolean ae;
|
|
public int af;
|
|
public WebNestFrame.PageItem ag;
|
|
public String ah;
|
|
public boolean ai;
|
|
public boolean aj;
|
|
public boolean ak;
|
|
public boolean al;
|
|
public boolean am;
|
|
public View an;
|
|
public HashSet ao;
|
|
public boolean b2;
|
|
public WebTabBarAdapter b3;
|
|
public WebDownView b4;
|
|
public int b5;
|
|
public MyPopupMenu b6;
|
|
public DialogPopupMenu b7;
|
|
public boolean b8;
|
|
public String b9;
|
|
public int ba;
|
|
public WebFltView bb;
|
|
public boolean bd;
|
|
public boolean be;
|
|
public int bf;
|
|
public int bg;
|
|
public int bh;
|
|
public boolean bi;
|
|
public String bj;
|
|
public boolean bk;
|
|
public String bl;
|
|
public QuickNews bm;
|
|
public boolean bn;
|
|
public KeyHelper c2;
|
|
public boolean c3;
|
|
public int c4;
|
|
public boolean c5;
|
|
public DialogNewsMenu c6;
|
|
public DialogWebView c7;
|
|
public DialogSeekBright c8;
|
|
public int c9;
|
|
public boolean ca;
|
|
public WebFltView cb;
|
|
public Intent cc;
|
|
public boolean cd;
|
|
public boolean ce;
|
|
public boolean cf;
|
|
public boolean cg;
|
|
public ArrayList ch;
|
|
public boolean ci;
|
|
public Message cj;
|
|
public String ck;
|
|
public long cl;
|
|
public int cm;
|
|
public boolean cn;
|
|
public MainWebDestroy d2;
|
|
public WebTabBarSubView d3;
|
|
public DialogSetRate d4;
|
|
public int d5;
|
|
public boolean d6;
|
|
public String d7;
|
|
public DialogSeekWebText d8;
|
|
public int d9;
|
|
public MyFadeFrame da;
|
|
public WebFltView db;
|
|
public CastUtil dc;
|
|
public boolean dd;
|
|
public TabAddListener de;
|
|
public String df;
|
|
public String dg;
|
|
public String dh;
|
|
public boolean di;
|
|
public Message dj;
|
|
public boolean dk;
|
|
public boolean dl;
|
|
public MainTransNews dm;
|
|
public String dn;
|
|
public MyWebBody e2;
|
|
public TabDragHelper e3;
|
|
public MyScrollNavi e4;
|
|
public int e5;
|
|
public DialogNewsLocale e6;
|
|
public DialogAllowPopup e7;
|
|
public DialogSetFull e8;
|
|
public int e9;
|
|
public float ea;
|
|
public WebFltView eb;
|
|
public boolean ec;
|
|
public boolean ed;
|
|
public boolean ee;
|
|
public String ef;
|
|
public boolean eg;
|
|
public String eh;
|
|
public boolean ei;
|
|
public Message ej;
|
|
public String ek;
|
|
public String el;
|
|
public boolean em;
|
|
public boolean en;
|
|
public long eo;
|
|
public MyWebCoord f2;
|
|
public ItemTouchHelper f3;
|
|
public MyScrollNavi f4;
|
|
public int f5;
|
|
public DialogNewsSearch f6;
|
|
public DialogBlockLink f7;
|
|
public DialogSetDark f8;
|
|
public int f9;
|
|
public boolean fa;
|
|
public MyPopupMenu fb;
|
|
public boolean fc;
|
|
public boolean fd;
|
|
public boolean fe;
|
|
public boolean ff;
|
|
public String fg;
|
|
public String fh;
|
|
|
|
/* renamed from: fi, reason: collision with root package name */
|
|
public boolean f19722fi;
|
|
public Message fj;
|
|
public boolean fk;
|
|
public String fl;
|
|
public QuickAdapter.QuickItem fm;
|
|
public int fn;
|
|
public int fo;
|
|
public boolean g1;
|
|
public AppBarLayout g2;
|
|
public boolean g3;
|
|
public MyGesNoti g4;
|
|
public int g5;
|
|
public MyPopupMenu g6;
|
|
public DialogBlockImage g7;
|
|
public DialogConfirm g8;
|
|
public int g9;
|
|
public int ga;
|
|
public DialogDeleteBook gb;
|
|
public Bitmap gc;
|
|
public int gd;
|
|
public WebNestFrame ge;
|
|
public int gf;
|
|
public boolean gg;
|
|
public boolean gh;
|
|
public boolean gi;
|
|
public Message gj;
|
|
public List gk;
|
|
public String gl;
|
|
public int gm;
|
|
public String gn;
|
|
|
|
/* renamed from: go, reason: collision with root package name */
|
|
public String f19723go;
|
|
public boolean h1;
|
|
public View h2;
|
|
public int h3;
|
|
public int h4;
|
|
public int h5;
|
|
public DialogConfirm h6;
|
|
public WebMoveText h7;
|
|
public DialogSetUseTts h8;
|
|
public boolean h9;
|
|
public int ha;
|
|
public DialogEditMemo hb;
|
|
public String hc;
|
|
public int hd;
|
|
public String he;
|
|
public int hf;
|
|
public PrevBackListener hg;
|
|
public boolean hh;
|
|
public boolean hi;
|
|
public String hj;
|
|
public int hk;
|
|
public String hl;
|
|
public boolean hm;
|
|
public String hn;
|
|
public String ho;
|
|
public Context i1;
|
|
public WebNestLayout i2;
|
|
public int i3;
|
|
public String i4;
|
|
public boolean i5;
|
|
public DialogWebBookEdit i6;
|
|
public WebAreaText i7;
|
|
public DialogSetAdblock i8;
|
|
public boolean i9;
|
|
public int ia;
|
|
public DialogListBook ib;
|
|
public String ic;
|
|
public boolean id;
|
|
public boolean ie;
|
|
public boolean ig;
|
|
public String ih;
|
|
public boolean ii;
|
|
public String ij;
|
|
public ArrayList ik;
|
|
public String il;
|
|
public int im;
|
|
public boolean in;
|
|
|
|
/* renamed from: io, reason: collision with root package name */
|
|
public int f19724io;
|
|
public boolean j1;
|
|
public MyBarFrame j2;
|
|
public boolean j3;
|
|
public String j4;
|
|
public int j5;
|
|
public DialogWebBookList j6;
|
|
public WebAreaMenu j7;
|
|
public DialogSetJava j8;
|
|
public boolean j9;
|
|
public float ja;
|
|
public DialogViewIp jb;
|
|
public String jc;
|
|
public TabAddListener jd;
|
|
public boolean je;
|
|
public boolean jf;
|
|
public boolean jg;
|
|
public boolean jh;
|
|
public boolean ji;
|
|
public String jj;
|
|
public boolean jk;
|
|
public String jl;
|
|
public int jm;
|
|
public String jn;
|
|
public long jo;
|
|
public boolean k1;
|
|
public MyBarFrame k2;
|
|
public int k3;
|
|
public String k4;
|
|
public int k5;
|
|
public DialogListBook k6;
|
|
public WebAreaView k7;
|
|
public DialogSetTmem k8;
|
|
public boolean k9;
|
|
/** Latest URL-bar text while editing; used so Find in page is not stuck on a stale Filter prefix. */
|
|
public String findQueryCandidate;
|
|
public float ka;
|
|
public DialogConfirm kb;
|
|
public String kc;
|
|
public boolean kd;
|
|
public boolean ke;
|
|
public int kf;
|
|
public boolean kg;
|
|
public String kh;
|
|
public boolean ki;
|
|
public int kj;
|
|
public boolean kk;
|
|
public String kl;
|
|
public int km;
|
|
public String kn;
|
|
public String ko;
|
|
public MyFadeRelative l1;
|
|
public FrameLayout l2;
|
|
public MySnackbar l3;
|
|
public boolean l4;
|
|
public boolean l5;
|
|
public DialogEditShort l6;
|
|
public boolean l7;
|
|
public DialogSetRead l8;
|
|
public ActionMode l9;
|
|
public int la;
|
|
public WebFltView lb;
|
|
public WebNestFrame ld;
|
|
public TabAddListener le;
|
|
public int lf;
|
|
public boolean lg;
|
|
public String lh;
|
|
public boolean li;
|
|
public boolean lj;
|
|
public boolean lk;
|
|
public String ll;
|
|
public int lm;
|
|
public String ln;
|
|
public String lo;
|
|
public AppCompatTextView m1;
|
|
public MyBehaviorTop m2;
|
|
public WebNestView m3;
|
|
public boolean m4;
|
|
public String m5;
|
|
public DialogUrlLink m6;
|
|
public boolean m7;
|
|
public DialogViewRead m8;
|
|
public boolean m9;
|
|
public int ma;
|
|
public Runnable mb;
|
|
public long mc;
|
|
public String md;
|
|
public boolean me;
|
|
public WebNestView mf;
|
|
public PrevBackListener mg;
|
|
public String mh;
|
|
public String mj;
|
|
public String mk;
|
|
public String ml;
|
|
public String mm;
|
|
public boolean mn;
|
|
public String mo;
|
|
public MyButtonText n1;
|
|
public MyBehaviorBot n2;
|
|
public WebNestFrame n3;
|
|
public boolean n4;
|
|
public int n5;
|
|
public DialogGuideNoti n6;
|
|
public String n7;
|
|
public boolean n8;
|
|
public boolean n9;
|
|
public boolean na;
|
|
public boolean nb;
|
|
public boolean nc;
|
|
public boolean nd;
|
|
public boolean ne;
|
|
public WebNestFrame nf;
|
|
public PrevPageListener ng;
|
|
public long nh;
|
|
public String nj;
|
|
public boolean nk;
|
|
public long nl;
|
|
public int nm;
|
|
public boolean nn;
|
|
public String no;
|
|
public ViewPager2 o1;
|
|
public MyBarView o2;
|
|
public int o3;
|
|
public int o4;
|
|
public boolean o5;
|
|
public DialogConfirm o6;
|
|
public String o7;
|
|
public WebReadTask o8;
|
|
public boolean o9;
|
|
public int oa;
|
|
public boolean ob;
|
|
public boolean oc;
|
|
public boolean od;
|
|
public boolean oe;
|
|
public String of;
|
|
public WebTabAdapter.WebTabItem og;
|
|
public int oh;
|
|
public int oi;
|
|
public PopItem oj;
|
|
public String ok;
|
|
public boolean ol;
|
|
public int om;
|
|
public String on;
|
|
public String oo;
|
|
public ViewPager2.OnPageChangeCallback p1;
|
|
public MyBarView p2;
|
|
public WebNestView p3;
|
|
public int p4;
|
|
public int p5;
|
|
public DialogDownUrl p6;
|
|
public String p7;
|
|
public DialogViewSrc p8;
|
|
public boolean p9;
|
|
public View pa;
|
|
public boolean pb;
|
|
public boolean pc;
|
|
public boolean pd;
|
|
public TabAddListener pe;
|
|
public WebNestView pf;
|
|
public PrevPageListener pg;
|
|
public String ph;
|
|
public int pi;
|
|
public String pj;
|
|
public String pk;
|
|
public String pl;
|
|
public int pm;
|
|
public String pn;
|
|
public boolean po;
|
|
public MyButtonImage q1;
|
|
public int q2;
|
|
public WebNestFrame q3;
|
|
public int q4;
|
|
public int q5;
|
|
public DialogSetDown q6;
|
|
public DialogGuideArea q7;
|
|
public DialogSetPrivacy q8;
|
|
public WebClean q9;
|
|
public int qa;
|
|
public boolean qb;
|
|
public boolean qc;
|
|
public boolean qd;
|
|
public boolean qe;
|
|
public WebNestFrame qf;
|
|
public WebTabAdapter.WebTabItem qg;
|
|
public String qh;
|
|
public WebNestView qi;
|
|
public String qj;
|
|
public String qk;
|
|
public String ql;
|
|
public int qm;
|
|
public QuickAdapter.QuickItem qn;
|
|
public String qo;
|
|
public MyButtonImage r1;
|
|
public int r2;
|
|
public boolean r3;
|
|
public boolean r4;
|
|
public int r5;
|
|
public DialogDownBlob r6;
|
|
public DialogGuideArea r7;
|
|
public DialogSetVpn r8;
|
|
public boolean r9;
|
|
public boolean ra;
|
|
public ExecutorService rb;
|
|
public boolean rc;
|
|
public boolean rd;
|
|
public boolean re;
|
|
public String rf;
|
|
public PrevPageListener rg;
|
|
public String rh;
|
|
public WebTabAdapter.WebTabItem ri;
|
|
public String rj;
|
|
public long rk;
|
|
public int rl;
|
|
public WebTabAdapter.WebTabItem rm;
|
|
public boolean rn;
|
|
public String ro;
|
|
public AppCompatTextView s1;
|
|
public MyAddrView s2;
|
|
public MySnackbar s3;
|
|
public int s4;
|
|
public int s5;
|
|
public MyDialogBottom s6;
|
|
public DialogEditArea s7;
|
|
public DialogSetCookie s8;
|
|
public boolean s9;
|
|
public boolean sa;
|
|
public CastContext sb;
|
|
public boolean sc;
|
|
public int sd;
|
|
public boolean se;
|
|
public int sf;
|
|
public WebTabAdapter.WebTabItem sg;
|
|
public int sh;
|
|
public WebNestView si;
|
|
public String sj;
|
|
public int sk;
|
|
public boolean sl;
|
|
public int sm;
|
|
public boolean sn;
|
|
public boolean so;
|
|
public FrameLayout t1;
|
|
public MyIconView t2;
|
|
public MySnackbar t3;
|
|
public boolean t4;
|
|
public int t5;
|
|
public MyDialogLinear t6;
|
|
public DialogSetMsg t7;
|
|
public DialogSetScrFil t8;
|
|
public int t9;
|
|
public int ta;
|
|
public CastSession tb;
|
|
public boolean tc;
|
|
public int td;
|
|
public TabAddListener te;
|
|
public WebNestView tf;
|
|
public PrevPageListener tg;
|
|
public String th;
|
|
public long ti;
|
|
public ValueCallback tj;
|
|
public String tk;
|
|
public long tl;
|
|
public long tm;
|
|
public String tn;
|
|
public boolean to;
|
|
public View u1;
|
|
public MyIconView u2;
|
|
public MySnackbar u3;
|
|
public int u4;
|
|
public int u5;
|
|
public MyRecyclerView u6;
|
|
public JsResult u7;
|
|
public DialogWebCerti u8;
|
|
public PayHelper u9;
|
|
public int ua;
|
|
public MyStateListener ub;
|
|
public boolean uc;
|
|
public boolean ud;
|
|
public boolean ue;
|
|
public String uf;
|
|
public WebTabAdapter.WebTabItem ug;
|
|
public String uh;
|
|
public String ui;
|
|
public WebChromeClient.FileChooserParams uj;
|
|
public String uk;
|
|
public String ul;
|
|
public boolean um;
|
|
public Intent un;
|
|
public boolean uo;
|
|
public View v1;
|
|
public MyIconView v2;
|
|
public MyScrollBar v3;
|
|
public int v4;
|
|
public int v5;
|
|
public SettingListAdapter v6;
|
|
public DialogPrompt v7;
|
|
public DialogConfirm v8;
|
|
public PrintJob v9;
|
|
public boolean va;
|
|
public MySessionListener vb;
|
|
public boolean vc;
|
|
public TabAddListener vd;
|
|
public String ve;
|
|
public WebNestView vf;
|
|
public PrevPageListener vg;
|
|
public String vh;
|
|
public Bitmap vi;
|
|
public int vj;
|
|
public String vk;
|
|
public String vl;
|
|
public boolean vm;
|
|
public String vn;
|
|
public boolean vo;
|
|
public View w1;
|
|
public MyIconView w2;
|
|
public int w3;
|
|
public int w4;
|
|
public int w5;
|
|
public MyCoverView w6;
|
|
public DialogEditAuth w7;
|
|
public DialogSetMsg w8;
|
|
public boolean w9;
|
|
public int wa;
|
|
public boolean wb;
|
|
public boolean wc;
|
|
public boolean wd;
|
|
public String we;
|
|
public WebNestView wf;
|
|
public WebTabAdapter.WebTabItem wg;
|
|
public String wh;
|
|
public Canvas wi;
|
|
public String wj;
|
|
public boolean wk;
|
|
public Bitmap wl;
|
|
public boolean wm;
|
|
public int wn;
|
|
public boolean wo;
|
|
public View x1;
|
|
public MyEditAuto x2;
|
|
public WebLoadView x3;
|
|
public String x4;
|
|
public int x5;
|
|
public int x6;
|
|
public DialogPermission x7;
|
|
public boolean x8;
|
|
public boolean x9;
|
|
public int xa;
|
|
public boolean xb;
|
|
public boolean xc;
|
|
public WebNestFrame xd;
|
|
public boolean xe;
|
|
public WebNestView xf;
|
|
public PrevPageListener xg;
|
|
public String xh;
|
|
public long xi;
|
|
public boolean xj;
|
|
public List xk;
|
|
public String xl;
|
|
public boolean xm;
|
|
public boolean xn;
|
|
public String xo;
|
|
public int y1;
|
|
public boolean y2;
|
|
public WebEmgLoad y3;
|
|
public String y4;
|
|
public boolean y5;
|
|
public int y6;
|
|
public PermissionRequest y7;
|
|
public boolean y8;
|
|
public int y9;
|
|
public int ya;
|
|
public int yb;
|
|
public boolean yc;
|
|
public String yd;
|
|
public String ye;
|
|
public int yf;
|
|
public PrevPageListener yg;
|
|
public String yh;
|
|
public String yi;
|
|
public String yj;
|
|
public int yk;
|
|
public MainUri.UriItem yl;
|
|
public boolean ym;
|
|
public String yo;
|
|
public int z1;
|
|
public int z2;
|
|
public WebHmgLoad z3;
|
|
public String z4;
|
|
public String z5;
|
|
public long z6;
|
|
public String z7;
|
|
public boolean z8;
|
|
public boolean z9;
|
|
public int za;
|
|
public boolean zb;
|
|
public boolean zc;
|
|
public boolean zd;
|
|
public String ze;
|
|
public WebTabAdapter.WebTabItem zf;
|
|
public WebNestFrame zg;
|
|
public String zh;
|
|
public Bitmap zi;
|
|
public boolean zj;
|
|
public ArrayList zk;
|
|
public PrintDocumentAdapter zl;
|
|
public boolean zm;
|
|
public int zn;
|
|
public String zo;
|
|
public final Object f1 = new Object();
|
|
public final Runnable bc = new AnonymousClass15();
|
|
public final MyEditAuto.KeyBackListener lc = new MyEditAuto.KeyBackListener() { // from class: com.mycompany.app.web.WebViewActivity.84
|
|
@Override // com.mycompany.app.view.MyEditAuto.KeyBackListener
|
|
public final boolean a(boolean z, boolean z2) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.Y()) {
|
|
QuickSubView quickSubView = webViewActivity.G3;
|
|
if (quickSubView != null) {
|
|
if ((z2 || z) && !quickSubView.h()) {
|
|
quickSubView.c();
|
|
return true;
|
|
}
|
|
} else if (webViewActivity.j9) {
|
|
if (webViewActivity.k9) {
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.248
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.k9 = false;
|
|
}
|
|
}, 200L);
|
|
return true;
|
|
}
|
|
} else {
|
|
webViewActivity.E7(false);
|
|
return true;
|
|
}
|
|
} else {
|
|
if (!z2 || !webViewActivity.L3) {
|
|
return false;
|
|
}
|
|
webViewActivity.K3();
|
|
return true;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
};
|
|
public final WebClean.WebCleanListener Mh = new AnonymousClass210();
|
|
public final Runnable mi = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.237
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.Gc) {
|
|
webViewActivity.Gc = true;
|
|
if (Float.compare(PrefZtwo.W, 1.0f) != 0) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
WebViewActivity.r1(webViewActivity, true, z);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.237.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.Gc = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|
|
public final Runnable ni = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.238
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.Gc) {
|
|
webViewActivity.Gc = true;
|
|
WebViewActivity.r1(webViewActivity, false, true);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.238.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.Gc = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|
|
public final Runnable Bi = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.253
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.a8(webViewActivity.Ai);
|
|
}
|
|
};
|
|
public final Runnable Di = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.254
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MyScrollBar myScrollBar;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null) {
|
|
if (PrefZone.x != 0 && (myScrollBar = webViewActivity.v3) != null) {
|
|
myScrollBar.p(0, 0);
|
|
}
|
|
webViewActivity.R9(true);
|
|
webViewActivity.U9(true);
|
|
}
|
|
webViewActivity.Ci = false;
|
|
}
|
|
};
|
|
public final Runnable yn = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.600
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.xn = false;
|
|
if (webViewActivity.Rb != null) {
|
|
int i = webViewActivity.wn;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.setTranslationY(i);
|
|
}
|
|
}
|
|
};
|
|
public final Runnable Bn = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.604
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.An = false;
|
|
if (webViewActivity.Sb != null) {
|
|
int i = webViewActivity.zn;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.setTranslationY(i);
|
|
}
|
|
}
|
|
};
|
|
public final Runnable bo = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.637
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MyScrollBar myScrollBar = webViewActivity.v3;
|
|
if (myScrollBar != null && myScrollBar.r0) {
|
|
WebViewActivity.S0(webViewActivity);
|
|
} else {
|
|
webViewActivity.I9(true);
|
|
webViewActivity.W9(true);
|
|
webViewActivity.J9(true);
|
|
webViewActivity.K9(true);
|
|
webViewActivity.L9(true);
|
|
webViewActivity.S9(true);
|
|
webViewActivity.X9(true);
|
|
}
|
|
webViewActivity.fa = false;
|
|
}
|
|
};
|
|
public final Runnable co = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.638
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MyScrollBar myScrollBar = webViewActivity.v3;
|
|
if (myScrollBar != null && myScrollBar.r0) {
|
|
webViewActivity.I9(true);
|
|
webViewActivity.W9(true);
|
|
webViewActivity.J9(true);
|
|
webViewActivity.K9(true);
|
|
webViewActivity.L9(true);
|
|
webViewActivity.S9(true);
|
|
webViewActivity.X9(true);
|
|
} else {
|
|
WebViewActivity.S0(webViewActivity);
|
|
}
|
|
webViewActivity.fa = false;
|
|
}
|
|
};
|
|
public final Runnable Co = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.661
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean e;
|
|
boolean e2;
|
|
boolean e3;
|
|
boolean e4;
|
|
boolean startsWith;
|
|
Handler handler;
|
|
MyPullView myPullView;
|
|
MyScrollBar myScrollBar;
|
|
MyGesNoti myGesNoti;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Hc = false;
|
|
if (webViewActivity.I2 != null) {
|
|
int i = webViewActivity.ia;
|
|
boolean z = true;
|
|
if (i == 0 && webViewActivity.ma != 0) {
|
|
MyGesNoti myGesNoti2 = webViewActivity.g4;
|
|
if (myGesNoti2 != null) {
|
|
myGesNoti2.e();
|
|
}
|
|
int i2 = webViewActivity.ma;
|
|
if (i2 == 1) {
|
|
webViewActivity.d6(null, PrefZone.X);
|
|
} else if (i2 == 2) {
|
|
webViewActivity.d6(null, PrefZone.Y);
|
|
} else if (i2 == 3) {
|
|
webViewActivity.d6(null, PrefZone.Z);
|
|
} else if (i2 == 4) {
|
|
webViewActivity.d6(null, PrefZone.a0);
|
|
}
|
|
} else {
|
|
if (i == 3) {
|
|
webViewActivity.Z6(i);
|
|
} else {
|
|
int i3 = webViewActivity.ga;
|
|
if (i3 == 0) {
|
|
if (i == 1) {
|
|
if (webViewActivity.W5()) {
|
|
webViewActivity.Y6(webViewActivity.ia);
|
|
} else {
|
|
MyScrollNavi myScrollNavi = webViewActivity.e4;
|
|
if (myScrollNavi == null) {
|
|
e4 = false;
|
|
} else {
|
|
e4 = myScrollNavi.e();
|
|
}
|
|
if (e4) {
|
|
if (webViewActivity.ca) {
|
|
webViewActivity.Y7(null);
|
|
} else if (webViewActivity.j1) {
|
|
webViewActivity.Q7();
|
|
} else {
|
|
webViewActivity.Y7(null);
|
|
}
|
|
} else {
|
|
webViewActivity.P6(false, false);
|
|
}
|
|
}
|
|
} else if (i == 2) {
|
|
if (webViewActivity.V5()) {
|
|
webViewActivity.Y6(webViewActivity.ia);
|
|
} else {
|
|
MyScrollNavi myScrollNavi2 = webViewActivity.f4;
|
|
if (myScrollNavi2 == null) {
|
|
e3 = false;
|
|
} else {
|
|
e3 = myScrollNavi2.e();
|
|
}
|
|
if (e3) {
|
|
if (webViewActivity.ca) {
|
|
webViewActivity.Y7(null);
|
|
} else if (webViewActivity.j1) {
|
|
webViewActivity.Y7(null);
|
|
} else {
|
|
webViewActivity.Q7();
|
|
}
|
|
} else {
|
|
webViewActivity.P6(false, false);
|
|
}
|
|
}
|
|
}
|
|
} else if (i3 == 1) {
|
|
if (i == 1) {
|
|
if (webViewActivity.ca && webViewActivity.Aa) {
|
|
MyScrollNavi myScrollNavi3 = webViewActivity.e4;
|
|
if (myScrollNavi3 == null) {
|
|
e2 = false;
|
|
} else {
|
|
e2 = myScrollNavi3.e();
|
|
}
|
|
if (e2) {
|
|
webViewActivity.Y7(null);
|
|
}
|
|
}
|
|
webViewActivity.Q6(webViewActivity.ia);
|
|
} else if (i == 2) {
|
|
if (webViewActivity.ca && webViewActivity.Aa) {
|
|
MyScrollNavi myScrollNavi4 = webViewActivity.f4;
|
|
if (myScrollNavi4 == null) {
|
|
e = false;
|
|
} else {
|
|
e = myScrollNavi4.e();
|
|
}
|
|
if (e) {
|
|
webViewActivity.Y7(null);
|
|
}
|
|
}
|
|
webViewActivity.Q6(webViewActivity.ia);
|
|
} else {
|
|
webViewActivity.Q6(i);
|
|
}
|
|
} else {
|
|
webViewActivity.Q6(i);
|
|
}
|
|
}
|
|
z = false;
|
|
}
|
|
if (webViewActivity.F3()) {
|
|
MyScrollNavi myScrollNavi5 = webViewActivity.e4;
|
|
if (myScrollNavi5 != null) {
|
|
myScrollNavi5.c();
|
|
}
|
|
MyScrollNavi myScrollNavi6 = webViewActivity.f4;
|
|
if (myScrollNavi6 != null) {
|
|
myScrollNavi6.c();
|
|
}
|
|
}
|
|
if (!z && (myGesNoti = webViewActivity.g4) != null) {
|
|
myGesNoti.d();
|
|
}
|
|
if (PrefZone.x != 0 && (myScrollBar = webViewActivity.v3) != null) {
|
|
myScrollBar.e();
|
|
}
|
|
if (PrefZone.z && (myPullView = webViewActivity.M2) != null) {
|
|
myPullView.g();
|
|
}
|
|
if (webViewActivity.T3 != null && webViewActivity.Oi && PrefZone.n == 3) {
|
|
String str = webViewActivity.A8;
|
|
if (TextUtils.isEmpty(str)) {
|
|
startsWith = false;
|
|
} else {
|
|
startsWith = str.startsWith("https://m.facebook.com/reel");
|
|
}
|
|
if (startsWith && (handler = webViewActivity.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.264
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebDownView webDownView = WebViewActivity.this.T3;
|
|
if (webDownView != null) {
|
|
webDownView.r();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
webViewActivity.ga = 2;
|
|
webViewActivity.ha = 0;
|
|
webViewActivity.ia = 0;
|
|
webViewActivity.la = 0;
|
|
webViewActivity.ma = 0;
|
|
webViewActivity.Aa = false;
|
|
}
|
|
};
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$10, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass10 implements ProviderInstaller.ProviderInstallListener {
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$108, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass108 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$108$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.P8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.108.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass108 anonymousClass108 = AnonymousClass108.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Q8(webViewActivity2.H2, webViewActivity2.I2, 0);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.108.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str = webViewActivity3.df;
|
|
String str2 = webViewActivity3.ef;
|
|
boolean z = webViewActivity3.ff;
|
|
int i = webViewActivity3.gf;
|
|
int i2 = webViewActivity3.hf;
|
|
boolean z2 = webViewActivity3.jf;
|
|
webViewActivity3.df = null;
|
|
webViewActivity3.ef = null;
|
|
if (webViewActivity3.H2 != null && (webNestView = webViewActivity3.I2) != null) {
|
|
if (z2) {
|
|
webViewActivity3.Lb = !"about:blank".equals(str);
|
|
webViewActivity3.T8(str, false, true);
|
|
webViewActivity3.u7(true);
|
|
webViewActivity3.w2(true);
|
|
} else {
|
|
String h = webNestView.h(str, false);
|
|
webViewActivity3.T8(h, false, true);
|
|
if (z) {
|
|
MainUtil.r6(webViewActivity3.I2, h, str2);
|
|
} else {
|
|
webViewActivity3.D8 = str2;
|
|
webViewActivity3.I2.z(h, str2);
|
|
}
|
|
}
|
|
webViewActivity3.kf = i;
|
|
webViewActivity3.lf = i2;
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.109
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame webNestFrame;
|
|
List list;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
int i3 = webViewActivity4.kf;
|
|
int i4 = webViewActivity4.lf;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity4.b3;
|
|
if (webTabBarAdapter != null && (list = webViewActivity4.O2) != null) {
|
|
webTabBarAdapter.L(list, webViewActivity4.P2, webViewActivity4.U1, i3, i4, true);
|
|
webViewActivity4.r8(i3, i4);
|
|
}
|
|
if (!webViewActivity4.J2 && (webNestFrame = webViewActivity4.H2) != null) {
|
|
webNestFrame.n();
|
|
}
|
|
webViewActivity4.i9 = false;
|
|
webViewActivity4.sc = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity3.sc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass108() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$110, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass110 extends WebViewClient {
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
|
|
MainUtil.C(webView, renderProcessGoneDetail);
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$112, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass112 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$112$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$112$1$1, reason: invalid class name and collision with other inner class name */
|
|
/* loaded from: classes3.dex */
|
|
class RunnableC02821 implements Runnable {
|
|
public RunnableC02821() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass112 anonymousClass112 = AnonymousClass112.this;
|
|
WebViewActivity.P8(WebViewActivity.this.mf);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.112.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Q8(webViewActivity.nf, webViewActivity.mf, 1);
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.112.1.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity2.mf;
|
|
WebNestFrame webNestFrame = webViewActivity2.nf;
|
|
String str = webViewActivity2.of;
|
|
webViewActivity2.mf = null;
|
|
webViewActivity2.nf = null;
|
|
webViewActivity2.of = null;
|
|
boolean A5 = webViewActivity2.A5(webViewActivity2.P2);
|
|
boolean z2 = PrefTts.v;
|
|
if (!A5 && !z2) {
|
|
z = false;
|
|
} else {
|
|
z = true;
|
|
}
|
|
int V1 = webViewActivity2.V1(webViewActivity2.J2(z), str, webNestFrame, A5, z2);
|
|
webViewActivity2.o7(V1);
|
|
webViewActivity2.pf = webNestView;
|
|
webViewActivity2.qf = webNestFrame;
|
|
webViewActivity2.rf = str;
|
|
webViewActivity2.sf = V1;
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.113
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebNestView webNestView2 = webViewActivity3.pf;
|
|
WebNestFrame webNestFrame2 = webViewActivity3.qf;
|
|
String str2 = webViewActivity3.rf;
|
|
int i = webViewActivity3.sf;
|
|
webViewActivity3.pf = null;
|
|
webViewActivity3.qf = null;
|
|
webViewActivity3.rf = null;
|
|
if (webNestFrame2 != null && webNestView2 != null) {
|
|
webNestView2.v0 = webNestFrame2;
|
|
webNestView2.w0 = str2;
|
|
webNestView2.x0 = MainUtil.I1(str2, true);
|
|
webNestView2.y0 = i;
|
|
webNestView2.setWebViewClient(new WebViewClient() { // from class: com.mycompany.app.web.WebViewActivity.116
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onPageFinished(WebView webView, String str3) {
|
|
boolean z3;
|
|
if (webView != null && ((z3 = webView instanceof WebNestView))) {
|
|
WebNestView webNestView3 = (WebNestView) webView;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, str3);
|
|
webNestView3.setBackUrl(str3);
|
|
if (z3) {
|
|
webNestView3.setWebLoading(false);
|
|
}
|
|
webViewActivity4.wf = webNestView3;
|
|
webViewActivity4.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.116.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass116 anonymousClass116 = AnonymousClass116.this;
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
WebNestView webNestView4 = webViewActivity5.wf;
|
|
webViewActivity5.wf = null;
|
|
if (webNestView4 == null) {
|
|
return;
|
|
}
|
|
webNestView4.j(true, webNestView4.getBackIndex(), null);
|
|
if (PrefWeb.o) {
|
|
webNestView4.L(webNestView4.getBackUrl(), webNestView4.getBackHost(), false);
|
|
}
|
|
MainUtil.j8(WebViewActivity.this.i1, false);
|
|
}
|
|
});
|
|
if (PrefWeb.H) {
|
|
webNestView3.i(str3, webNestView3.getBackHost(), true);
|
|
}
|
|
WebNestFrame backFrame = webNestView3.getBackFrame();
|
|
if (backFrame != null && backFrame.getVisibility() == 4) {
|
|
webViewActivity4.xf = webNestView3;
|
|
MyWebCoord myWebCoord3 = webViewActivity4.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.116.3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame backFrame2;
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
WebNestView webNestView4 = webViewActivity5.xf;
|
|
webViewActivity5.xf = null;
|
|
if (webNestView4 == null || (backFrame2 = webNestView4.getBackFrame()) == null || backFrame2.getVisibility() != 4) {
|
|
return;
|
|
}
|
|
webNestView4.onPause();
|
|
backFrame2.setVisibility(8);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onPageStarted(WebView webView, String str3, Bitmap bitmap) {
|
|
boolean z3;
|
|
if (webView != null && ((z3 = webView instanceof WebNestView))) {
|
|
WebNestView webNestView3 = (WebNestView) webView;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, str3);
|
|
webNestView3.setBackUrl(str3);
|
|
if (z3) {
|
|
webNestView3.setWebLoading(true);
|
|
}
|
|
webViewActivity4.vf = webNestView3;
|
|
webViewActivity4.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.116.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass116 anonymousClass116 = AnonymousClass116.this;
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
WebNestView webNestView4 = webViewActivity5.vf;
|
|
webViewActivity5.vf = null;
|
|
if (webNestView4 == null) {
|
|
return;
|
|
}
|
|
webNestView4.j(true, webNestView4.getBackIndex(), null);
|
|
if (PrefWeb.o) {
|
|
webNestView4.L(webNestView4.getBackUrl(), webNestView4.getBackHost(), false);
|
|
}
|
|
MainUtil.j8(WebViewActivity.this.i1, false);
|
|
}
|
|
});
|
|
if (PrefWeb.H) {
|
|
webNestView3.i(str3, webNestView3.getBackHost(), false);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
|
|
MainUtil.C(webView, renderProcessGoneDetail);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
|
|
boolean z3;
|
|
WebResourceResponse j;
|
|
WebResourceResponse v1;
|
|
if (webView != null && (webView instanceof WebNestView)) {
|
|
WebNestView webNestView3 = (WebNestView) webView;
|
|
if (webResourceRequest != null && webResourceRequest.getUrl() != null) {
|
|
String uri = webResourceRequest.getUrl().toString();
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, uri);
|
|
if (PrefZone.k && (v1 = MainUtil.v1(webViewActivity4.i1, uri)) != null) {
|
|
return v1;
|
|
}
|
|
String backUrl = webNestView3.getBackUrl();
|
|
String backHost = webNestView3.getBackHost();
|
|
if (PrefWeb.o) {
|
|
z3 = DataBookAds.l(webViewActivity4.i1).n(backUrl, backHost);
|
|
} else {
|
|
z3 = true;
|
|
}
|
|
int K0 = WebViewActivity.K0(webViewActivity4, backHost);
|
|
if (!z3) {
|
|
WebClean webClean = webViewActivity4.q9;
|
|
if (webClean == null) {
|
|
j = null;
|
|
} else {
|
|
j = webClean.j(webViewActivity4.i1, webView, webResourceRequest, backUrl, backHost, uri, K0);
|
|
}
|
|
if (j != null) {
|
|
return j;
|
|
}
|
|
} else if (K0 != 0) {
|
|
return WebClean.I(webViewActivity4.i1, webResourceRequest, uri, K0);
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean shouldOverrideUrlLoading(WebView webView, String str3) {
|
|
if (TextUtils.isEmpty(str3)) {
|
|
return true;
|
|
}
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, str3);
|
|
MainUtil.j8(webViewActivity4.i1, true);
|
|
webView.loadUrl(str3);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
|
|
if (webResourceRequest != null && webResourceRequest.getUrl() != null) {
|
|
String uri = webResourceRequest.getUrl().toString();
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, uri);
|
|
MainUtil.j8(webViewActivity4.i1, true);
|
|
}
|
|
return false;
|
|
}
|
|
});
|
|
webNestView2.setWebChromeClient(new WebChromeClient() { // from class: com.mycompany.app.web.WebViewActivity.117
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onReceivedIcon(WebView webView, Bitmap bitmap) {
|
|
if (webView == null || !(webView instanceof WebNestView)) {
|
|
return;
|
|
}
|
|
WebViewActivity.M0(WebViewActivity.this, webView, bitmap, ((WebNestView) webView).getBackIndex(), true);
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onReceivedTitle(WebView webView, String str3) {
|
|
if (webView != null && (webView instanceof WebNestView)) {
|
|
WebNestView webNestView3 = (WebNestView) webView;
|
|
int backIndex = webNestView3.getBackIndex();
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
List list = webViewActivity4.O2;
|
|
if (list != null && backIndex >= 0 && backIndex < list.size()) {
|
|
String url = webView.getUrl();
|
|
if (!TextUtils.isEmpty(url)) {
|
|
String v3 = webViewActivity4.v3(webView, url);
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity4.n3(backIndex);
|
|
if (n3 != null) {
|
|
n3.j = url;
|
|
n3.k = v3;
|
|
n3.l = webNestView3.C;
|
|
webViewActivity4.ga(n3);
|
|
if (webViewActivity4.b3 != null) {
|
|
webViewActivity4.yf = backIndex;
|
|
MyWebBody myWebBody = webViewActivity4.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.117.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
int i2 = webViewActivity5.yf;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity5.b3;
|
|
if (webTabBarAdapter != null) {
|
|
webTabBarAdapter.x(webTabBarAdapter.C(i2));
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
if (PrefWeb.n != 0) {
|
|
if ((!PrefSync.k || PrefSecret.l != 0) && !"file:///android_asset/shortcut.html".equals(url)) {
|
|
webViewActivity4.fa(url, v3, null, true, false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
webNestFrame2.setVisibility(4);
|
|
webViewActivity3.tf = webNestView2;
|
|
webViewActivity3.uf = str2;
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.114
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2 = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.u8(new TabLimitListener() { // from class: com.mycompany.app.web.WebViewActivity.115
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabLimitListener
|
|
public final void a(boolean z3) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
webViewActivity5.L8();
|
|
MyWebCoord myWebCoord4 = webViewActivity5.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.115.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Object parent;
|
|
WebViewActivity webViewActivity6 = WebViewActivity.this;
|
|
WebNestView webNestView3 = webViewActivity6.tf;
|
|
String str3 = webViewActivity6.uf;
|
|
webViewActivity6.tf = null;
|
|
webViewActivity6.uf = null;
|
|
if (webViewActivity6.H2 != null && webNestView3 != null) {
|
|
webNestView3.z(str3, webViewActivity6.A8);
|
|
final WebNestFrame webNestFrame3 = webViewActivity6.H2;
|
|
if (webNestFrame3.H == null) {
|
|
webNestFrame3.l();
|
|
if (webNestFrame3.getWidth() != 0 || ((parent = webNestFrame3.getParent()) != null && ((View) parent).getWidth() != 0)) {
|
|
webNestFrame3.B();
|
|
int i4 = MainApp.g1 * 2;
|
|
webNestFrame3.s0 = 0;
|
|
webNestFrame3.t0 = false;
|
|
ValueAnimator ofInt = ValueAnimator.ofInt(0, i4);
|
|
webNestFrame3.H = ofInt;
|
|
ofInt.setDuration(600L);
|
|
webNestFrame3.H.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.mycompany.app.web.WebNestFrame.27
|
|
public AnonymousClass27() {
|
|
}
|
|
|
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
|
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
|
WebNestFrame webNestFrame4 = WebNestFrame.this;
|
|
if (webNestFrame4.H != null) {
|
|
int intValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
|
|
if (webNestFrame4.H != null) {
|
|
webNestFrame4.s0 = intValue;
|
|
if (webNestFrame4.F() || webNestFrame4.t0) {
|
|
return;
|
|
}
|
|
webNestFrame4.t0 = true;
|
|
MainApp.N(webNestFrame4.getContext(), webNestFrame4.u0);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
webNestFrame3.H.addListener(new Animator.AnimatorListener() { // from class: com.mycompany.app.web.WebNestFrame.28
|
|
public AnonymousClass28() {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationCancel(Animator animator) {
|
|
WebNestFrame webNestFrame4 = WebNestFrame.this;
|
|
if (webNestFrame4.H == null) {
|
|
return;
|
|
}
|
|
webNestFrame4.H = null;
|
|
webNestFrame4.G = 0.0f;
|
|
webNestFrame4.Q(0.0f, 3);
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
WebNestFrame webNestFrame4 = WebNestFrame.this;
|
|
if (webNestFrame4.H == null) {
|
|
return;
|
|
}
|
|
MainApp.N(webNestFrame4.getContext(), new Runnable() { // from class: com.mycompany.app.web.WebNestFrame.30
|
|
public AnonymousClass30() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame webNestFrame5 = WebNestFrame.this;
|
|
if (webNestFrame5.H == null) {
|
|
return;
|
|
}
|
|
webNestFrame5.H = null;
|
|
webNestFrame5.G = 0.0f;
|
|
webNestFrame5.Q(0.0f, 3);
|
|
webNestFrame5.invalidate();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationRepeat(Animator animator) {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationStart(Animator animator) {
|
|
}
|
|
});
|
|
webNestFrame3.H.start();
|
|
}
|
|
}
|
|
webViewActivity6.n7();
|
|
webViewActivity6.b7(0, true);
|
|
webViewActivity6.i9 = false;
|
|
webViewActivity6.uc = false;
|
|
return;
|
|
}
|
|
webViewActivity6.uc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity3.uc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.mf);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new RunnableC02821());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass112() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.N8(webViewActivity.mf, 1);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$125, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass125 implements Runnable {
|
|
public AnonymousClass125() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
TabViewListener tabViewListener = new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.125.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Ff) {
|
|
webViewActivity.b7(1, false);
|
|
} else {
|
|
webViewActivity.b7(2, false);
|
|
}
|
|
webViewActivity.f8();
|
|
}
|
|
};
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.x8(tabViewListener);
|
|
webViewActivity.Bc = false;
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$129, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass129 implements Runnable {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final /* synthetic */ ArrayList f19775c;
|
|
public final /* synthetic */ int f;
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$129$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass129 anonymousClass129 = AnonymousClass129.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
List list = webViewActivity.O2;
|
|
if (list != null) {
|
|
if (list.size() == 0) {
|
|
webViewActivity.O1(null, WebViewActivity.o3(), false, null);
|
|
webViewActivity.B2(anonymousClass129.f);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.129.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass129 anonymousClass1292 = AnonymousClass129.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.y4();
|
|
MainUtil.e8(WebViewActivity.this, R.string.deleted);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.129.1.2
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
AnonymousClass129 anonymousClass1292 = AnonymousClass129.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = anonymousClass1292.f;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.B2(i);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.129.1.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity3.y4();
|
|
MainUtil.e8(WebViewActivity.this, R.string.deleted);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public AnonymousClass129(ArrayList arrayList, int i) {
|
|
this.f19775c = arrayList;
|
|
this.f = i;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
synchronized (WebViewActivity.this.f1) {
|
|
try {
|
|
ArrayList arrayList = this.f19775c;
|
|
int size = arrayList.size();
|
|
int i = 0;
|
|
int i2 = 0;
|
|
while (i2 < size) {
|
|
Object obj = arrayList.get(i2);
|
|
i2++;
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) obj;
|
|
List list = WebViewActivity.this.O2;
|
|
if (list == null || list.isEmpty()) {
|
|
break;
|
|
}
|
|
WebViewActivity.this.y2(webTabItem);
|
|
WebViewActivity.this.O2.remove(webTabItem);
|
|
if (webTabItem.h <= WebViewActivity.this.P2) {
|
|
i++;
|
|
}
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.P2 -= i;
|
|
webViewActivity.t8();
|
|
DbBookTab.u(WebViewActivity.this.i1, WebViewActivity.this.m3());
|
|
DbBookTab.k(WebViewActivity.this.i1, this.f19775c);
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$130, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass130 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$130$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
TabViewListener tabViewListener = new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.130.1.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
AnonymousClass130 anonymousClass130 = AnonymousClass130.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.b7(2, true);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.130.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity3.z4();
|
|
}
|
|
});
|
|
}
|
|
};
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.x8(tabViewListener);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass130() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem = webViewActivity.Mf;
|
|
webViewActivity.Mf = null;
|
|
if (webTabItem != null) {
|
|
DbBookTab.n(webViewActivity.i1, PrefSync.k);
|
|
webTabItem.f19520c = System.currentTimeMillis();
|
|
webTabItem.d = -1L;
|
|
webTabItem.h = 0;
|
|
webTabItem.e = 0L;
|
|
webTabItem.f = null;
|
|
webTabItem.g = 0;
|
|
DbBookTab.o(webViewActivity.i1, webTabItem, PrefSync.k);
|
|
ArrayList arrayList = new ArrayList();
|
|
webViewActivity.O2 = arrayList;
|
|
arrayList.add(webTabItem);
|
|
webViewActivity.P2 = 0;
|
|
webViewActivity.t8();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$131, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass131 implements Runnable {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final /* synthetic */ ArrayList f19786c;
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$131$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
List list = webViewActivity.O2;
|
|
if (list != null) {
|
|
if (list.size() == 0) {
|
|
webViewActivity.O1(null, WebViewActivity.o3(), false, null);
|
|
webViewActivity.b7(2, true);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.131.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.z4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.131.1.2
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
AnonymousClass131 anonymousClass131 = AnonymousClass131.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.b7(2, true);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.131.1.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity3.z4();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public AnonymousClass131(ArrayList arrayList) {
|
|
this.f19786c = arrayList;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
synchronized (WebViewActivity.this.f1) {
|
|
try {
|
|
ArrayList arrayList = this.f19786c;
|
|
int size = arrayList.size();
|
|
int i = 0;
|
|
int i2 = 0;
|
|
while (i2 < size) {
|
|
Object obj = arrayList.get(i2);
|
|
i2++;
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) obj;
|
|
List list = WebViewActivity.this.O2;
|
|
if (list == null || list.isEmpty()) {
|
|
break;
|
|
}
|
|
WebViewActivity.this.y2(webTabItem);
|
|
WebViewActivity.this.O2.remove(webTabItem);
|
|
if (webTabItem.h <= WebViewActivity.this.P2) {
|
|
i++;
|
|
}
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.P2 -= i;
|
|
webViewActivity.t8();
|
|
DbBookTab.u(WebViewActivity.this.i1, WebViewActivity.this.m3());
|
|
DbBookTab.k(WebViewActivity.this.i1, this.f19786c);
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$132, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass132 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$132$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
List list = webViewActivity.O2;
|
|
if (list != null) {
|
|
if (list.size() == 0) {
|
|
webViewActivity.O1(null, WebViewActivity.o3(), false, null);
|
|
webViewActivity.b7(2, true);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.132.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.z4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.132.1.2
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
AnonymousClass132 anonymousClass132 = AnonymousClass132.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.b7(2, true);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.132.1.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity3.z4();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public AnonymousClass132() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
ArrayList arrayList = webViewActivity.Nf;
|
|
ArrayList arrayList2 = webViewActivity.Of;
|
|
int i = webViewActivity.Pf;
|
|
webViewActivity.Nf = null;
|
|
webViewActivity.Of = null;
|
|
synchronized (webViewActivity.f1) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.O2 = arrayList;
|
|
webViewActivity2.P2 -= i;
|
|
webViewActivity2.t8();
|
|
DbBookTab.u(WebViewActivity.this.i1, WebViewActivity.this.m3());
|
|
DbBookTab.k(WebViewActivity.this.i1, arrayList2);
|
|
}
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$134, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass134 implements Runnable {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final /* synthetic */ boolean f19797c;
|
|
|
|
public AnonymousClass134(boolean z) {
|
|
this.f19797c = z;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DbBookTab.n(webViewActivity.i1, PrefSync.k);
|
|
webViewActivity.O2 = null;
|
|
webViewActivity.P2 = 0;
|
|
webViewActivity.t8();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.134.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass134 anonymousClass134 = AnonymousClass134.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (anonymousClass134.f19797c) {
|
|
webViewActivity2.O1(null, WebViewActivity.c3(), false, null);
|
|
} else {
|
|
webViewActivity2.O1(null, WebViewActivity.o3(), false, null);
|
|
}
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.134.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity3.z4();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$138, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass138 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$138$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$138$1$2, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass2 implements Runnable {
|
|
public AnonymousClass2() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass138 anonymousClass138 = AnonymousClass138.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.138.1.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity.P8(WebViewActivity.this.I2);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.138.1.2.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass2 anonymousClass2 = AnonymousClass2.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Q8(webViewActivity2.H2, webViewActivity2.I2, 0);
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new AnonymousClass139());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H2 != null && (webNestView = webViewActivity.I2) != null) {
|
|
if (webNestView.g) {
|
|
webNestView.setWebViewClient(new LocalWebViewClient());
|
|
webViewActivity.I2.setWebChromeClient(new LocalChromeClient());
|
|
webViewActivity.I2.setDownloadListener(new DownloadListener() { // from class: com.mycompany.app.web.WebViewActivity.138.1.1
|
|
@Override // android.webkit.DownloadListener
|
|
public final void onDownloadStart(String str, String str2, String str3, String str4, long j) {
|
|
WebViewActivity.L0(WebViewActivity.this, str, str3, str4, j, true);
|
|
}
|
|
});
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new AnonymousClass139());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity.r3();
|
|
webViewActivity.N8(webViewActivity.I2, 0);
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new AnonymousClass2());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new AnonymousClass139());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass138() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebTabAdapter.WebTabItem n3;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H2 != null && webViewActivity.I2 != null && (n3 = webViewActivity.n3(webViewActivity.P2)) != null) {
|
|
if (n3.p == null) {
|
|
n3.p = webViewActivity.O2(n3.f19520c, n3.j, n3.l, true);
|
|
}
|
|
WebNestView pageCreate = n3.p.getPageCreate();
|
|
if (pageCreate != null) {
|
|
webViewActivity.H2 = n3.p;
|
|
webViewActivity.I2 = pageCreate;
|
|
}
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$139, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass139 implements Runnable {
|
|
public AnonymousClass139() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H2 != null && webViewActivity.I2 != null) {
|
|
webViewActivity.L8();
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.139.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
TabViewListener tabViewListener = webViewActivity2.Tf;
|
|
webViewActivity2.Tf = null;
|
|
WebNestFrame webNestFrame = webViewActivity2.H2;
|
|
if (webNestFrame != null && webViewActivity2.I2 != null) {
|
|
webNestFrame.G();
|
|
if (Float.compare(webNestFrame.x, 0.0f) != 0 || Float.compare(webNestFrame.A, 0.0f) != 0) {
|
|
webNestFrame.x = 0.0f;
|
|
webNestFrame.A = 0.0f;
|
|
webNestFrame.invalidate();
|
|
}
|
|
webViewActivity2.H2.w(false);
|
|
webViewActivity2.H2.setVisibility(0);
|
|
webViewActivity2.T8(webViewActivity2.r3(), false, true);
|
|
webViewActivity2.u7(true);
|
|
webViewActivity2.n7();
|
|
webViewActivity2.i9 = false;
|
|
}
|
|
if (tabViewListener != null) {
|
|
tabViewListener.a();
|
|
}
|
|
webViewActivity2.vc = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$140, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass140 implements Runnable {
|
|
public AnonymousClass140() {
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x003c */
|
|
/* JADX WARN: Type inference failed for: r2v1, types: [com.mycompany.app.view.MySnackbar$SnackItem, java.lang.Object] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r9 = this;
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
com.mycompany.app.web.WebNestFrame r1 = r0.Vf
|
|
r2 = 0
|
|
r0.Vf = r2
|
|
if (r1 != 0) goto La
|
|
return
|
|
La:
|
|
com.mycompany.app.view.MySnackbar$SnackItem r2 = new com.mycompany.app.view.MySnackbar$SnackItem
|
|
r2.<init>()
|
|
r2.f = r1
|
|
r1 = 0
|
|
r0.U9(r1)
|
|
r0.T4()
|
|
com.mycompany.app.web.WebTabBarSubView r3 = r0.d3
|
|
if (r3 == 0) goto L2b
|
|
com.mycompany.app.view.MyTabFrame r4 = r3.q
|
|
r5 = 1
|
|
if (r4 != 0) goto L23
|
|
r4 = r1
|
|
goto L26
|
|
L23:
|
|
boolean r4 = r4.J
|
|
r4 = r4 ^ r5
|
|
L26:
|
|
if (r4 == 0) goto L2b
|
|
r1 = r5
|
|
L29:
|
|
r4 = r3
|
|
goto L2e
|
|
L2b:
|
|
com.mycompany.app.view.MyWebCoord r3 = r0.f2
|
|
goto L29
|
|
L2e:
|
|
com.mycompany.app.view.MySnackbar r3 = new com.mycompany.app.view.MySnackbar
|
|
r3.<init>(r0)
|
|
r0.l3 = r3
|
|
com.google.android.material.appbar.AppBarLayout r5 = r0.g2
|
|
r3.setAppBarView(r5)
|
|
if (r1 == 0) goto L44
|
|
com.mycompany.app.view.MySnackbar r1 = r0.l3
|
|
int r3 = com.mycompany.app.main.MainApp.H1
|
|
float r3 = (float) r3
|
|
r1.setElevation(r3)
|
|
L44:
|
|
com.mycompany.app.view.MySnackbar r1 = r0.l3
|
|
r1.setSnackItem(r2)
|
|
com.mycompany.app.view.MySnackbar r3 = r0.l3
|
|
int r6 = com.mycompany.app.soulbrowser.R.string.undelete
|
|
com.mycompany.app.web.WebViewActivity$140$1 r8 = new com.mycompany.app.web.WebViewActivity$140$1
|
|
r8.<init>()
|
|
r0 = 2
|
|
r3.i = r0
|
|
r5 = 0
|
|
r7 = 0
|
|
r3.x(r4, r5, r6, r7, r8)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass140.run():void");
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$145, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass145 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$145$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.U7(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.145.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass145 anonymousClass145 = AnonymousClass145.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.E2();
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.145.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z = webViewActivity3.cg;
|
|
String str = webViewActivity3.dg;
|
|
webViewActivity3.dg = null;
|
|
if (webViewActivity3.H2 != null && (webNestView = webViewActivity3.I2) != null) {
|
|
if (webNestView.g) {
|
|
webNestView.setWebViewClient(new LocalWebViewClient());
|
|
webViewActivity3.I2.setWebChromeClient(new LocalChromeClient());
|
|
webViewActivity3.I2.setDownloadListener(new DownloadListener() { // from class: com.mycompany.app.web.WebViewActivity.146
|
|
@Override // android.webkit.DownloadListener
|
|
public final void onDownloadStart(String str2, String str3, String str4, String str5, long j) {
|
|
WebViewActivity.L0(WebViewActivity.this, str2, str4, str5, j, true);
|
|
}
|
|
});
|
|
webViewActivity3.eg = z;
|
|
webViewActivity3.fg = str;
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 != null) {
|
|
myWebCoord3.post(new AnonymousClass148());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity3.N8(webNestView, 0);
|
|
webViewActivity3.Yf = z;
|
|
webViewActivity3.Zf = str;
|
|
MyWebCoord myWebCoord4 = webViewActivity3.f2;
|
|
if (myWebCoord4 != null) {
|
|
myWebCoord4.post(new AnonymousClass147());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity3.eg = z;
|
|
webViewActivity3.fg = str;
|
|
MyWebCoord myWebCoord5 = webViewActivity3.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new AnonymousClass148());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass145() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.T7(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$147, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass147 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$147$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.P8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.147.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass147 anonymousClass147 = AnonymousClass147.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Q8(webViewActivity2.H2, webViewActivity2.I2, 0);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.147.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z = webViewActivity3.Yf;
|
|
String str = webViewActivity3.Zf;
|
|
webViewActivity3.Zf = null;
|
|
webViewActivity3.eg = z;
|
|
webViewActivity3.fg = str;
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new AnonymousClass148());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass147() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$148, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass148 implements Runnable {
|
|
public AnonymousClass148() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
PrevPageListener prevPageListener = webViewActivity.Xf;
|
|
webViewActivity.Xf = null;
|
|
webViewActivity.F2();
|
|
webViewActivity.f8();
|
|
if (prevPageListener != null) {
|
|
prevPageListener.a();
|
|
}
|
|
webViewActivity.qc = false;
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$15, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass15 implements Runnable {
|
|
public AnonymousClass15() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z = PrefTts.H;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z) {
|
|
webViewActivity.K7(!webViewActivity.L3);
|
|
}
|
|
if (webViewActivity.L3) {
|
|
webViewActivity.N7();
|
|
if (!webViewActivity.j9 && !webViewActivity.Ea) {
|
|
webViewActivity.Ea = true;
|
|
webViewActivity.v7();
|
|
}
|
|
webViewActivity.H3();
|
|
} else {
|
|
MyFindView myFindView = webViewActivity.C2;
|
|
if (myFindView != null && myFindView.g) {
|
|
webViewActivity.C2();
|
|
}
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.15.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebViewActivity.b1(webViewActivity2);
|
|
webViewActivity2.F7();
|
|
WebViewActivity.c1(webViewActivity2);
|
|
WebViewActivity.d1(webViewActivity2);
|
|
if (webViewActivity2.L3 || (handler2 = webViewActivity2.O0) == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.15.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (!webViewActivity3.L3) {
|
|
webViewActivity3.N7();
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
MyFindView myFindView2 = webViewActivity4.C2;
|
|
if (myFindView2 != null && !myFindView2.g) {
|
|
webViewActivity4.C2();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$162, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass162 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$162$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.r7(webViewActivity.w9, webViewActivity.x9);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.162.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass162 anonymousClass162 = AnonymousClass162.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebViewActivity.V0(webViewActivity2, webViewActivity2.w9);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.162.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.bn = true;
|
|
AppBarLayout appBarLayout = webViewActivity3.g2;
|
|
if (appBarLayout != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 != null) {
|
|
myWebCoord3.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.163
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.o1(webViewActivity4);
|
|
webViewActivity4.bn = false;
|
|
}
|
|
}, 300L);
|
|
}
|
|
WebViewActivity.this.Kc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass162() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
KeyHelper keyHelper = webViewActivity.c2;
|
|
if (keyHelper != null) {
|
|
keyHelper.b(webViewActivity.w9, webViewActivity.x9);
|
|
}
|
|
webViewActivity.R8();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$165, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass165 implements Runnable {
|
|
public AnonymousClass165() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MainUtil.J7(webViewActivity.getWindow(), webViewActivity.a0(), webViewActivity.c0(), webViewActivity.w9, webViewActivity.x9);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.165.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MainUtil.I7(webViewActivity2.getWindow(), webViewActivity2.a0(), webViewActivity2.c0(), webViewActivity2.w9, webViewActivity2.x9);
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.165.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity3.l2();
|
|
WebViewActivity.this.Lc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$168, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass168 implements Runnable {
|
|
public AnonymousClass168() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z = PrefWeb.t;
|
|
boolean z2 = PrefWeb.u;
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.r7(z, z2);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$177, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass177 implements WebTabBarSubView.TabBarSubListener {
|
|
public AnonymousClass177() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebTabBarSubView.TabBarSubListener
|
|
public final void a(int i, boolean z) {
|
|
WebTabBarAdapter webTabBarAdapter;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H2 == null || webViewActivity.G5()) {
|
|
return;
|
|
}
|
|
webViewActivity.P2 = i;
|
|
if (z && (webTabBarAdapter = webViewActivity.b3) != null) {
|
|
webTabBarAdapter.j = webTabBarAdapter.C(i);
|
|
webTabBarAdapter.h = i;
|
|
}
|
|
webViewActivity.U4();
|
|
webViewActivity.L1(WebViewActivity.o3(), new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.177.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z2) {
|
|
WebViewActivity.l1(WebViewActivity.this, z2);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void b(int i, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H2 == null || webViewActivity.G5() || webViewActivity.c3) {
|
|
return;
|
|
}
|
|
if (z) {
|
|
webViewActivity.U4();
|
|
}
|
|
if (i == webViewActivity.P2) {
|
|
webViewActivity.d6(null, 38);
|
|
} else {
|
|
webViewActivity.A2(i);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$18, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass18 implements Runnable {
|
|
public AnonymousClass18() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
PayHelper payHelper = webViewActivity.u9;
|
|
if (payHelper != null) {
|
|
BillingClient billingClient = payHelper.b;
|
|
if (billingClient != null) {
|
|
try {
|
|
if (billingClient.d()) {
|
|
payHelper.b.c();
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
payHelper.b = null;
|
|
payHelper.f15721c = null;
|
|
payHelper.f = null;
|
|
}
|
|
webViewActivity.u9 = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$2, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass2 implements Runnable {
|
|
public AnonymousClass2() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean equals;
|
|
long j;
|
|
String str;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MainApp.u(webViewActivity.i1, webViewActivity.getResources());
|
|
MainUtil.d5(webViewActivity.i1);
|
|
MainUtil.s7(webViewActivity.i1);
|
|
MainApp.M(webViewActivity.i1);
|
|
if (PrefSecret.j) {
|
|
PrefSecret.j = false;
|
|
PrefSet.g(9, webViewActivity.i1, "mInitQuick", false);
|
|
Context context = webViewActivity.i1;
|
|
DbBookQuick dbBookQuick = DbBookQuick.f12946c;
|
|
if (context != null) {
|
|
String[] strArr = {"https://www.google.com/", "https://m.youtube.com/", "https://m.facebook.com/", "https://www.instagram.com/", "https://x.com/"};
|
|
String[] strArr2 = {"Google", "YouTube", "Facebook", "Instagram", "X"};
|
|
int[] iArr = {R.drawable.baseline_search_google, R.drawable.baseline_search_youtube, R.drawable.ic_facebook, R.drawable.ic_instagram, R.drawable.ic_twitter};
|
|
for (int i = 0; i < 5; i++) {
|
|
String str2 = strArr[i];
|
|
if (!DbBookQuick.o(context, str2)) {
|
|
ContentValues f = a.f("_path", str2);
|
|
f.put("_title", strArr2[i]);
|
|
f.put("_order", Integer.valueOf(i));
|
|
f.put("_secret", (Integer) 0);
|
|
Bitmap d = BitmapUtil.d(context.getResources(), iArr[i]);
|
|
if (MainUtil.f6(d)) {
|
|
try {
|
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
|
d.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
|
|
f.put("_icon", byteArrayOutputStream.toByteArray());
|
|
byteArrayOutputStream.close();
|
|
} catch (Exception unused) {
|
|
}
|
|
} else {
|
|
f.put("_rsv4", Integer.valueOf(DbBookQuick.m()));
|
|
}
|
|
DbUtil.e(DbBookQuick.i(context).getWritableDatabase(), "DbBookQuick_table", f);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (PrefZtwo.Q == 9) {
|
|
PrefZtwo.Q = 0;
|
|
PrefZtwo.R = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
PrefZtwo.u(webViewActivity.i1);
|
|
}
|
|
boolean z = webViewActivity.x8;
|
|
boolean z2 = webViewActivity.N1;
|
|
boolean z3 = webViewActivity.T8;
|
|
webViewActivity.x8 = false;
|
|
webViewActivity.N1 = false;
|
|
webViewActivity.T8 = false;
|
|
try {
|
|
int i2 = PrefWeb.s;
|
|
if (i2 != 126) {
|
|
boolean z4 = PrefSync.k;
|
|
if (z4) {
|
|
if ((i2 & 64) != 64) {
|
|
webViewActivity.O2 = DbBookTab.d(webViewActivity.i1, z4);
|
|
}
|
|
} else if ((i2 & 32) != 32) {
|
|
webViewActivity.O2 = DbBookTab.d(webViewActivity.i1, z4);
|
|
}
|
|
}
|
|
List list = webViewActivity.O2;
|
|
if (list == null || list.isEmpty()) {
|
|
webViewActivity.P2 = webViewActivity.V1(0, WebViewActivity.o3(), null, false, false);
|
|
}
|
|
if (webViewActivity.y8) {
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(webViewActivity.P2);
|
|
if (n3 != null) {
|
|
j = n3.f19520c;
|
|
str = n3.j;
|
|
webViewActivity.T1 = n3.l;
|
|
} else {
|
|
j = 0;
|
|
str = null;
|
|
}
|
|
if (z || TextUtils.isEmpty(PrefWeb.l)) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
webViewActivity.A8 = str;
|
|
webViewActivity.U1 = "file:///android_asset/shortcut.html".equals(str);
|
|
webViewActivity.C8 = DbTabState.d(webViewActivity.i1, j);
|
|
} else {
|
|
webViewActivity.A8 = "file:///android_asset/shortcut.html";
|
|
webViewActivity.U1 = true;
|
|
if (n3 != null) {
|
|
n3.j = "file:///android_asset/shortcut.html";
|
|
}
|
|
}
|
|
if (webViewActivity.U8) {
|
|
webViewActivity.U1 = false;
|
|
}
|
|
}
|
|
} else if (z2) {
|
|
if (!TextUtils.isEmpty(webViewActivity.A8)) {
|
|
int V1 = webViewActivity.V1(webViewActivity.J2(false), webViewActivity.A8, null, false, false);
|
|
webViewActivity.P2 = V1;
|
|
WebTabAdapter.WebTabItem n32 = webViewActivity.n3(V1);
|
|
if (n32 != null) {
|
|
n32.o = true;
|
|
}
|
|
}
|
|
} else if (!z3) {
|
|
Iterator it = webViewActivity.O2.iterator();
|
|
while (true) {
|
|
if (it.hasNext()) {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) it.next();
|
|
if (webTabItem != null && MainUtil.q5(webViewActivity.A8, webTabItem.j)) {
|
|
webViewActivity.P2 = webTabItem.h;
|
|
webViewActivity.T1 = webTabItem.l;
|
|
webViewActivity.C8 = DbTabState.d(webViewActivity.i1, webTabItem.f19520c);
|
|
break;
|
|
}
|
|
} else {
|
|
webViewActivity.P2 = webViewActivity.V1(webViewActivity.J2(false), webViewActivity.A8, null, false, false);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
webViewActivity.t8();
|
|
if (PrefWeb.j) {
|
|
webViewActivity.T1 = true;
|
|
}
|
|
} catch (Exception unused2) {
|
|
}
|
|
if (!webViewActivity.U8 && webViewActivity.U1 != (equals = "file:///android_asset/shortcut.html".equals(webViewActivity.A8))) {
|
|
webViewActivity.U1 = equals;
|
|
webViewActivity.V1 = true;
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity2.n7();
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.2.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Object obj = WebViewActivity.this.W1;
|
|
if (obj == null) {
|
|
return;
|
|
}
|
|
synchronized (obj) {
|
|
try {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.Y1 = true;
|
|
if (!webViewActivity3.X1) {
|
|
return;
|
|
}
|
|
WebViewActivity.P0(webViewActivity3);
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$200, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass200 implements WebNestFrame.WebFrameListener {
|
|
public AnonymousClass200() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestFrame.WebFrameListener
|
|
public final void a(int i, boolean z) {
|
|
WebNestView webNestView;
|
|
QuickView quickView;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i != 1) {
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity.G2(i, z);
|
|
if (webViewActivity.U1 && (webNestView = webViewActivity.I2) != null && (quickView = webNestView.Z0) != null) {
|
|
quickView.B = false;
|
|
if (quickView.C) {
|
|
quickView.C = false;
|
|
quickView.v(false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
WebViewActivity.z0(webViewActivity);
|
|
webViewActivity.L8();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.200.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.e9 == 1234) {
|
|
int t3 = webViewActivity2.t3();
|
|
webViewActivity2.W8(t3, webViewActivity2.u3());
|
|
if (MainUtil.U4() && webViewActivity2.ec != webViewActivity2.U1) {
|
|
webViewActivity2.o8(t3, webViewActivity2.b3());
|
|
}
|
|
}
|
|
webViewActivity2.O9();
|
|
webViewActivity2.f8();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestFrame.WebFrameListener
|
|
public final void b(WebNestView webNestView, int i) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.E8 && webViewActivity.H2 != null && webNestView != null && webNestView.equals(webViewActivity.I2) && !webViewActivity.Ic) {
|
|
webViewActivity.Ic = true;
|
|
webViewActivity.Qg = i;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.203
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2;
|
|
int i3;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i4 = webViewActivity2.Qg;
|
|
boolean z = false;
|
|
if (webViewActivity2.H2 == null) {
|
|
webViewActivity2.Ic = false;
|
|
return;
|
|
}
|
|
if (webViewActivity2.R5 != null) {
|
|
webViewActivity2.b5();
|
|
}
|
|
webViewActivity2.r6();
|
|
webViewActivity2.I3(true);
|
|
webViewActivity2.K3();
|
|
webViewActivity2.P4();
|
|
webViewActivity2.t6(false);
|
|
webViewActivity2.H2();
|
|
int pageIndex = webViewActivity2.H2.getPageIndex();
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
z = webNestView2.C;
|
|
i2 = webViewActivity2.t3();
|
|
i3 = webViewActivity2.u3();
|
|
} else {
|
|
i2 = 0;
|
|
i3 = 0;
|
|
}
|
|
webViewActivity2.i6();
|
|
WebNestView webNestView3 = new WebNestView(webViewActivity2);
|
|
webViewActivity2.I2 = webNestView3;
|
|
webViewActivity2.K8(webNestView3);
|
|
webViewActivity2.I2.setDeskMode(z);
|
|
webViewActivity2.I2.T(i2, i3);
|
|
WebNestFrame webNestFrame = webViewActivity2.H2;
|
|
WebNestView webNestView4 = webViewActivity2.I2;
|
|
if (webNestFrame != null && webNestView4 != null) {
|
|
webNestFrame.j(webNestView4, i4);
|
|
webNestFrame.C(webNestFrame.y(pageIndex), webNestView4, true);
|
|
}
|
|
webViewActivity2.j8();
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.204
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.N8(webViewActivity3.I2, 0);
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new AnonymousClass205());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestFrame.WebFrameListener
|
|
public final void c(int i, boolean z) {
|
|
int pageIndex;
|
|
if (i != 4) {
|
|
int i2 = WebViewActivity.Fo;
|
|
return;
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestFrame webNestFrame = webViewActivity.H2;
|
|
if (webNestFrame != null && webViewActivity.I2 != null) {
|
|
if (z) {
|
|
pageIndex = webNestFrame.getPageIndex() - 1;
|
|
} else {
|
|
pageIndex = webNestFrame.getPageIndex() + 1;
|
|
}
|
|
if (webViewActivity.H2.y(pageIndex) != null) {
|
|
webViewActivity.I2.setVisibility(8);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestFrame.WebFrameListener
|
|
public final void d() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.E8) {
|
|
webViewActivity.E8 = true;
|
|
if (webViewActivity.Jc) {
|
|
return;
|
|
}
|
|
webViewActivity.Jc = true;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.200.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame = webViewActivity2.H2;
|
|
if (webNestFrame != null) {
|
|
String str = webViewActivity2.A8;
|
|
if (webNestFrame.r && !webNestFrame.s && PrefZtwo.E) {
|
|
long j = webNestFrame.i;
|
|
if (j > 0) {
|
|
DbTabState.f(webNestFrame.getContext(), j, str, null, webNestFrame.getListToStr());
|
|
}
|
|
}
|
|
}
|
|
if (!MainUtil.isUiForeground(webViewActivity2)) {
|
|
MainUtil.quietKillProcess();
|
|
webViewActivity2.Jc = false;
|
|
return;
|
|
}
|
|
MainUtil.c7(webViewActivity2, null, webViewActivity2.U1);
|
|
webViewActivity2.Jc = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestFrame.WebFrameListener
|
|
public final void e(int i, boolean z, boolean z2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z2) {
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity.k6(i, z, null);
|
|
} else {
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity.G2(i, z);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$205, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass205 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$205$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.P8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.205.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass205 anonymousClass205 = AnonymousClass205.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Q8(webViewActivity2.H2, webViewActivity2.I2, 0);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.205.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.I2 == null) {
|
|
webViewActivity3.Ic = false;
|
|
return;
|
|
}
|
|
webViewActivity3.T8(webViewActivity3.A8, false, true);
|
|
webViewActivity3.i9 = false;
|
|
if (TextUtils.isEmpty(webViewActivity3.A8)) {
|
|
webViewActivity3.Ic = false;
|
|
return;
|
|
}
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.206
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.I2 != null && !TextUtils.isEmpty(webViewActivity4.A8)) {
|
|
AppBarLayout appBarLayout = webViewActivity4.g2;
|
|
if (appBarLayout != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
final WebNestView webNestView = webViewActivity4.I2;
|
|
String str = webViewActivity4.A8;
|
|
webNestView.I();
|
|
webNestView.e1 = true;
|
|
WebCrashView webCrashView = webNestView.d1;
|
|
if (webCrashView != null) {
|
|
if (webCrashView != null) {
|
|
webCrashView.setCrashUrl(str);
|
|
webNestView.d1.b();
|
|
webNestView.d1.setVisibility(0);
|
|
}
|
|
} else {
|
|
webNestView.J1 = str;
|
|
Handler handler = webNestView.f;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebNestView.13
|
|
public AnonymousClass13() {
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r2v2, types: [android.widget.LinearLayout, com.mycompany.app.web.WebCrashView] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2 = WebNestView.this;
|
|
String str2 = webNestView2.J1;
|
|
webNestView2.J1 = null;
|
|
if (!webNestView2.e1) {
|
|
webNestView2.G(null);
|
|
return;
|
|
}
|
|
if (webNestView2.d1 == null) {
|
|
?? linearLayout = new LinearLayout(webNestView2.getContext());
|
|
webNestView2.d1 = linearLayout;
|
|
linearLayout.setListener(new WebCrashView.CrashViewListener() { // from class: com.mycompany.app.web.WebNestView.14
|
|
public AnonymousClass14() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebCrashView.CrashViewListener
|
|
public final void a(int i) {
|
|
WebViewListener webViewListener = WebNestView.this.u;
|
|
if (webViewListener != null) {
|
|
webViewListener.a(i);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebCrashView.CrashViewListener
|
|
public final void b(String str3) {
|
|
WebNestView.this.G(str3);
|
|
}
|
|
});
|
|
webNestView2.K1 = str2;
|
|
Handler handler2 = webNestView2.f;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebNestView.15
|
|
public AnonymousClass15() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView3 = WebNestView.this;
|
|
String str3 = webNestView3.K1;
|
|
webNestView3.K1 = null;
|
|
if (!webNestView3.e1) {
|
|
webNestView3.G(null);
|
|
return;
|
|
}
|
|
WebCrashView webCrashView2 = webNestView3.d1;
|
|
if (webCrashView2 != null) {
|
|
webNestView3.addView(webCrashView2, -1, -1);
|
|
webNestView3.L1 = str3;
|
|
Handler handler3 = webNestView3.f;
|
|
if (handler3 == null) {
|
|
return;
|
|
}
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebNestView.16
|
|
public AnonymousClass16() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView4 = WebNestView.this;
|
|
String str4 = webNestView4.L1;
|
|
webNestView4.L1 = null;
|
|
if (!webNestView4.e1) {
|
|
webNestView4.G(null);
|
|
return;
|
|
}
|
|
WebCrashView webCrashView3 = webNestView4.d1;
|
|
if (webCrashView3 == null) {
|
|
return;
|
|
}
|
|
webCrashView3.setCrashUrl(str4);
|
|
webNestView4.d1.b();
|
|
webNestView4.d1.setVisibility(0);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
webViewActivity4.A8();
|
|
}
|
|
webViewActivity4.Ic = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass205() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$210, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass210 implements WebClean.WebCleanListener {
|
|
public AnonymousClass210() {
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$221, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass221 implements Runnable {
|
|
public AnonymousClass221() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String trim;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.Qh;
|
|
String str2 = null;
|
|
webViewActivity.Qh = null;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
if (str != null && (trim = str.trim()) != null && trim.length() >= 12 && trim.startsWith("javascript:")) {
|
|
str2 = trim.substring(11);
|
|
}
|
|
MainUtil.I(webViewActivity.I2, str2, true);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$225, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass225 implements Runnable {
|
|
public AnonymousClass225() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.E7(true);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$235, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass235 implements Runnable {
|
|
public AnonymousClass235() {
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0036 */
|
|
/* JADX WARN: Removed duplicated region for block: B:13:? A[RETURN, SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r4 = this;
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
boolean r1 = r0.H8
|
|
if (r1 == 0) goto L31
|
|
boolean r1 = r0.J8
|
|
if (r1 != 0) goto L31
|
|
java.lang.String r1 = r0.L8
|
|
java.lang.String r2 = r0.A8
|
|
boolean r1 = com.mycompany.app.main.MainUtil.q5(r1, r2)
|
|
if (r1 != 0) goto L22
|
|
java.lang.String r1 = r0.A8
|
|
r0.L8 = r1
|
|
com.mycompany.app.web.WebNestView r1 = r0.I2
|
|
com.mycompany.app.main.MainUtil.Y7(r1)
|
|
boolean r1 = r0.Z8()
|
|
goto L32
|
|
L22:
|
|
boolean r1 = com.mycompany.app.pref.PrefZtwo.U
|
|
if (r1 == 0) goto L31
|
|
com.mycompany.app.web.WebNestView r1 = r0.I2
|
|
if (r1 != 0) goto L2b
|
|
goto L31
|
|
L2b:
|
|
java.lang.String r2 = "(function(){var ele=document.querySelector(\"button[class*='ytp-unmute']\");if(ele){ele.click();}})();"
|
|
r3 = 1
|
|
com.mycompany.app.main.MainUtil.I(r1, r2, r3)
|
|
L31:
|
|
r1 = 0
|
|
L32:
|
|
r0.li = r1
|
|
if (r1 != 0) goto L39
|
|
r0.R6()
|
|
L39:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass235.run():void");
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$247, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass247 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$247$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MyEditAuto myEditAuto = webViewActivity.x2;
|
|
if (myEditAuto == null) {
|
|
return;
|
|
}
|
|
myEditAuto.selectAll();
|
|
webViewActivity.x2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.247.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass247 anonymousClass247 = AnonymousClass247.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MyEditAuto myEditAuto2 = webViewActivity2.x2;
|
|
if (myEditAuto2 == null) {
|
|
return;
|
|
}
|
|
MainUtil.c8(webViewActivity2.i1, myEditAuto2);
|
|
WebViewActivity.this.x2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.247.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.k9 = false;
|
|
}
|
|
}, 600L);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass247() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MyEditAuto myEditAuto = webViewActivity.x2;
|
|
if (myEditAuto == null) {
|
|
return;
|
|
}
|
|
myEditAuto.requestFocus();
|
|
webViewActivity.x2.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$250, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass250 implements WebSearchAdapter.WebSearchListener {
|
|
public AnonymousClass250() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSearchAdapter.WebSearchListener
|
|
public final void a(int i, boolean z) {
|
|
QuickSearch quickSearch;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.j9 && (quickSearch = webViewActivity.A3) != null) {
|
|
quickSearch.p(i, z);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSearchAdapter.WebSearchListener
|
|
public final int b() {
|
|
QuickSearch quickSearch = WebViewActivity.this.A3;
|
|
if (quickSearch == null) {
|
|
return 0;
|
|
}
|
|
return quickSearch.getOutPadHeight();
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSearchAdapter.WebSearchListener
|
|
public final void c() {
|
|
QuickSearch quickSearch = WebViewActivity.this.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.t();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSearchAdapter.WebSearchListener
|
|
public final boolean d() {
|
|
return !"file:///android_asset/shortcut.html".equals(WebViewActivity.this.A8);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSearchAdapter.WebSearchListener
|
|
public final void e(String str) {
|
|
QuickSearch quickSearch = WebViewActivity.this.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.setLoadClip(str);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSearchAdapter.WebSearchListener
|
|
public final void g(int i, String str) {
|
|
MyEditAuto myEditAuto = WebViewActivity.this.x2;
|
|
if (myEditAuto == null) {
|
|
return;
|
|
}
|
|
myEditAuto.i(i, str);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSearchAdapter.WebSearchListener
|
|
public final void h(WebSearchAdapter.SearchItem searchItem) {
|
|
WebViewActivity.i1(WebViewActivity.this, searchItem);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$251, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass251 implements DialogSetMsg.DialogMsgListener {
|
|
public AnonymousClass251() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogSetMsg.DialogMsgListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogSetMsg dialogSetMsg = webViewActivity.F2;
|
|
if (dialogSetMsg == null) {
|
|
return;
|
|
}
|
|
dialogSetMsg.C();
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.251.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DbBookRecent.j(webViewActivity2.i1, PrefSync.k);
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.251.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity3.r4();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogSetMsg.DialogMsgListener
|
|
public final void b() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String j3 = WebViewActivity.j3(webViewActivity.s3(false));
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) SettingCustom.class);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
intent.putExtra("EXTRA_NOTI", true);
|
|
intent.putExtra("EXTRA_INDEX", 10);
|
|
webViewActivity.startActivity(intent);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$26, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass26 implements Runnable {
|
|
public AnonymousClass26() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.f2 != null) {
|
|
if (!PrefMain.s) {
|
|
webViewActivity.G6();
|
|
webViewActivity.H6();
|
|
} else {
|
|
if (webViewActivity.sb != null) {
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.post(new AnonymousClass28());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
try {
|
|
if (webViewActivity.rb == null) {
|
|
webViewActivity.rb = Executors.newSingleThreadExecutor();
|
|
}
|
|
CastContext.f(webViewActivity.i1, webViewActivity.rb).c(new OnCompleteListener<CastContext>() { // from class: com.mycompany.app.web.WebViewActivity.27
|
|
@Override // com.google.android.gms.tasks.OnCompleteListener
|
|
public final void onComplete(Task task) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (!webViewActivity2.F1 && task != null) {
|
|
try {
|
|
webViewActivity2.sb = (CastContext) task.m();
|
|
} catch (Exception unused) {
|
|
}
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 != null) {
|
|
handler2.post(new AnonymousClass28());
|
|
}
|
|
}
|
|
}
|
|
});
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$270, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass270 implements WebVideoFrame.VideoFrameListener {
|
|
public AnonymousClass270() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebVideoFrame.VideoFrameListener
|
|
public final void a() {
|
|
boolean z = PrefRead.q;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z) {
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.o9();
|
|
} else {
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity.C7(0);
|
|
}
|
|
}
|
|
|
|
public final void b(long j) {
|
|
WebVideoPip webVideoPip = WebViewActivity.this.S5;
|
|
if (webVideoPip != null) {
|
|
webVideoPip.setYouPos(j);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$271, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass271 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$271$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 == null) {
|
|
webViewActivity.Mc = false;
|
|
return;
|
|
}
|
|
webViewActivity.r7(false, false);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.271.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass271 anonymousClass271 = AnonymousClass271.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.R5 == null) {
|
|
webViewActivity2.Mc = false;
|
|
return;
|
|
}
|
|
WebViewActivity.V0(webViewActivity2, false);
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.271.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.R5 == null) {
|
|
webViewActivity3.Mc = false;
|
|
return;
|
|
}
|
|
webViewActivity3.g2(webViewActivity3.getWindow(), -16777216, -16777216);
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.272
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.R5 == null) {
|
|
webViewActivity4.Mc = false;
|
|
return;
|
|
}
|
|
MainUtil.E7(webViewActivity4.getWindow(), webViewActivity4.a0(), webViewActivity4.c0(), true, true);
|
|
MyWebCoord myWebCoord4 = webViewActivity4.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.272.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
if (webViewActivity5.R5 == null) {
|
|
webViewActivity5.Mc = false;
|
|
return;
|
|
}
|
|
if (Build.VERSION.SDK_INT < 30) {
|
|
MainUtil.G7(webViewActivity5.getWindow(), webViewActivity5.a0(), webViewActivity5.w9, webViewActivity5.x9, false, PrefVideo.n);
|
|
webViewActivity5.V9();
|
|
return;
|
|
}
|
|
MainUtil.F7(webViewActivity5.getWindow(), webViewActivity5.w9, PrefVideo.n);
|
|
MyWebCoord myWebCoord5 = webViewActivity5.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.273
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity6 = WebViewActivity.this;
|
|
if (webViewActivity6.R5 == null) {
|
|
webViewActivity6.Mc = false;
|
|
return;
|
|
}
|
|
MainUtil.J7(webViewActivity6.getWindow(), webViewActivity6.a0(), webViewActivity6.c0(), webViewActivity6.w9, webViewActivity6.x9);
|
|
MyWebCoord myWebCoord6 = webViewActivity6.f2;
|
|
if (myWebCoord6 == null) {
|
|
return;
|
|
}
|
|
myWebCoord6.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.273.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass273 anonymousClass273 = AnonymousClass273.this;
|
|
WebViewActivity webViewActivity7 = WebViewActivity.this;
|
|
if (webViewActivity7.R5 == null) {
|
|
webViewActivity7.Mc = false;
|
|
return;
|
|
}
|
|
Window window = webViewActivity7.getWindow();
|
|
View a0 = WebViewActivity.this.a0();
|
|
WindowInsetsControllerCompat c0 = WebViewActivity.this.c0();
|
|
WebViewActivity webViewActivity8 = WebViewActivity.this;
|
|
MainUtil.I7(window, a0, c0, webViewActivity8.w9, webViewActivity8.x9);
|
|
WebViewActivity.this.V9();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass271() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 == null) {
|
|
webViewActivity.Mc = false;
|
|
return;
|
|
}
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.setFilterColor(0);
|
|
}
|
|
KeyHelper keyHelper = webViewActivity.c2;
|
|
if (keyHelper != null) {
|
|
keyHelper.b(false, false);
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$274, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass274 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$274$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$274$1$1, reason: invalid class name and collision with other inner class name */
|
|
/* loaded from: classes3.dex */
|
|
class RunnableC03151 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$274$1$1$1, reason: invalid class name and collision with other inner class name */
|
|
/* loaded from: classes3.dex */
|
|
class RunnableC03161 implements Runnable {
|
|
public RunnableC03161() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 != null) {
|
|
webViewActivity.Nc = false;
|
|
return;
|
|
}
|
|
if (!webViewActivity.aj) {
|
|
MainUtil.g7(webViewActivity.getWindow(), PrefPdf.o, PrefPdf.n);
|
|
}
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.274.1.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
RunnableC03151 runnableC03151 = RunnableC03151.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.R5 != null) {
|
|
webViewActivity2.Nc = false;
|
|
return;
|
|
}
|
|
MainUtil.N6(webViewActivity2.Zi, webViewActivity2, webViewActivity2.aj);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.274.1.1.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.R5 != null) {
|
|
webViewActivity3.Nc = false;
|
|
return;
|
|
}
|
|
WebNestView webNestView = webViewActivity3.I2;
|
|
if (webNestView != null) {
|
|
WebSettings settings = webNestView.getSettings();
|
|
settings.setJavaScriptCanOpenWindowsAutomatically(true);
|
|
settings.setSupportMultipleWindows(true);
|
|
}
|
|
MyWebCoord myWebCoord2 = webViewActivity3.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.275
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.R5 != null) {
|
|
webViewActivity4.Nc = false;
|
|
return;
|
|
}
|
|
boolean z = webViewActivity4.T5;
|
|
boolean z2 = MainApp.K1;
|
|
if (z != z2) {
|
|
webViewActivity4.T5 = z2;
|
|
webViewActivity4.w7();
|
|
} else {
|
|
webViewActivity4.o8(webViewActivity4.t3(), webViewActivity4.b3());
|
|
}
|
|
MyWebCoord myWebCoord3 = webViewActivity4.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.276
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
if (webViewActivity5.R5 != null) {
|
|
webViewActivity5.Nc = false;
|
|
} else {
|
|
webViewActivity5.U8(PrefWeb.t, PrefWeb.u, true);
|
|
webViewActivity5.Nc = false;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public RunnableC03151() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass274 anonymousClass274 = AnonymousClass274.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 != null) {
|
|
webViewActivity.Nc = false;
|
|
return;
|
|
}
|
|
MainUtil.O6(webViewActivity.I2, webViewActivity.Zi, webViewActivity.aj);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new RunnableC03161());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.X3();
|
|
webViewActivity.U3();
|
|
webViewActivity.u4();
|
|
webViewActivity.H4();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new RunnableC03151());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass274() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebVideoFrame webVideoFrame = webViewActivity.Yi;
|
|
webViewActivity.Yi = null;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.t();
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$28, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass28 implements Runnable {
|
|
public AnonymousClass28() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
CastContext castContext;
|
|
Handler handler;
|
|
CastSession castSession;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.f2 != null) {
|
|
if (!PrefMain.s) {
|
|
webViewActivity.G6();
|
|
webViewActivity.H6();
|
|
return;
|
|
}
|
|
if (!webViewActivity.F1 && (castContext = webViewActivity.sb) != null) {
|
|
if (webViewActivity.ub == null) {
|
|
try {
|
|
MyStateListener myStateListener = new MyStateListener();
|
|
webViewActivity.ub = myStateListener;
|
|
castContext.a(myStateListener);
|
|
} catch (Exception unused) {
|
|
webViewActivity.ub = null;
|
|
}
|
|
}
|
|
if (webViewActivity.vb == null) {
|
|
try {
|
|
webViewActivity.vb = new MySessionListener();
|
|
webViewActivity.sb.d().a(webViewActivity.vb);
|
|
} catch (Exception unused2) {
|
|
webViewActivity.vb = null;
|
|
}
|
|
}
|
|
try {
|
|
webViewActivity.tb = webViewActivity.sb.d().c();
|
|
} catch (Exception unused3) {
|
|
}
|
|
boolean z = webViewActivity.xb;
|
|
boolean z2 = true;
|
|
if (webViewActivity.sb.b() == 1 && ((castSession = webViewActivity.tb) == null || !castSession.c())) {
|
|
z2 = false;
|
|
}
|
|
webViewActivity.wb = z2;
|
|
webViewActivity.I1();
|
|
if (z && webViewActivity.xb && (handler = webViewActivity.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.29
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MediaRouteButton mediaRouteButton = webViewActivity2.Bb;
|
|
if (mediaRouteButton != null) {
|
|
try {
|
|
CastButtonFactory.a(webViewActivity2.i1, mediaRouteButton);
|
|
} catch (Exception unused4) {
|
|
}
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 != null) {
|
|
handler2.post(new AnonymousClass32());
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$282, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass282 implements Runnable {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final /* synthetic */ WebNestView f20047c;
|
|
|
|
public AnonymousClass282(WebNestView webNestView) {
|
|
this.f20047c = webNestView;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.K8(webViewActivity.I2);
|
|
MainWebDestroy mainWebDestroy = webViewActivity.d2;
|
|
if (mainWebDestroy != null) {
|
|
mainWebDestroy.b(this.f20047c);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$287, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass287 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$287$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.P8(webViewActivity.Fb);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.287.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass287 anonymousClass287 = AnonymousClass287.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Q8(null, webViewActivity2.Fb, 2);
|
|
try {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity3.Fb;
|
|
if (webNestView != null) {
|
|
webNestView.setWebViewClient(new WebViewClient() { // from class: com.mycompany.app.web.WebViewActivity.288
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onPageFinished(WebView webView, String str) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, str);
|
|
MainUtil.j8(webViewActivity4.i1, true);
|
|
if (webView instanceof WebNestView) {
|
|
((WebNestView) webView).setWebLoading(false);
|
|
}
|
|
if (webViewActivity4.Hb != 2) {
|
|
WebViewActivity.x0(0, webViewActivity4, str, null);
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, str);
|
|
MainUtil.j8(webViewActivity4.i1, true);
|
|
if (webView instanceof WebNestView) {
|
|
((WebNestView) webView).setWebLoading(true);
|
|
}
|
|
if (webViewActivity4.Hb == 0) {
|
|
WebViewActivity.x0(0, webViewActivity4, str, null);
|
|
} else {
|
|
webViewActivity4.Ib = str;
|
|
webViewActivity4.Jb = MainUtil.I1(str, true);
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.Fb = null;
|
|
webViewActivity4.Gb = null;
|
|
MainUtil.C(webView, renderProcessGoneDetail);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
|
|
WebResourceResponse j;
|
|
if (webResourceRequest != null && webResourceRequest.getUrl() != null) {
|
|
String uri = webResourceRequest.getUrl().toString();
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebViewActivity.w0(webViewActivity4, webView, uri);
|
|
if (webViewActivity4.Hb == 1 && (webResourceRequest.isForMainFrame() || MainUtil.q5(uri, webViewActivity4.Ib))) {
|
|
String i3 = webViewActivity4.i3(null, webResourceRequest);
|
|
webViewActivity4.Hb = 2;
|
|
WebViewActivity.x0(0, webViewActivity4, uri, i3);
|
|
return null;
|
|
}
|
|
String str = webViewActivity4.Ib;
|
|
String str2 = webViewActivity4.Jb;
|
|
WebClean webClean = webViewActivity4.q9;
|
|
if (webClean == null) {
|
|
j = null;
|
|
} else {
|
|
j = webClean.j(webViewActivity4.i1, webView, webResourceRequest, str, str2, uri, 0);
|
|
}
|
|
if (j != null) {
|
|
return j;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.Fb == null || TextUtils.isEmpty(str)) {
|
|
return false;
|
|
}
|
|
WebViewActivity.w0(webViewActivity4, webView, str);
|
|
MainUtil.j8(webViewActivity4.i1, true);
|
|
int H0 = WebViewActivity.H0(webViewActivity4, str);
|
|
if (H0 != 0) {
|
|
WebViewActivity.x0(H0, webViewActivity4, str, null);
|
|
} else {
|
|
webViewActivity4.Hb = 1;
|
|
webViewActivity4.Ib = str;
|
|
webViewActivity4.Jb = MainUtil.I1(str, true);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.Fb != null && webResourceRequest != null && webResourceRequest.getUrl() != null) {
|
|
String uri = webResourceRequest.getUrl().toString();
|
|
if (TextUtils.isEmpty(uri)) {
|
|
return false;
|
|
}
|
|
WebViewActivity.w0(webViewActivity4, webView, uri);
|
|
MainUtil.j8(webViewActivity4.i1, true);
|
|
int H0 = WebViewActivity.H0(webViewActivity4, uri);
|
|
if (H0 != 0) {
|
|
WebViewActivity.x0(H0, webViewActivity4, uri, null);
|
|
} else {
|
|
webViewActivity4.Hb = 1;
|
|
webViewActivity4.Ib = uri;
|
|
webViewActivity4.Jb = MainUtil.I1(uri, true);
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
});
|
|
webViewActivity3.Fb.setWebChromeClient(new WebChromeClient() { // from class: com.mycompany.app.web.WebViewActivity.289
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onCloseWindow(WebView webView) {
|
|
if (webView != null) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webView.equals(webViewActivity4.Fb)) {
|
|
webViewActivity4.x6();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onProgressChanged(WebView webView, int i) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.Fb == null) {
|
|
return;
|
|
}
|
|
webViewActivity4.a8(i);
|
|
}
|
|
});
|
|
webViewActivity3.Fb.setDownloadListener(new DownloadListener() { // from class: com.mycompany.app.web.WebViewActivity.290
|
|
@Override // android.webkit.DownloadListener
|
|
public final void onDownloadStart(String str, String str2, String str3, String str4, long j) {
|
|
WebViewActivity.L0(WebViewActivity.this, str, str3, str4, j, false);
|
|
}
|
|
});
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.287.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
Message message = webViewActivity4.gj;
|
|
webViewActivity4.gj = null;
|
|
if (message != null && (webNestView2 = webViewActivity4.Fb) != null) {
|
|
try {
|
|
WebView.WebViewTransport webViewTransport = (WebView.WebViewTransport) message.obj;
|
|
if (webViewTransport != null) {
|
|
webViewTransport.setWebView(webNestView2);
|
|
message.sendToTarget();
|
|
}
|
|
} catch (Exception unused2) {
|
|
}
|
|
webViewActivity4.Cc = false;
|
|
return;
|
|
}
|
|
webViewActivity4.Cc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass287() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.Fb);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$299, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass299 implements Runnable {
|
|
public AnonymousClass299() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.pj;
|
|
webViewActivity.pj = null;
|
|
webViewActivity.B9 = MainUtil.A4(webViewActivity, str);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$3, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass3 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$3$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.h5();
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.3.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass3 anonymousClass3 = AnonymousClass3.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.g5();
|
|
Handler handler2 = WebViewActivity.this.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.3.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z = PrefWeb.t;
|
|
boolean z2 = PrefWeb.u;
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity3.U8(z, z2, false);
|
|
Object obj = WebViewActivity.this.W1;
|
|
if (obj == null) {
|
|
return;
|
|
}
|
|
synchronized (obj) {
|
|
try {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.X1 = true;
|
|
if (!webViewActivity4.Y1) {
|
|
return;
|
|
}
|
|
WebViewActivity.P0(webViewActivity4);
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass3() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.m5();
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$32, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass32 implements Runnable {
|
|
public AnonymousClass32() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler;
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.s7(webViewActivity.t3());
|
|
MediaRouteButton mediaRouteButton = webViewActivity.Bb;
|
|
if (mediaRouteButton != null && !mediaRouteButton.isEnabled() && (handler = webViewActivity.O0) != null) {
|
|
handler.post(new AnonymousClass33());
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$327, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass327 implements MyPopupMenu.MyPopupListener {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$327$2, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass2 implements Runnable {
|
|
public AnonymousClass2() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.Q4();
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.327.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass327 anonymousClass327 = AnonymousClass327.this;
|
|
Context context = WebViewActivity.this.i1;
|
|
if (context == null) {
|
|
return;
|
|
}
|
|
PrefWeb.t(context, false);
|
|
WebViewActivity.this.c8(true);
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.327.2.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Context context2 = WebViewActivity.this.i1;
|
|
String V = MainUtil.V(context2, PrefSync.k, false);
|
|
String V2 = MainUtil.V(context2, PrefSync.k, true);
|
|
if (!TextUtils.isEmpty(V)) {
|
|
try {
|
|
ImageLoader.f().g().c(MemoryCacheUtils.a(0, V));
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(V2)) {
|
|
try {
|
|
ImageLoader.f().g().c(MemoryCacheUtils.a(0, V2));
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(V)) {
|
|
try {
|
|
MainUtil.A(context2, V);
|
|
} catch (Exception unused3) {
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(V2)) {
|
|
try {
|
|
MainUtil.A(context2, V2);
|
|
} catch (Exception unused4) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass327() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.J3();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view, int i) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i == 0) {
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity.J3();
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.327.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity2.Q4();
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.327.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
if (WebViewActivity.this.i1 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.this.t0(new Intent(WebViewActivity.this.i1, (Class<?>) MainImageQuick.class), 12);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
if (MainUtil.U4()) {
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity.J3();
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 == null) {
|
|
return true;
|
|
}
|
|
handler2.post(new AnonymousClass2());
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$33, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass33 implements Runnable {
|
|
public AnonymousClass33() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MediaRouteButton mediaRouteButton = webViewActivity.Bb;
|
|
if (mediaRouteButton != null && !mediaRouteButton.isEnabled()) {
|
|
webViewActivity.Bb.setEnabled(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$35, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass35 implements Runnable {
|
|
public AnonymousClass35() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.I9(true);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$352, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass352 implements Runnable {
|
|
public AnonymousClass352() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.B9 = true;
|
|
Task g = new zze(webViewActivity, new GmsBarcodeScannerOptions(true)).a().g(new OnSuccessListener<Barcode>() { // from class: com.mycompany.app.web.WebViewActivity.355
|
|
@Override // com.google.android.gms.tasks.OnSuccessListener
|
|
public final void onSuccess(Object obj) {
|
|
Barcode barcode = (Barcode) obj;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.B9 = false;
|
|
if (barcode == null) {
|
|
return;
|
|
}
|
|
String a2 = barcode.f12799a.a();
|
|
if (TextUtils.isEmpty(a2)) {
|
|
MainUtil.e8(webViewActivity2, R.string.invalid_url);
|
|
} else {
|
|
webViewActivity2.a7(a2);
|
|
}
|
|
}
|
|
});
|
|
g.a(new OnCanceledListener() { // from class: com.mycompany.app.web.WebViewActivity.354
|
|
@Override // com.google.android.gms.tasks.OnCanceledListener
|
|
public final void a() {
|
|
WebViewActivity.this.B9 = false;
|
|
}
|
|
});
|
|
g.e(new OnFailureListener() { // from class: com.mycompany.app.web.WebViewActivity.353
|
|
@Override // com.google.android.gms.tasks.OnFailureListener
|
|
public final void c(Exception exc) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.B9 = false;
|
|
try {
|
|
if (exc instanceof MlKitException) {
|
|
if (((MlKitException) exc).f12762c == 13) {
|
|
return;
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
String message = exc.getMessage();
|
|
if (TextUtils.isEmpty(message)) {
|
|
message = "Failed to scan code";
|
|
}
|
|
MainUtil.f8(webViewActivity2, message);
|
|
}
|
|
});
|
|
webViewActivity.Uj = false;
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$356, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass356 implements Runnable {
|
|
public AnonymousClass356() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
try {
|
|
Intent intent = new Intent("android.speech.action.RECOGNIZE_SPEECH");
|
|
intent.putExtra("android.speech.extra.LANGUAGE_MODEL", "web_search");
|
|
String f2 = MainUtil.f2(MainApp.I1);
|
|
if (!TextUtils.isEmpty(f2)) {
|
|
intent.putExtra("android.speech.extra.LANGUAGE", f2);
|
|
}
|
|
webViewActivity.t0(intent, 17);
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
} catch (ActivityNotFoundException unused) {
|
|
MainUtil.e8(webViewActivity, R.string.apps_none);
|
|
} catch (Exception unused2) {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported);
|
|
}
|
|
webViewActivity.Vj = false;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$364, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass364 implements Runnable {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final /* synthetic */ boolean f20165c;
|
|
|
|
public AnonymousClass364(boolean z) {
|
|
this.f20165c = z;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.Vk;
|
|
if (!TextUtils.isEmpty(str) && str.startsWith("data:") && !str.startsWith("data:image/")) {
|
|
String str2 = webViewActivity.Wk;
|
|
webViewActivity.Vk = null;
|
|
webViewActivity.Wk = null;
|
|
boolean z2 = false;
|
|
long j2 = 0;
|
|
if (webViewActivity.i1 != null && !TextUtils.isEmpty(str2)) {
|
|
z2 = MainUtil.writeBytes(webViewActivity.i1, str2, MainUtil.decodeDataUrl(str));
|
|
if (z2) {
|
|
MainUri.UriItem j = MainUri.j(webViewActivity.i1, str2, MainUri.e());
|
|
if (j != null) {
|
|
j2 = DbBookDown.i(webViewActivity.i1, str2, webViewActivity.A8, j);
|
|
}
|
|
}
|
|
}
|
|
webViewActivity.al = z2;
|
|
webViewActivity.bl = str2;
|
|
webViewActivity.cl = j2;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.364.3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z3 = webViewActivity2.al;
|
|
String str3 = webViewActivity2.bl;
|
|
webViewActivity2.bl = null;
|
|
webViewActivity2.U3();
|
|
if (z3) {
|
|
MainUtil.e8(webViewActivity2, R.string.down_complete);
|
|
} else {
|
|
webViewActivity2.H9(0L, 4, null, null, 1);
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
boolean z = this.f20165c;
|
|
Executor executor = com.bumptech.glide.util.Executors.f2488a;
|
|
if (z) {
|
|
GlideRequest P = ((GlideRequest) GlideApp.a(webViewActivity).A().O(MainUtil.A1(webViewActivity.i1, str, webViewActivity.A8))).P();
|
|
P.H(new MyGlideTarget<File>() { // from class: com.mycompany.app.web.WebViewActivity.364.1
|
|
@Override // com.bumptech.glide.request.target.Target
|
|
public final void a(Object obj, Transition transition) {
|
|
File file = (File) obj;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Vk;
|
|
String str3 = webViewActivity2.Wk;
|
|
webViewActivity2.Vk = null;
|
|
webViewActivity2.Wk = null;
|
|
if (webViewActivity2.i1 != null) {
|
|
webViewActivity2.Xk = str3;
|
|
webViewActivity2.Yk = file;
|
|
webViewActivity2.Zk = null;
|
|
webViewActivity2.m0(new AnonymousClass365());
|
|
}
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.e(str2, false);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyGlideTarget, com.bumptech.glide.request.target.Target
|
|
public final void g(Drawable drawable) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Vk;
|
|
webViewActivity2.Vk = null;
|
|
webViewActivity2.Wk = null;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.d(str2);
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.364.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity3.U3();
|
|
WebViewActivity.this.H9(0L, 4, null, null, 1);
|
|
}
|
|
});
|
|
}
|
|
}, null, P, executor);
|
|
} else {
|
|
GlideRequest P2 = ((GlideRequest) GlideApp.a(webViewActivity).z().O(str)).P();
|
|
P2.H(new MyGlideTarget<Bitmap>() { // from class: com.mycompany.app.web.WebViewActivity.364.2
|
|
@Override // com.bumptech.glide.request.target.Target
|
|
public final void a(Object obj, Transition transition) {
|
|
Bitmap bitmap = (Bitmap) obj;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Vk;
|
|
String str3 = webViewActivity2.Wk;
|
|
webViewActivity2.Vk = null;
|
|
webViewActivity2.Wk = null;
|
|
if (webViewActivity2.i1 != null) {
|
|
webViewActivity2.Xk = str3;
|
|
webViewActivity2.Yk = null;
|
|
webViewActivity2.Zk = bitmap;
|
|
webViewActivity2.m0(new AnonymousClass365());
|
|
}
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.e(str2, false);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyGlideTarget, com.bumptech.glide.request.target.Target
|
|
public final void g(Drawable drawable) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Vk;
|
|
webViewActivity2.Vk = null;
|
|
webViewActivity2.Wk = null;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.d(str2);
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.364.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass2 anonymousClass2 = AnonymousClass2.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity3.U3();
|
|
WebViewActivity.this.H9(0L, 4, null, null, 1);
|
|
}
|
|
});
|
|
}
|
|
}, null, P2, executor);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$365, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass365 implements Runnable {
|
|
public AnonymousClass365() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
MainUri.UriItem j;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.Xk;
|
|
File file = webViewActivity.Yk;
|
|
Bitmap bitmap = webViewActivity.Zk;
|
|
webViewActivity.Xk = null;
|
|
webViewActivity.Yk = null;
|
|
webViewActivity.Zk = null;
|
|
long j2 = 0;
|
|
if (MainUtil.f6(bitmap)) {
|
|
z = MainUtil.p(webViewActivity.i1, bitmap, str);
|
|
} else if (file != null && file.length() > 0) {
|
|
z = MainUtil.t(webViewActivity.i1, file.getPath(), str);
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (z && (j = MainUri.j(webViewActivity.i1, str, MainUri.e())) != null) {
|
|
j2 = DbBookDown.i(webViewActivity.i1, str, webViewActivity.A8, j);
|
|
}
|
|
webViewActivity.al = z;
|
|
webViewActivity.bl = str;
|
|
webViewActivity.cl = j2;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.365.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z2 = webViewActivity2.al;
|
|
String str2 = webViewActivity2.bl;
|
|
long j3 = webViewActivity2.cl;
|
|
webViewActivity2.bl = null;
|
|
webViewActivity2.U3();
|
|
if (z2) {
|
|
if (PrefZone.l0) {
|
|
webViewActivity2.H9(j3, 3, str2, "image/*", 0);
|
|
return;
|
|
} else {
|
|
MainUtil.e8(webViewActivity2, R.string.down_complete);
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity2.H9(0L, 4, null, null, 1);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$369, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass369 implements Runnable {
|
|
public AnonymousClass369() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.kl;
|
|
String str2 = webViewActivity.ll;
|
|
String str3 = webViewActivity.ml;
|
|
long j = webViewActivity.nl;
|
|
webViewActivity.kl = null;
|
|
webViewActivity.ll = null;
|
|
webViewActivity.ml = null;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
// Blob downloads: recover download= name (9802419), accept XHR status 0, keep bytes in __sbBlobs.
|
|
if (str2 == null) {
|
|
str2 = "";
|
|
}
|
|
if (str3 == null) {
|
|
str3 = "";
|
|
}
|
|
StringBuilder sb = new StringBuilder("(function(){var url=");
|
|
sb.append(org.json.JSONObject.quote(str));
|
|
sb.append(";var cd=");
|
|
sb.append(org.json.JSONObject.quote(str2));
|
|
sb.append(";var mime=");
|
|
sb.append(org.json.JSONObject.quote(str3));
|
|
sb.append(";var size=");
|
|
sb.append(j);
|
|
sb.append(";try{var fname=window.__sbLastDlName||'';if(!fname){var links=document.querySelectorAll('a[download]');for(var i=0;i<links.length;i++){if(links[i].href===url){fname=links[i].getAttribute('download')||'';break;}}}if(fname&&(!cd||cd.indexOf('filename')<0)){cd='attachment; filename=\"'+String(fname).split('\"').join('\\\\\"')+'\"';}if(fname&&mime==='text/plain'&&/\\.[A-Za-z0-9]+$/.test(fname)&&!/\\.txt$/i.test(fname)){mime='application/octet-stream';}window.__sbLastDlName='';}catch(e){}function __sbFin(sblnk){var sbblb=document.getElementById('sb_down_blob');if(sbblb){document.body.removeChild(sbblb);}sbblb=document.createElement('a');sbblb.href=sblnk;sbblb.id='sb_down_blob';sbblb.style='display:none';document.body.appendChild(sbblb);android.onBlobDown(sblnk,cd||'',mime||'',size);}function __sbGo(){var xhr=new XMLHttpRequest();xhr.open('GET',url,true);xhr.responseType='blob';xhr.onload=function(){if(this.status==200||this.status==0){try{__sbFin(URL.createObjectURL(this.response));return;}catch(e){}}android.onBlobDown(url,cd||'',mime||'',size);};xhr.onerror=function(){android.onBlobDown(url,cd||'',mime||'',size);};xhr.send();}try{var b=window.__sbBlobs&&window.__sbBlobs[url];if(b){__sbFin(URL.createObjectURL(b));}else{__sbGo();}}catch(e){__sbGo();}})();");
|
|
MainUtil.I(webNestView, sb.toString(), true);
|
|
}
|
|
}
|
|
|
|
/* Recover download= filename for data: URL downloads (WebView omits Content-Disposition). */
|
|
class AnonymousClass683 implements Runnable {
|
|
public AnonymousClass683() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView == null) {
|
|
String str = webViewActivity.kl;
|
|
String str2 = webViewActivity.ll;
|
|
String str3 = webViewActivity.ml;
|
|
long j = webViewActivity.nl;
|
|
webViewActivity.kl = null;
|
|
webViewActivity.ll = null;
|
|
webViewActivity.ml = null;
|
|
webViewActivity.l9(str, str2, str3, j, 0, null);
|
|
return;
|
|
}
|
|
MainUtil.I(webNestView, "(function(){var n=window.__sbLastDlName||'';try{window.__sbLastDlName='';}catch(e){}if(!n){try{var a=document.querySelectorAll('a[download]');for(var i=0;i<a.length;i++){var d=a[i].getAttribute('download');if(d){n=d;break;}}}catch(e){}}try{android.onDataDownName(n||'');}catch(e){try{android.onDataDownName('');}catch(e2){}}})();", true);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$376, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass376 implements SettingListAdapter.SettingListener {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$376$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$376$1$1, reason: invalid class name and collision with other inner class name */
|
|
/* loaded from: classes3.dex */
|
|
class RunnableC03261 implements Runnable {
|
|
public RunnableC03261() {
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r3v1, types: [android.view.View$OnClickListener, java.lang.Object] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
AnonymousClass376 anonymousClass376 = AnonymousClass376.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
long j = webViewActivity.z6;
|
|
if (webViewActivity.w6 == null) {
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
Bitmap bitmap = null;
|
|
if (myWebBody != null) {
|
|
try {
|
|
int width = myWebBody.getWidth();
|
|
int height = myWebBody.getHeight();
|
|
if (width != 0 && height != 0) {
|
|
if (j > 0 && height > (i = (int) (j / (width * 32)))) {
|
|
height = i;
|
|
}
|
|
int round = Math.round(width * 0.2f);
|
|
int round2 = Math.round(height * 0.2f);
|
|
if (round != 0 && round2 != 0) {
|
|
Bitmap createBitmap = Bitmap.createBitmap(round, round2, Bitmap.Config.RGB_565);
|
|
Canvas canvas = new Canvas(createBitmap);
|
|
canvas.scale(0.2f, 0.2f);
|
|
myWebBody.draw(canvas);
|
|
canvas.drawColor(-1593835520);
|
|
bitmap = createBitmap;
|
|
}
|
|
}
|
|
} catch (Exception | OutOfMemoryError unused) {
|
|
}
|
|
}
|
|
webViewActivity.w6 = new MyCoverView(webViewActivity, -328966, MainApp.y1, MainApp.z1);
|
|
if (MainUtil.f6(bitmap)) {
|
|
webViewActivity.w6.setBackground(new BitmapDrawable(webViewActivity.getResources(), bitmap));
|
|
} else {
|
|
webViewActivity.w6.setBackgroundColor(-1593835520);
|
|
}
|
|
webViewActivity.w6.setOnClickListener(new Object());
|
|
webViewActivity.e2.addView(webViewActivity.w6, -1, -1);
|
|
}
|
|
Handler handler = WebViewActivity.this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.376.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.y6 = webNestView.getScrollY();
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.f2.D(webViewActivity3.I2, webViewActivity3.z6, new MyWebCoord.MyCaptureListener() { // from class: com.mycompany.app.web.WebViewActivity.376.1.1.1.1
|
|
@Override // com.mycompany.app.view.MyWebCoord.MyCaptureListener
|
|
public final void a() {
|
|
WebViewActivity.D0(WebViewActivity.this);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.z6 = MainUtil.U(webViewActivity.i1);
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new RunnableC03261());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass376() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.setting.SettingListAdapter.SettingListener
|
|
public final void a(SettingListAdapter.ViewHolder viewHolder, int i, boolean z, int i2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i == 0) {
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity.N3();
|
|
webViewActivity.sl = false;
|
|
webViewActivity.m0(new AnonymousClass381());
|
|
return;
|
|
}
|
|
if (webViewActivity.U1) {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
} else {
|
|
if (webViewActivity.O0 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.N3();
|
|
webViewActivity.m0(new AnonymousClass1());
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$378, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass378 implements View.OnClickListener {
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$381, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass381 implements Runnable {
|
|
public AnonymousClass381() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.tl = MainUtil.U(webViewActivity.i1);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.381.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ViewParent parent;
|
|
int i;
|
|
int i2;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z = webViewActivity2.sl;
|
|
long j = webViewActivity2.tl;
|
|
if (webViewActivity2.I2 != null && !webViewActivity2.G1 && !webViewActivity2.J5()) {
|
|
webViewActivity2.I2();
|
|
DialogCapture dialogCapture = webViewActivity2.A6;
|
|
Bitmap bitmap = null;
|
|
if (dialogCapture != null) {
|
|
dialogCapture.dismiss();
|
|
webViewActivity2.A6 = null;
|
|
}
|
|
int i3 = -1;
|
|
if (z && !webViewActivity2.U1) {
|
|
if (webViewActivity2.w6 == null) {
|
|
webViewActivity2.q6();
|
|
return;
|
|
}
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
try {
|
|
int width = webNestView.getWidth();
|
|
int height = webNestView.getHeight();
|
|
if (width != 0 && height != 0) {
|
|
if (j > 0 && height > (i2 = (int) (j / (width * 32)))) {
|
|
height = i2;
|
|
}
|
|
int round = Math.round(width * 0.5f);
|
|
int round2 = Math.round(height * 0.5f);
|
|
if (round != 0 && round2 != 0) {
|
|
webNestView.invalidate();
|
|
Bitmap createBitmap = Bitmap.createBitmap(round, round2, Bitmap.Config.ARGB_8888);
|
|
Canvas canvas = new Canvas(createBitmap);
|
|
if (MainApp.L1) {
|
|
i3 = -16777216;
|
|
}
|
|
canvas.drawColor(i3);
|
|
canvas.scale(0.5f, 0.5f);
|
|
webNestView.draw(canvas);
|
|
bitmap = createBitmap;
|
|
}
|
|
}
|
|
} catch (Exception | OutOfMemoryError unused) {
|
|
}
|
|
}
|
|
webViewActivity2.q6();
|
|
} else {
|
|
WebNestFrame webNestFrame = webViewActivity2.H2;
|
|
if (webNestFrame != null) {
|
|
try {
|
|
int width2 = webNestFrame.getWidth();
|
|
int height2 = webNestFrame.getHeight();
|
|
if (width2 != 0 && height2 != 0) {
|
|
if (j > 0 && height2 > (i = (int) (j / (width2 * 32)))) {
|
|
height2 = i;
|
|
}
|
|
float f = -MainUtil.H3();
|
|
int round3 = Math.round(width2);
|
|
int round4 = Math.round(height2 + f);
|
|
if (round3 != 0 && round4 > 0 && (parent = webNestFrame.getParent()) != null && (parent instanceof ViewGroup)) {
|
|
webNestFrame.D();
|
|
ViewGroup viewGroup = (ViewGroup) parent;
|
|
Bitmap createBitmap2 = Bitmap.createBitmap(round3, round4, Bitmap.Config.ARGB_8888);
|
|
Canvas canvas2 = new Canvas(createBitmap2);
|
|
if (MainApp.L1) {
|
|
i3 = -16777216;
|
|
}
|
|
canvas2.drawColor(i3);
|
|
if (Float.compare(f, 0.0f) != 0) {
|
|
canvas2.translate(0.0f, f);
|
|
}
|
|
viewGroup.draw(canvas2);
|
|
bitmap = createBitmap2;
|
|
}
|
|
}
|
|
} catch (Exception | OutOfMemoryError unused2) {
|
|
}
|
|
}
|
|
}
|
|
if (!MainUtil.f6(bitmap)) {
|
|
MainUtil.e8(webViewActivity2, R.string.image_fail);
|
|
return;
|
|
}
|
|
webViewActivity2.Z9();
|
|
DialogCapture dialogCapture2 = new DialogCapture(webViewActivity2, bitmap, z, webViewActivity2.v3(webViewActivity2.I2, webViewActivity2.A8));
|
|
webViewActivity2.A6 = dialogCapture2;
|
|
dialogCapture2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.382
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.I2();
|
|
DialogCapture dialogCapture3 = webViewActivity3.A6;
|
|
if (dialogCapture3 != null) {
|
|
dialogCapture3.dismiss();
|
|
webViewActivity3.A6 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$385, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass385 implements ValueCallback<String> {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$385$2, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass2 implements Runnable {
|
|
public AnonymousClass2() {
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:31:0x010a */
|
|
/* JADX WARN: Removed duplicated region for block: B:33:0x010f */
|
|
/* JADX WARN: Removed duplicated region for block: B:67:0x015a A[ORIG_RETURN, RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:69:0x015b */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 356
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass385.AnonymousClass2.run():void");
|
|
}
|
|
}
|
|
|
|
public AnonymousClass385() {
|
|
}
|
|
|
|
@Override // android.webkit.ValueCallback
|
|
public final void onReceiveValue(String str) {
|
|
String str2 = str;
|
|
boolean isEmpty = TextUtils.isEmpty(str2);
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (isEmpty) {
|
|
if (webViewActivity.f2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.U9(false);
|
|
webViewActivity.T4();
|
|
MySnackbar mySnackbar = new MySnackbar(webViewActivity);
|
|
webViewActivity.u3 = mySnackbar;
|
|
mySnackbar.setAppBarView(webViewActivity.g2);
|
|
webViewActivity.u3.v(webViewActivity.f2, R.string.save_fail, new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.385.1
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.u3 = null;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.xl = str2;
|
|
webViewActivity.m0(new AnonymousClass2());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$398, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass398 implements Runnable {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final /* synthetic */ String f20218c;
|
|
|
|
public AnonymousClass398(String str) {
|
|
this.f20218c = str;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.M7(WebViewActivity.this.I2, this.f20218c);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$407, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass407 implements Runnable {
|
|
public AnonymousClass407() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.D8(false);
|
|
if (!MainUtil.q5(webViewActivity.R6, webViewActivity.A8)) {
|
|
webViewActivity.L6();
|
|
WebViewActivity.Q0(webViewActivity);
|
|
} else if (webViewActivity.K6) {
|
|
webViewActivity.K6 = false;
|
|
webViewActivity.L6();
|
|
webViewActivity.B9();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$427, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass427 implements Runnable {
|
|
public AnonymousClass427() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.Jl;
|
|
webViewActivity.Jl = null;
|
|
boolean A4 = MainUtil.A4(webViewActivity, str);
|
|
webViewActivity.B9 = A4;
|
|
if (!A4) {
|
|
webViewActivity.Kl = str;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.428
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Kl;
|
|
webViewActivity2.Kl = null;
|
|
boolean I4 = MainUtil.I4(webViewActivity2, str2);
|
|
webViewActivity2.B9 = I4;
|
|
if (I4 || (handler2 = webViewActivity2.O0) == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.428.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.e8(WebViewActivity.this, R.string.apps_none);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$43, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass43 implements View.OnClickListener {
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$449, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass449 implements Runnable {
|
|
public AnonymousClass449() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 != null) {
|
|
String A2 = MainUtil.A2(webViewActivity.l7);
|
|
if (!TextUtils.isEmpty(A2) && webViewActivity.k7 != null) {
|
|
MainUtil.I(webViewActivity.I2, A2, true);
|
|
}
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.449.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.k7 != null && (webNestView = webViewActivity2.I2) != null) {
|
|
webNestView.setOnTouchListener(new View.OnTouchListener() { // from class: com.mycompany.app.web.WebViewActivity.450
|
|
@Override // android.view.View.OnTouchListener
|
|
public final boolean onTouch(View view, MotionEvent motionEvent) {
|
|
int actionMasked = motionEvent.getActionMasked();
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (actionMasked != 0) {
|
|
if (actionMasked == 1 && webViewActivity3.k7 != null) {
|
|
webViewActivity3.m7 = false;
|
|
MyWebCoord myWebCoord2 = webViewActivity3.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.451
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.k7 != null && !webViewActivity4.m7) {
|
|
if (TextUtils.isEmpty(webViewActivity4.n7)) {
|
|
String C2 = MainUtil.C2();
|
|
webViewActivity4.n7 = C2;
|
|
if (TextUtils.isEmpty(C2)) {
|
|
return;
|
|
}
|
|
}
|
|
MainUtil.I(webViewActivity4.I2, webViewActivity4.n7, true);
|
|
}
|
|
}
|
|
}, 200L);
|
|
return false;
|
|
}
|
|
}
|
|
} else if (webViewActivity3.k7 != null) {
|
|
webViewActivity3.m7 = true;
|
|
MainUtil.I(webViewActivity3.I2, "window.sbtouch=true;", true);
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
});
|
|
}
|
|
webViewActivity2.Yl = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$494, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass494 implements Runnable {
|
|
public AnonymousClass494() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String[] strArr;
|
|
SQLiteDatabase writableDatabase;
|
|
int d;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.Nm;
|
|
int i = webViewActivity.Om;
|
|
int i2 = webViewActivity.Pm;
|
|
webViewActivity.Nm = null;
|
|
Context context = webViewActivity.i1;
|
|
DbBookPms dbBookPms = DbBookPms.f12944c;
|
|
if (context != null && !TextUtils.isEmpty(str) && (d = DbUtil.d((writableDatabase = DbBookPms.b(context).getWritableDatabase()), "DbBookPms_table", null, "_path=?", (strArr = new String[]{str}))) != 0) {
|
|
ContentValues f = a.f("_path", str);
|
|
f.put("_time", Long.valueOf(System.currentTimeMillis()));
|
|
f.put("_allow", Integer.valueOf(i));
|
|
f.put("_block", Integer.valueOf(i2));
|
|
if (d == 1) {
|
|
DbUtil.h(writableDatabase, "DbBookPms_table", f, "_path=?", strArr);
|
|
} else {
|
|
DbUtil.e(writableDatabase, "DbBookPms_table", f);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$502, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass502 implements Runnable {
|
|
public AnonymousClass502() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebFltView webFltView = webViewActivity.Na;
|
|
if (webFltView != null) {
|
|
webFltView.o();
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(webViewActivity.Na);
|
|
}
|
|
webViewActivity.Na = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$510, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass510 implements Runnable {
|
|
public AnonymousClass510() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler = WebViewActivity.this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.510.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
WebViewDatabase.getInstance(webViewActivity.i1).clearHttpAuthUsernamePassword();
|
|
} catch (Exception | NoSuchMethodError unused) {
|
|
}
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.510.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass510 anonymousClass510 = AnonymousClass510.this;
|
|
MainUtil.Q6(WebViewActivity.this.i1);
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.m0(new AnonymousClass511());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$511, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass511 implements Runnable {
|
|
public AnonymousClass511() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MainUtil.d7(webViewActivity, "web_restart_url", webViewActivity.U1);
|
|
webViewActivity.Ec = false;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$520, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass520 implements Runnable {
|
|
public AnonymousClass520() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!MainApp.z(webViewActivity.i1) && MainApp.A(webViewActivity.i1)) {
|
|
MobileAds.initialize(webViewActivity, new OnInitializationCompleteListener() { // from class: com.mycompany.app.web.WebViewActivity.520.1
|
|
@Override // com.google.android.gms.ads.initialization.OnInitializationCompleteListener
|
|
public final void onInitializationComplete(InitializationStatus initializationStatus) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MainApp p = MainApp.p(webViewActivity2.i1);
|
|
if (p != null) {
|
|
p.h = true;
|
|
}
|
|
webViewActivity2.b2 = false;
|
|
MyWebBody myWebBody = webViewActivity2.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.520.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass520 anonymousClass520 = AnonymousClass520.this;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
if (webViewActivity3.O0 != null) {
|
|
Context context = webViewActivity3.i1;
|
|
MainApp.AdBusyListener adBusyListener = new MainApp.AdBusyListener() { // from class: com.mycompany.app.web.WebViewActivity.521
|
|
@Override // com.mycompany.app.main.MainApp.AdBusyListener
|
|
public final boolean a() {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (!webViewActivity4.T9 && !webViewActivity4.L3 && !webViewActivity4.M3 && !webViewActivity4.bn) {
|
|
MainWebDestroy mainWebDestroy = webViewActivity4.d2;
|
|
if (mainWebDestroy == null || !mainWebDestroy.e || mainWebDestroy.g) {
|
|
return webViewActivity4.x5();
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainApp.AdBusyListener
|
|
public final void b(int i2, boolean z) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (i2 == 1) {
|
|
webViewActivity4.Oc = z;
|
|
} else {
|
|
webViewActivity4.Pc = z;
|
|
}
|
|
}
|
|
};
|
|
MainApp p2 = MainApp.p(context);
|
|
if (p2 != null) {
|
|
p2.J0 = adBusyListener;
|
|
}
|
|
}
|
|
DialogAdNative dialogAdNative = WebViewActivity.this.K7;
|
|
if (dialogAdNative != null) {
|
|
dialogAdNative.G();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
} else {
|
|
webViewActivity.b2 = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$538, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass538 implements WebGridDialog.WebImgListener {
|
|
public AnonymousClass538() {
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$541, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass541 implements WebGridDialog.WebImgListener {
|
|
public AnonymousClass541() {
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$548, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass548 implements Runnable {
|
|
public AnonymousClass548() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.dn;
|
|
boolean z = webViewActivity.en;
|
|
int i = webViewActivity.fn;
|
|
webViewActivity.dn = null;
|
|
if (i == 0) {
|
|
webViewActivity.k9(str, null);
|
|
} else {
|
|
webViewActivity.M7(str, i, z);
|
|
}
|
|
webViewActivity.cn = false;
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$610, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass610 implements Runnable {
|
|
public AnonymousClass610() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.En;
|
|
webViewActivity.En = null;
|
|
boolean z = false;
|
|
webViewActivity.Dn = false;
|
|
if (PrefTts.j) {
|
|
if (!MainUtil.q5(webViewActivity.Xa, str)) {
|
|
webViewActivity.Xa = str;
|
|
}
|
|
} else {
|
|
webViewActivity.Xa = null;
|
|
}
|
|
if (!webViewActivity.Z5(true)) {
|
|
if (webViewActivity.J6) {
|
|
webViewActivity.J6 = false;
|
|
webViewActivity.n6();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (PrefAlbum.u == 2) {
|
|
webViewActivity.getClass();
|
|
} else {
|
|
if (!webViewActivity.I8) {
|
|
String str2 = webViewActivity.B8;
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
if (!str2.endsWith("tiktok.com") && !TextUtils.isEmpty(str)) {
|
|
if (!TextUtils.isEmpty(PrefAlbum.z)) {
|
|
z = str.startsWith(PrefAlbum.z);
|
|
} else {
|
|
Locale j = MainApp.j();
|
|
if (j != null) {
|
|
String language = j.getLanguage();
|
|
if (!TextUtils.isEmpty(language)) {
|
|
z = str.startsWith(language);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
z = true;
|
|
}
|
|
webViewActivity.Fn = z;
|
|
MainUtil.O7(webViewActivity.I2, "onTransExist");
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$619, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass619 implements Runnable {
|
|
public AnonymousClass619() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.eb == null && webViewActivity.e2 != null) {
|
|
try {
|
|
WebFltView webFltView = new WebFltView(webViewActivity, 5);
|
|
webViewActivity.eb = webFltView;
|
|
webFltView.q();
|
|
webViewActivity.eb.setHideBlocked(true);
|
|
webViewActivity.eb.setFltListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.619.1
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i) {
|
|
MyWebBody myWebBody = WebViewActivity.this.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.619.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebViewActivity.X0(webViewActivity2, webViewActivity2.In);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebFltView webFltView2 = webViewActivity.eb;
|
|
int i = MainApp.g1;
|
|
myWebBody.addView(webFltView2, i, i);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$639, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass639 implements Runnable {
|
|
public AnonymousClass639() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
int i2;
|
|
int i3;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
long j = webViewActivity.eo;
|
|
int i4 = webViewActivity.fo;
|
|
String str = webViewActivity.f19723go;
|
|
String str2 = webViewActivity.ho;
|
|
int i5 = webViewActivity.f19724io;
|
|
webViewActivity.f19723go = null;
|
|
webViewActivity.ho = null;
|
|
if (webViewActivity.f2 != null) {
|
|
webViewActivity.U9(false);
|
|
webViewActivity.T4();
|
|
MySnackbar mySnackbar = new MySnackbar(webViewActivity);
|
|
webViewActivity.u3 = mySnackbar;
|
|
mySnackbar.setAppBarView(webViewActivity.g2);
|
|
if (TextUtils.isEmpty(str)) {
|
|
if (i5 == 1) {
|
|
i3 = R.string.save_fail;
|
|
} else {
|
|
i3 = R.string.server_error;
|
|
}
|
|
if (webViewActivity.R5 != null) {
|
|
MainApp.K1 = true;
|
|
}
|
|
webViewActivity.u3.v(webViewActivity.f2, i3, new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.639.1
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.u3 = null;
|
|
}
|
|
});
|
|
if (webViewActivity.R5 != null) {
|
|
MainUtil.K7(webViewActivity, false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i4 == 5) {
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.d(str);
|
|
}
|
|
if (webViewActivity.R5 != null) {
|
|
MainApp.K1 = true;
|
|
}
|
|
webViewActivity.u3.v(webViewActivity.f2, R.string.invalid_url, new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.639.2
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.u3 = null;
|
|
}
|
|
});
|
|
if (webViewActivity.R5 != null) {
|
|
MainUtil.K7(webViewActivity, false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i4 == 4) {
|
|
WebNestView webNestView2 = webViewActivity.I2;
|
|
if (webNestView2 != null) {
|
|
webNestView2.d(str);
|
|
}
|
|
if ("live".equals(str)) {
|
|
i2 = R.string.live_fail;
|
|
} else {
|
|
i2 = R.string.server_error;
|
|
}
|
|
if (webViewActivity.R5 != null) {
|
|
MainApp.K1 = true;
|
|
}
|
|
webViewActivity.jo = j;
|
|
webViewActivity.u3.w(webViewActivity.f2, i2, 5, new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.639.3
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.jo == -1) {
|
|
return;
|
|
}
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.639.3.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
long j2 = webViewActivity3.jo;
|
|
MainApp p = MainApp.p(webViewActivity3.i1);
|
|
if (p != null) {
|
|
p.g(j2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.u3 = null;
|
|
}
|
|
});
|
|
if (webViewActivity.R5 != null) {
|
|
MainUtil.K7(webViewActivity, false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i5 == 1) {
|
|
i = R.string.save_success;
|
|
} else {
|
|
i = R.string.down_complete;
|
|
}
|
|
int i6 = i;
|
|
if (webViewActivity.R5 != null) {
|
|
MainApp.K1 = true;
|
|
}
|
|
webViewActivity.jo = j;
|
|
webViewActivity.ko = str;
|
|
webViewActivity.lo = str2;
|
|
MySnackbar mySnackbar2 = webViewActivity.u3;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
MySnackbar.SnackbarListener snackbarListener = new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.639.4
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.ko;
|
|
String str4 = webViewActivity2.lo;
|
|
webViewActivity2.ko = null;
|
|
webViewActivity2.lo = null;
|
|
if (MainUtil.d(webViewActivity2, str3, str4, false, false)) {
|
|
webViewActivity2.B9 = true;
|
|
return;
|
|
}
|
|
if (!webViewActivity2.G1 && !webViewActivity2.J5()) {
|
|
DialogOpenType dialogOpenType = webViewActivity2.a7;
|
|
if (dialogOpenType != null) {
|
|
dialogOpenType.dismiss();
|
|
webViewActivity2.a7 = null;
|
|
}
|
|
int i7 = R.style.DialogExpandTheme;
|
|
if (webViewActivity2.h0()) {
|
|
i7 = 0;
|
|
}
|
|
DialogOpenType dialogOpenType2 = new DialogOpenType(webViewActivity2, i7, str3, false);
|
|
webViewActivity2.a7 = dialogOpenType2;
|
|
dialogOpenType2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.421
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i8 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
DialogOpenType dialogOpenType3 = webViewActivity3.a7;
|
|
if (dialogOpenType3 != null) {
|
|
dialogOpenType3.dismiss();
|
|
webViewActivity3.a7 = null;
|
|
}
|
|
}
|
|
});
|
|
if (!MainConst.e && i7 == 0) {
|
|
return;
|
|
}
|
|
webViewActivity2.a7.x(webViewActivity2.t3(), webViewActivity2.b3(), webViewActivity2.U1, webViewActivity2.a6(), true);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
long j2 = webViewActivity2.jo;
|
|
String str3 = webViewActivity2.ko;
|
|
webViewActivity2.ko = null;
|
|
Context context = webViewActivity2.i1;
|
|
if (context == null) {
|
|
return;
|
|
}
|
|
Intent intent = new Intent(context, (Class<?>) MainListDown.class);
|
|
if (j2 > 0) {
|
|
intent.putExtra("EXTRA_ID", j2);
|
|
} else {
|
|
intent.putExtra("EXTRA_PATH", str3);
|
|
}
|
|
webViewActivity2.t0(intent, 8);
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.u3 = null;
|
|
webViewActivity2.ko = null;
|
|
webViewActivity2.lo = null;
|
|
}
|
|
};
|
|
mySnackbar2.i = 0;
|
|
mySnackbar2.x(myWebCoord, i6, 2, 1, snackbarListener);
|
|
if (webViewActivity.R5 != null) {
|
|
MainUtil.K7(webViewActivity, false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$645, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass645 implements Runnable {
|
|
public AnonymousClass645() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str = webViewActivity.yo;
|
|
webViewActivity.yo = null;
|
|
if (!TextUtils.isEmpty(str) && !webViewActivity.uo && !webViewActivity.vo && webViewActivity.m6 == null && webViewActivity.l9 == null && (webNestView = webViewActivity.I2) != null) {
|
|
webNestView.S0 = true;
|
|
if (!webViewActivity.G1 && !webViewActivity.Ql) {
|
|
webViewActivity.Ql = true;
|
|
webViewActivity.Tl = str;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.440
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Tl;
|
|
webViewActivity2.Tl = null;
|
|
if (webViewActivity2.e2 != null) {
|
|
if (webViewActivity2.R5 != null) {
|
|
webViewActivity2.Ql = false;
|
|
return;
|
|
}
|
|
if (TextUtils.isEmpty(str2)) {
|
|
webViewActivity2.Ql = false;
|
|
return;
|
|
}
|
|
webViewActivity2.Rl = (int) webViewActivity2.V9;
|
|
webViewActivity2.Sl = (int) webViewActivity2.W9;
|
|
WebAreaText webAreaText = webViewActivity2.i7;
|
|
if (webAreaText != null) {
|
|
webAreaText.setLinkText(str2);
|
|
WebAreaText webAreaText2 = webViewActivity2.i7;
|
|
MyWebBody myWebBody = webViewActivity2.e2;
|
|
int i = webViewActivity2.Rl;
|
|
int i2 = webViewActivity2.Sl;
|
|
if (!webAreaText2.w) {
|
|
webAreaText2.o = false;
|
|
webAreaText2.y = null;
|
|
webAreaText2.z = null;
|
|
webAreaText2.D = 0;
|
|
if (webAreaText2.x != MainApp.K1) {
|
|
webAreaText2.v();
|
|
}
|
|
webAreaText2.setAlpha(1.0f);
|
|
webAreaText2.w(myWebBody, i, i2);
|
|
webAreaText2.setVisibility(0);
|
|
}
|
|
webViewActivity2.Ql = false;
|
|
return;
|
|
}
|
|
try {
|
|
WebAreaText webAreaText3 = new WebAreaText(webViewActivity2);
|
|
webViewActivity2.i7 = webAreaText3;
|
|
webAreaText3.setLinkText(str2);
|
|
webViewActivity2.i7.setVisibility(4);
|
|
MyWebBody myWebBody2 = webViewActivity2.e2;
|
|
WebAreaText webAreaText4 = webViewActivity2.i7;
|
|
myWebBody2.addView(webAreaText4, webAreaText4.getViewWidth(), webViewActivity2.i7.getViewHeight());
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.441
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebAreaText webAreaText5 = webViewActivity3.i7;
|
|
if (webAreaText5 != null) {
|
|
webAreaText5.w(webViewActivity3.e2, webViewActivity3.Rl, webViewActivity3.Sl);
|
|
webViewActivity3.i7.setVisibility(0);
|
|
}
|
|
webViewActivity3.Ql = false;
|
|
}
|
|
});
|
|
} catch (Exception unused) {
|
|
webViewActivity2.Ql = false;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$646, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass646 implements Runnable {
|
|
public AnonymousClass646() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
if (PrefWeb.p) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.uo && !webViewActivity.vo && webViewActivity.m6 == null && webViewActivity.l9 == null && (webNestView = webViewActivity.I2) != null) {
|
|
webNestView.S0 = true;
|
|
if (!webViewActivity.G1 && !webViewActivity.Ul) {
|
|
webViewActivity.Ul = true;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.442
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MyWebBody myWebBody = webViewActivity2.e2;
|
|
if (myWebBody != null) {
|
|
if (webViewActivity2.R5 != null) {
|
|
webViewActivity2.Ul = false;
|
|
return;
|
|
}
|
|
int i = (int) webViewActivity2.V9;
|
|
webViewActivity2.Vl = i;
|
|
int i2 = (int) webViewActivity2.W9;
|
|
webViewActivity2.Wl = i2;
|
|
WebAreaMenu webAreaMenu = webViewActivity2.j7;
|
|
if (webAreaMenu != null) {
|
|
if (!webAreaMenu.u) {
|
|
webAreaMenu.m = false;
|
|
webAreaMenu.w = null;
|
|
webAreaMenu.x = null;
|
|
webAreaMenu.B = 0;
|
|
if (webAreaMenu.v != MainApp.K1) {
|
|
webAreaMenu.f();
|
|
}
|
|
webAreaMenu.setAlpha(1.0f);
|
|
webAreaMenu.g(myWebBody, i, i2);
|
|
webAreaMenu.setVisibility(0);
|
|
}
|
|
webViewActivity2.Ul = false;
|
|
return;
|
|
}
|
|
try {
|
|
WebAreaMenu webAreaMenu2 = new WebAreaMenu(webViewActivity2);
|
|
webViewActivity2.j7 = webAreaMenu2;
|
|
webAreaMenu2.setVisibility(4);
|
|
webViewActivity2.j7.setFltListener(new WebAreaMenu.WebAreaMenuListener() { // from class: com.mycompany.app.web.WebViewActivity.443
|
|
@Override // com.mycompany.app.wview.WebAreaMenu.WebAreaMenuListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.V9 = webViewActivity3.Vl;
|
|
webViewActivity3.W9 = webViewActivity3.Wl;
|
|
webViewActivity3.e9(true);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebAreaMenu.WebAreaMenuListener
|
|
public final void b() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String j3 = WebViewActivity.j3(webViewActivity3.s3(false));
|
|
Intent intent = new Intent(webViewActivity3.i1, (Class<?>) SettingClean.class);
|
|
intent.putExtra("EXTRA_NOTI", true);
|
|
intent.putExtra("EXTRA_INDEX", 6);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
webViewActivity3.t0(intent, 32);
|
|
}
|
|
});
|
|
MyWebBody myWebBody2 = webViewActivity2.e2;
|
|
WebAreaMenu webAreaMenu3 = webViewActivity2.j7;
|
|
myWebBody2.addView(webAreaMenu3, webAreaMenu3.getViewWidth(), webViewActivity2.j7.getViewHeight());
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.444
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebAreaMenu webAreaMenu4 = webViewActivity3.j7;
|
|
if (webAreaMenu4 != null) {
|
|
webAreaMenu4.g(webViewActivity3.e2, webViewActivity3.Vl, webViewActivity3.Wl);
|
|
webViewActivity3.j7.setVisibility(0);
|
|
}
|
|
webViewActivity3.Ul = false;
|
|
}
|
|
});
|
|
} catch (Exception unused) {
|
|
webViewActivity2.Ul = false;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$652, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass652 implements Runnable {
|
|
public AnonymousClass652() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Z(webViewActivity.h0());
|
|
webViewActivity.r2();
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$660, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass660 implements View.OnClickListener {
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$665, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass665 implements Runnable {
|
|
public AnonymousClass665() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler = WebViewActivity.this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.665.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
WebViewDatabase.getInstance(webViewActivity.i1).clearHttpAuthUsernamePassword();
|
|
} catch (Exception | NoSuchMethodError unused) {
|
|
}
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.665.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass665 anonymousClass665 = AnonymousClass665.this;
|
|
MainUtil.Q6(WebViewActivity.this.i1);
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if ((PrefWeb.s & 16) != 16) {
|
|
Handler handler3 = webViewActivity2.O0;
|
|
if (handler3 != null) {
|
|
handler3.post(new AnonymousClass667());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
Handler handler4 = webViewActivity2.O0;
|
|
if (handler4 == null) {
|
|
return;
|
|
}
|
|
handler4.post(new AnonymousClass666());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$666, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass666 implements Runnable {
|
|
public AnonymousClass666() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
try {
|
|
webNestView.clearCache(true);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.666.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
try {
|
|
webNestView2.clearHistory();
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 != null) {
|
|
handler2.post(new AnonymousClass667());
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$667, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass667 implements Runnable {
|
|
public AnonymousClass667() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
int i = WebViewActivity.Fo;
|
|
int i2 = PrefWeb.s;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i2 == 126) {
|
|
webViewActivity.H7();
|
|
return;
|
|
}
|
|
if (PrefSync.k) {
|
|
if ((i2 & 64) == 64) {
|
|
webViewActivity.H7();
|
|
return;
|
|
}
|
|
} else if ((i2 & 32) == 32) {
|
|
webViewActivity.H7();
|
|
return;
|
|
}
|
|
if (!webViewActivity.Q1 && (webNestView = webViewActivity.I2) != null && !webNestView.z0) {
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(webViewActivity.P2);
|
|
if (n3 == null) {
|
|
webViewActivity.H7();
|
|
return;
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.668
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.H7();
|
|
}
|
|
}, 1000L);
|
|
webViewActivity.I2.V(webViewActivity.H2, n3.f19520c, n3.j, new WebNestView.WebBundleListener() { // from class: com.mycompany.app.web.WebViewActivity.669
|
|
@Override // com.mycompany.app.web.WebNestView.WebBundleListener
|
|
public final void a() {
|
|
Handler handler2 = WebViewActivity.this.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.669.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity2.H7();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.H7();
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$673, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass673 implements DialogSetFull.DialogApplyListener {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$673$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
try {
|
|
webNestView.clearCache(true);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.673.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass673 anonymousClass673 = AnonymousClass673.this;
|
|
WebNestView webNestView2 = WebViewActivity.this.I2;
|
|
if (webNestView2 != null) {
|
|
try {
|
|
webNestView2.clearHistory();
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
Handler handler2 = WebViewActivity.this.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.673.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
RunnableC03351 runnableC03351 = RunnableC03351.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.s4();
|
|
WebViewActivity.h1(WebViewActivity.this);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass673() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogSetMsg dialogSetMsg = webViewActivity.w8;
|
|
if (dialogSetMsg != null) {
|
|
dialogSetMsg.C();
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$68, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass68 implements Runnable {
|
|
public AnonymousClass68() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.h9 = false;
|
|
WebViewActivity.A0(webViewActivity);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$7, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass7 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$7$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$7$1$1, reason: invalid class name and collision with other inner class name */
|
|
/* loaded from: classes3.dex */
|
|
class RunnableC03371 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$7$1$1$1, reason: invalid class name and collision with other inner class name */
|
|
/* loaded from: classes3.dex */
|
|
class RunnableC03381 implements Runnable {
|
|
public RunnableC03381() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Q8(webViewActivity.H2, webViewActivity.I2, 0);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.7.1.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
RunnableC03371 runnableC03371 = RunnableC03371.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.t5();
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.7.1.1.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
RunnableC03381 runnableC03381 = RunnableC03381.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity3.u5();
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.I2 == null) {
|
|
webViewActivity4.oc = false;
|
|
return;
|
|
}
|
|
MyWebCoord myWebCoord3 = webViewActivity4.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
webViewActivity5.l5();
|
|
webViewActivity5.e5();
|
|
webViewActivity5.oc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public RunnableC03371() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass7 anonymousClass7 = AnonymousClass7.this;
|
|
WebViewActivity.P8(WebViewActivity.this.I2);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new RunnableC03381());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new RunnableC03371());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass7() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.N8(webViewActivity.I2, 0);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$98, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass98 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$98$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$98$1$1, reason: invalid class name and collision with other inner class name */
|
|
/* loaded from: classes3.dex */
|
|
class RunnableC03411 implements Runnable {
|
|
public RunnableC03411() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass98 anonymousClass98 = AnonymousClass98.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Q8(webViewActivity.H2, webViewActivity.I2, 0);
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.98.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.98.1.1.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
int J2;
|
|
WebTabAdapter.WebTabItem n3;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame = webViewActivity2.Wd;
|
|
String str = webViewActivity2.Xd;
|
|
boolean z2 = webViewActivity2.Yd;
|
|
boolean z3 = webViewActivity2.Zd;
|
|
boolean z4 = webViewActivity2.ae;
|
|
boolean z5 = webViewActivity2.be;
|
|
boolean z6 = webViewActivity2.ce;
|
|
TabAddListener tabAddListener = webViewActivity2.de;
|
|
boolean z7 = webViewActivity2.ee;
|
|
boolean z8 = webViewActivity2.fe;
|
|
WebTabAdapter.WebTabItem webTabItem = null;
|
|
webViewActivity2.Wd = null;
|
|
webViewActivity2.Xd = null;
|
|
webViewActivity2.de = null;
|
|
WebNestFrame webNestFrame2 = webViewActivity2.H2;
|
|
if (webNestFrame2 != null) {
|
|
webTabItem = webNestFrame2.getBackItem();
|
|
}
|
|
if (webTabItem != null) {
|
|
J2 = webTabItem.h;
|
|
} else {
|
|
if (!z2 && !z3) {
|
|
z = false;
|
|
} else {
|
|
z = true;
|
|
}
|
|
J2 = webViewActivity2.J2(z);
|
|
}
|
|
int V1 = webViewActivity2.V1(J2, str, webViewActivity2.H2, z2, z3);
|
|
webViewActivity2.P2 = V1;
|
|
if (z7 && (n3 = webViewActivity2.n3(V1)) != null) {
|
|
n3.o = true;
|
|
}
|
|
webViewActivity2.ge = webNestFrame;
|
|
webViewActivity2.he = str;
|
|
webViewActivity2.ie = z4;
|
|
webViewActivity2.je = z5;
|
|
webViewActivity2.ke = z6;
|
|
webViewActivity2.le = tabAddListener;
|
|
webViewActivity2.me = z8;
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new AnonymousClass99());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.P8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new RunnableC03411());
|
|
}
|
|
}
|
|
|
|
public AnonymousClass98() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.O8(webViewActivity.I2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass1());
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$99, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass99 implements Runnable {
|
|
public AnonymousClass99() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
TabLimitListener tabLimitListener = new TabLimitListener() { // from class: com.mycompany.app.web.WebViewActivity.99.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabLimitListener
|
|
public final void a(boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.L8();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.99.1.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame = webViewActivity2.ge;
|
|
String str = webViewActivity2.he;
|
|
boolean z2 = webViewActivity2.ie;
|
|
boolean z3 = webViewActivity2.je;
|
|
boolean z4 = webViewActivity2.ke;
|
|
TabAddListener tabAddListener = webViewActivity2.le;
|
|
boolean z5 = webViewActivity2.me;
|
|
webViewActivity2.ge = null;
|
|
webViewActivity2.he = null;
|
|
webViewActivity2.le = null;
|
|
if (webNestFrame == null && !z5) {
|
|
if (z2) {
|
|
webViewActivity2.A8 = null;
|
|
webViewActivity2.U1 = false;
|
|
webViewActivity2.B8 = null;
|
|
webViewActivity2.D8 = null;
|
|
webViewActivity2.G8 = false;
|
|
webViewActivity2.a9(null);
|
|
webViewActivity2.Li = false;
|
|
webViewActivity2.Mi = null;
|
|
}
|
|
if (webViewActivity2.I2 != null) {
|
|
String str2 = webViewActivity2.Qc;
|
|
webViewActivity2.Qc = null;
|
|
if (TextUtils.isEmpty(str2)) {
|
|
str2 = webViewActivity2.A8;
|
|
}
|
|
String h = webViewActivity2.I2.h(str, false);
|
|
webViewActivity2.T8(h, false, true);
|
|
webViewActivity2.D8 = str2;
|
|
webViewActivity2.I2.z(h, str2);
|
|
}
|
|
} else {
|
|
webViewActivity2.Lb = !"about:blank".equals(str);
|
|
webViewActivity2.T8(str, true, true);
|
|
webViewActivity2.u7(true);
|
|
}
|
|
webViewActivity2.ne = z3;
|
|
webViewActivity2.oe = z4;
|
|
webViewActivity2.pe = tabAddListener;
|
|
webViewActivity2.qe = z5;
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.100
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame webNestFrame2;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z6 = webViewActivity3.ne;
|
|
boolean z7 = webViewActivity3.oe;
|
|
TabAddListener tabAddListener2 = webViewActivity3.pe;
|
|
boolean z8 = webViewActivity3.qe;
|
|
webViewActivity3.pe = null;
|
|
if ((z7 || z8) && (webNestFrame2 = webViewActivity3.H2) != null) {
|
|
webNestFrame2.I();
|
|
}
|
|
webViewActivity3.n7();
|
|
webViewActivity3.b7(1, true);
|
|
webViewActivity3.i9 = false;
|
|
webViewActivity3.re = z6;
|
|
webViewActivity3.se = z7;
|
|
webViewActivity3.te = tabAddListener2;
|
|
webViewActivity3.ue = z8;
|
|
if (z8 && webViewActivity3.Kb) {
|
|
webViewActivity3.K6(new PrevPageListener() { // from class: com.mycompany.app.web.WebViewActivity.101
|
|
@Override // com.mycompany.app.web.WebViewActivity.PrevPageListener
|
|
public final void a() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.W1();
|
|
}
|
|
});
|
|
} else {
|
|
webViewActivity3.W1();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
};
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.u8(tabLimitListener);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class AnchorHandler extends Handler {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final WeakReference f20656a;
|
|
public String b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public String f20657c;
|
|
public String d;
|
|
|
|
public AnchorHandler(WebViewActivity webViewActivity, String str, String str2) {
|
|
super(Looper.getMainLooper());
|
|
this.f20656a = new WeakReference(webViewActivity);
|
|
this.b = str;
|
|
this.f20657c = str2;
|
|
}
|
|
|
|
public static String a(String str, Bundle bundle) {
|
|
try {
|
|
if (Build.VERSION.SDK_INT >= 33) {
|
|
return bundle.getString(str, null);
|
|
}
|
|
return (String) bundle.get(str);
|
|
} catch (Exception unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static String b(String str) {
|
|
int indexOf;
|
|
int i;
|
|
int indexOf2;
|
|
if (str == null) {
|
|
return str;
|
|
}
|
|
int length = str.length();
|
|
if (length != 0) {
|
|
try {
|
|
indexOf = str.indexOf("http");
|
|
if (indexOf >= 0 && (i = indexOf + 4) < length) {
|
|
indexOf2 = str.indexOf(34, i);
|
|
if ((indexOf2 <= indexOf || indexOf2 >= length) && ((indexOf2 = str.indexOf(39, i)) <= indexOf || indexOf2 >= length)) {
|
|
indexOf2 = length;
|
|
}
|
|
if (indexOf <= 0 && indexOf2 >= length) {
|
|
return str;
|
|
}
|
|
}
|
|
return str;
|
|
} catch (Exception unused) {
|
|
return str;
|
|
}
|
|
}
|
|
return str.substring(indexOf, indexOf2);
|
|
}
|
|
|
|
public static boolean c(String str) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
if (!str.startsWith("data:image/") && !str.startsWith("blob:")) {
|
|
if (URLUtil.isNetworkUrl(str)) {
|
|
if (Compress.D(MainUtil.U3(str, false))) {
|
|
return true;
|
|
}
|
|
return MainUtil.l5(str);
|
|
}
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.os.Handler
|
|
public final void handleMessage(Message message) {
|
|
WebViewActivity webViewActivity;
|
|
String str;
|
|
String str2;
|
|
Bundle data;
|
|
WeakReference weakReference = this.f20656a;
|
|
if (weakReference != null && (webViewActivity = (WebViewActivity) weakReference.get()) != null) {
|
|
if (message != null && (data = message.getData()) != null) {
|
|
str = b(a(ImagesContract.URL, data));
|
|
str2 = b(a("src", data));
|
|
String a2 = a("title", data);
|
|
this.d = a2;
|
|
if (!TextUtils.isEmpty(a2)) {
|
|
this.d = this.d.trim();
|
|
}
|
|
} else {
|
|
str = null;
|
|
str2 = null;
|
|
}
|
|
if (TextUtils.isEmpty(this.b) && !TextUtils.isEmpty(this.f20657c)) {
|
|
if (URLUtil.isNetworkUrl(str) && !str.equals(this.f20657c)) {
|
|
this.b = str;
|
|
} else if (URLUtil.isNetworkUrl(str2) && !str2.equals(this.f20657c)) {
|
|
this.b = str2;
|
|
}
|
|
} else if (!TextUtils.isEmpty(this.b) && TextUtils.isEmpty(this.f20657c)) {
|
|
if (URLUtil.isNetworkUrl(str) && !str.equals(this.b)) {
|
|
this.f20657c = str;
|
|
} else if (URLUtil.isNetworkUrl(str2) && !str2.equals(this.b)) {
|
|
this.f20657c = str2;
|
|
}
|
|
} else {
|
|
if (c(str2)) {
|
|
this.f20657c = str2;
|
|
} else if (c(str)) {
|
|
this.f20657c = str;
|
|
}
|
|
if (URLUtil.isNetworkUrl(str) && !str.equals(this.f20657c)) {
|
|
this.b = str;
|
|
} else if (URLUtil.isNetworkUrl(str2) && !str2.equals(this.f20657c)) {
|
|
this.b = str2;
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(this.f20657c) && !this.f20657c.startsWith("data:image/") && !this.f20657c.startsWith("blob:") && WebClean.X(this.f20657c)) {
|
|
if (TextUtils.isEmpty(this.b)) {
|
|
this.b = this.f20657c;
|
|
}
|
|
this.f20657c = null;
|
|
}
|
|
String str3 = this.b;
|
|
String str4 = this.f20657c;
|
|
String str5 = this.d;
|
|
if (webViewActivity.vo || webViewActivity.R5 != null) {
|
|
return;
|
|
}
|
|
if (TextUtils.isEmpty(webViewActivity.mo)) {
|
|
webViewActivity.mo = str3;
|
|
}
|
|
if (TextUtils.isEmpty(webViewActivity.no)) {
|
|
webViewActivity.no = str4;
|
|
}
|
|
if (TextUtils.isEmpty(webViewActivity.oo)) {
|
|
webViewActivity.oo = str5;
|
|
}
|
|
webViewActivity.po = true;
|
|
webViewActivity.P7();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class EventReceiver extends BroadcastReceiver {
|
|
public EventReceiver() {
|
|
}
|
|
|
|
@Override // android.content.BroadcastReceiver
|
|
public final void onReceive(Context context, Intent intent) {
|
|
Handler handler;
|
|
Handler handler2;
|
|
Handler handler3;
|
|
Handler handler4;
|
|
if (intent != null) {
|
|
String action = intent.getAction();
|
|
action.getClass();
|
|
char c2 = 65535;
|
|
switch (action.hashCode()) {
|
|
case -2124716863:
|
|
if (action.equals("com.mycompany.app.soulbrowser.ACTION_BACK_STOP")) {
|
|
c2 = 0;
|
|
break;
|
|
}
|
|
break;
|
|
case -964917260:
|
|
if (action.equals("com.mycompany.app.soulbrowser.ACTION_SECRET_EXIT")) {
|
|
c2 = 1;
|
|
break;
|
|
}
|
|
break;
|
|
case -797871473:
|
|
if (action.equals("com.mycompany.app.soulbrowser.ACTION_DOWN_DELETE")) {
|
|
c2 = 2;
|
|
break;
|
|
}
|
|
break;
|
|
case 625504541:
|
|
if (action.equals("com.mycompany.app.soulbrowser.ACTION_DOWN_COMPLETE")) {
|
|
c2 = 3;
|
|
break;
|
|
}
|
|
break;
|
|
case 924672014:
|
|
if (action.equals("com.mycompany.app.soulbrowser.ACTION_PIP_FFWD")) {
|
|
c2 = 4;
|
|
break;
|
|
}
|
|
break;
|
|
case 924683546:
|
|
if (action.equals("com.mycompany.app.soulbrowser.ACTION_PIP_FRWD")) {
|
|
c2 = 5;
|
|
break;
|
|
}
|
|
break;
|
|
case 924975029:
|
|
if (action.equals("com.mycompany.app.soulbrowser.ACTION_PIP_PLAY")) {
|
|
c2 = 6;
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
switch (c2) {
|
|
case 0:
|
|
if (webViewActivity.f2 == null || !webViewActivity.C9 || (handler = webViewActivity.O0) == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.EventReceiver.6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.h6(true, !r0.D9);
|
|
}
|
|
});
|
|
return;
|
|
case 1:
|
|
if (webViewActivity.f2 != null && PrefSync.k) {
|
|
webViewActivity.l8(false);
|
|
return;
|
|
}
|
|
return;
|
|
case 2:
|
|
if (webViewActivity.f2 != null) {
|
|
String stringExtra = intent.getStringExtra("EXTRA_PATH");
|
|
if (!TextUtils.isEmpty(stringExtra)) {
|
|
webViewActivity.vn = stringExtra;
|
|
webViewActivity.f2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.EventReceiver.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.f2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.EventReceiver.2.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str = webViewActivity3.vn;
|
|
webViewActivity3.vn = null;
|
|
if (webViewActivity3.f2 == null) {
|
|
return;
|
|
}
|
|
MainUtil.z(str);
|
|
}
|
|
});
|
|
}
|
|
}, 2000L);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 3:
|
|
if (webViewActivity.f2 != null) {
|
|
webViewActivity.un = intent;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.EventReceiver.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
Intent intent2 = webViewActivity2.un;
|
|
String str = null;
|
|
webViewActivity2.un = null;
|
|
if (intent2 != null && webViewActivity2.f2 != null) {
|
|
int intExtra = intent2.getIntExtra("EXTRA_STATUS", 3);
|
|
if (!PrefZone.l0 && intExtra == 3) {
|
|
return;
|
|
}
|
|
long longExtra = intent2.getLongExtra("EXTRA_ID", -1L);
|
|
String stringExtra2 = intent2.getStringExtra("EXTRA_TYPE");
|
|
intent2.getBooleanExtra("secretMode", PrefSync.k);
|
|
if (intExtra != 2) {
|
|
if (intExtra == 3) {
|
|
str = DbBookDown.d(webViewActivity2.i1, longExtra);
|
|
} else {
|
|
str = DbBookDown.e(webViewActivity2.i1, longExtra);
|
|
if (intExtra == 4 && MainDownSvc.z(str)) {
|
|
str = "live";
|
|
}
|
|
}
|
|
}
|
|
webViewActivity2.H9(longExtra, intExtra, str, stringExtra2, 0);
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 4:
|
|
if (webViewActivity.f2 != null) {
|
|
if ((webViewActivity.R5 != null || webViewActivity.C9) && (handler2 = webViewActivity.O0) != null) {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.EventReceiver.5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebVideoFrame webVideoFrame = webViewActivity2.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.w();
|
|
return;
|
|
}
|
|
if (webViewActivity2.C9) {
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
String str = webViewActivity2.F9;
|
|
if (webNestView != null) {
|
|
StringBuilder X = MainUtil.X(str);
|
|
X.append("if(ele){var pos=ele.currentTime;if(pos+10<ele.duration){ele.currentTime=pos+10;}else{ele.currentTime=ele.duration;}}");
|
|
X.insert(0, "(function(){");
|
|
X.append("})();");
|
|
MainUtil.I(webNestView, X.toString(), false);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 5:
|
|
if (webViewActivity.f2 != null) {
|
|
if ((webViewActivity.R5 != null || webViewActivity.C9) && (handler3 = webViewActivity.O0) != null) {
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.EventReceiver.3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebVideoFrame webVideoFrame = webViewActivity2.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.x();
|
|
return;
|
|
}
|
|
if (webViewActivity2.C9) {
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
String str = webViewActivity2.F9;
|
|
if (webNestView != null) {
|
|
StringBuilder X = MainUtil.X(str);
|
|
X.append("if(ele){var pos=ele.currentTime;if(pos>10){ele.currentTime=pos-10;}else{ele.currentTime=0;}}");
|
|
X.insert(0, "(function(){");
|
|
X.append("})();");
|
|
MainUtil.I(webNestView, X.toString(), false);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 6:
|
|
if (webViewActivity.f2 != null) {
|
|
if ((webViewActivity.R5 != null || webViewActivity.C9) && (handler4 = webViewActivity.O0) != null) {
|
|
handler4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.EventReceiver.4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebVideoFrame webVideoFrame = webViewActivity2.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.y();
|
|
return;
|
|
}
|
|
if (webViewActivity2.C9) {
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
String str = webViewActivity2.F9;
|
|
if (webNestView != null) {
|
|
StringBuilder X = MainUtil.X(str);
|
|
X.append("if(ele){if(ele.paused){ele.play();}else{ele.pause();}}");
|
|
X.insert(0, "(function(){");
|
|
X.append("})();");
|
|
MainUtil.I(webNestView, X.toString(), false);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
default:
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class FaceItem {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public String f20666a;
|
|
public String b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final String f20667c;
|
|
public final int d;
|
|
public boolean e;
|
|
public long f;
|
|
|
|
public FaceItem(String str, String str2, int i, boolean z) {
|
|
this.f20666a = str;
|
|
this.f20667c = str2;
|
|
this.d = i;
|
|
this.e = z;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class LocalChromeClient extends WebChromeClient {
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$LocalChromeClient$2, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass2 implements Runnable {
|
|
public AnonymousClass2() {
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x0051 */
|
|
/* JADX WARN: Removed duplicated region for block: B:18:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:22:0x0060 */
|
|
/* JADX WARN: Removed duplicated region for block: B:37:? A[RETURN, SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r7 = this;
|
|
com.mycompany.app.web.WebViewActivity$LocalChromeClient r0 = com.mycompany.app.web.WebViewActivity.LocalChromeClient.this
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
java.lang.String r1 = r0.Ni
|
|
r2 = 0
|
|
r0.Ni = r2
|
|
boolean r3 = r0.Li
|
|
r4 = 0
|
|
if (r3 != 0) goto L45
|
|
java.lang.String r3 = r0.B8
|
|
boolean r5 = android.text.TextUtils.isEmpty(r3)
|
|
if (r5 != 0) goto L45
|
|
java.lang.String r5 = "pornoanne.com"
|
|
boolean r3 = r3.endsWith(r5)
|
|
if (r3 != 0) goto L45
|
|
boolean r3 = android.text.TextUtils.isEmpty(r1)
|
|
if (r3 != 0) goto L45
|
|
java.util.Locale r3 = java.util.Locale.US
|
|
java.lang.String r1 = r1.toLowerCase(r3)
|
|
java.lang.String r3 = "xhamster"
|
|
boolean r1 = r1.contains(r3)
|
|
if (r1 == 0) goto L45
|
|
r1 = 1
|
|
r0.Li = r1
|
|
r0.Mi = r2
|
|
java.lang.String r2 = r0.B8
|
|
com.mycompany.app.main.MainUtil.f16990a = r2
|
|
java.lang.String r2 = com.mycompany.app.main.MainUtil.q0(r2)
|
|
com.mycompany.app.main.MainUtil.b = r2
|
|
com.mycompany.app.web.WebViewActivity.Z0(r0)
|
|
goto L46
|
|
L45:
|
|
r1 = r4
|
|
L46:
|
|
boolean r2 = r0.Oi
|
|
if (r2 == 0) goto L5b
|
|
if (r1 != 0) goto L5b
|
|
android.os.Handler r2 = r0.O0
|
|
if (r2 != 0) goto L51
|
|
goto L89
|
|
L51:
|
|
com.mycompany.app.web.WebViewActivity$LocalChromeClient$2$1 r3 = new com.mycompany.app.web.WebViewActivity$LocalChromeClient$2$1
|
|
r3.<init>()
|
|
r5 = 1000(0x3e8, double:4.94E-321)
|
|
r2.postDelayed(r3, r5)
|
|
L5b:
|
|
com.mycompany.app.web.WebNestView r2 = r0.I2
|
|
if (r2 != 0) goto L60
|
|
goto L89
|
|
L60:
|
|
if (r1 != 0) goto L66
|
|
boolean r3 = r2.c2
|
|
if (r3 != 0) goto L89
|
|
L66:
|
|
boolean r3 = r0.U1
|
|
if (r3 != 0) goto L89
|
|
boolean r3 = com.mycompany.app.pref.PrefWeb.o
|
|
if (r3 == 0) goto L89
|
|
if (r1 == 0) goto L82
|
|
r2.setAdsChanged(r1)
|
|
com.mycompany.app.web.WebNestView r1 = r0.I2
|
|
java.lang.String r2 = r0.A8
|
|
java.lang.String r3 = r0.B8
|
|
r1.L(r2, r3, r4)
|
|
com.mycompany.app.web.WebNestView r0 = r0.I2
|
|
r0.setAdsChanged(r4)
|
|
return
|
|
L82:
|
|
java.lang.String r1 = r0.A8
|
|
java.lang.String r0 = r0.B8
|
|
r2.L(r1, r0, r4)
|
|
L89:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.LocalChromeClient.AnonymousClass2.run():void");
|
|
}
|
|
}
|
|
|
|
public LocalChromeClient() {
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onCloseWindow(WebView webView) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webView != null && webView.equals(webViewActivity.Fb)) {
|
|
webViewActivity.x6();
|
|
return;
|
|
}
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null && !webNestView.k && webNestView.equals(webView)) {
|
|
webViewActivity.z2();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x007f, code lost:
|
|
|
|
if (r1.startsWith("tylesheet", r6) == false) goto L48;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:36:0x008a, code lost:
|
|
|
|
if (r1.indexOf("translate", r5 + 27) == (-1)) goto L48;
|
|
*/
|
|
@Override // android.webkit.WebChromeClient
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean onConsoleMessage(android.webkit.ConsoleMessage r9) {
|
|
/*
|
|
r8 = this;
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
com.mycompany.app.wview.WebAreaView r1 = r0.k7
|
|
r2 = 1
|
|
r3 = -1
|
|
if (r1 == 0) goto L41
|
|
if (r9 != 0) goto Lb
|
|
goto L41
|
|
Lb:
|
|
java.lang.String r1 = r9.message()
|
|
boolean r4 = android.text.TextUtils.isEmpty(r1)
|
|
if (r4 == 0) goto L16
|
|
goto L41
|
|
L16:
|
|
java.lang.String r4 = "Uncaught"
|
|
boolean r4 = r1.startsWith(r4)
|
|
if (r4 != 0) goto L1f
|
|
goto L41
|
|
L1f:
|
|
java.lang.String r4 = "borderRadius"
|
|
r5 = 8
|
|
int r1 = r1.indexOf(r4, r5)
|
|
if (r1 == r3) goto L41
|
|
com.mycompany.app.wview.WebAreaView r1 = r0.k7
|
|
if (r1 != 0) goto L2f
|
|
goto Lac
|
|
L2f:
|
|
boolean r1 = r0.Yl
|
|
if (r1 == 0) goto L35
|
|
goto Lac
|
|
L35:
|
|
r0.Yl = r2
|
|
com.mycompany.app.web.WebViewActivity$449 r1 = new com.mycompany.app.web.WebViewActivity$449
|
|
r1.<init>()
|
|
r0.m0(r1)
|
|
goto Lac
|
|
L41:
|
|
boolean r1 = r0.Y5()
|
|
r4 = 0
|
|
if (r1 != 0) goto L49
|
|
goto L51
|
|
L49:
|
|
int r1 = r0.H6
|
|
if (r1 != r2) goto L4e
|
|
goto L51
|
|
L4e:
|
|
r5 = 3
|
|
if (r1 != r5) goto L53
|
|
L51:
|
|
r1 = r4
|
|
goto L56
|
|
L53:
|
|
boolean r1 = r0.Q6
|
|
r1 = r1 ^ r2
|
|
L56:
|
|
if (r1 == 0) goto Lac
|
|
if (r9 != 0) goto L5b
|
|
goto L8d
|
|
L5b:
|
|
java.lang.String r1 = r9.message()
|
|
boolean r5 = android.text.TextUtils.isEmpty(r1)
|
|
if (r5 == 0) goto L66
|
|
goto L8d
|
|
L66:
|
|
java.lang.String r5 = "Refused to load the s"
|
|
int r5 = r1.indexOf(r5)
|
|
if (r5 != r3) goto L6f
|
|
goto L8d
|
|
L6f:
|
|
int r6 = r5 + 21
|
|
java.lang.String r7 = "cript"
|
|
boolean r7 = r1.startsWith(r7, r6)
|
|
if (r7 != 0) goto L82
|
|
java.lang.String r7 = "tylesheet"
|
|
boolean r6 = r1.startsWith(r7, r6)
|
|
if (r6 != 0) goto L82
|
|
goto L8d
|
|
L82:
|
|
int r5 = r5 + 27
|
|
java.lang.String r6 = "translate"
|
|
int r1 = r1.indexOf(r6, r5)
|
|
if (r1 == r3) goto L8d
|
|
goto L8e
|
|
L8d:
|
|
r2 = r4
|
|
L8e:
|
|
if (r2 == 0) goto Lac
|
|
r1 = 2
|
|
r0.H6 = r1
|
|
r0.L6 = r4
|
|
r1 = 0
|
|
r0.M6 = r1
|
|
r0.N6 = r1
|
|
com.mycompany.app.web.WebNestView r1 = r0.I2
|
|
if (r1 != 0) goto L9f
|
|
goto Lac
|
|
L9f:
|
|
com.mycompany.app.view.MyWebBody r1 = r0.e2
|
|
if (r1 != 0) goto La4
|
|
goto Lac
|
|
La4:
|
|
com.mycompany.app.web.WebViewActivity$407 r2 = new com.mycompany.app.web.WebViewActivity$407
|
|
r2.<init>()
|
|
r1.post(r2)
|
|
Lac:
|
|
boolean r9 = super.onConsoleMessage(r9)
|
|
return r9
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.LocalChromeClient.onConsoleMessage(android.webkit.ConsoleMessage):boolean");
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final boolean onCreateWindow(WebView webView, boolean z, boolean z2, Message message) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 == null && !webViewActivity.F1 && webViewActivity.y9 == 0 && webViewActivity.R5 == null && webViewActivity.s3 == null && webViewActivity.b7 == null && webViewActivity.Gb == null && !webViewActivity.Cc) {
|
|
webViewActivity.Cc = true;
|
|
webViewActivity.Hb = 0;
|
|
webViewActivity.Ib = null;
|
|
webViewActivity.Jb = null;
|
|
webViewActivity.Kb = false;
|
|
webViewActivity.cj = message;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.283
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
Message message2 = webViewActivity2.cj;
|
|
webViewActivity2.cj = null;
|
|
if (message2 == null) {
|
|
webViewActivity2.Cc = false;
|
|
return;
|
|
}
|
|
MainUtil.j8(webViewActivity2.i1, true);
|
|
if (webViewActivity2.Fb != null) {
|
|
webViewActivity2.x6();
|
|
}
|
|
webViewActivity2.P4();
|
|
webViewActivity2.dj = message2;
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.284
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
int i2;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
Message message3 = webViewActivity3.dj;
|
|
webViewActivity3.dj = null;
|
|
boolean z3 = false;
|
|
if (message3 == null) {
|
|
webViewActivity3.Cc = false;
|
|
return;
|
|
}
|
|
WebNestView webNestView = webViewActivity3.I2;
|
|
if (webNestView != null) {
|
|
z3 = webNestView.C;
|
|
i = webViewActivity3.t3();
|
|
i2 = webViewActivity3.u3();
|
|
} else {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
webViewActivity3.i6();
|
|
WebNestView webNestView2 = new WebNestView(webViewActivity3);
|
|
webViewActivity3.Fb = webNestView2;
|
|
webViewActivity3.K8(webNestView2);
|
|
webViewActivity3.Fb.setDeskMode(z3);
|
|
webViewActivity3.Fb.T(i, i2);
|
|
webViewActivity3.ej = message3;
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.285
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView3;
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
Message message4 = webViewActivity4.ej;
|
|
webViewActivity4.ej = null;
|
|
if (message4 != null && (webNestView3 = webViewActivity4.Fb) != null) {
|
|
webNestView3.setVisibility(4);
|
|
webViewActivity4.e2.c(webViewActivity4.Fb, new RelativeLayout.LayoutParams(-1, -1));
|
|
webViewActivity4.fj = message4;
|
|
MyWebCoord myWebCoord4 = webViewActivity4.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.286
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView4;
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
Message message5 = webViewActivity5.fj;
|
|
webViewActivity5.fj = null;
|
|
if (message5 != null && (webNestView4 = webViewActivity5.Fb) != null) {
|
|
webViewActivity5.N8(webNestView4, 2);
|
|
webViewActivity5.gj = message5;
|
|
MyWebCoord myWebCoord5 = webViewActivity5.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new AnonymousClass287());
|
|
return;
|
|
}
|
|
webViewActivity5.Cc = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity4.Cc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onGeolocationPermissionsHidePrompt() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.j4();
|
|
super.onGeolocationPermissionsHidePrompt();
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onGeolocationPermissionsShowPrompt(String str, GeolocationPermissions.Callback callback) {
|
|
if (WebViewActivity.y0(callback, null, WebViewActivity.this, str)) {
|
|
return;
|
|
}
|
|
super.onGeolocationPermissionsShowPrompt(str, callback);
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onHideCustomView() {
|
|
boolean z;
|
|
Context context;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebVideoFrame webVideoFrame = webViewActivity.R5;
|
|
if (webVideoFrame != null && webVideoFrame.n()) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
webViewActivity.b5();
|
|
if (z && !webViewActivity.G8 && webViewActivity.S5 == null && (context = webViewActivity.i1) != null) {
|
|
Intent o4 = MainUtil.o4(context);
|
|
o4.addFlags(131072);
|
|
webViewActivity.startActivity(o4);
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final boolean onJsAlert(WebView webView, String str, String str2, JsResult jsResult) {
|
|
if (jsResult == null) {
|
|
return false;
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 != null) {
|
|
jsResult.cancel();
|
|
return true;
|
|
}
|
|
if (TextUtils.isEmpty(str2)) {
|
|
jsResult.confirm();
|
|
return true;
|
|
}
|
|
if (!TextUtils.isEmpty(str2) && str2.startsWith("sb:")) {
|
|
String str3 = null;
|
|
if (str2.equals("sb:ads_preview")) {
|
|
webViewActivity.G9(webViewActivity.A8, 0, null, true);
|
|
} else if (str2.equals("sb:ads_open")) {
|
|
webViewActivity.X8 = webViewActivity.A8;
|
|
webViewActivity.Y8 = true;
|
|
webViewActivity.F6();
|
|
} else if (str2.equals("sb:link_setting")) {
|
|
webViewActivity.g6(11, webViewActivity.A8, null);
|
|
} else if (str2.startsWith("sb:lang=")) {
|
|
if (str2.length() > 8) {
|
|
str3 = str2.substring(8);
|
|
}
|
|
if ("0".equals(str3)) {
|
|
webViewActivity.Dn = false;
|
|
webViewActivity.u7(false);
|
|
} else {
|
|
webViewActivity.En = str3;
|
|
webViewActivity.m0(new AnonymousClass610());
|
|
}
|
|
}
|
|
jsResult.confirm();
|
|
return true;
|
|
}
|
|
WebViewActivity.w1(webViewActivity, str2, jsResult);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final boolean onJsConfirm(WebView webView, String str, String str2, JsResult jsResult) {
|
|
if (jsResult == null) {
|
|
return false;
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 != null) {
|
|
jsResult.cancel();
|
|
return true;
|
|
}
|
|
if (TextUtils.isEmpty(str2)) {
|
|
jsResult.confirm();
|
|
return true;
|
|
}
|
|
WebViewActivity.w1(webViewActivity, str2, jsResult);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final boolean onJsPrompt(WebView webView, String str, String str2, String str3, JsPromptResult jsPromptResult) {
|
|
if (jsPromptResult == null) {
|
|
return false;
|
|
}
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 != null) {
|
|
jsPromptResult.cancel();
|
|
return true;
|
|
}
|
|
if (TextUtils.isEmpty(str2)) {
|
|
jsPromptResult.confirm();
|
|
return true;
|
|
}
|
|
if (webViewActivity.G1) {
|
|
return true;
|
|
}
|
|
webViewActivity.o4();
|
|
DialogPrompt dialogPrompt = new DialogPrompt(webViewActivity, str2, str3, jsPromptResult);
|
|
webViewActivity.v7 = dialogPrompt;
|
|
dialogPrompt.setOnCancelListener(new DialogInterface.OnCancelListener() { // from class: com.mycompany.app.web.WebViewActivity.487
|
|
@Override // android.content.DialogInterface.OnCancelListener
|
|
public final void onCancel(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.o4();
|
|
}
|
|
});
|
|
webViewActivity.v7.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.488
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.o4();
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onPermissionRequest(PermissionRequest permissionRequest) {
|
|
if (WebViewActivity.y0(null, permissionRequest, WebViewActivity.this, null)) {
|
|
return;
|
|
}
|
|
super.onPermissionRequest(permissionRequest);
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onPermissionRequestCanceled(PermissionRequest permissionRequest) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.j4();
|
|
super.onPermissionRequestCanceled(permissionRequest);
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onProgressChanged(WebView webView, int i) {
|
|
boolean v5;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
String str = webViewActivity.A8;
|
|
if (!webNestView.p1) {
|
|
v5 = false;
|
|
} else {
|
|
v5 = MainUtil.v5(str);
|
|
}
|
|
if (v5) {
|
|
i = 100;
|
|
}
|
|
webViewActivity.a8(i);
|
|
int i2 = webViewActivity.y9;
|
|
if (i2 != 1 && i2 != 2) {
|
|
return;
|
|
}
|
|
WebLoadTask.c().h(i);
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onReceivedIcon(WebView webView, Bitmap bitmap) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.M0(webViewActivity, webView, bitmap, webViewActivity.P2, false);
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onReceivedTitle(WebView webView, String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null && webView != null) {
|
|
String url = webView.getUrl();
|
|
if (!TextUtils.isEmpty(url)) {
|
|
String v3 = webViewActivity.v3(webView, url);
|
|
WebVideoFrame webVideoFrame = webViewActivity.R5;
|
|
if (webVideoFrame != null && webViewActivity.G8) {
|
|
webVideoFrame.setTitle(v3);
|
|
}
|
|
if (!webViewActivity.U1 && PrefPdf.H == 2) {
|
|
webViewActivity.g7(v3);
|
|
}
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(webViewActivity.P2);
|
|
if (n3 != null) {
|
|
n3.j = url;
|
|
n3.k = v3;
|
|
n3.l = webViewActivity.I2.C;
|
|
webViewActivity.ga(n3);
|
|
if (webViewActivity.b3 != null) {
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalChromeClient.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity2.b3;
|
|
if (webTabBarAdapter != null) {
|
|
webTabBarAdapter.x(webTabBarAdapter.C(webViewActivity2.P2));
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
if (PrefWeb.n != 0 && (!PrefSync.k || PrefSecret.l != 0)) {
|
|
if ("file:///android_asset/shortcut.html".equals(url)) {
|
|
return;
|
|
} else {
|
|
webViewActivity.fa(url, v3, null, true, false);
|
|
}
|
|
}
|
|
webViewActivity.Ni = v3;
|
|
webViewActivity.m0(new AnonymousClass2());
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final void onShowCustomView(View view, WebChromeClient.CustomViewCallback customViewCallback) {
|
|
if (view == null) {
|
|
int i = WebViewActivity.Fo;
|
|
return;
|
|
}
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 != null) {
|
|
if (customViewCallback != null) {
|
|
customViewCallback.onCustomViewHidden();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.Mc = true;
|
|
webViewActivity.T5 = MainApp.K1;
|
|
webViewActivity.Q5 = 0;
|
|
String str = webViewActivity.B8;
|
|
if (TextUtils.isEmpty(str)) {
|
|
webViewActivity.Q5 = 1;
|
|
} else {
|
|
String lowerCase = str.toLowerCase(Locale.US);
|
|
if (lowerCase.contains("youtube")) {
|
|
webViewActivity.Q5 = 2;
|
|
} else if (lowerCase.endsWith("instagram.com")) {
|
|
webViewActivity.Q5 = 4;
|
|
} else {
|
|
String Q2 = MainUtil.Q2(lowerCase);
|
|
if (!TextUtils.isEmpty(Q2) && (MainUtil.v3(Q2) != 0 || Q2.endsWith("atmegame.com"))) {
|
|
webViewActivity.Q5 = 5;
|
|
}
|
|
}
|
|
}
|
|
int i2 = webViewActivity.Q5;
|
|
if (i2 != 5 && i2 != 4) {
|
|
webViewActivity.R5 = new WebVideoFull(webViewActivity);
|
|
} else {
|
|
webViewActivity.R5 = new WebVideoImage(webViewActivity);
|
|
}
|
|
webViewActivity.R5.b(webViewActivity, webViewActivity.e2, webViewActivity.I2, webViewActivity.A8, webViewActivity.Q5, view, customViewCallback);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.269
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.k9 = false;
|
|
webViewActivity2.E7(false);
|
|
if (PrefTts.H) {
|
|
PrefTts.H = false;
|
|
PrefSet.d(12, webViewActivity2.i1, "mHandMode", false);
|
|
webViewActivity2.J7();
|
|
webViewActivity2.K7(false);
|
|
webViewActivity2.J6();
|
|
}
|
|
webViewActivity2.H3();
|
|
webViewActivity2.T4();
|
|
webViewActivity2.ca();
|
|
webViewActivity2.t6(true);
|
|
webViewActivity2.I3(true);
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.269.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.R5 == null) {
|
|
webViewActivity3.Mc = false;
|
|
return;
|
|
}
|
|
webViewActivity3.w9 = false;
|
|
webViewActivity3.x9 = false;
|
|
WebNestView webNestView = webViewActivity3.I2;
|
|
if (webNestView != null) {
|
|
WebSettings settings = webNestView.getSettings();
|
|
settings.setJavaScriptCanOpenWindowsAutomatically(false);
|
|
settings.setSupportMultipleWindows(false);
|
|
}
|
|
MyWebCoord myWebCoord3 = webViewActivity3.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new AnonymousClass271());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebChromeClient
|
|
public final boolean onShowFileChooser(WebView webView, ValueCallback valueCallback, WebChromeClient.FileChooserParams fileChooserParams) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.tj = valueCallback;
|
|
webViewActivity.uj = fileChooserParams;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.302
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String[] acceptTypes;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
ValueCallback valueCallback2 = webViewActivity2.tj;
|
|
WebChromeClient.FileChooserParams fileChooserParams2 = webViewActivity2.uj;
|
|
webViewActivity2.tj = valueCallback2;
|
|
webViewActivity2.uj = fileChooserParams2;
|
|
webViewActivity2.c6(null);
|
|
webViewActivity2.M5 = valueCallback2;
|
|
webViewActivity2.N5 = null;
|
|
webViewActivity2.O5 = null;
|
|
int i = 0;
|
|
if (fileChooserParams2 != null && (acceptTypes = fileChooserParams2.getAcceptTypes()) != null && acceptTypes.length > 0) {
|
|
int length = acceptTypes.length;
|
|
int i2 = 0;
|
|
while (i < length) {
|
|
String str = acceptTypes[i];
|
|
if (str != null) {
|
|
if (str.startsWith(".")) {
|
|
str = MainUtil.t2(str);
|
|
}
|
|
if (str != null) {
|
|
if (str.startsWith("image")) {
|
|
i2 |= 2;
|
|
} else if (str.startsWith("video")) {
|
|
i2 |= 4;
|
|
} else if (str.startsWith("audio") || str.equals("application/ogg") || str.equals("application/x-ogg")) {
|
|
i2 |= 8;
|
|
}
|
|
}
|
|
i2 |= 16;
|
|
}
|
|
i++;
|
|
}
|
|
i = i2 == 16 ? i2 | 2 : i2;
|
|
}
|
|
webViewActivity2.vj = i;
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.303
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i3 = webViewActivity3.vj;
|
|
if (webViewActivity3.G1 || webViewActivity3.J5()) {
|
|
webViewActivity3.c6(null);
|
|
return;
|
|
}
|
|
DialogWebSelect dialogWebSelect = webViewActivity3.E7;
|
|
if (dialogWebSelect != null) {
|
|
dialogWebSelect.dismiss();
|
|
webViewActivity3.E7 = null;
|
|
}
|
|
int i4 = R.style.DialogExpandTheme;
|
|
if (webViewActivity3.h0()) {
|
|
i4 = 0;
|
|
}
|
|
DialogWebSelect dialogWebSelect2 = new DialogWebSelect(webViewActivity3, i4, i3, new DialogWebSelect.WebSelectListener() { // from class: com.mycompany.app.web.WebViewActivity.505
|
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x0034, code lost:
|
|
|
|
if (r9 != null) goto L34;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x001c, code lost:
|
|
|
|
if (r9 != null) goto L34;
|
|
*/
|
|
@Override // com.mycompany.app.dialog.DialogWebSelect.WebSelectListener
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a(int r9) {
|
|
/*
|
|
r8 = this;
|
|
r0 = 0
|
|
r1 = 9
|
|
r2 = 1
|
|
com.mycompany.app.web.WebViewActivity r3 = com.mycompany.app.web.WebViewActivity.this
|
|
r4 = 10
|
|
if (r9 != r4) goto L1f
|
|
r9 = 28
|
|
boolean r9 = com.mycompany.app.main.MainUtil.D4(r3, r9)
|
|
if (r9 == 0) goto L15
|
|
r3.B9 = r2
|
|
return
|
|
L15:
|
|
r9 = 0
|
|
android.net.Uri r9 = com.mycompany.app.main.MainUtil.C4(r1, r3, r9)
|
|
r3.P5 = r9
|
|
if (r9 == 0) goto L69
|
|
goto L61
|
|
L1f:
|
|
r5 = 11
|
|
if (r9 != r5) goto L37
|
|
r9 = 29
|
|
boolean r9 = com.mycompany.app.main.MainUtil.D4(r3, r9)
|
|
if (r9 == 0) goto L2e
|
|
r3.B9 = r2
|
|
return
|
|
L2e:
|
|
android.net.Uri r9 = com.mycompany.app.main.MainUtil.C4(r1, r3, r2)
|
|
r3.P5 = r9
|
|
if (r9 == 0) goto L69
|
|
goto L61
|
|
L37:
|
|
int r6 = com.mycompany.app.web.WebViewActivity.Fo
|
|
r6 = 4
|
|
if (r9 == r6) goto L3f
|
|
r7 = 5
|
|
if (r9 != r7) goto L46
|
|
L3f:
|
|
boolean r1 = com.mycompany.app.main.MainUtil.L4(r3, r9, r2, r1)
|
|
if (r1 == 0) goto L46
|
|
goto L61
|
|
L46:
|
|
if (r9 != r6) goto L55
|
|
boolean r1 = com.mycompany.app.main.MainUtil.K4(r4, r3, r2)
|
|
if (r1 == 0) goto L55
|
|
android.webkit.ValueCallback r9 = r3.M5
|
|
r3.N5 = r9
|
|
r3.M5 = r0
|
|
goto L61
|
|
L55:
|
|
boolean r9 = com.mycompany.app.main.MainUtil.J4(r3, r9, r2, r5)
|
|
if (r9 == 0) goto L64
|
|
android.webkit.ValueCallback r9 = r3.M5
|
|
r3.O5 = r9
|
|
r3.M5 = r0
|
|
L61:
|
|
r3.B9 = r2
|
|
return
|
|
L64:
|
|
int r9 = com.mycompany.app.soulbrowser.R.string.apps_none
|
|
com.mycompany.app.main.MainUtil.e8(r3, r9)
|
|
L69:
|
|
int r9 = com.mycompany.app.web.WebViewActivity.Fo
|
|
r3.c6(r0)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass505.a(int):void");
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebSelect.WebSelectListener
|
|
public final void b() {
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity.this.c6(null);
|
|
}
|
|
});
|
|
webViewActivity3.E7 = dialogWebSelect2;
|
|
dialogWebSelect2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.506
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
DialogWebSelect dialogWebSelect3 = webViewActivity4.E7;
|
|
if (dialogWebSelect3 != null) {
|
|
dialogWebSelect3.dismiss();
|
|
webViewActivity4.E7 = null;
|
|
}
|
|
}
|
|
});
|
|
if (!MainConst.e && i4 == 0) {
|
|
return;
|
|
}
|
|
webViewActivity3.E7.x(webViewActivity3.t3(), webViewActivity3.b3(), webViewActivity3.U1, webViewActivity3.a6(), true);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class MySessionListener implements SessionManagerListener<CastSession> {
|
|
public MySessionListener() {
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* bridge */ /* synthetic */ void d(Session session, int i) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* bridge */ /* synthetic */ void e(Session session, String str) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final void f(Session session, int i) {
|
|
CastSession castSession = (CastSession) session;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.tb == castSession) {
|
|
webViewActivity.tb = null;
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final void h(Session session, String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.tb = (CastSession) session;
|
|
webViewActivity.I1();
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* bridge */ /* synthetic */ void j(Session session, int i) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final void k(Session session, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.tb = (CastSession) session;
|
|
webViewActivity.I1();
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* bridge */ /* synthetic */ void m(Session session, int i) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* bridge */ /* synthetic */ void n(Session session) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* bridge */ /* synthetic */ void o(Session session) {
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class MyStateListener implements CastStateListener {
|
|
public MyStateListener() {
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.CastStateListener
|
|
public final void a(int i) {
|
|
Handler handler;
|
|
boolean z = true;
|
|
if (i == 1) {
|
|
z = false;
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.wb = z;
|
|
if (z) {
|
|
webViewActivity.I1();
|
|
} else {
|
|
CastLocal.a().c();
|
|
}
|
|
MediaRouteButton mediaRouteButton = webViewActivity.Bb;
|
|
if (mediaRouteButton != null && !mediaRouteButton.isEnabled() && (handler = webViewActivity.O0) != null) {
|
|
handler.post(new AnonymousClass33());
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class PopItem {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public int f20684a;
|
|
public String b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public String f20685c;
|
|
public String d;
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface PrevBackListener {
|
|
void a(boolean z);
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface PrevPageListener {
|
|
void a();
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class SearchTask extends MyAsyncTask {
|
|
public final WeakReference e;
|
|
public final boolean f;
|
|
public final boolean g;
|
|
public final boolean h;
|
|
public ArrayList i;
|
|
public ArrayList j;
|
|
public ArrayList k;
|
|
public ArrayList l;
|
|
|
|
public SearchTask(WebViewActivity webViewActivity) {
|
|
boolean z;
|
|
boolean z2;
|
|
this.e = new WeakReference(webViewActivity);
|
|
int i = PrefWeb.W;
|
|
if ((i & 4) == 4) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
this.f = z;
|
|
if ((i & 8) == 8) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
this.g = z2;
|
|
this.h = (i & 16) == 16;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:104:0x020c A[LOOP:1: B:97:0x0195->B:104:0x020c, LOOP_END] */
|
|
/* JADX WARN: Removed duplicated region for block: B:105:0x0219 A[SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x02fc */
|
|
/* JADX WARN: Removed duplicated region for block: B:32:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:52:0x02fa A[SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:? A[LOOP:0: B:45:0x028b->B:53:?, LOOP_END, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:81:0x021b */
|
|
/* JADX WARN: Removed duplicated region for block: B:84:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Type inference failed for: r15v3, types: [com.mycompany.app.web.WebSearchAdapter$SearchItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r15v6, types: [com.mycompany.app.web.WebSearchAdapter$SearchItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r8v5, types: [com.mycompany.app.web.WebSearchAdapter$SearchItem, java.lang.Object] */
|
|
@Override // com.mycompany.app.async.MyAsyncTask
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a() {
|
|
/*
|
|
Method dump skipped, instructions count: 768
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.SearchTask.a():void");
|
|
}
|
|
|
|
@Override // com.mycompany.app.async.MyAsyncTask
|
|
public final void d() {
|
|
WebViewActivity webViewActivity;
|
|
WeakReference weakReference = this.e;
|
|
if (weakReference == null || (webViewActivity = (WebViewActivity) weakReference.get()) == null) {
|
|
return;
|
|
}
|
|
webViewActivity.E2 = null;
|
|
}
|
|
|
|
@Override // com.mycompany.app.async.MyAsyncTask
|
|
public final void e() {
|
|
WebViewActivity webViewActivity;
|
|
WeakReference weakReference = this.e;
|
|
if (weakReference != null && (webViewActivity = (WebViewActivity) weakReference.get()) != null) {
|
|
webViewActivity.E2 = null;
|
|
if (webViewActivity.j9) {
|
|
ArrayList arrayList = this.i;
|
|
ArrayList arrayList2 = this.j;
|
|
ArrayList arrayList3 = this.k;
|
|
ArrayList arrayList4 = this.l;
|
|
MyEditAuto myEditAuto = webViewActivity.x2;
|
|
if (myEditAuto != null) {
|
|
if (PrefZtwo.B) {
|
|
myEditAuto.setAutoList(arrayList4);
|
|
}
|
|
WebSearchAdapter webSearchAdapter = new WebSearchAdapter(webViewActivity, arrayList, arrayList2, arrayList3, webViewActivity.U1, !webViewActivity.O5(), new AnonymousClass250());
|
|
webViewActivity.D2 = webSearchAdapter;
|
|
webViewActivity.x2.setDropDownFilter(webSearchAdapter.y);
|
|
QuickSearch quickSearch = webViewActivity.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.setAutoAdapter(webViewActivity.D2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class SortFace implements Comparator<FaceItem> {
|
|
@Override // java.util.Comparator
|
|
public final int compare(FaceItem faceItem, FaceItem faceItem2) {
|
|
FaceItem faceItem3 = faceItem;
|
|
FaceItem faceItem4 = faceItem2;
|
|
if (faceItem3 != null || faceItem4 != null) {
|
|
if (faceItem3 != null) {
|
|
if (faceItem4 != null) {
|
|
boolean z = faceItem3.e;
|
|
if (z || !faceItem4.e) {
|
|
if (!z || faceItem4.e) {
|
|
int i = faceItem3.d;
|
|
int i2 = faceItem4.d;
|
|
if (i < i2) {
|
|
return -1;
|
|
}
|
|
if (i > i2) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
return 1;
|
|
}
|
|
return -1;
|
|
}
|
|
return -1;
|
|
}
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class SortName implements Comparator<MainItem.ChildItem> {
|
|
@Override // java.util.Comparator
|
|
public final int compare(MainItem.ChildItem childItem, MainItem.ChildItem childItem2) {
|
|
MainItem.ChildItem childItem3 = childItem;
|
|
MainItem.ChildItem childItem4 = childItem2;
|
|
if (childItem3 == null && childItem4 == null) {
|
|
return 0;
|
|
}
|
|
if (childItem3 != null) {
|
|
if (childItem4 != null) {
|
|
String str = childItem3.h;
|
|
if (TextUtils.isEmpty(str)) {
|
|
return 1;
|
|
}
|
|
String str2 = childItem4.h;
|
|
if (TextUtils.isEmpty(str2)) {
|
|
return -1;
|
|
}
|
|
return MainUtil.m(str, str2, false);
|
|
}
|
|
return -1;
|
|
}
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface TabAddListener {
|
|
void a(boolean z);
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface TabLimitListener {
|
|
void a(boolean z);
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface TabThumbListener {
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface TabViewListener {
|
|
void a();
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class ViewPagerAdapter extends RecyclerView.Adapter<ViewPagerHolder> {
|
|
public ViewPagerAdapter() {
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
|
|
public final int d() {
|
|
return 4;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
|
|
public final int f(int i) {
|
|
return i;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
|
|
public final /* bridge */ /* synthetic */ void n(RecyclerView.ViewHolder viewHolder, int i) {
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
|
|
public final RecyclerView.ViewHolder o(ViewGroup viewGroup, int i) {
|
|
int i2;
|
|
int i3 = WebViewActivity.Fo;
|
|
if (i == 0) {
|
|
i2 = R.drawable.splash_intro_1;
|
|
} else if (i == 1) {
|
|
i2 = R.drawable.splash_intro_2;
|
|
} else if (i == 2) {
|
|
i2 = R.drawable.splash_intro_3;
|
|
} else {
|
|
i2 = R.drawable.splash_intro_4;
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
FrameLayout frameLayout = new FrameLayout(webViewActivity);
|
|
ImageView imageView = new ImageView(webViewActivity);
|
|
imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
|
|
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(webViewActivity.y1, -2);
|
|
layoutParams.gravity = 17;
|
|
frameLayout.addView(imageView, layoutParams);
|
|
if (webViewActivity.A1 == null) {
|
|
webViewActivity.A1 = (GlideRequests) Glide.a(webViewActivity).j.e(webViewActivity);
|
|
}
|
|
webViewActivity.A1.s(Integer.valueOf(i2)).E(imageView);
|
|
try {
|
|
MainUtil.W6(frameLayout);
|
|
frameLayout.setLayoutParams(new RecyclerView.LayoutParams(-1, -1));
|
|
} catch (Exception unused) {
|
|
if (webViewActivity.l1 != null) {
|
|
if (PrefSync.j) {
|
|
PrefSync.j = false;
|
|
PrefSet.d(11, webViewActivity.i1, "mSplash", false);
|
|
}
|
|
webViewActivity.l1.d(true);
|
|
}
|
|
}
|
|
return new RecyclerView.ViewHolder(frameLayout);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class ViewPagerHolder extends RecyclerView.ViewHolder {
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class WebAppInterface {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public String f20686a;
|
|
|
|
public WebAppInterface() {
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onBlobDown(String str, String str2, String str3, long j) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.kh = str;
|
|
webViewActivity.lh = str2;
|
|
webViewActivity.mh = str3;
|
|
webViewActivity.nh = j;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.15
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str4 = webViewActivity2.kh;
|
|
String str5 = webViewActivity2.lh;
|
|
String str6 = webViewActivity2.mh;
|
|
long j2 = webViewActivity2.nh;
|
|
webViewActivity2.kh = null;
|
|
webViewActivity2.lh = null;
|
|
webViewActivity2.mh = null;
|
|
webViewActivity2.dk = true;
|
|
webViewActivity2.l9(str4, str5, str6, j2, 39, null);
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onDataDownName(String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.kh = str;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.15b
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.kh;
|
|
String str3 = webViewActivity2.kl;
|
|
String str4 = webViewActivity2.ll;
|
|
String str5 = webViewActivity2.ml;
|
|
long j = webViewActivity2.nl;
|
|
webViewActivity2.kh = null;
|
|
webViewActivity2.kl = null;
|
|
webViewActivity2.ll = null;
|
|
webViewActivity2.ml = null;
|
|
if (TextUtils.isEmpty(str3)) {
|
|
return;
|
|
}
|
|
if (!TextUtils.isEmpty(str2) && (TextUtils.isEmpty(str4) || str4.toLowerCase(Locale.US).indexOf("filename") < 0)) {
|
|
str4 = "attachment; filename=\"" + str2.replace("\\", "\\\\").replace("\"", "\\\"") + "\"";
|
|
}
|
|
webViewActivity2.l9(str3, str4, str5, j, 0, null);
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onBlobRead(String str, int i, int i2, int i3) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.r6 != null) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
webViewActivity.r6.D(i, i2, i3, str);
|
|
return;
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.16
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebAppInterface webAppInterface = WebAppInterface.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i4 = WebViewActivity.Fo;
|
|
webViewActivity2.S3();
|
|
WebViewActivity.this.H9(0L, 4, null, null, 0);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onCheckHtml(String str) {
|
|
final WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView != null && webNestView.t != null) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
webNestView.t2 = null;
|
|
webNestView.u2 = null;
|
|
webNestView.v2 = false;
|
|
} else {
|
|
webNestView.w2 = str;
|
|
webNestView.J(new Runnable() { // from class: com.mycompany.app.web.WebNestView.26
|
|
public AnonymousClass26() {
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:231:0x0290, code lost:
|
|
|
|
if (r9 == null) goto L532;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:66:0x02fd, code lost:
|
|
|
|
if (r4.isEmpty() == false) goto L554;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:102:0x00ba A[Catch: Exception | OutOfMemoryError -> 0x010d, Exception | OutOfMemoryError -> 0x010d, TRY_ENTER, TryCatch #1 {Exception | OutOfMemoryError -> 0x010d, blocks: (B:94:0x00a1, B:98:0x00aa, B:99:0x00b0, B:102:0x00ba, B:102:0x00ba, B:104:0x00be, B:104:0x00be, B:105:0x00dc, B:105:0x00dc, B:107:0x00e0, B:107:0x00e0, B:109:0x00e6, B:109:0x00e6, B:111:0x00ea, B:111:0x00ea, B:113:0x00ef, B:113:0x00ef, B:115:0x00ff, B:115:0x00ff, B:117:0x0105, B:117:0x0105, B:121:0x011c, B:121:0x011c, B:123:0x0120, B:123:0x0120, B:125:0x0126, B:125:0x0126, B:127:0x012a, B:127:0x012a, B:130:0x0131, B:130:0x0131, B:131:0x0138, B:131:0x0138, B:133:0x0142, B:133:0x0142, B:135:0x0148, B:135:0x0148, B:143:0x0151, B:143:0x0151, B:145:0x0159, B:145:0x0159, B:148:0x015e, B:148:0x015e, B:152:0x0169, B:152:0x0169, B:153:0x016f, B:153:0x016f, B:155:0x0177, B:155:0x0177, B:157:0x017b, B:157:0x017b, B:158:0x0199, B:158:0x0199, B:160:0x019d, B:160:0x019d, B:162:0x01a3, B:162:0x01a3, B:164:0x01a7, B:164:0x01a7, B:167:0x01af, B:167:0x01af, B:168:0x01b6, B:168:0x01b6, B:170:0x01c0, B:170:0x01c0, B:172:0x01c6, B:172:0x01c6, B:178:0x01d0, B:178:0x01d0, B:180:0x01d4, B:180:0x01d4, B:182:0x01da, B:182:0x01da, B:184:0x01de, B:184:0x01de, B:187:0x01e6, B:187:0x01e6, B:188:0x01ed, B:188:0x01ed, B:190:0x01f7, B:190:0x01f7, B:192:0x01fd, B:192:0x01fd, B:281:0x0188, B:281:0x0188, B:283:0x0192, B:283:0x0192, B:199:0x0204, B:199:0x0204, B:201:0x0208, B:201:0x0208, B:203:0x020e, B:203:0x020e, B:205:0x0212, B:205:0x0212, B:208:0x021a, B:208:0x021a, B:209:0x0220, B:209:0x0220, B:211:0x0229, B:211:0x0229, B:213:0x0235, B:213:0x0235, B:216:0x023f, B:216:0x023f, B:219:0x024c, B:219:0x024c, B:221:0x025d, B:221:0x025d, B:225:0x026c, B:225:0x026c, B:227:0x0274, B:227:0x0274, B:229:0x028a, B:229:0x028a, B:235:0x029f, B:235:0x029f, B:237:0x02a7, B:237:0x02a7, B:239:0x02af, B:239:0x02af, B:240:0x02b2, B:240:0x02b2, B:243:0x02bc, B:243:0x02bc, B:296:0x00cb, B:296:0x00cb, B:299:0x00d5, B:299:0x00d5), top: B:93:0x00a1 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:145:0x0159 A[Catch: Exception | OutOfMemoryError -> 0x010d, Exception | OutOfMemoryError -> 0x010d, TryCatch #1 {Exception | OutOfMemoryError -> 0x010d, blocks: (B:94:0x00a1, B:98:0x00aa, B:99:0x00b0, B:102:0x00ba, B:102:0x00ba, B:104:0x00be, B:104:0x00be, B:105:0x00dc, B:105:0x00dc, B:107:0x00e0, B:107:0x00e0, B:109:0x00e6, B:109:0x00e6, B:111:0x00ea, B:111:0x00ea, B:113:0x00ef, B:113:0x00ef, B:115:0x00ff, B:115:0x00ff, B:117:0x0105, B:117:0x0105, B:121:0x011c, B:121:0x011c, B:123:0x0120, B:123:0x0120, B:125:0x0126, B:125:0x0126, B:127:0x012a, B:127:0x012a, B:130:0x0131, B:130:0x0131, B:131:0x0138, B:131:0x0138, B:133:0x0142, B:133:0x0142, B:135:0x0148, B:135:0x0148, B:143:0x0151, B:143:0x0151, B:145:0x0159, B:145:0x0159, B:148:0x015e, B:148:0x015e, B:152:0x0169, B:152:0x0169, B:153:0x016f, B:153:0x016f, B:155:0x0177, B:155:0x0177, B:157:0x017b, B:157:0x017b, B:158:0x0199, B:158:0x0199, B:160:0x019d, B:160:0x019d, B:162:0x01a3, B:162:0x01a3, B:164:0x01a7, B:164:0x01a7, B:167:0x01af, B:167:0x01af, B:168:0x01b6, B:168:0x01b6, B:170:0x01c0, B:170:0x01c0, B:172:0x01c6, B:172:0x01c6, B:178:0x01d0, B:178:0x01d0, B:180:0x01d4, B:180:0x01d4, B:182:0x01da, B:182:0x01da, B:184:0x01de, B:184:0x01de, B:187:0x01e6, B:187:0x01e6, B:188:0x01ed, B:188:0x01ed, B:190:0x01f7, B:190:0x01f7, B:192:0x01fd, B:192:0x01fd, B:281:0x0188, B:281:0x0188, B:283:0x0192, B:283:0x0192, B:199:0x0204, B:199:0x0204, B:201:0x0208, B:201:0x0208, B:203:0x020e, B:203:0x020e, B:205:0x0212, B:205:0x0212, B:208:0x021a, B:208:0x021a, B:209:0x0220, B:209:0x0220, B:211:0x0229, B:211:0x0229, B:213:0x0235, B:213:0x0235, B:216:0x023f, B:216:0x023f, B:219:0x024c, B:219:0x024c, B:221:0x025d, B:221:0x025d, B:225:0x026c, B:225:0x026c, B:227:0x0274, B:227:0x0274, B:229:0x028a, B:229:0x028a, B:235:0x029f, B:235:0x029f, B:237:0x02a7, B:237:0x02a7, B:239:0x02af, B:239:0x02af, B:240:0x02b2, B:240:0x02b2, B:243:0x02bc, B:243:0x02bc, B:296:0x00cb, B:296:0x00cb, B:299:0x00d5, B:299:0x00d5), top: B:93:0x00a1 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:155:0x0177 A[Catch: Exception | OutOfMemoryError -> 0x010d, Exception | OutOfMemoryError -> 0x010d, TryCatch #1 {Exception | OutOfMemoryError -> 0x010d, blocks: (B:94:0x00a1, B:98:0x00aa, B:99:0x00b0, B:102:0x00ba, B:102:0x00ba, B:104:0x00be, B:104:0x00be, B:105:0x00dc, B:105:0x00dc, B:107:0x00e0, B:107:0x00e0, B:109:0x00e6, B:109:0x00e6, B:111:0x00ea, B:111:0x00ea, B:113:0x00ef, B:113:0x00ef, B:115:0x00ff, B:115:0x00ff, B:117:0x0105, B:117:0x0105, B:121:0x011c, B:121:0x011c, B:123:0x0120, B:123:0x0120, B:125:0x0126, B:125:0x0126, B:127:0x012a, B:127:0x012a, B:130:0x0131, B:130:0x0131, B:131:0x0138, B:131:0x0138, B:133:0x0142, B:133:0x0142, B:135:0x0148, B:135:0x0148, B:143:0x0151, B:143:0x0151, B:145:0x0159, B:145:0x0159, B:148:0x015e, B:148:0x015e, B:152:0x0169, B:152:0x0169, B:153:0x016f, B:153:0x016f, B:155:0x0177, B:155:0x0177, B:157:0x017b, B:157:0x017b, B:158:0x0199, B:158:0x0199, B:160:0x019d, B:160:0x019d, B:162:0x01a3, B:162:0x01a3, B:164:0x01a7, B:164:0x01a7, B:167:0x01af, B:167:0x01af, B:168:0x01b6, B:168:0x01b6, B:170:0x01c0, B:170:0x01c0, B:172:0x01c6, B:172:0x01c6, B:178:0x01d0, B:178:0x01d0, B:180:0x01d4, B:180:0x01d4, B:182:0x01da, B:182:0x01da, B:184:0x01de, B:184:0x01de, B:187:0x01e6, B:187:0x01e6, B:188:0x01ed, B:188:0x01ed, B:190:0x01f7, B:190:0x01f7, B:192:0x01fd, B:192:0x01fd, B:281:0x0188, B:281:0x0188, B:283:0x0192, B:283:0x0192, B:199:0x0204, B:199:0x0204, B:201:0x0208, B:201:0x0208, B:203:0x020e, B:203:0x020e, B:205:0x0212, B:205:0x0212, B:208:0x021a, B:208:0x021a, B:209:0x0220, B:209:0x0220, B:211:0x0229, B:211:0x0229, B:213:0x0235, B:213:0x0235, B:216:0x023f, B:216:0x023f, B:219:0x024c, B:219:0x024c, B:221:0x025d, B:221:0x025d, B:225:0x026c, B:225:0x026c, B:227:0x0274, B:227:0x0274, B:229:0x028a, B:229:0x028a, B:235:0x029f, B:235:0x029f, B:237:0x02a7, B:237:0x02a7, B:239:0x02af, B:239:0x02af, B:240:0x02b2, B:240:0x02b2, B:243:0x02bc, B:243:0x02bc, B:296:0x00cb, B:296:0x00cb, B:299:0x00d5, B:299:0x00d5), top: B:93:0x00a1 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:201:0x0208 A[Catch: Exception | OutOfMemoryError -> 0x010d, Exception | OutOfMemoryError -> 0x010d, TryCatch #1 {Exception | OutOfMemoryError -> 0x010d, blocks: (B:94:0x00a1, B:98:0x00aa, B:99:0x00b0, B:102:0x00ba, B:102:0x00ba, B:104:0x00be, B:104:0x00be, B:105:0x00dc, B:105:0x00dc, B:107:0x00e0, B:107:0x00e0, B:109:0x00e6, B:109:0x00e6, B:111:0x00ea, B:111:0x00ea, B:113:0x00ef, B:113:0x00ef, B:115:0x00ff, B:115:0x00ff, B:117:0x0105, B:117:0x0105, B:121:0x011c, B:121:0x011c, B:123:0x0120, B:123:0x0120, B:125:0x0126, B:125:0x0126, B:127:0x012a, B:127:0x012a, B:130:0x0131, B:130:0x0131, B:131:0x0138, B:131:0x0138, B:133:0x0142, B:133:0x0142, B:135:0x0148, B:135:0x0148, B:143:0x0151, B:143:0x0151, B:145:0x0159, B:145:0x0159, B:148:0x015e, B:148:0x015e, B:152:0x0169, B:152:0x0169, B:153:0x016f, B:153:0x016f, B:155:0x0177, B:155:0x0177, B:157:0x017b, B:157:0x017b, B:158:0x0199, B:158:0x0199, B:160:0x019d, B:160:0x019d, B:162:0x01a3, B:162:0x01a3, B:164:0x01a7, B:164:0x01a7, B:167:0x01af, B:167:0x01af, B:168:0x01b6, B:168:0x01b6, B:170:0x01c0, B:170:0x01c0, B:172:0x01c6, B:172:0x01c6, B:178:0x01d0, B:178:0x01d0, B:180:0x01d4, B:180:0x01d4, B:182:0x01da, B:182:0x01da, B:184:0x01de, B:184:0x01de, B:187:0x01e6, B:187:0x01e6, B:188:0x01ed, B:188:0x01ed, B:190:0x01f7, B:190:0x01f7, B:192:0x01fd, B:192:0x01fd, B:281:0x0188, B:281:0x0188, B:283:0x0192, B:283:0x0192, B:199:0x0204, B:199:0x0204, B:201:0x0208, B:201:0x0208, B:203:0x020e, B:203:0x020e, B:205:0x0212, B:205:0x0212, B:208:0x021a, B:208:0x021a, B:209:0x0220, B:209:0x0220, B:211:0x0229, B:211:0x0229, B:213:0x0235, B:213:0x0235, B:216:0x023f, B:216:0x023f, B:219:0x024c, B:219:0x024c, B:221:0x025d, B:221:0x025d, B:225:0x026c, B:225:0x026c, B:227:0x0274, B:227:0x0274, B:229:0x028a, B:229:0x028a, B:235:0x029f, B:235:0x029f, B:237:0x02a7, B:237:0x02a7, B:239:0x02af, B:239:0x02af, B:240:0x02b2, B:240:0x02b2, B:243:0x02bc, B:243:0x02bc, B:296:0x00cb, B:296:0x00cb, B:299:0x00d5, B:299:0x00d5), top: B:93:0x00a1 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0309 */
|
|
/* JADX WARN: Removed duplicated region for block: B:286:0x0204 A[SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 871
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebNestView.AnonymousClass26.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onComicDet(int i) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Hn = i;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.618
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String str;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = webViewActivity2.Hn;
|
|
String str2 = null;
|
|
if (i2 == 0) {
|
|
str = "span[class='page-desc']";
|
|
} else if (i2 == 1) {
|
|
str = "div[class='mobile-navbar-inner']";
|
|
} else {
|
|
str = null;
|
|
}
|
|
if (str != null) {
|
|
if (i2 == 0) {
|
|
str2 = "float:right;width:28px;height:28px;padding:0;border:2px solid #818181;border-radius:14px;font-size:18px;text-align:center;color:white;background:black;";
|
|
} else if (i2 == 1) {
|
|
str2 = "margin-top:8px;margin-left:10px;width:28px;height:28px;padding:0;border:none;border-radius:14px;font-size:18px;font-weight:bold;text-align:center;color:white;background:black;";
|
|
}
|
|
if (str2 == null) {
|
|
return;
|
|
}
|
|
StringBuilder u = a.u("(function(){var ele=document.querySelector(\"", str, "\");if(!ele)return;for(var i=0;i<ele.childNodes.length;i++){var bid=ele.childNodes[i].id;if(bid=='sb_comic_view')return;}var btn=document.createElement(\"button\");btn.id='sb_comic_view';btn.innerHTML='⛶';btn.style='", str2, "';btn.onclick=function(e){e.stopPropagation();android.onComicView(");
|
|
u.append(i2);
|
|
u.append(");};ele.appendChild(btn);})();");
|
|
MainUtil.I(webViewActivity2.I2, u.toString(), true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onComicView(int i) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.Ch = i;
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.26
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebViewActivity.X0(webViewActivity2, webViewActivity2.Ch);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onDcDet(int i, String str, String str2, String str3, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Dh = i;
|
|
webViewActivity.Eh = str;
|
|
webViewActivity.Fh = str2;
|
|
webViewActivity.Gh = str3;
|
|
webViewActivity.Hh = z;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.28
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z2;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = webViewActivity2.Dh;
|
|
String str4 = webViewActivity2.Eh;
|
|
String str5 = webViewActivity2.Fh;
|
|
String str6 = webViewActivity2.Gh;
|
|
boolean z3 = webViewActivity2.Hh;
|
|
webViewActivity2.Eh = null;
|
|
webViewActivity2.Fh = null;
|
|
webViewActivity2.Gh = null;
|
|
if (webViewActivity2.fb == null) {
|
|
webViewActivity2.L3();
|
|
if (TextUtils.isEmpty(str5)) {
|
|
MainUtil.e8(webViewActivity2, R.string.invalid_url);
|
|
return;
|
|
}
|
|
if (i2 != 0 && i2 != 2) {
|
|
z2 = false;
|
|
} else {
|
|
z2 = true;
|
|
}
|
|
webViewActivity2.Jn = z2;
|
|
webViewActivity2.Kn = str4;
|
|
webViewActivity2.Ln = str5;
|
|
webViewActivity2.Mn = str6;
|
|
ArrayList arrayList = new ArrayList();
|
|
if (z3) {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(0, "메모 삭제"));
|
|
}
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(1, "메모 작성"));
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(2, "메모 목록"));
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(3, "작성글 (현재 갤러리)"));
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(4, "작성글 (전체 갤러리)"));
|
|
if (z2) {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(5, "IP 조회"));
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(8, "국가 표시"));
|
|
} else {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(6, "갤로그 조회"));
|
|
}
|
|
MyPopupMenu myPopupMenu = new MyPopupMenu(webViewActivity2, webViewActivity2.e2, null, arrayList, MainUtil.k5(webViewActivity2.U1), new MyPopupMenu.MyPopupListener() { // from class: com.mycompany.app.web.WebViewActivity.621
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.L3();
|
|
webViewActivity3.Kn = null;
|
|
webViewActivity3.Ln = null;
|
|
webViewActivity3.Mn = null;
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view, int i3) {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.fb == null) {
|
|
return true;
|
|
}
|
|
WebViewActivity.Y0(webViewActivity3, i3);
|
|
return true;
|
|
}
|
|
});
|
|
webViewActivity2.fb = myPopupMenu;
|
|
int i3 = (int) webViewActivity2.V9;
|
|
int i4 = (int) webViewActivity2.W9;
|
|
myPopupMenu.e = i3;
|
|
myPopupMenu.f = i4;
|
|
webViewActivity2.Z0 = myPopupMenu;
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.622
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.fb != null) {
|
|
WebViewActivity.f1(webViewActivity3);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onDcList(String str, String str2) {
|
|
if (TextUtils.isEmpty(str) && TextUtils.isEmpty(str2)) {
|
|
return;
|
|
}
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.On = DataBookDc.k(webViewActivity.i1).f12906c;
|
|
webViewActivity.Pn = str;
|
|
webViewActivity.Qn = str2;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.27
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ArrayList arrayList;
|
|
ArrayList arrayList2;
|
|
ArrayList arrayList3;
|
|
Handler handler;
|
|
String[] split2;
|
|
String[] split3;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
List list = webViewActivity2.On;
|
|
String str3 = webViewActivity2.Pn;
|
|
String str4 = webViewActivity2.Qn;
|
|
ArrayList arrayList4 = null;
|
|
webViewActivity2.On = null;
|
|
webViewActivity2.Pn = null;
|
|
webViewActivity2.Qn = null;
|
|
if (!TextUtils.isEmpty(str3) && (split3 = str3.split("/")) != null && split3.length > 0) {
|
|
arrayList = null;
|
|
arrayList2 = null;
|
|
for (String str5 : split3) {
|
|
if (!TextUtils.isEmpty(str5)) {
|
|
String Y2 = webViewActivity2.Y2(str5, WebViewActivity.X2(str5, list));
|
|
if (!TextUtils.isEmpty(Y2)) {
|
|
if (arrayList == null) {
|
|
arrayList = new ArrayList();
|
|
}
|
|
if (arrayList2 == null) {
|
|
arrayList2 = new ArrayList();
|
|
}
|
|
arrayList.add(str5);
|
|
arrayList2.add(Y2);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
arrayList = null;
|
|
arrayList2 = null;
|
|
}
|
|
if (!TextUtils.isEmpty(str4) && (split2 = str4.split("/")) != null && split2.length > 0) {
|
|
ArrayList arrayList5 = null;
|
|
arrayList3 = null;
|
|
for (String str6 : split2) {
|
|
if (!TextUtils.isEmpty(str6)) {
|
|
String Y22 = webViewActivity2.Y2(str6, null);
|
|
if (!TextUtils.isEmpty(Y22)) {
|
|
if (arrayList5 == null) {
|
|
arrayList5 = new ArrayList();
|
|
}
|
|
if (arrayList3 == null) {
|
|
arrayList3 = new ArrayList();
|
|
}
|
|
arrayList5.add(str6);
|
|
arrayList3.add(Y22);
|
|
}
|
|
}
|
|
}
|
|
arrayList4 = arrayList5;
|
|
} else {
|
|
arrayList3 = null;
|
|
}
|
|
if ((arrayList != null || arrayList4 != null) && webViewActivity2.I2 != null) {
|
|
StringBuilder sb = new StringBuilder();
|
|
if (arrayList != null) {
|
|
sb.append("function myDcMem(btn,path,text){if(!btn)return null;if(btn.alt==path){btn.innerHTML=text;btn.style.fontSize=myIsMemo(text)?'13px':'15px';}}");
|
|
}
|
|
if (arrayList4 != null) {
|
|
sb.append("function myDcMe2(cld,path,text){if(!cld)return null;for(var i=0;i<cld.childNodes.length;i++){var btn=cld.childNodes[i];var dat=btn.innerHTML;if(dat==path){btn.innerHTML+=' '+text;break;}}}");
|
|
}
|
|
sb.append("(function(){");
|
|
if (arrayList != null) {
|
|
sb.append("var els=document.querySelectorAll(\"[id='sb_btn_dc']\");if(els&&(els.length>0)){for(var i=0;i<els.length;i++){");
|
|
int size = arrayList.size();
|
|
for (int i = 0; i < size; i++) {
|
|
sb.append("myDcMem(els[i],'");
|
|
sb.append((String) arrayList.get(i));
|
|
sb.append("','");
|
|
sb.append((String) arrayList2.get(i));
|
|
sb.append("');");
|
|
}
|
|
sb.append("}}");
|
|
}
|
|
if (arrayList4 != null) {
|
|
sb.append("var el2=document.querySelectorAll(\"ul[class='ginfo'],ul[class='ginfo ']\");if(el2&&(el2.length>0)){for(var i=0;i<el2.length;i++){");
|
|
int size2 = arrayList4.size();
|
|
for (int i2 = 0; i2 < size2; i2++) {
|
|
sb.append("myDcMe2(el2[i],'");
|
|
sb.append((String) arrayList4.get(i2));
|
|
sb.append("','");
|
|
sb.append((String) arrayList3.get(i2));
|
|
sb.append("');");
|
|
}
|
|
sb.append("}}");
|
|
}
|
|
sb.append("})();");
|
|
MainUtil.I(webViewActivity2.I2, sb.toString(), true);
|
|
if (PrefZtri.s0 && (handler = webViewActivity2.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.634
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.j9(true);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onDocHtml(String str) {
|
|
MyWebBody myWebBody;
|
|
int i = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.getClass();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
webViewActivity.Bl = str;
|
|
if (webViewActivity.I2 == null || (myWebBody = webViewActivity.e2) == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.396
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Bl;
|
|
webViewActivity2.Bl = null;
|
|
if (TextUtils.isEmpty(str2) || webViewActivity2.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.q5(false);
|
|
MainUtil.r6(webViewActivity2.I2, webViewActivity2.A8, str2);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onFaceDet(String str, int i) {
|
|
boolean isEmpty = TextUtils.isEmpty(str);
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (isEmpty) {
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = R.string.no_down_video;
|
|
webViewActivity2.getClass();
|
|
MainUtil.e8(webViewActivity2, i2);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.Xg = str;
|
|
webViewActivity.Yg = i;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Xg;
|
|
int i2 = webViewActivity2.Yg;
|
|
webViewActivity2.Xg = null;
|
|
WebViewActivity.F0(i2, webViewActivity2, str2);
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onFansDet(String str, String str2, int i) {
|
|
boolean equals = "iframe".equals(str2);
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (equals) {
|
|
webViewActivity.dh = str;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.9
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.dh;
|
|
webViewActivity2.dh = null;
|
|
if (TextUtils.isEmpty(str3)) {
|
|
int i2 = R.string.no_down_video;
|
|
webViewActivity2.getClass();
|
|
MainUtil.e8(webViewActivity2, i2);
|
|
} else {
|
|
webViewActivity2.ik = null;
|
|
webViewActivity2.jk = true;
|
|
webViewActivity2.l9(str3, null, "video/*", 0L, 5, null);
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.Zg = str;
|
|
webViewActivity.ah = str2;
|
|
webViewActivity.bh = i;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.10
|
|
/* JADX WARN: Can't wrap try/catch for region: R(10:5|(2:6|7)|(9:11|12|(4:159|160|(2:162|163)(2:165|(5:177|(2:179|(1:181))|(1:183)|184|(2:186|187)(1:188)))|164)|14|15|(3:19|(3:21|(3:72|73|74)(3:23|24|(3:29|30|(6:38|39|(2:41|(3:53|54|55)(1:43))(1:56)|(1:45)|46|(3:48|49|50)(1:52))))|51)|76)|(6:80|(3:142|143|(1:(4:145|(1:147)(1:153)|148|(2:150|151)(1:152))(1:155)))(0)|82|(3:84|(4:86|87|(2:100|(1:104))(1:89)|(4:91|(1:93)|94|95)(1:97))(1:105)|96)|106|(5:110|111|112|(4:114|(3:116|(4:118|(1:120)|121|122)(1:124)|123)|125|126)(3:128|(3:130|(1:138)(4:132|(1:134)|135|136)|137)|139)|127))|157|127)|192|14|15|(4:17|19|(0)|76)|(7:78|80|(0)(0)|82|(0)|106|(6:108|110|111|112|(0)(0)|127))|157|127) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:114:0x0198 */
|
|
/* JADX WARN: Removed duplicated region for block: B:128:0x01be */
|
|
/* JADX WARN: Removed duplicated region for block: B:142:0x010b A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x00a0 A[Catch: Exception -> 0x00fb, TryCatch #1 {Exception -> 0x00fb, blocks: (B:15:0x008b, B:17:0x0093, B:19:0x0099, B:21:0x00a0, B:24:0x00ab, B:27:0x00b8, B:30:0x00bf, B:33:0x00ca, B:36:0x00d1, B:39:0x00d8, B:41:0x00de, B:45:0x00eb, B:46:0x00f1, B:49:0x00f7), top: B:14:0x008b }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:84:0x0137 */
|
|
/* JADX WARN: Type inference failed for: r2v9, types: [java.lang.Object, java.util.Comparator] */
|
|
/* JADX WARN: Type inference failed for: r8v6, types: [com.mycompany.app.main.MainItem$ChildItem, java.lang.Object] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 509
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.WebAppInterface.AnonymousClass10.run():void");
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onFndTag(String str, String str2) {
|
|
if (!TextUtils.isEmpty(str) && !TextUtils.isEmpty(str2)) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.uh = str;
|
|
webViewActivity.vh = str2;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.22
|
|
/* JADX WARN: Removed duplicated region for block: B:40:0x0085 A[Catch: Exception -> 0x0138, TryCatch #0 {Exception -> 0x0138, blocks: (B:10:0x0035, B:16:0x003d, B:18:0x0043, B:21:0x0048, B:24:0x0050, B:27:0x0060, B:29:0x0066, B:32:0x006c, B:34:0x0072, B:38:0x0080, B:40:0x0085, B:43:0x009e, B:47:0x0126, B:48:0x00a6, B:51:0x00d6, B:55:0x00dc, B:59:0x00e3, B:61:0x0103, B:64:0x010e, B:66:0x0114, B:68:0x0119, B:70:0x0121, B:72:0x00ac, B:75:0x00b5, B:80:0x00d1, B:83:0x00ca, B:84:0x0092, B:91:0x0135, B:93:0x007b), top: B:9:0x0035 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:0x012d A[LOOP:1: B:49:0x00a8->B:53:0x012d, LOOP_END] */
|
|
/* JADX WARN: Removed duplicated region for block: B:54:0x00dc A[EDGE_INSN: B:54:0x00dc->B:55:0x00dc BREAK A[LOOP:1: B:49:0x00a8->B:53:0x012d], SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:90:0x0134 */
|
|
/* JADX WARN: Removed duplicated region for block: B:91:0x0135 A[Catch: Exception -> 0x0138, TRY_LEAVE, TryCatch #0 {Exception -> 0x0138, blocks: (B:10:0x0035, B:16:0x003d, B:18:0x0043, B:21:0x0048, B:24:0x0050, B:27:0x0060, B:29:0x0066, B:32:0x006c, B:34:0x0072, B:38:0x0080, B:40:0x0085, B:43:0x009e, B:47:0x0126, B:48:0x00a6, B:51:0x00d6, B:55:0x00dc, B:59:0x00e3, B:61:0x0103, B:64:0x010e, B:66:0x0114, B:68:0x0119, B:70:0x0121, B:72:0x00ac, B:75:0x00b5, B:80:0x00d1, B:83:0x00ca, B:84:0x0092, B:91:0x0135, B:93:0x007b), top: B:9:0x0035 }] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 318
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.WebAppInterface.AnonymousClass22.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onHamTag(String str) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (str.equals(webViewActivity.Mi)) {
|
|
return;
|
|
}
|
|
webViewActivity.Mi = str;
|
|
webViewActivity.th = str;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.21
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0060 A[Catch: Exception -> 0x0089, TryCatch #0 {Exception -> 0x0089, blocks: (B:12:0x0031, B:14:0x0050, B:19:0x0060, B:20:0x007f, B:22:0x0069, B:24:0x006f, B:26:0x0074, B:28:0x007c, B:29:0x0059), top: B:11:0x0031 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:22:0x0069 A[Catch: Exception -> 0x0089, TryCatch #0 {Exception -> 0x0089, blocks: (B:12:0x0031, B:14:0x0050, B:19:0x0060, B:20:0x007f, B:22:0x0069, B:24:0x006f, B:26:0x0074, B:28:0x007c, B:29:0x0059), top: B:11:0x0031 }] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r11 = this;
|
|
com.mycompany.app.web.WebViewActivity$WebAppInterface r0 = com.mycompany.app.web.WebViewActivity.WebAppInterface.this
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
java.lang.String r1 = r0.th
|
|
r2 = 0
|
|
r0.th = r2
|
|
boolean r2 = android.text.TextUtils.isEmpty(r1)
|
|
if (r2 == 0) goto L10
|
|
goto L1a
|
|
L10:
|
|
java.lang.String r2 = r0.B8
|
|
java.lang.String r2 = com.mycompany.app.main.MainUtil.q0(r2)
|
|
com.mycompany.app.web.WebClean r3 = r0.q9
|
|
if (r3 != 0) goto L1b
|
|
L1a:
|
|
return
|
|
L1b:
|
|
android.content.Context r4 = r0.i1
|
|
com.mycompany.app.web.WebNestView r5 = r0.I2
|
|
java.lang.String r6 = "[class*=\""
|
|
boolean r7 = android.text.TextUtils.isEmpty(r2)
|
|
r8 = 0
|
|
r9 = 1
|
|
if (r7 == 0) goto L2a
|
|
goto L89
|
|
L2a:
|
|
boolean r7 = android.text.TextUtils.isEmpty(r1)
|
|
if (r7 == 0) goto L31
|
|
goto L89
|
|
L31:
|
|
java.lang.StringBuilder r7 = new java.lang.StringBuilder // Catch: java.lang.Exception -> L89
|
|
r7.<init>(r6) // Catch: java.lang.Exception -> L89
|
|
r7.append(r1) // Catch: java.lang.Exception -> L89
|
|
java.lang.String r6 = "\"],[data-role*=\""
|
|
r7.append(r6) // Catch: java.lang.Exception -> L89
|
|
r7.append(r1) // Catch: java.lang.Exception -> L89
|
|
java.lang.String r1 = "\"]"
|
|
r7.append(r1) // Catch: java.lang.Exception -> L89
|
|
java.lang.String r1 = r7.toString() // Catch: java.lang.Exception -> L89
|
|
java.util.List r6 = r3.n(r2) // Catch: java.lang.Exception -> L89
|
|
if (r6 == 0) goto L59
|
|
boolean r7 = r6.isEmpty() // Catch: java.lang.Exception -> L89
|
|
if (r7 == 0) goto L57
|
|
goto L59
|
|
L57:
|
|
r7 = r8
|
|
goto L5e
|
|
L59:
|
|
java.util.ArrayList r6 = r3.m(r4, r2) // Catch: java.lang.Exception -> L89
|
|
r7 = r9
|
|
L5e:
|
|
if (r6 != 0) goto L69
|
|
java.util.ArrayList r6 = new java.util.ArrayList // Catch: java.lang.Exception -> L89
|
|
r6.<init>() // Catch: java.lang.Exception -> L89
|
|
r6.add(r1) // Catch: java.lang.Exception -> L89
|
|
goto L7f
|
|
L69:
|
|
boolean r10 = r6.contains(r1) // Catch: java.lang.Exception -> L89
|
|
if (r10 != 0) goto L89
|
|
r6.add(r1) // Catch: java.lang.Exception -> L89
|
|
if (r7 == 0) goto L7f
|
|
int r7 = r6.size() // Catch: java.lang.Exception -> L89
|
|
r10 = 20
|
|
if (r7 <= r10) goto L7f
|
|
r6.remove(r8) // Catch: java.lang.Exception -> L89
|
|
L7f:
|
|
java.lang.String r1 = r3.g0(r2, r1, r8) // Catch: java.lang.Exception -> L89
|
|
com.mycompany.app.main.MainUtil.I(r5, r1, r9) // Catch: java.lang.Exception -> L89
|
|
r3.e(r4, r2, r6) // Catch: java.lang.Exception -> L89
|
|
L89:
|
|
r0.ea(r9, r8)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.WebAppInterface.AnonymousClass21.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onJsResult(String str, String str2) {
|
|
MyWebBody myWebBody;
|
|
MyWebBody myWebBody2;
|
|
if (!TextUtils.isEmpty(str)) {
|
|
boolean equals = str.equals("onCheckReddit");
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (equals) {
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.getClass();
|
|
if ("1".equals(str2) && webViewActivity.I2 != null && (myWebBody2 = webViewActivity.e2) != null) {
|
|
myWebBody2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.239
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView == null || webViewActivity2.e2 == null) {
|
|
return;
|
|
}
|
|
webNestView.C();
|
|
webViewActivity2.e2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.239.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2 = WebViewActivity.this.I2;
|
|
if (webNestView2 == null) {
|
|
return;
|
|
}
|
|
webNestView2.onResume();
|
|
}
|
|
}, 1000L);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
boolean z = false;
|
|
if (str.equals("onCheckPass")) {
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity.getClass();
|
|
if (!"1".equals(str2)) {
|
|
webViewActivity.Pa = null;
|
|
webViewActivity.Qa = false;
|
|
return;
|
|
} else {
|
|
webViewActivity.Ea = true;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.497
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.v0(WebViewActivity.this, true);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
if (str.equals("onCheckLang")) {
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity.getClass();
|
|
if ("0".equals(str2)) {
|
|
webViewActivity.Dn = false;
|
|
webViewActivity.u7(false);
|
|
return;
|
|
} else {
|
|
webViewActivity.En = str2;
|
|
webViewActivity.m0(new AnonymousClass610());
|
|
return;
|
|
}
|
|
}
|
|
if (str.equals("onTransUser")) {
|
|
int i4 = WebViewActivity.Fo;
|
|
webViewActivity.getClass();
|
|
if ("1".equals(str2)) {
|
|
webViewActivity.H6 = 2;
|
|
webViewActivity.L6 = false;
|
|
webViewActivity.M6 = null;
|
|
webViewActivity.N6 = null;
|
|
if (webViewActivity.I2 != null && (myWebBody = webViewActivity.e2) != null) {
|
|
myWebBody.post(new AnonymousClass407());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
final boolean equals2 = "2".equals(str2);
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.399
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String str3;
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.getClass();
|
|
StringBuilder N3 = MainUtil.N3();
|
|
if (N3 != null) {
|
|
if (equals2) {
|
|
str3 = N3.toString();
|
|
} else {
|
|
String M2 = MainUtil.M2(webViewActivity2.P6);
|
|
if (!TextUtils.isEmpty(M2)) {
|
|
N3.insert(0, M2);
|
|
str3 = N3.toString();
|
|
}
|
|
}
|
|
MainUtil.I(webViewActivity2.I2, str3, true);
|
|
}
|
|
str3 = null;
|
|
MainUtil.I(webViewActivity2.I2, str3, true);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (str.equals("onTransExist")) {
|
|
int i5 = WebViewActivity.Fo;
|
|
webViewActivity.getClass();
|
|
final boolean equals3 = "2".equals(str2);
|
|
boolean z2 = webViewActivity.J6;
|
|
if (PrefAlbum.u == 0) {
|
|
webViewActivity.J6 = false;
|
|
} else {
|
|
if (equals3 || !webViewActivity.Fn) {
|
|
z = true;
|
|
}
|
|
webViewActivity.J6 = z;
|
|
}
|
|
if (z2 != webViewActivity.J6) {
|
|
webViewActivity.n6();
|
|
}
|
|
if (!equals3 && !webViewActivity.Q6) {
|
|
if (!webViewActivity.Fn) {
|
|
int i6 = PrefAlbum.u;
|
|
if (i6 != 1 && i6 != 2) {
|
|
return;
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.N6 = PrefAlbum.y;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.399
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String str3;
|
|
int i52 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.getClass();
|
|
StringBuilder N3 = MainUtil.N3();
|
|
if (N3 != null) {
|
|
if (equals3) {
|
|
str3 = N3.toString();
|
|
} else {
|
|
String M2 = MainUtil.M2(webViewActivity2.P6);
|
|
if (!TextUtils.isEmpty(M2)) {
|
|
N3.insert(0, M2);
|
|
str3 = N3.toString();
|
|
}
|
|
}
|
|
MainUtil.I(webViewActivity2.I2, str3, true);
|
|
}
|
|
str3 = null;
|
|
MainUtil.I(webViewActivity2.I2, str3, true);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (str.equals("onTransList")) {
|
|
if (webViewActivity.I2 != null && !TextUtils.isEmpty(str2)) {
|
|
webViewActivity.Cl = str2;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.401
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.Cl;
|
|
webViewActivity2.Cl = null;
|
|
if (webViewActivity2.I2 == null) {
|
|
return;
|
|
}
|
|
MainUtil.P7(webViewActivity2.i1, str3);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (str.equals("onTransClass")) {
|
|
if (webViewActivity.I2 != null) {
|
|
if ("0".equals(str2)) {
|
|
webViewActivity.P6 = "-";
|
|
return;
|
|
}
|
|
if (TextUtils.isEmpty(str2)) {
|
|
webViewActivity.P6 = "-";
|
|
return;
|
|
} else {
|
|
if (TextUtils.isEmpty(webViewActivity.P6)) {
|
|
webViewActivity.Dl = str2;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.402
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.Dl;
|
|
webViewActivity2.Dl = null;
|
|
if (webViewActivity2.I2 != null && TextUtils.isEmpty(webViewActivity2.P6)) {
|
|
webViewActivity2.P6 = MainUtil.K3(str3);
|
|
String str4 = webViewActivity2.P6;
|
|
if (str4 != null && str4.length() > 2) {
|
|
MainUtil.Z4(webViewActivity2.I2, str4);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (str.equals("onActionTrans")) {
|
|
webViewActivity.zo = str2;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.650
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.zo;
|
|
String str4 = webViewActivity2.Ao;
|
|
webViewActivity2.zo = null;
|
|
webViewActivity2.Ao = null;
|
|
if (webViewActivity2.I2 != null && !webViewActivity2.G1 && !webViewActivity2.J5()) {
|
|
DialogViewTrans dialogViewTrans = webViewActivity2.G6;
|
|
if (dialogViewTrans != null) {
|
|
dialogViewTrans.dismiss();
|
|
webViewActivity2.G6 = null;
|
|
}
|
|
if (!TextUtils.isEmpty(str3) && !str3.equals("\"\"")) {
|
|
webViewActivity2.ca();
|
|
DialogViewTrans dialogViewTrans2 = new DialogViewTrans(webViewActivity2, str3, str4, webViewActivity2.M6);
|
|
webViewActivity2.G6 = dialogViewTrans2;
|
|
dialogViewTrans2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.397
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
DialogViewTrans dialogViewTrans3 = webViewActivity3.G6;
|
|
if (dialogViewTrans3 != null) {
|
|
dialogViewTrans3.dismiss();
|
|
webViewActivity3.G6 = null;
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
MainUtil.e8(webViewActivity2, R.string.empty);
|
|
}
|
|
}
|
|
webViewActivity2.G3();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onLoadHtml(String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Ih = str;
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.29
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Ih;
|
|
webViewActivity2.Ih = null;
|
|
WebLoadTask.c().g(str2);
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onLongPars2(String str) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 == null && webViewActivity.R5 == null && TextUtils.isEmpty(webViewActivity.ro) && webViewActivity.R5 == null) {
|
|
webViewActivity.qo = str;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.643
|
|
/* JADX WARN: Code restructure failed: missing block: B:75:0x00eb, code lost:
|
|
|
|
if (r8.startsWith("http") != false) goto L77;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:62:0x0095 */
|
|
/* JADX WARN: Removed duplicated region for block: B:74:0x00e7 */
|
|
/* JADX WARN: Removed duplicated region for block: B:95:0x0128 */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 571
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass643.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onLongParse() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 == null && webViewActivity.R5 == null && !webViewActivity.to && TextUtils.isEmpty(webViewActivity.ro) && webViewActivity.R5 == null) {
|
|
webViewActivity.to = true;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.642
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.I(WebViewActivity.this.I2, "(function(){var ele=window.sblong;window.sblong=null;window.sbfirst=null;var sel=window.getSelection();if(sel&&sel.toString())return;if(!ele||(ele.tagName=='HTML')||(ele.tagName=='BODY'))return;var fsel=ele;if(!ele.innerHTML){ele=ele.parentNode;}if(!ele||(ele.tagName=='HTML')||(ele.tagName=='BODY'))return;window.sbfirst=fsel;android.onLongPars2(ele.innerHTML);})();", true);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onObserDet(String str, int i) {
|
|
boolean z;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i == 0) {
|
|
webViewActivity.H6 = 1;
|
|
} else {
|
|
webViewActivity.H6 = 3;
|
|
if (i == 2) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
webViewActivity.L6 = z;
|
|
webViewActivity.M6 = str;
|
|
if (TextUtils.isEmpty(PrefAlbum.y)) {
|
|
PrefAlbum.y = str;
|
|
PrefAlbum.z = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
PrefAlbum.u(webViewActivity.i1);
|
|
}
|
|
if (MainUtil.q5(webViewActivity.N6, str)) {
|
|
webViewActivity.N6 = null;
|
|
}
|
|
}
|
|
if (PrefAlbum.u != 0) {
|
|
webViewActivity.J6 = true;
|
|
}
|
|
webViewActivity.K6 = false;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.25
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.D8(false);
|
|
if (webViewActivity2.H6 == 1) {
|
|
return;
|
|
}
|
|
String str2 = webViewActivity2.N6;
|
|
webViewActivity2.N6 = null;
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
webViewActivity2.O6 = str2;
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.25.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebAppInterface webAppInterface = WebAppInterface.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str3 = webViewActivity3.O6;
|
|
webViewActivity3.O6 = null;
|
|
MainUtil.M7(webViewActivity3.I2, str3);
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
Context context = webViewActivity4.i1;
|
|
if (context != null && !DataTrans.a(context).b()) {
|
|
MainUtil.M3(webViewActivity4.I2);
|
|
}
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
if (!TextUtils.isEmpty(webViewActivity5.P6)) {
|
|
return;
|
|
}
|
|
MainUtil.N7(webViewActivity5.I2);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity2.getClass();
|
|
if (!TextUtils.isEmpty(PrefAlbum.y) && (webNestView = webViewActivity2.I2) != null) {
|
|
webNestView.evaluateJavascript("document.cookie", new ValueCallback<String>() { // from class: com.mycompany.app.web.WebViewActivity.400
|
|
@Override // android.webkit.ValueCallback
|
|
public final void onReceiveValue(String str3) {
|
|
String L3 = MainUtil.L3(str3);
|
|
if (!TextUtils.isEmpty(L3) && !L3.equals(PrefAlbum.z)) {
|
|
PrefAlbum.z = L3;
|
|
PrefSet.c(0, WebViewActivity.this.i1, "mTransCode", L3);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.25.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebAppInterface webAppInterface = WebAppInterface.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
Context context = webViewActivity3.i1;
|
|
if (context != null && !DataTrans.a(context).b()) {
|
|
MainUtil.M3(webViewActivity3.I2);
|
|
}
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (!TextUtils.isEmpty(webViewActivity4.P6)) {
|
|
return;
|
|
}
|
|
MainUtil.N7(webViewActivity4.I2);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onPageState(int i) {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.setPageState(i);
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onPassClick() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null || webViewActivity.Ma) {
|
|
return;
|
|
}
|
|
webViewActivity.Ma = true;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.14
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
boolean z = MainApp.R1;
|
|
if (z && webNestView != null) {
|
|
ArrayList arrayList = null;
|
|
if (z) {
|
|
if (MainNative.a(35, MainNative.F)) {
|
|
arrayList = MainNative.F;
|
|
} else {
|
|
ArrayList arrayList2 = new ArrayList();
|
|
int i = 0;
|
|
while (true) {
|
|
if (i < 35) {
|
|
String passJs3 = MainUtil.getPassJs3(i);
|
|
if (TextUtils.isEmpty(passJs3)) {
|
|
break;
|
|
}
|
|
arrayList2.add(passJs3);
|
|
i++;
|
|
} else {
|
|
MainNative.F = arrayList2;
|
|
arrayList = arrayList2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList != null && arrayList.size() == 35) {
|
|
StringBuilder sb = new StringBuilder();
|
|
int i2 = 0;
|
|
while (true) {
|
|
if (i2 < 35) {
|
|
String str = (String) arrayList.get(i2);
|
|
if (TextUtils.isEmpty(str)) {
|
|
break;
|
|
}
|
|
sb.append(str);
|
|
i2++;
|
|
} else {
|
|
MainUtil.I(webNestView, sb.toString(), true);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
webViewActivity2.Ma = false;
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onPassResult(String str, String str2) {
|
|
if (str != null && str.length() >= 3 && str2 != null && str2.length() >= 8 && !str.equals(str2)) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Ea = true;
|
|
webViewActivity.Ha = webViewActivity.B8;
|
|
webViewActivity.Ia = str;
|
|
webViewActivity.Ja = str2;
|
|
webViewActivity.Ka = webViewActivity.A8;
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onPhPstDet(String str, String str2, String str3) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.zh = str;
|
|
webViewActivity.Ah = str2;
|
|
webViewActivity.Bh = str3;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.24
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int indexOf;
|
|
int indexOf2;
|
|
int i;
|
|
int indexOf3;
|
|
WebAppInterface webAppInterface = WebAppInterface.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str4 = webViewActivity2.zh;
|
|
String str5 = webViewActivity2.Ah;
|
|
String str6 = webViewActivity2.Bh;
|
|
webViewActivity2.zh = null;
|
|
webViewActivity2.Ah = null;
|
|
webViewActivity2.Bh = null;
|
|
if (webViewActivity2.I2 != null) {
|
|
if (URLUtil.isNetworkUrl(str5)) {
|
|
WebViewActivity.this.I2.N(str4, str5, null);
|
|
} else {
|
|
if (TextUtils.isEmpty(str6) || (indexOf = str6.indexOf("data-src")) <= 0 || (indexOf2 = str6.indexOf("http", indexOf + 8)) <= 0 || (indexOf3 = str6.indexOf(34, (i = indexOf2 + 4))) <= i) {
|
|
return;
|
|
}
|
|
WebViewActivity.this.I2.N(str4, str6.substring(indexOf2, indexOf3), null);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onPstDet(String str, String str2, String str3) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.wh = str;
|
|
webViewActivity.xh = str2;
|
|
webViewActivity.yh = str3;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.23
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str4 = webViewActivity2.wh;
|
|
String str5 = webViewActivity2.xh;
|
|
String str6 = webViewActivity2.yh;
|
|
webViewActivity2.wh = null;
|
|
webViewActivity2.xh = null;
|
|
webViewActivity2.yh = null;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.N(str4, str5, str6);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onRateDet(float f) {
|
|
int compare = Float.compare(PrefZtwo.W, f);
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (compare != 0) {
|
|
int i = WebViewActivity.Fo;
|
|
if (webViewActivity.I5()) {
|
|
PrefZtwo.W = f;
|
|
PrefSet.e(webViewActivity.i1, f);
|
|
}
|
|
}
|
|
DialogSetRate dialogSetRate = webViewActivity.d4;
|
|
if (dialogSetRate != null) {
|
|
dialogSetRate.B();
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onRateGet(float f) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.d4 != null) {
|
|
if (Float.compare(PrefZtwo.W, f) != 0) {
|
|
PrefZtwo.W = f;
|
|
PrefSet.e(webViewActivity.i1, f);
|
|
}
|
|
DialogSetRate dialogSetRate = webViewActivity.d4;
|
|
if (dialogSetRate != null) {
|
|
dialogSetRate.B();
|
|
}
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onReadHtml(String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogViewRead dialogViewRead = webViewActivity.m8;
|
|
if (dialogViewRead != null) {
|
|
dialogViewRead.setReadHtml(str);
|
|
return;
|
|
}
|
|
WebReadTask webReadTask = webViewActivity.o8;
|
|
if (webReadTask != null) {
|
|
webReadTask.j(str);
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onSlideDet() {
|
|
WebViewActivity.this.ra = true;
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onSnsDet(String str, int i) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i == 1) {
|
|
webViewActivity.Ug = str;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.1
|
|
/* JADX WARN: Removed duplicated region for block: B:11:0x00b1 */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r11 = this;
|
|
com.mycompany.app.web.WebViewActivity$WebAppInterface r0 = com.mycompany.app.web.WebViewActivity.WebAppInterface.this
|
|
com.mycompany.app.web.WebViewActivity r1 = com.mycompany.app.web.WebViewActivity.this
|
|
java.lang.String r2 = r1.Ug
|
|
r3 = 0
|
|
r1.Ug = r3
|
|
boolean r4 = android.text.TextUtils.isEmpty(r2)
|
|
if (r4 == 0) goto L18
|
|
int r0 = com.mycompany.app.soulbrowser.R.string.no_down_video
|
|
r1.getClass()
|
|
com.mycompany.app.main.MainUtil.e8(r1, r0)
|
|
return
|
|
L18:
|
|
boolean r4 = android.text.TextUtils.isEmpty(r2)
|
|
if (r4 == 0) goto L21
|
|
L1e:
|
|
r2 = r3
|
|
goto Lab
|
|
L21:
|
|
java.lang.String r4 = "/liked_by/"
|
|
boolean r4 = r2.endsWith(r4)
|
|
if (r4 != 0) goto L62
|
|
boolean r4 = android.text.TextUtils.isEmpty(r2)
|
|
if (r4 == 0) goto L30
|
|
goto L1e
|
|
L30:
|
|
boolean r3 = android.webkit.URLUtil.isNetworkUrl(r2)
|
|
if (r3 == 0) goto L38
|
|
goto Lab
|
|
L38:
|
|
java.lang.String r3 = "/reel/"
|
|
int r3 = r2.indexOf(r3)
|
|
if (r3 > 0) goto L42
|
|
goto Lab
|
|
L42:
|
|
java.lang.StringBuilder r3 = new java.lang.StringBuilder
|
|
r3.<init>()
|
|
java.lang.String r4 = "/"
|
|
boolean r4 = r2.startsWith(r4)
|
|
if (r4 == 0) goto L55
|
|
java.lang.String r4 = "https://www.instagram.com"
|
|
r3.append(r4)
|
|
goto L5a
|
|
L55:
|
|
java.lang.String r4 = "https://www.instagram.com/"
|
|
r3.append(r4)
|
|
L5a:
|
|
r3.append(r2)
|
|
java.lang.String r2 = r3.toString()
|
|
goto Lab
|
|
L62:
|
|
int r4 = r2.length()
|
|
int r4 = r4 + (-10)
|
|
if (r4 > 0) goto L6b
|
|
goto L1e
|
|
L6b:
|
|
r5 = 0
|
|
java.lang.String r2 = r2.substring(r5, r4)
|
|
boolean r4 = android.text.TextUtils.isEmpty(r2)
|
|
if (r4 == 0) goto L77
|
|
goto L1e
|
|
L77:
|
|
r4 = 47
|
|
int r4 = r2.lastIndexOf(r4)
|
|
if (r4 > 0) goto L80
|
|
goto L1e
|
|
L80:
|
|
java.lang.String r6 = "/p"
|
|
int r6 = r2.lastIndexOf(r6, r4)
|
|
if (r6 > 0) goto L89
|
|
goto L1e
|
|
L89:
|
|
int r7 = r4 + (-2)
|
|
if (r6 == r7) goto L8e
|
|
goto L1e
|
|
L8e:
|
|
java.lang.String r5 = r2.substring(r5, r6)
|
|
boolean r6 = android.text.TextUtils.isEmpty(r5)
|
|
if (r6 == 0) goto L99
|
|
goto L1e
|
|
L99:
|
|
java.lang.String r2 = r2.substring(r4)
|
|
boolean r4 = android.text.TextUtils.isEmpty(r2)
|
|
if (r4 == 0) goto La5
|
|
goto L1e
|
|
La5:
|
|
java.lang.String r3 = "/reel"
|
|
java.lang.String r2 = android.support.v4.media.a.D(r5, r3, r2)
|
|
Lab:
|
|
boolean r3 = android.webkit.URLUtil.isNetworkUrl(r2)
|
|
if (r3 != 0) goto Lb3
|
|
java.lang.String r2 = r1.A8
|
|
Lb3:
|
|
r4 = r2
|
|
com.mycompany.app.web.WebViewActivity r3 = com.mycompany.app.web.WebViewActivity.this
|
|
r9 = 5
|
|
r10 = 0
|
|
r5 = 0
|
|
java.lang.String r6 = "video/*"
|
|
r7 = 0
|
|
r3.l9(r4, r5, r6, r7, r9, r10)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.WebAppInterface.AnonymousClass1.run():void");
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
webViewActivity.Ug = str;
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 != null) {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Ug;
|
|
webViewActivity2.Ug = null;
|
|
String Q3 = MainUtil.Q3(str2);
|
|
if (TextUtils.isEmpty(Q3)) {
|
|
int i2 = R.string.no_down_video;
|
|
webViewActivity2.getClass();
|
|
MainUtil.e8(webViewActivity2, i2);
|
|
} else {
|
|
webViewActivity2.fk = true;
|
|
webViewActivity2.l9(Q3, null, "video/*", 0L, 5, null);
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 3) {
|
|
webViewActivity.Ug = str;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.3
|
|
/* JADX WARN: Removed duplicated region for block: B:16:0x00f3 */
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x00f8 */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x010a A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x010b */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 276
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.WebAppInterface.AnonymousClass3.run():void");
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (i == 4) {
|
|
if (URLUtil.isNetworkUrl(str) && !str.equals(webViewActivity.b9)) {
|
|
webViewActivity.b9 = str;
|
|
webViewActivity.Ug = str;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Ug;
|
|
webViewActivity2.Ug = null;
|
|
webViewActivity2.D7(str2, null, null, null);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (TextUtils.isEmpty(str)) {
|
|
Handler handler3 = webViewActivity.O0;
|
|
if (handler3 == null) {
|
|
return;
|
|
}
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = R.string.no_down_video;
|
|
webViewActivity2.getClass();
|
|
MainUtil.e8(webViewActivity2, i2);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.Ug = str;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.Ug;
|
|
webViewActivity2.Ug = null;
|
|
WebViewActivity.F0(0, webViewActivity2, str2);
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onTextDet(String str) {
|
|
if (PrefTts.j) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.Sa && !webViewActivity.F1 && webViewActivity.R5 == null) {
|
|
DialogViewRead dialogViewRead = webViewActivity.m8;
|
|
if ((dialogViewRead == null || !dialogViewRead.s0) && !TextUtils.isEmpty(str)) {
|
|
webViewActivity.eh = str;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.11
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.eh;
|
|
webViewActivity2.eh = null;
|
|
if (PrefTts.j && !webViewActivity2.Sa && !webViewActivity2.F1 && webViewActivity2.R5 == null && !TextUtils.isEmpty(str2)) {
|
|
webViewActivity2.Sa = true;
|
|
webViewActivity2.r5();
|
|
if (webViewActivity2.Ra == null) {
|
|
webViewActivity2.Sa = false;
|
|
return;
|
|
}
|
|
webViewActivity2.Ta = true;
|
|
try {
|
|
int maxSpeechInputLength = TextToSpeech.getMaxSpeechInputLength();
|
|
if (str2.length() > maxSpeechInputLength) {
|
|
str2 = str2.substring(0, maxSpeechInputLength);
|
|
}
|
|
if (webViewActivity2.Ra.isSpeaking()) {
|
|
webViewActivity2.Ra.stop();
|
|
}
|
|
webViewActivity2.E8();
|
|
if (webViewActivity2.Ra.speak(str2, 0, null, "0") == 0) {
|
|
webViewActivity2.T9(true, true);
|
|
} else {
|
|
webViewActivity2.Sa = false;
|
|
webViewActivity2.Ta = false;
|
|
}
|
|
} catch (Exception unused) {
|
|
webViewActivity2.Sa = false;
|
|
webViewActivity2.Ta = false;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onThemeDet(String str, String str2) {
|
|
WebNestFrame webNestFrame;
|
|
int H6 = MainUtil.H6(str);
|
|
if (H6 != -1) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H2 != null && webViewActivity.I2 != null) {
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(H6);
|
|
if (n3 != null && (webNestFrame = n3.p) != null && webNestFrame.equals(webViewActivity.H2)) {
|
|
int J6 = MainUtil.J6(str2);
|
|
if (webViewActivity.N5(J6)) {
|
|
webViewActivity.oi = J6;
|
|
int p6 = MainUtil.p6(J6);
|
|
webViewActivity.pi = p6;
|
|
webViewActivity.I2.T(webViewActivity.oi, p6);
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.240
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.I8(webViewActivity2.oi, webViewActivity2.pi);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (n3 != null && n3.p != null) {
|
|
int J62 = MainUtil.J6(str2);
|
|
int p62 = MainUtil.p6(J62);
|
|
WebNestFrame webNestFrame2 = n3.p;
|
|
WebNestFrame.PageItem y = webNestFrame2.y(webNestFrame2.p);
|
|
if (y != null) {
|
|
WebNestView webNestView = y.i;
|
|
if (webNestView != null) {
|
|
webNestView.T(J62, p62);
|
|
} else {
|
|
y.g = J62;
|
|
y.h = p62;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onUsDeleteValue(String str, String str2, String str3, String str4) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (WebViewActivity.I0(webViewActivity, str3)) {
|
|
Context context = webViewActivity.i1;
|
|
DbBookScript dbBookScript = DbBookScript.f12949c;
|
|
if (!TextUtils.isEmpty(str) && !TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str4)) {
|
|
DbUtil.a(DbBookScript.d(context).getWritableDatabase(), "DbBookScript_table_value", "_name=? AND _namespace=? AND _key=?", new String[]{str, str2, str4});
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public String onUsGetResourceText(String str, String str2, String str3, String str4) {
|
|
Script k;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!WebViewActivity.I0(webViewActivity, str3) || (k = DbBookScript.k(webViewActivity.i1, str, str2)) == null) {
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
for (ScriptResource scriptResource : k.o) {
|
|
if (scriptResource.f17550a.equals(str4)) {
|
|
try {
|
|
return new String(scriptResource.f17551c, "UTF-8");
|
|
} catch (UnsupportedEncodingException unused) {
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
}
|
|
}
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public String onUsGetResourceURL(String str, String str2, String str3, String str4) {
|
|
Script k;
|
|
String mimeTypeFromExtension;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (WebViewActivity.I0(webViewActivity, str3) && (k = DbBookScript.k(webViewActivity.i1, str, str2)) != null) {
|
|
for (ScriptResource scriptResource : k.o) {
|
|
if (scriptResource.f17550a.equals(str4)) {
|
|
String fileExtensionFromUrl = MimeTypeMap.getFileExtensionFromUrl(scriptResource.b);
|
|
if (TextUtils.isEmpty(fileExtensionFromUrl)) {
|
|
mimeTypeFromExtension = "application/octet-stream";
|
|
} else {
|
|
mimeTypeFromExtension = MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtensionFromUrl);
|
|
}
|
|
StringBuilder w = android.support.v4.media.a.w("data:", mimeTypeFromExtension, ";base64,");
|
|
w.append(Base64.encodeToString(scriptResource.f17551c, 0));
|
|
return w.toString();
|
|
}
|
|
}
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
} catch (Exception unused) {
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public String onUsGetValue(String str, String str2, String str3, String str4, String str5) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (WebViewActivity.I0(webViewActivity, str3)) {
|
|
String m = DbBookScript.m(webViewActivity.i1, str, str2, str4);
|
|
if (m != null) {
|
|
return m;
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
return str5;
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public String onUsListValues(String str, String str2, String str3) {
|
|
String[] e;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (WebViewActivity.I0(webViewActivity, str3) && (e = DbBookScript.e(webViewActivity.i1, str, str2)) != null && e.length != 0) {
|
|
StringBuilder sb = null;
|
|
for (String str4 : e) {
|
|
if (sb == null) {
|
|
sb = new StringBuilder();
|
|
} else {
|
|
sb.append(",");
|
|
}
|
|
sb.append(str4);
|
|
}
|
|
if (sb != null) {
|
|
return sb.toString();
|
|
}
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
} catch (Exception unused) {
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onUsLog(String str, String str2, String str3, String str4) {
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onUsOpenInTab(String str, String str2, String str3, String str4) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (!TextUtils.isEmpty(str4) && WebViewActivity.I0(webViewActivity, str3)) {
|
|
this.f20686a = str4;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.31
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebAppInterface webAppInterface = WebAppInterface.this;
|
|
String str5 = webAppInterface.f20686a;
|
|
webAppInterface.f20686a = null;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.O1(null, str5, true, null);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onUsSetClipboard(String str, String str2, String str3, String str4) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (!TextUtils.isEmpty(str4) && WebViewActivity.I0(webViewActivity, str3)) {
|
|
MainUtil.s(R.string.copied_clipboard, webViewActivity, "Copied data", str4);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onUsSetValue(String str, String str2, String str3, String str4, String str5) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (WebViewActivity.I0(webViewActivity, str3)) {
|
|
DbBookScript.u(webViewActivity.i1, str, str2, str4, str5);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public String onUsXmlHttpRequest(String str, String str2, String str3, String str4) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (WebViewActivity.I0(webViewActivity, str3)) {
|
|
return new WebViewXmlHttpRequest(webViewActivity.i1, webViewActivity.I2, str4).a().a();
|
|
}
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
} catch (Exception unused) {
|
|
return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVidDe2(String str, String str2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.ph = str;
|
|
webViewActivity.qh = str2;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.18
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String J1;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.ph;
|
|
String str4 = webViewActivity2.qh;
|
|
webViewActivity2.ph = null;
|
|
webViewActivity2.qh = null;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
if (webNestView.m0) {
|
|
try {
|
|
ArrayList arrayList = webNestView.g0;
|
|
if (arrayList != null && !arrayList.isEmpty()) {
|
|
int size = arrayList.size();
|
|
ArrayList arrayList2 = null;
|
|
int i = 0;
|
|
while (i < size) {
|
|
Object obj = arrayList.get(i);
|
|
i++;
|
|
String str5 = (String) obj;
|
|
if (str5 != null && !str5.equals("vid_dummy")) {
|
|
if (arrayList2 == null) {
|
|
arrayList2 = new ArrayList();
|
|
}
|
|
arrayList2.add(str5);
|
|
}
|
|
}
|
|
webNestView.g0 = arrayList2;
|
|
webNestView.m0 = false;
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
if (URLUtil.isNetworkUrl(str3) && ((J1 = MainUtil.J1(webViewActivity2.A8, true)) == null || J1.length() + 1 < str3.length())) {
|
|
if (!URLUtil.isNetworkUrl(str4)) {
|
|
str4 = null;
|
|
}
|
|
webViewActivity2.Ji = null;
|
|
webViewActivity2.D7(str3, null, str4, null);
|
|
}
|
|
DialogVideoList dialogVideoList = webViewActivity2.X7;
|
|
if (dialogVideoList != null) {
|
|
dialogVideoList.G();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVidDe3(String str, int i) {
|
|
boolean isEmpty = TextUtils.isEmpty(str);
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (isEmpty) {
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.19
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
DialogVideoList dialogVideoList = WebViewActivity.this.X7;
|
|
if (dialogVideoList != null && dialogVideoList.m0 != null) {
|
|
dialogVideoList.L(false);
|
|
dialogVideoList.M();
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.rh = str;
|
|
webViewActivity.sh = i;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.20
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ArrayList arrayList;
|
|
String str2;
|
|
String str3;
|
|
String[] split2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str4 = webViewActivity2.rh;
|
|
int i2 = webViewActivity2.sh;
|
|
webViewActivity2.rh = null;
|
|
if (webViewActivity2.I2 != null) {
|
|
if (i2 == 1) {
|
|
try {
|
|
Scanner scanner = new Scanner(str4);
|
|
while (scanner.hasNextLine() && !webViewActivity2.n2(scanner.nextLine())) {
|
|
}
|
|
scanner.close();
|
|
} catch (Exception unused) {
|
|
}
|
|
} else if (i2 == 2 && !TextUtils.isEmpty(str4)) {
|
|
try {
|
|
split2 = str4.split("!@!");
|
|
} catch (Exception unused2) {
|
|
arrayList = null;
|
|
str2 = null;
|
|
str3 = null;
|
|
}
|
|
if (split2 != null && split2.length != 0) {
|
|
arrayList = null;
|
|
str2 = null;
|
|
str3 = null;
|
|
for (String str5 : split2) {
|
|
try {
|
|
if (URLUtil.isNetworkUrl(str5)) {
|
|
if (str5.endsWith(".jpg")) {
|
|
str2 = str5;
|
|
} else {
|
|
if (str5.endsWith(".gif")) {
|
|
str3 = str5;
|
|
}
|
|
if (arrayList == null) {
|
|
arrayList = new ArrayList();
|
|
}
|
|
if (!arrayList.contains(str5)) {
|
|
arrayList.add(str5);
|
|
}
|
|
webViewActivity2.Ji = null;
|
|
}
|
|
}
|
|
} catch (Exception unused3) {
|
|
}
|
|
}
|
|
if (arrayList != null && !arrayList.isEmpty()) {
|
|
webViewActivity2.Ki = true;
|
|
if (TextUtils.isEmpty(str2)) {
|
|
str2 = str3;
|
|
}
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.D(null);
|
|
}
|
|
webViewActivity2.D7(null, null, str2, arrayList);
|
|
}
|
|
}
|
|
}
|
|
DialogVideoList dialogVideoList = webViewActivity2.X7;
|
|
if (dialogVideoList != null) {
|
|
dialogVideoList.G();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVidDet(int i) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!MainUtil.q5(webViewActivity.Ji, webViewActivity.A8)) {
|
|
return;
|
|
}
|
|
webViewActivity.Ji = null;
|
|
if (i == 1 || i == 2) {
|
|
webViewActivity.Ki = true;
|
|
}
|
|
webViewActivity.oh = i;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.17
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = webViewActivity2.oh;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
if (i2 == 1) {
|
|
webNestView.D(null);
|
|
webViewActivity2.D7("pub_dummy", null, null, null);
|
|
} else if (i2 == 2) {
|
|
webNestView.D(null);
|
|
webViewActivity2.D7("pgf_dummy", null, null, null);
|
|
} else {
|
|
webViewActivity2.D7("vid_dummy", null, null, null);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVidFound(boolean z, boolean z2, String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 != null) {
|
|
webViewActivity.Jh = z;
|
|
webViewActivity.Kh = z2;
|
|
webViewActivity.Lh = str;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.30
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z3 = webViewActivity2.Jh;
|
|
boolean z4 = webViewActivity2.Kh;
|
|
String str2 = webViewActivity2.Lh;
|
|
webViewActivity2.Lh = null;
|
|
WebVideoFrame webVideoFrame = webViewActivity2.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.q(z3, z4, str2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVidResult(String str, String str2) {
|
|
WebVideoFrame webVideoFrame = WebViewActivity.this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.r(str, str2);
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVidTime(String str, String str2) {
|
|
WebVideoFrame webVideoFrame = WebViewActivity.this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.s(str, str2);
|
|
}
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVideoAddListener(String str, boolean z, boolean z2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.fh = str;
|
|
webViewActivity.gh = z;
|
|
webViewActivity.hh = z2;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.12
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z3;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.fh;
|
|
boolean z4 = webViewActivity2.gh;
|
|
boolean z5 = webViewActivity2.hh;
|
|
webViewActivity2.fh = null;
|
|
if (AdError.UNDEFINED_DOMAIN.equals(str2)) {
|
|
webViewActivity2.F9 = null;
|
|
} else {
|
|
webViewActivity2.F9 = str2;
|
|
}
|
|
webViewActivity2.G9 = z4;
|
|
boolean z6 = webViewActivity2.C9;
|
|
if (z6 && z6 && webViewActivity2.I2 != null) {
|
|
if (!z5 && !TextUtils.isEmpty(webViewActivity2.B8) && (webViewActivity2.B8.endsWith("soundcloud.com") || webViewActivity2.B8.endsWith("promodj.com") || webViewActivity2.B8.endsWith("radiorecord.ru"))) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = z5;
|
|
}
|
|
if (z3) {
|
|
webViewActivity2.D9 = z5;
|
|
MainUtil.b8(webViewActivity2.i1, webViewActivity2.I2, webViewActivity2.G9, z5);
|
|
} else {
|
|
webViewActivity2.h6(false, false);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onVideoPaused(String str, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.ih = str;
|
|
webViewActivity.jh = z;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.WebAppInterface.13
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str2 = webViewActivity2.ih;
|
|
boolean z2 = webViewActivity2.jh;
|
|
webViewActivity2.ih = null;
|
|
if (AdError.UNDEFINED_DOMAIN.equals(str2)) {
|
|
webViewActivity2.F9 = null;
|
|
} else {
|
|
webViewActivity2.F9 = str2;
|
|
}
|
|
webViewActivity2.G9 = z2;
|
|
if (webViewActivity2.C9) {
|
|
MainUtil.b8(webViewActivity2.i1, webViewActivity2.I2, z2, true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@JavascriptInterface
|
|
public void onViewHtml(String str, String str2) {
|
|
WebNestView webNestView;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogLoadEmg dialogLoadEmg = webViewActivity.S7;
|
|
if (dialogLoadEmg != null) {
|
|
WebNestView webNestView2 = dialogLoadEmg.n0;
|
|
if (webNestView2 != null) {
|
|
webNestView2.U(str, str2);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
DialogLoadHmg dialogLoadHmg = webViewActivity.T7;
|
|
if (dialogLoadHmg != null && (webNestView = dialogLoadHmg.n0) != null) {
|
|
webNestView.U(str, str2);
|
|
}
|
|
}
|
|
}
|
|
|
|
static {
|
|
int i = MainApp.f1;
|
|
Fo = i;
|
|
Go = i;
|
|
Ho = i / 2;
|
|
}
|
|
|
|
public static void A0(WebViewActivity webViewActivity) {
|
|
boolean z;
|
|
int i = webViewActivity.f9;
|
|
if (i != 0) {
|
|
if (webViewActivity.g9 != webViewActivity.e9) {
|
|
webViewActivity.V8();
|
|
return;
|
|
}
|
|
if (i != 3 && webViewActivity.a6()) {
|
|
if (webViewActivity.f9 == 2) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (z == webViewActivity.h0()) {
|
|
return;
|
|
}
|
|
webViewActivity.V8();
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void A1(WebViewActivity webViewActivity, View view) {
|
|
if (view == null) {
|
|
webViewActivity.getClass();
|
|
return;
|
|
}
|
|
if (!webViewActivity.G1 && !webViewActivity.Nl) {
|
|
webViewActivity.Nl = true;
|
|
webViewActivity.Ol = (int) view.getX();
|
|
webViewActivity.Pl = (int) view.getY();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.438
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MyWebBody myWebBody = webViewActivity2.e2;
|
|
if (myWebBody != null) {
|
|
if (webViewActivity2.R5 != null) {
|
|
webViewActivity2.Nl = false;
|
|
return;
|
|
}
|
|
WebMoveText webMoveText = webViewActivity2.h7;
|
|
if (webMoveText != null) {
|
|
int i2 = webViewActivity2.Ol;
|
|
int i3 = webViewActivity2.Pl;
|
|
if (!webMoveText.u) {
|
|
webMoveText.n = false;
|
|
webMoveText.x = null;
|
|
webMoveText.y = null;
|
|
webMoveText.C = 0;
|
|
if (webMoveText.w != MainApp.K1) {
|
|
webMoveText.v();
|
|
}
|
|
if (PrefZtri.t0) {
|
|
i = R.string.move_free;
|
|
} else {
|
|
i = R.string.move_long;
|
|
}
|
|
if (webMoveText.v != i) {
|
|
webMoveText.v = i;
|
|
webMoveText.setText(i);
|
|
}
|
|
webMoveText.setAlpha(1.0f);
|
|
webMoveText.w(myWebBody, i2, i3);
|
|
webMoveText.setVisibility(0);
|
|
}
|
|
webViewActivity2.Nl = false;
|
|
return;
|
|
}
|
|
try {
|
|
WebMoveText webMoveText2 = new WebMoveText(webViewActivity2);
|
|
webViewActivity2.h7 = webMoveText2;
|
|
webMoveText2.setVisibility(4);
|
|
MyWebBody myWebBody2 = webViewActivity2.e2;
|
|
WebMoveText webMoveText3 = webViewActivity2.h7;
|
|
myWebBody2.addView(webMoveText3, webMoveText3.getViewWidth(), webViewActivity2.h7.getViewHeight());
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.439
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebMoveText webMoveText4 = webViewActivity3.h7;
|
|
if (webMoveText4 != null) {
|
|
webMoveText4.w(webViewActivity3.e2, webViewActivity3.Ol, webViewActivity3.Pl);
|
|
webViewActivity3.h7.setVisibility(0);
|
|
}
|
|
webViewActivity3.Nl = false;
|
|
}
|
|
});
|
|
} catch (Exception unused) {
|
|
webViewActivity2.Nl = false;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static boolean B0(WebViewActivity webViewActivity, int i, int i2) {
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(i2);
|
|
if (n3 != null) {
|
|
long j = n3.e;
|
|
if (j != 0) {
|
|
long j2 = n3.f19520c;
|
|
ArrayList arrayList = new ArrayList();
|
|
synchronized (webViewActivity.f1) {
|
|
try {
|
|
int size = webViewActivity.O2.size();
|
|
while (i < size) {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) webViewActivity.O2.get(i);
|
|
if (webTabItem != null && webTabItem.f19520c != j2) {
|
|
if (webTabItem.e != j) {
|
|
break;
|
|
}
|
|
WebNestFrame webNestFrame = webTabItem.p;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.t(null);
|
|
webTabItem.p = null;
|
|
}
|
|
arrayList.add(webTabItem);
|
|
}
|
|
i++;
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
if (!arrayList.isEmpty()) {
|
|
webViewActivity.m0(new AnonymousClass131(arrayList));
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static void B1(WebViewActivity webViewActivity, boolean z, int i) {
|
|
if (webViewActivity.f2 != null) {
|
|
webViewActivity.e7(z);
|
|
if (!z) {
|
|
QuickSchEdit quickSchEdit = webViewActivity.C3;
|
|
if (quickSchEdit != null) {
|
|
MainUtil.R6(quickSchEdit.g);
|
|
quickSchEdit.g = null;
|
|
QuickView quickView = quickSchEdit.i;
|
|
if (quickView != null) {
|
|
quickView.y();
|
|
quickSchEdit.i = null;
|
|
}
|
|
QuickControl quickControl = quickSchEdit.j;
|
|
if (quickControl != null) {
|
|
quickControl.b();
|
|
quickSchEdit.j = null;
|
|
}
|
|
quickSchEdit.f17431c = null;
|
|
quickSchEdit.f = null;
|
|
webViewActivity.f2.removeView(webViewActivity.C3);
|
|
webViewActivity.C3 = null;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webViewActivity.C3 != null) {
|
|
return;
|
|
}
|
|
QuickSchEdit quickSchEdit2 = new QuickSchEdit(webViewActivity, webViewActivity.i1, i, new QuickView.QuickViewListener() { // from class: com.mycompany.app.web.WebViewActivity.469
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final boolean a() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final boolean b() {
|
|
return WebViewActivity.this.h0();
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void c(QuickAdapter.QuickItem quickItem, boolean z2) {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final boolean d() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void e(QuickAdapter.QuickItem quickItem) {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final MyWebBody f() {
|
|
return WebViewActivity.this.e2;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final boolean g(float f, float f2, int i2) {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final int h() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void i(boolean z2) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.d8(2, z2);
|
|
if (z2) {
|
|
return;
|
|
}
|
|
WebViewActivity.B1(webViewActivity2, false, -1);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void j() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.p4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void k() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void l() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void m(QuickAdapter.QuickItem quickItem) {
|
|
WebViewActivity.y1(WebViewActivity.this, quickItem);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void n(List list) {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void o(QuickAdapter.QuickItem quickItem, int i2) {
|
|
WebViewActivity.x1(WebViewActivity.this, quickItem, i2);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final boolean q() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void r() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void s(View view) {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void t(int i2, String str) {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void u() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void v() {
|
|
QuickView quickView2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null && (quickView2 = webNestView.Z0) != null) {
|
|
quickView2.v(true);
|
|
}
|
|
QuickSearch quickSearch = webViewActivity2.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.n();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void w() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final boolean x() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void y() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickView.QuickViewListener
|
|
public final void p(int i2, int i3, int i4, String str, int i5) {
|
|
}
|
|
});
|
|
webViewActivity.C3 = quickSchEdit2;
|
|
webViewActivity.f2.addView(quickSchEdit2, -1, -1);
|
|
}
|
|
}
|
|
|
|
public static boolean B5(MyTouchFrame myTouchFrame) {
|
|
if (myTouchFrame == null) {
|
|
return false;
|
|
}
|
|
return myTouchFrame.f19040c;
|
|
}
|
|
|
|
public static boolean C0(WebViewActivity webViewActivity, int i) {
|
|
int i2;
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(i);
|
|
if (n3 != null) {
|
|
long j = n3.e;
|
|
if (j != 0) {
|
|
ArrayList arrayList = new ArrayList();
|
|
ArrayList arrayList2 = new ArrayList();
|
|
synchronized (webViewActivity.f1) {
|
|
try {
|
|
int size = webViewActivity.O2.size();
|
|
i2 = 0;
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) webViewActivity.O2.get(i3);
|
|
if (webTabItem != null) {
|
|
if (webTabItem.e == j) {
|
|
arrayList.add(webTabItem);
|
|
} else {
|
|
WebNestFrame webNestFrame = webTabItem.p;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.t(null);
|
|
webTabItem.p = null;
|
|
}
|
|
arrayList2.add(webTabItem);
|
|
if (webTabItem.h <= webViewActivity.P2) {
|
|
i2++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
if (!arrayList2.isEmpty()) {
|
|
webViewActivity.Nf = arrayList;
|
|
webViewActivity.Of = arrayList2;
|
|
webViewActivity.Pf = i2;
|
|
webViewActivity.m0(new AnonymousClass132());
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static void C1(WebViewActivity webViewActivity, int i, int i2, int i3, int i4, String str) {
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.R4();
|
|
if (!webViewActivity.hm) {
|
|
webViewActivity.hm = true;
|
|
webViewActivity.im = i;
|
|
webViewActivity.jm = i2;
|
|
webViewActivity.km = i3;
|
|
webViewActivity.lm = i4;
|
|
webViewActivity.mm = str;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.474
|
|
/* JADX WARN: Type inference failed for: r6v3, types: [android.widget.FrameLayout, com.mycompany.app.quick.QuickSubView] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i5 = webViewActivity2.im;
|
|
int i6 = webViewActivity2.jm;
|
|
int i7 = webViewActivity2.km;
|
|
int i8 = webViewActivity2.lm;
|
|
String str2 = webViewActivity2.mm;
|
|
webViewActivity2.hm = false;
|
|
webViewActivity2.mm = null;
|
|
if (webViewActivity2.G3 == null) {
|
|
?? frameLayout = new FrameLayout(webViewActivity2);
|
|
frameLayout.H = true;
|
|
frameLayout.f17477c = webViewActivity2;
|
|
webViewActivity2.G3 = frameLayout;
|
|
boolean z = webViewActivity2.U1;
|
|
frameLayout.f = new QuickSubView.QuickSubListener() { // from class: com.mycompany.app.web.WebViewActivity.475
|
|
@Override // com.mycompany.app.quick.QuickSubView.QuickSubListener
|
|
public final boolean b() {
|
|
return WebViewActivity.this.h0();
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSubView.QuickSubListener
|
|
public final void i(boolean z2) {
|
|
int i9 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.d8(3, z2);
|
|
if (z2) {
|
|
webViewActivity3.L9(false);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSubView.QuickSubListener
|
|
public final void j() {
|
|
int i9 = WebViewActivity.Fo;
|
|
WebViewActivity.this.p4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSubView.QuickSubListener
|
|
public final void m(QuickAdapter.QuickItem quickItem) {
|
|
WebViewActivity.y1(WebViewActivity.this, quickItem);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSubView.QuickSubListener
|
|
public final void o(QuickAdapter.QuickItem quickItem, int i9) {
|
|
WebViewActivity.x1(WebViewActivity.this, quickItem, i9);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSubView.QuickSubListener
|
|
public final void p(String str3) {
|
|
int i9 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.R4();
|
|
if (webViewActivity3.I2 != null) {
|
|
webViewActivity3.k9 = false;
|
|
webViewActivity3.E7(false);
|
|
if (TextUtils.isEmpty(str3)) {
|
|
return;
|
|
}
|
|
if (MainUtil.A6(8)) {
|
|
webViewActivity3.O1(null, str3, true, null);
|
|
} else {
|
|
webViewActivity3.S5(str3, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSubView.QuickSubListener
|
|
public final void q() {
|
|
int i9 = WebViewActivity.Fo;
|
|
WebViewActivity.this.R4();
|
|
}
|
|
};
|
|
frameLayout.g = i5;
|
|
frameLayout.h = i6;
|
|
frameLayout.i = i7;
|
|
frameLayout.j = i8;
|
|
frameLayout.k = str2;
|
|
frameLayout.l = z;
|
|
frameLayout.d();
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.476
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
QuickSubView quickSubView = webViewActivity3.G3;
|
|
if (quickSubView == null) {
|
|
return;
|
|
}
|
|
if (webViewActivity3.j9) {
|
|
quickSubView.setPadding(0, 0, 0, webViewActivity3.A3.getOutPadBottom());
|
|
}
|
|
webViewActivity3.e2.addView(webViewActivity3.G3, -1, -1);
|
|
webViewActivity3.G3.g();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void D0(WebViewActivity webViewActivity) {
|
|
WebNestView webNestView;
|
|
if (webViewActivity.w6 != null && (webNestView = webViewActivity.I2) != null) {
|
|
webViewActivity.x6 = webNestView.computeVerticalScrollRange();
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.379
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.w6 != null && (webNestView2 = webViewActivity2.I2) != null) {
|
|
if (webViewActivity2.x6 != webNestView2.computeVerticalScrollRange()) {
|
|
WebViewActivity.D0(webViewActivity2);
|
|
return;
|
|
}
|
|
MyWebBody myWebBody2 = webViewActivity2.e2;
|
|
if (myWebBody2 == null) {
|
|
return;
|
|
}
|
|
myWebBody2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.379.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.sl = true;
|
|
webViewActivity3.m0(new AnonymousClass381());
|
|
}
|
|
}, 200L);
|
|
return;
|
|
}
|
|
webViewActivity2.q6();
|
|
}
|
|
}, 200L);
|
|
return;
|
|
}
|
|
webViewActivity.q6();
|
|
}
|
|
|
|
public static void D1(WebViewActivity webViewActivity, View view, final int i, final int i2, final boolean z) {
|
|
WebTabBarAdapter webTabBarAdapter;
|
|
if (webViewActivity.Y5 == null) {
|
|
webViewActivity.W4();
|
|
if (view != null) {
|
|
ArrayList arrayList = new ArrayList();
|
|
List list = webViewActivity.O2;
|
|
boolean multi = list != null && list.size() > 1;
|
|
int[] labels = {R.string.group_other_tab, R.string.delete_other_tab, R.string.delete_all_tab, R.string.new_url, R.string.group_url, R.string.back_url, R.string.copy_url, R.string.share_url, R.string.open_with, R.string.delete_tab, R.string.tab_homepage};
|
|
boolean[] allow = new boolean[11];
|
|
allow[0] = multi && i != -1;
|
|
allow[1] = multi && (!z || ((webTabBarAdapter = webViewActivity.b3) != null && webTabBarAdapter.d() > 1));
|
|
allow[2] = multi;
|
|
allow[3] = true;
|
|
allow[4] = true;
|
|
allow[5] = true;
|
|
allow[6] = !z;
|
|
allow[7] = !z;
|
|
allow[8] = !z;
|
|
allow[9] = true;
|
|
allow[10] = !z;
|
|
int mask = PrefWeb.a0;
|
|
for (int id : MainUtil.g3(2, false)) {
|
|
if (allow[id] && (mask & (1 << id)) != 0) {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(id, labels[id]));
|
|
}
|
|
}
|
|
MyPopupMenu myPopupMenu = new MyPopupMenu(webViewActivity, webViewActivity.e2, view, arrayList, MainUtil.k5(webViewActivity.U1), new MyPopupMenu.MyPopupListener() { // from class: com.mycompany.app.web.WebViewActivity.314
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.W4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view2, int i3) {
|
|
WebTabAdapter.WebTabItem E;
|
|
String str;
|
|
String str2;
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.e4();
|
|
int i5 = i2;
|
|
if (i3 == 100) {
|
|
D1edit(webViewActivity2, view2);
|
|
return true;
|
|
}
|
|
if (i3 == 9) {
|
|
webViewActivity2.U4();
|
|
if (z) {
|
|
webViewActivity2.x9(i5);
|
|
} else if (i5 == webViewActivity2.P2) {
|
|
webViewActivity2.d6(null, 38);
|
|
} else {
|
|
webViewActivity2.A2(i5);
|
|
}
|
|
return true;
|
|
}
|
|
if (i3 == 10) {
|
|
D1home(webViewActivity2, i5, false);
|
|
return true;
|
|
}
|
|
if (i3 == 1010) {
|
|
D1home(webViewActivity2, i5, true);
|
|
return true;
|
|
}
|
|
if (i3 >= 1000) {
|
|
return false;
|
|
}
|
|
if (i3 == 0) {
|
|
webViewActivity2.U4();
|
|
webViewActivity2.y9(i, i5, 3);
|
|
return true;
|
|
}
|
|
if (i3 == 1) {
|
|
webViewActivity2.U4();
|
|
if (z) {
|
|
webViewActivity2.y9(0, i5, 2);
|
|
return true;
|
|
}
|
|
webViewActivity2.y9(0, i5, 1);
|
|
return true;
|
|
}
|
|
if (i3 == 2) {
|
|
webViewActivity2.U4();
|
|
webViewActivity2.y9(0, 0, 0);
|
|
return true;
|
|
}
|
|
String str3 = null;
|
|
if (i3 == 3) {
|
|
if (webViewActivity2.b3 != null) {
|
|
webViewActivity2.U4();
|
|
webViewActivity2.P2 = i5;
|
|
WebTabAdapter.WebTabItem E2 = webViewActivity2.b3.E(i5);
|
|
if (E2 == null) {
|
|
str2 = null;
|
|
} else {
|
|
str2 = E2.j;
|
|
}
|
|
webViewActivity2.O1(null, str2, true, null);
|
|
return true;
|
|
}
|
|
} else if (i3 == 4) {
|
|
if (webViewActivity2.b3 != null) {
|
|
webViewActivity2.U4();
|
|
webViewActivity2.P2 = i5;
|
|
WebTabAdapter.WebTabItem E3 = webViewActivity2.b3.E(i5);
|
|
if (E3 == null) {
|
|
str = null;
|
|
} else {
|
|
str = E3.j;
|
|
}
|
|
webViewActivity2.L1(str, null);
|
|
return true;
|
|
}
|
|
} else if (i3 == 5) {
|
|
if (webViewActivity2.b3 != null) {
|
|
webViewActivity2.U4();
|
|
WebTabAdapter.WebTabItem E4 = webViewActivity2.b3.E(i5);
|
|
if (E4 != null) {
|
|
str3 = E4.j;
|
|
}
|
|
webViewActivity2.G1(str3);
|
|
return true;
|
|
}
|
|
} else if (i3 == 6) {
|
|
WebTabBarAdapter webTabBarAdapter2 = webViewActivity2.b3;
|
|
if (webTabBarAdapter2 != null) {
|
|
WebTabAdapter.WebTabItem E5 = webTabBarAdapter2.E(i5);
|
|
if (E5 != null) {
|
|
str3 = E5.j;
|
|
}
|
|
MainUtil.s(R.string.copied_clipboard, webViewActivity2, "Copied URL", str3);
|
|
return true;
|
|
}
|
|
} else if (i3 == 7) {
|
|
WebTabBarAdapter webTabBarAdapter3 = webViewActivity2.b3;
|
|
if (webTabBarAdapter3 != null && (E = webTabBarAdapter3.E(i5)) != null) {
|
|
webViewActivity2.U4();
|
|
webViewActivity2.m8(E.j, WebViewActivity.q3(webViewActivity2.i1, E));
|
|
return true;
|
|
}
|
|
} else if (i3 == 8 && webViewActivity2.b3 != null) {
|
|
webViewActivity2.U4();
|
|
WebTabAdapter.WebTabItem E6 = webViewActivity2.b3.E(i5);
|
|
if (E6 != null) {
|
|
str3 = E6.j;
|
|
}
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
str3 = webNestView.q(str3);
|
|
}
|
|
webViewActivity2.y3(str3);
|
|
}
|
|
return true;
|
|
}
|
|
});
|
|
View header = D1header(webViewActivity, i2, view);
|
|
if (header != null) {
|
|
myPopupMenu.D = header;
|
|
myPopupMenu.E = (int) MainUtil.G(webViewActivity, 72.0f);
|
|
Object tag = header.getTag();
|
|
if (tag instanceof String) {
|
|
myPopupMenu.G = (String) tag;
|
|
}
|
|
}
|
|
webViewActivity.Y5 = myPopupMenu;
|
|
webViewActivity.Z0 = myPopupMenu;
|
|
myPopupMenu.C = true;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.315
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Y5 != null) {
|
|
WebViewActivity.f1(webViewActivity2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void E0(WebViewActivity webViewActivity, String str, String str2, boolean z) {
|
|
// Also used for non-image data: URLs (WebViewActivity$361 routes isDataUrlDownload here;
|
|
// DialogDownUrl sets q1=1 for data: so confirm does not fall through to MainDownSvc).
|
|
if (webViewActivity.i1 == null) {
|
|
return;
|
|
}
|
|
DialogDownUrl dialogDownUrl = webViewActivity.p6;
|
|
if (dialogDownUrl != null) {
|
|
if (dialogDownUrl.i0 != null && !dialogDownUrl.X1) {
|
|
dialogDownUrl.X1 = true;
|
|
int height = dialogDownUrl.L0.getHeight() + dialogDownUrl.j0.getHeight();
|
|
dialogDownUrl.l0.setLineDn(true);
|
|
dialogDownUrl.k0.setVisibility(4);
|
|
dialogDownUrl.L0.setVisibility(4);
|
|
dialogDownUrl.i0.e(height, 0, true, false);
|
|
}
|
|
} else {
|
|
MainUtil.e8(webViewActivity, R.string.down_start);
|
|
}
|
|
webViewActivity.Vk = str;
|
|
webViewActivity.Wk = str2;
|
|
webViewActivity.m0(new AnonymousClass364(z));
|
|
}
|
|
|
|
public static void E1(WebViewActivity webViewActivity, int i, int i2) {
|
|
if (i != -1 && !webViewActivity.c3) {
|
|
if (i == webViewActivity.P2) {
|
|
webViewActivity.d6(null, 38);
|
|
return;
|
|
}
|
|
if (i >= 10000) {
|
|
webViewActivity.x9(i - 10000);
|
|
if (webViewActivity.b3 != null) {
|
|
webViewActivity.Fg = i2;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.176
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i3 = webViewActivity2.Fg;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity2.b3;
|
|
if (webTabBarAdapter == null) {
|
|
return;
|
|
}
|
|
if (i3 != -1) {
|
|
webTabBarAdapter.h(i3);
|
|
} else {
|
|
webTabBarAdapter.g();
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity.A2(i);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x01a8 */
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x01c1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x01ea */
|
|
/* JADX WARN: Removed duplicated region for block: B:29:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:46:0x0065 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Type inference failed for: r1v9, types: [java.lang.Object, java.util.Comparator] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void F0(final int r18, com.mycompany.app.web.WebViewActivity r19, java.lang.String r20) {
|
|
/*
|
|
Method dump skipped, instructions count: 501
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.F0(int, com.mycompany.app.web.WebViewActivity, java.lang.String):void");
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x0051, code lost:
|
|
|
|
if (r5 >= 0) goto L24;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x004c */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void G0(com.mycompany.app.web.WebViewActivity r11) {
|
|
/*
|
|
android.content.Context r0 = r11.i1
|
|
com.mycompany.app.db.book.DbBookScript r1 = com.mycompany.app.db.book.DbBookScript.f12949c
|
|
boolean r1 = com.mycompany.app.pref.PrefPdf.L
|
|
r2 = 0
|
|
r3 = 0
|
|
if (r1 != 0) goto Ld
|
|
Lb:
|
|
r5 = r3
|
|
goto L54
|
|
Ld:
|
|
if (r0 != 0) goto L10
|
|
goto Lb
|
|
L10:
|
|
java.lang.String r1 = "_time"
|
|
java.lang.String[] r7 = new java.lang.String[]{r1}
|
|
java.lang.String r8 = "_enabled=?"
|
|
java.lang.String r5 = "1"
|
|
java.lang.String[] r9 = new java.lang.String[]{r5}
|
|
com.mycompany.app.db.book.DbBookScript r0 = com.mycompany.app.db.book.DbBookScript.d(r0) // Catch: java.lang.Exception -> L48
|
|
android.database.sqlite.SQLiteDatabase r5 = r0.getWritableDatabase() // Catch: java.lang.Exception -> L48
|
|
java.lang.String r6 = "DbBookScript_table"
|
|
r10 = 0
|
|
android.database.Cursor r0 = com.mycompany.app.db.DbUtil.g(r5, r6, r7, r8, r9, r10) // Catch: java.lang.Exception -> L48
|
|
if (r0 == 0) goto L46
|
|
boolean r5 = r0.moveToFirst() // Catch: java.lang.Exception -> L46
|
|
if (r5 == 0) goto L46
|
|
int r1 = r0.getColumnIndex(r1) // Catch: java.lang.Exception -> L46
|
|
r5 = r3
|
|
L3a:
|
|
long r7 = r0.getLong(r1) // Catch: java.lang.Exception -> L4a
|
|
long r5 = r5 + r7
|
|
boolean r7 = r0.moveToNext() // Catch: java.lang.Exception -> L4a
|
|
if (r7 != 0) goto L3a
|
|
goto L4a
|
|
L46:
|
|
r5 = r3
|
|
goto L4a
|
|
L48:
|
|
r0 = r2
|
|
goto L46
|
|
L4a:
|
|
if (r0 == 0) goto L4f
|
|
r0.close()
|
|
L4f:
|
|
int r0 = (r5 > r3 ? 1 : (r5 == r3 ? 0 : -1))
|
|
if (r0 >= 0) goto L54
|
|
goto Lb
|
|
L54:
|
|
long r0 = r11.Vb
|
|
int r0 = (r0 > r5 ? 1 : (r0 == r5 ? 0 : -1))
|
|
if (r0 != 0) goto L5b
|
|
goto L92
|
|
L5b:
|
|
r11.Vb = r5
|
|
com.mycompany.app.script.ScriptCache r0 = r11.Xb
|
|
if (r0 == 0) goto L6f
|
|
com.mycompany.app.script.ScriptCriteria[] r1 = r0.b
|
|
r0.b = r2
|
|
if (r1 != 0) goto L68
|
|
goto L6d
|
|
L68:
|
|
java.util.LinkedHashMap r0 = r0.f17546a // Catch: java.lang.Exception -> L6d
|
|
r0.clear() // Catch: java.lang.Exception -> L6d
|
|
L6d:
|
|
r11.Xb = r2
|
|
L6f:
|
|
r11.Wb = r2
|
|
long r0 = r11.Vb
|
|
int r0 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1))
|
|
if (r0 != 0) goto L78
|
|
goto L92
|
|
L78:
|
|
java.util.UUID r0 = java.util.UUID.randomUUID() // Catch: java.lang.Exception -> L92
|
|
java.lang.String r0 = r0.toString() // Catch: java.lang.Exception -> L92
|
|
r11.Wb = r0 // Catch: java.lang.Exception -> L92
|
|
com.mycompany.app.script.ScriptCache r0 = new com.mycompany.app.script.ScriptCache // Catch: java.lang.Exception -> L92
|
|
r0.<init>() // Catch: java.lang.Exception -> L92
|
|
r11.Xb = r0 // Catch: java.lang.Exception -> L92
|
|
android.content.Context r1 = r11.i1 // Catch: java.lang.Exception -> L92
|
|
r0.b(r1) // Catch: java.lang.Exception -> L92
|
|
r0 = 1
|
|
r11.S6(r0) // Catch: java.lang.Exception -> L92
|
|
L92:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.G0(com.mycompany.app.web.WebViewActivity):void");
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:18:0x003f A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0041 A[RETURN] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static int H0(com.mycompany.app.web.WebViewActivity r4, java.lang.String r5) {
|
|
/*
|
|
boolean r0 = android.text.TextUtils.isEmpty(r5)
|
|
r1 = 0
|
|
if (r0 == 0) goto L9
|
|
r0 = r1
|
|
goto Lf
|
|
L9:
|
|
java.lang.String r0 = "market:"
|
|
boolean r0 = r5.startsWith(r0)
|
|
Lf:
|
|
r2 = 1
|
|
if (r0 == 0) goto L13
|
|
return r2
|
|
L13:
|
|
boolean r0 = android.text.TextUtils.isEmpty(r5)
|
|
if (r0 == 0) goto L1b
|
|
r0 = r1
|
|
goto L21
|
|
L1b:
|
|
java.lang.String r0 = "https://play.google.com/store/apps/details"
|
|
boolean r0 = r5.startsWith(r0)
|
|
L21:
|
|
r3 = 2
|
|
if (r0 == 0) goto L25
|
|
return r3
|
|
L25:
|
|
boolean r4 = r4.G8
|
|
if (r4 != 0) goto L2b
|
|
L29:
|
|
r4 = r1
|
|
goto L3d
|
|
L2b:
|
|
boolean r4 = com.mycompany.app.pref.PrefZtwo.E
|
|
if (r4 == 0) goto L30
|
|
goto L37
|
|
L30:
|
|
int r4 = com.mycompany.app.pref.PrefZtwo.C
|
|
r4 = r4 & r3
|
|
if (r4 != r3) goto L36
|
|
goto L37
|
|
L36:
|
|
r2 = r1
|
|
L37:
|
|
if (r2 == 0) goto L29
|
|
boolean r4 = com.mycompany.app.main.MainUtil.m6(r5)
|
|
L3d:
|
|
if (r4 == 0) goto L41
|
|
r4 = 3
|
|
return r4
|
|
L41:
|
|
return r1
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.H0(com.mycompany.app.web.WebViewActivity, java.lang.String):int");
|
|
}
|
|
|
|
public static boolean H5(int i, String str) {
|
|
char charAt;
|
|
int lastIndexOf;
|
|
int i2 = i - 1;
|
|
if (i2 >= 0 && (charAt = str.charAt(i2)) >= '0' && charAt <= '9' && (lastIndexOf = str.lastIndexOf(47, i2)) >= 0) {
|
|
int i3 = lastIndexOf + 1;
|
|
if (MainUtil.b5(str, i3, i2, "index") != -1 || MainUtil.b5(str, i3, i2, "segment") != -1 || MainUtil.b5(str, i3, i2, "seg-") != -1) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static boolean I0(WebViewActivity webViewActivity, String str) {
|
|
webViewActivity.getClass();
|
|
if (TextUtils.isEmpty(str)) {
|
|
return false;
|
|
}
|
|
return str.equals(webViewActivity.Wb);
|
|
}
|
|
|
|
public static void J0(WebViewActivity webViewActivity) {
|
|
if (webViewActivity.I2 != null) {
|
|
QuickNews quickNews = webViewActivity.bm;
|
|
if (quickNews != null) {
|
|
quickNews.c();
|
|
webViewActivity.bm = null;
|
|
}
|
|
webViewActivity.cm = 0;
|
|
QuickView quickView = webViewActivity.I2.Z0;
|
|
if (quickView != null) {
|
|
quickView.u(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static int K0(WebViewActivity webViewActivity, String str) {
|
|
if (webViewActivity.S6 != 0 && !webViewActivity.U1 && !TextUtils.isEmpty(str)) {
|
|
if (webViewActivity.S6 == 1) {
|
|
if (str.endsWith("reddit.com")) {
|
|
return webViewActivity.S6;
|
|
}
|
|
return 0;
|
|
}
|
|
if (str.endsWith("github.com")) {
|
|
return webViewActivity.S6;
|
|
}
|
|
return 0;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public static void L0(WebViewActivity webViewActivity, String str, String str2, String str3, long j, boolean z) {
|
|
WebNestView webNestView;
|
|
int i;
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(webViewActivity, R.string.invalid_url);
|
|
return;
|
|
}
|
|
if (webViewActivity.u2(str)) {
|
|
return;
|
|
}
|
|
if (z && (webNestView = webViewActivity.I2) != null && !webNestView.canGoBack() && (str.equals(webViewActivity.A8) || (i = webViewActivity.I2.V1) == 0 || i == 1)) {
|
|
webViewActivity.Wj = str;
|
|
webViewActivity.Xj = str2;
|
|
webViewActivity.Yj = str3;
|
|
webViewActivity.Zj = j;
|
|
webViewActivity.ak = z;
|
|
webViewActivity.K6(new PrevPageListener() { // from class: com.mycompany.app.web.WebViewActivity.357
|
|
@Override // com.mycompany.app.web.WebViewActivity.PrevPageListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str4 = webViewActivity2.Wj;
|
|
String str5 = webViewActivity2.Xj;
|
|
String str6 = webViewActivity2.Yj;
|
|
long j2 = webViewActivity2.Zj;
|
|
boolean z2 = webViewActivity2.ak;
|
|
webViewActivity2.Wj = str4;
|
|
webViewActivity2.Xj = str5;
|
|
webViewActivity2.Yj = str6;
|
|
webViewActivity2.Zj = j2;
|
|
webViewActivity2.ak = z2;
|
|
webViewActivity2.b6(str4, str5, str6, j2);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.b6(str, str2, str3, j);
|
|
}
|
|
|
|
public static void M0(WebViewActivity webViewActivity, WebView webView, Bitmap bitmap, int i, boolean z) {
|
|
boolean z2;
|
|
WebTabAdapter.WebTabItem n3;
|
|
MyWebCoord myWebCoord;
|
|
if (webView != null) {
|
|
String url = webView.getUrl();
|
|
if (!TextUtils.isEmpty(url) && !url.startsWith("file:///") && MainUtil.f6(bitmap) && (webView instanceof WebNestView)) {
|
|
WebNestView webNestView = (WebNestView) webView;
|
|
webNestView.setHasIcon(true);
|
|
String bookUrl = webNestView.getBookUrl();
|
|
if (!TextUtils.isEmpty(bookUrl) && bookUrl.equals(url)) {
|
|
webNestView.setBookUrl(null);
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
webViewActivity.fa(url, null, bitmap, false, z2);
|
|
if (webViewActivity.b3 != null && (n3 = webViewActivity.n3(i)) != null && MainUtil.q5(MainUtil.O1(url), MainUtil.O1(n3.j)) && (myWebCoord = webViewActivity.f2) != null) {
|
|
webViewActivity.Wi = bitmap;
|
|
webViewActivity.Xi = i;
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.268
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebTabBarAdapter.WebTabBarHolder F;
|
|
WebTabAdapter.WebTabItem B;
|
|
WebTabAdapter.WebTabItem E;
|
|
boolean z3;
|
|
boolean z4;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
Bitmap bitmap2 = webViewActivity2.Wi;
|
|
int i2 = webViewActivity2.Xi;
|
|
webViewActivity2.Wi = null;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity2.b3;
|
|
if (webTabBarAdapter != null) {
|
|
int C = webTabBarAdapter.C(i2);
|
|
MyManagerLinear myManagerLinear = webTabBarAdapter.f;
|
|
if (myManagerLinear != null) {
|
|
try {
|
|
View s = myManagerLinear.s(C);
|
|
if (s != null && (F = WebTabBarAdapter.F(s)) != null && F.u != null && (B = webTabBarAdapter.B(C)) != null && B.q == null && (E = webTabBarAdapter.E(WebTabBarAdapter.D(B))) != null) {
|
|
if (webTabBarAdapter.p) {
|
|
z3 = webTabBarAdapter.q;
|
|
} else {
|
|
z3 = PrefWeb.y;
|
|
}
|
|
if (C == webTabBarAdapter.j && !z3) {
|
|
z4 = true;
|
|
} else {
|
|
z4 = false;
|
|
}
|
|
webTabBarAdapter.K(E, F.v, WebViewActivity.q3(webTabBarAdapter.d, E), C, z4, bitmap2);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
if (!z) {
|
|
DialogQuickEdit dialogQuickEdit = webViewActivity.F3;
|
|
if (dialogQuickEdit != null) {
|
|
if (dialogQuickEdit.r0 != null && !dialogQuickEdit.d0 && !dialogQuickEdit.e0 && !dialogQuickEdit.i0 && dialogQuickEdit.m0 == 0 && MainUtil.f6(bitmap)) {
|
|
dialogQuickEdit.i0 = true;
|
|
dialogQuickEdit.j0 = bitmap;
|
|
dialogQuickEdit.m0 = 0;
|
|
dialogQuickEdit.r0.setBackColor(0);
|
|
dialogQuickEdit.r0.setImageBitmap(bitmap);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
DialogWebBookEdit dialogWebBookEdit = webViewActivity.i6;
|
|
if (dialogWebBookEdit != null) {
|
|
if (dialogWebBookEdit.m0 != null && MainUtil.f6(bitmap)) {
|
|
dialogWebBookEdit.w0 = false;
|
|
dialogWebBookEdit.m0.setIconSmall(true);
|
|
dialogWebBookEdit.m0.setImageBitmap(bitmap);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
DialogEditShort dialogEditShort = webViewActivity.l6;
|
|
if (dialogEditShort != null) {
|
|
if (dialogEditShort.p0 && dialogEditShort.h0 != null && MainUtil.f6(bitmap)) {
|
|
dialogEditShort.t0 = false;
|
|
dialogEditShort.h0.setImageBitmap(bitmap);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
DialogDownPage dialogDownPage = webViewActivity.B6;
|
|
if (dialogDownPage != null) {
|
|
if (dialogDownPage.d0 != null) {
|
|
dialogDownPage.p0 = bitmap;
|
|
if (MainUtil.f6(bitmap)) {
|
|
dialogDownPage.d0.setIconSmall(true);
|
|
dialogDownPage.d0.setImageBitmap(bitmap);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
DialogPrintPage dialogPrintPage = webViewActivity.C6;
|
|
if (dialogPrintPage != null && dialogPrintPage.g0 != null && MainUtil.f6(bitmap)) {
|
|
dialogPrintPage.g0.setIconSmall(true);
|
|
dialogPrintPage.g0.setImageBitmap(bitmap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:69:0x00f2, code lost:
|
|
|
|
if (android.os.Build.VERSION.SDK_INT < 24) goto L83;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:70:0x00f5, code lost:
|
|
|
|
r11 = 0;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:72:0x00f9, code lost:
|
|
|
|
if (android.os.Build.VERSION.SDK_INT >= 24) goto L80;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:90:0x007d, code lost:
|
|
|
|
if (r14.startsWith("file:///android_asset/shortcut.html") != false) goto L36;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x00aa */
|
|
/* JADX WARN: Removed duplicated region for block: B:44:0x010f */
|
|
/* JADX WARN: Removed duplicated region for block: B:49:0x011d */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static boolean N0(com.mycompany.app.web.WebViewActivity r13, final java.lang.String r14) {
|
|
/*
|
|
Method dump skipped, instructions count: 290
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.N0(com.mycompany.app.web.WebViewActivity, java.lang.String):boolean");
|
|
}
|
|
|
|
public static void O0(WebViewActivity webViewActivity, int i) {
|
|
if (i == 100) {
|
|
U5edit(webViewActivity, null);
|
|
return;
|
|
}
|
|
if (webViewActivity.I2 != null) {
|
|
boolean z = false;
|
|
switch (i) {
|
|
case 0:
|
|
String s3 = webViewActivity.s3(false);
|
|
if (TextUtils.isEmpty(s3)) {
|
|
MainUtil.e8(webViewActivity, R.string.empty);
|
|
return;
|
|
} else {
|
|
MainUtil.s(R.string.copied_clipboard, webViewActivity, "Copied URL", s3);
|
|
return;
|
|
}
|
|
case 1:
|
|
String s32 = webViewActivity.s3(false);
|
|
if (TextUtils.isEmpty(s32)) {
|
|
MainUtil.e8(webViewActivity, R.string.empty);
|
|
return;
|
|
} else {
|
|
webViewActivity.m8(s32, webViewActivity.I2.getTitle());
|
|
return;
|
|
}
|
|
case 2:
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.307
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
final String r0 = MainUtil.r0(webViewActivity2.i1);
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.307.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str = r0;
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(webViewActivity3, R.string.empty);
|
|
return;
|
|
}
|
|
webViewActivity3.N8 = str;
|
|
webViewActivity3.E7(true);
|
|
webViewActivity3.N8 = null;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
case 3:
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.308
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
final String r0 = MainUtil.r0(webViewActivity2.i1);
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.308.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str = r0;
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(webViewActivity3, R.string.empty);
|
|
} else {
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity3.S5(MainUtil.q4(webViewActivity3.i1, str), null);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
case 4:
|
|
webViewActivity.O1(null, webViewActivity.s3(false), true, null);
|
|
return;
|
|
case 5:
|
|
webViewActivity.y3(webViewActivity.s3(false));
|
|
return;
|
|
case 6:
|
|
Handler handler = webViewActivity.O0;
|
|
String str = webViewActivity.A8;
|
|
Runnable runnable = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.309
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler2 = WebViewActivity.this.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.309.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.e8(WebViewActivity.this, R.string.deleted);
|
|
}
|
|
});
|
|
}
|
|
};
|
|
try {
|
|
z = WebViewFeature.a("DELETE_BROWSING_DATA");
|
|
} catch (RuntimeException | Exception unused) {
|
|
}
|
|
if (!z) {
|
|
if (handler != null) {
|
|
handler.post(runnable);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
String J1 = MainUtil.J1(str, true);
|
|
if (!TextUtils.isEmpty(J1)) {
|
|
try {
|
|
ExecutorService newCachedThreadPool = Executors.newCachedThreadPool();
|
|
WebStorage webStorage = WebStorage.getInstance();
|
|
if (WebViewFeatureInternal.o.d()) {
|
|
((WebStorageBoundaryInterface) BoundaryInterfaceReflectionUtil.a(WebStorageBoundaryInterface.class, WebViewGlueCommunicator.b().f1820a.convertWebStorage(webStorage))).deleteBrowsingDataForSite(J1, newCachedThreadPool, runnable);
|
|
return;
|
|
}
|
|
throw WebViewFeatureInternal.a();
|
|
} catch (Exception unused2) {
|
|
if (handler != null) {
|
|
handler.post(runnable);
|
|
return;
|
|
}
|
|
return;
|
|
} catch (NoSuchMethodError unused3) {
|
|
if (handler != null) {
|
|
handler.post(runnable);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
case 7:
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogWebCerti dialogWebCerti = webViewActivity.u8;
|
|
if (dialogWebCerti != null) {
|
|
dialogWebCerti.dismiss();
|
|
webViewActivity.u8 = null;
|
|
}
|
|
DialogWebCerti dialogWebCerti2 = new DialogWebCerti(webViewActivity, webViewActivity.I2);
|
|
webViewActivity.u8 = dialogWebCerti2;
|
|
dialogWebCerti2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.592
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogWebCerti dialogWebCerti3 = webViewActivity2.u8;
|
|
if (dialogWebCerti3 != null) {
|
|
dialogWebCerti3.dismiss();
|
|
webViewActivity2.u8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
default:
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void P0(WebViewActivity webViewActivity) {
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null && !webViewActivity.Z1) {
|
|
webViewActivity.Z1 = true;
|
|
webViewActivity.W1 = null;
|
|
if (!PrefSync.j) {
|
|
if (webViewActivity.oc) {
|
|
return;
|
|
} else {
|
|
webViewActivity.oc = true;
|
|
}
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = PrefWeb.x;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (i == 0) {
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.v5();
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new AnonymousClass7());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity2.T1(webViewActivity2.q2, webViewActivity2.r2);
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.U1(webViewActivity3.q2, webViewActivity3.r2);
|
|
MyWebCoord myWebCoord4 = webViewActivity3.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.v5();
|
|
MyWebCoord myWebCoord5 = webViewActivity4.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new AnonymousClass7());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void P8(WebNestView webNestView) {
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
MainUtil.X7(webNestView.getSettings(), MainApp.L1);
|
|
}
|
|
|
|
public static void Q0(WebViewActivity webViewActivity) {
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.R6 = webViewActivity.A8;
|
|
webViewActivity.S6 = 0;
|
|
if (!TextUtils.isEmpty(webViewActivity.B8)) {
|
|
if (webViewActivity.B8.endsWith("reddit.com")) {
|
|
webViewActivity.S6 = 1;
|
|
} else if (webViewActivity.B8.endsWith("github.com")) {
|
|
webViewActivity.S6 = 2;
|
|
}
|
|
}
|
|
int i = webViewActivity.S6;
|
|
webViewActivity.Z8 = i;
|
|
if (i != 0) {
|
|
webViewActivity.q5(false);
|
|
webViewActivity.I2.F();
|
|
webViewActivity.ca();
|
|
return;
|
|
}
|
|
MainUtil.I(webViewActivity.I2, "(function(){android.onDocHtml(document.documentElement.innerHTML);})();", true);
|
|
}
|
|
|
|
public static boolean Q5(String str, String str2) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
if (str.endsWith("vk.com")) {
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
return str2.startsWith("https://m.vk.com/video");
|
|
}
|
|
return false;
|
|
}
|
|
if (str.endsWith("vkvideo.ru") && !TextUtils.isEmpty(str2)) {
|
|
return str2.startsWith("https://m.vkvideo.ru");
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static void R0(WebViewActivity webViewActivity, String str) {
|
|
int i = webViewActivity.H6;
|
|
if (i == 1) {
|
|
MainUtil.e8(webViewActivity, R.string.wait_retry);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
webViewActivity.w4();
|
|
webViewActivity.L6();
|
|
webViewActivity.B9();
|
|
return;
|
|
}
|
|
webViewActivity.Y4();
|
|
if (webViewActivity.H6 == 3) {
|
|
if (!webViewActivity.s2()) {
|
|
MainUtil.L7(webViewActivity.I2, "confirm");
|
|
}
|
|
} else {
|
|
webViewActivity.H6 = 0;
|
|
webViewActivity.I6 = true;
|
|
webViewActivity.K6 = true;
|
|
webViewActivity.N6 = null;
|
|
webViewActivity.Q6 = false;
|
|
if (PrefAlbum.u == 0) {
|
|
webViewActivity.J6 = false;
|
|
}
|
|
webViewActivity.D8(false);
|
|
if (!TextUtils.isEmpty(str)) {
|
|
webViewActivity.N6 = str;
|
|
} else {
|
|
webViewActivity.N6 = PrefAlbum.y;
|
|
}
|
|
MainUtil.O7(webViewActivity.I2, "onTransUser");
|
|
}
|
|
webViewActivity.w4();
|
|
}
|
|
|
|
public static void S0(WebViewActivity webViewActivity) {
|
|
WebDownView webDownView = webViewActivity.T3;
|
|
if (webDownView != null && !webDownView.a0) {
|
|
webDownView.i(false);
|
|
}
|
|
WebDownView webDownView2 = webViewActivity.b4;
|
|
if (webDownView2 != null && !webDownView2.a0) {
|
|
webDownView2.i(false);
|
|
}
|
|
WebFltView webFltView = webViewActivity.bb;
|
|
if (webFltView != null && !webFltView.n()) {
|
|
webViewActivity.bb.m(false);
|
|
}
|
|
WebFltView webFltView2 = webViewActivity.cb;
|
|
if (webFltView2 != null && !webFltView2.n()) {
|
|
webViewActivity.cb.m(false);
|
|
}
|
|
WebFltView webFltView3 = webViewActivity.db;
|
|
if (webFltView3 != null && !webFltView3.n()) {
|
|
webViewActivity.db.m(false);
|
|
}
|
|
WebFltView webFltView4 = webViewActivity.Nb;
|
|
if (webFltView4 != null && !webFltView4.n()) {
|
|
webViewActivity.Nb.m(false);
|
|
}
|
|
WebFltView webFltView5 = webViewActivity.lb;
|
|
if (webFltView5 != null) {
|
|
boolean z = true;
|
|
if (!webFltView5.c0) {
|
|
int i = webFltView5.i;
|
|
if (i == 6) {
|
|
z = PrefFloat.m;
|
|
} else if (i == 7) {
|
|
z = PrefFloat.n;
|
|
} else if (i == 8) {
|
|
z = PrefFloat.o;
|
|
} else if (!webFltView5.a0 && !webFltView5.b0) {
|
|
z = false;
|
|
}
|
|
}
|
|
if (!z) {
|
|
webFltView5.m(false);
|
|
}
|
|
}
|
|
WebFltView webFltView6 = webViewActivity.T6;
|
|
if (webFltView6 != null && !webFltView6.n()) {
|
|
webViewActivity.T6.m(false);
|
|
}
|
|
WebFltView webFltView7 = webViewActivity.ab;
|
|
if (webFltView7 != null && !webFltView7.n()) {
|
|
webViewActivity.ab.m(false);
|
|
}
|
|
}
|
|
|
|
public static String S2(String str) {
|
|
int length;
|
|
int lastIndexOf;
|
|
int i;
|
|
int i2;
|
|
if (str == null || (length = str.length()) == 0 || (lastIndexOf = str.lastIndexOf(40)) < 0 || (i = lastIndexOf + 1) >= length - 1) {
|
|
return null;
|
|
}
|
|
return str.substring(i, i2);
|
|
}
|
|
|
|
public static void T0(WebViewActivity webViewActivity, boolean z, boolean z2, final boolean z3, boolean z4) {
|
|
webViewActivity.X8 = null;
|
|
if (z && !z4 && PrefWeb.o) {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.571
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.L(webViewActivity2.A8, webViewActivity2.B8, true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
if (z4) {
|
|
webViewActivity.F6();
|
|
}
|
|
if (z2) {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.572
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebClean webClean = webViewActivity2.q9;
|
|
if (webClean == null) {
|
|
return;
|
|
}
|
|
webClean.f0(webViewActivity2.i1, z3, false);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static boolean T5() {
|
|
if (PrefZone.X == 0 && PrefZone.Y == 0 && PrefZone.Z == 0 && PrefZone.a0 == 0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public static void T7(WebView webView) {
|
|
if (webView == null) {
|
|
return;
|
|
}
|
|
MainUtil.I(webView, "(function(){var vds=document.querySelectorAll(\"video,audio\");if(vds&&(vds.length>0)){for(var i=0;i<vds.length;i++){if(!vds[i].paused){vds[i].pause();}}}})();", false);
|
|
}
|
|
|
|
public static void U0(WebViewActivity webViewActivity, MyBarView myBarView, View view, int i) {
|
|
WebNestFrame webNestFrame;
|
|
WebNestView pageValid;
|
|
List list;
|
|
if (webViewActivity.ia == 0 && myBarView != null) {
|
|
if (i == 1001) {
|
|
webViewActivity.Q9(view);
|
|
return;
|
|
}
|
|
if (i == 35) {
|
|
if (myBarView.x) {
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
if ((webViewActivity.J2 && (((pageValid = (webNestFrame = webViewActivity.H2).getPageValid()) != null && pageValid.canGoBack()) || ((list = webNestFrame.o) != null && list.size() >= 2 && webNestFrame.p > 0))) || webViewActivity.K2) {
|
|
webViewActivity.Y7(new PrevBackListener() { // from class: com.mycompany.app.web.WebViewActivity.75
|
|
@Override // com.mycompany.app.web.WebViewActivity.PrevBackListener
|
|
public final void a(boolean z) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
if (z) {
|
|
if (webViewActivity2.K2) {
|
|
webViewActivity2.Mb = PrefWeb.A;
|
|
}
|
|
} else {
|
|
webViewActivity2.a8(webNestView.getProgress());
|
|
webViewActivity2.I2.stopLoading();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
} else {
|
|
webViewActivity.a8(webViewActivity.I2.getProgress());
|
|
webViewActivity.I2.stopLoading();
|
|
return;
|
|
}
|
|
}
|
|
myBarView.setIconLoad(true);
|
|
} else if (i == 51) {
|
|
webViewActivity.V5 = view;
|
|
}
|
|
webViewActivity.d6(view, i);
|
|
}
|
|
}
|
|
|
|
public static void U7(WebView webView) {
|
|
if (webView != null) {
|
|
webView.onPause();
|
|
}
|
|
}
|
|
|
|
public static void V0(WebViewActivity webViewActivity, boolean z) {
|
|
Window window;
|
|
if (MainConst.d || Build.VERSION.SDK_INT < 30 || webViewActivity.e2 == null || (window = webViewActivity.getWindow()) == null) {
|
|
return;
|
|
}
|
|
if (webViewActivity.R5 != null) {
|
|
MainUtil.j7(window, false);
|
|
} else {
|
|
MainUtil.j7(window, z);
|
|
}
|
|
}
|
|
|
|
public static void W0(WebViewActivity webViewActivity) {
|
|
boolean z;
|
|
MainApp p = MainApp.p(webViewActivity.i1);
|
|
boolean z2 = false;
|
|
if (p == null) {
|
|
z = false;
|
|
} else {
|
|
z = p.u;
|
|
}
|
|
if (z) {
|
|
webViewActivity.z7();
|
|
return;
|
|
}
|
|
Context context = webViewActivity.i1;
|
|
int i = MainDownSvc.V;
|
|
if (context != null) {
|
|
Cursor cursor = null;
|
|
try {
|
|
cursor = DbUtil.g(DbBookDown.b(context).getWritableDatabase(), "DbBookDown_table", new String[]{"_status"}, "_status!=?", new String[]{"3"}, null);
|
|
if (cursor != null && cursor.moveToFirst()) {
|
|
int columnIndex = cursor.getColumnIndex("_status");
|
|
while (true) {
|
|
int i2 = cursor.getInt(columnIndex);
|
|
if (i2 != 3 && i2 != 4 && i2 != 5) {
|
|
z2 = true;
|
|
break;
|
|
}
|
|
if (!cursor.moveToNext()) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
if (cursor != null) {
|
|
try {
|
|
cursor.close();
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
}
|
|
if (!z2) {
|
|
webViewActivity.z7();
|
|
return;
|
|
}
|
|
if (!webViewActivity.F1) {
|
|
webViewActivity.z7();
|
|
MainApp p2 = MainApp.p(webViewActivity.getApplicationContext());
|
|
if (p2 != null && p2.v == null && !p2.w) {
|
|
p2.w = true;
|
|
p2.D = true;
|
|
p2.S();
|
|
}
|
|
}
|
|
}
|
|
|
|
public static String W2(String str, String str2) {
|
|
if (TextUtils.isEmpty(str2)) {
|
|
return null;
|
|
}
|
|
StringBuilder sb = new StringBuilder("site:dcinside.com \"");
|
|
if (!TextUtils.isEmpty(str)) {
|
|
sb.append(str);
|
|
sb.append("\" \"");
|
|
}
|
|
String p = android.support.v4.media.a.p(sb, str2, "\"");
|
|
if (TextUtils.isEmpty(p)) {
|
|
return p;
|
|
}
|
|
try {
|
|
p = URLEncoder.encode(p, "UTF-8");
|
|
} catch (Exception unused) {
|
|
}
|
|
return android.support.v4.media.a.C("https://www.google.com/search?q=", p);
|
|
}
|
|
|
|
public static void X0(WebViewActivity webViewActivity, int i) {
|
|
if (i == 0) {
|
|
webViewActivity.s9(webViewActivity.A8, false);
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
webViewActivity.q9(webViewActivity.A8, false);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
webViewActivity.p9(webViewActivity.A8, false);
|
|
} else if (i == 3) {
|
|
webViewActivity.p9(webViewActivity.A8, false);
|
|
} else {
|
|
webViewActivity.getClass();
|
|
}
|
|
}
|
|
|
|
public static String X2(String str, List list) {
|
|
if (list != null && !list.isEmpty()) {
|
|
Iterator it = list.iterator();
|
|
while (it.hasNext()) {
|
|
MainItem.ChildItem childItem = (MainItem.ChildItem) it.next();
|
|
if (childItem != null && str.equals(childItem.g)) {
|
|
return childItem.G;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r14v10, types: [com.mycompany.app.main.MainListView$ListViewConfig, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r15v20, types: [com.mycompany.app.main.MainItem$ChildItem, java.lang.Object] */
|
|
public static void Y0(WebViewActivity webViewActivity, int i) {
|
|
int length;
|
|
String str;
|
|
String W2;
|
|
DialogViewIp dialogViewIp;
|
|
boolean z = webViewActivity.Jn;
|
|
String str2 = webViewActivity.Kn;
|
|
String str3 = webViewActivity.Ln;
|
|
String str4 = webViewActivity.Mn;
|
|
webViewActivity.Kn = null;
|
|
webViewActivity.Ln = null;
|
|
webViewActivity.Mn = null;
|
|
boolean z2 = false;
|
|
if (i == 0) {
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.Q3();
|
|
?? obj = new Object();
|
|
obj.g = str3;
|
|
obj.h = DbBookDc.a(str3, str4, z);
|
|
obj.f16551c = 0;
|
|
obj.v = -460552;
|
|
if (z) {
|
|
obj.w = R.drawable.outline_text_snippet_black_24;
|
|
} else {
|
|
obj.w = R.drawable.outline_kid_star_black_24;
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(obj);
|
|
webViewActivity.Tn = z;
|
|
webViewActivity.Un = str3;
|
|
DialogDeleteBook dialogDeleteBook = new DialogDeleteBook(webViewActivity, 24, arrayList, null, false, false, new DialogDeleteBook.DeleteBookListener() { // from class: com.mycompany.app.web.WebViewActivity.624
|
|
@Override // com.mycompany.app.dialog.DialogDeleteBook.DeleteBookListener
|
|
public final void a() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogDeleteBook.DeleteBookListener
|
|
public final void b() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Q3();
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.624.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z3 = webViewActivity3.Tn;
|
|
String str5 = webViewActivity3.Un;
|
|
webViewActivity3.Un = null;
|
|
if (TextUtils.isEmpty(str5) || webViewActivity3.I2 == null) {
|
|
return;
|
|
}
|
|
StringBuilder w = android.support.v4.media.a.w("(function(){var els=document.querySelectorAll(\"[id='sb_btn_dc']\");if(!els||(els.length==0))return;for(var i=0;i<els.length;i++){var btn=els[i];if(btn.alt=='", str5, "'){");
|
|
if (z3) {
|
|
String R2 = webViewActivity3.R2(str5);
|
|
w.append("btn.innerHTML='");
|
|
if (!TextUtils.isEmpty(R2)) {
|
|
w.append(R2);
|
|
} else {
|
|
w.append("ⓘ");
|
|
}
|
|
w.append("';btn.style.fontSize='15px';");
|
|
} else {
|
|
w.append("btn.innerHTML='ⓘ'+btn.alt;");
|
|
}
|
|
w.append("}}})();");
|
|
MainUtil.I(webViewActivity3.I2, w.toString(), true);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity.gb = dialogDeleteBook;
|
|
dialogDeleteBook.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.625
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.Q3();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogEditMemo dialogEditMemo = webViewActivity.hb;
|
|
if (dialogEditMemo != null) {
|
|
dialogEditMemo.dismiss();
|
|
webViewActivity.hb = null;
|
|
}
|
|
DialogEditMemo dialogEditMemo2 = new DialogEditMemo(webViewActivity, 0L, z, str3, str4, null, new DialogEditUrl.EditUrlListener() { // from class: com.mycompany.app.web.WebViewActivity.626
|
|
@Override // com.mycompany.app.dialog.DialogEditUrl.EditUrlListener
|
|
public final void a(long j, String str5, String str6) {
|
|
if (!TextUtils.isEmpty(str5) && !TextUtils.isEmpty(str6)) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Rn = str5;
|
|
webViewActivity2.Sn = str6;
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.626.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str7 = webViewActivity3.Rn;
|
|
String str8 = webViewActivity3.Sn;
|
|
webViewActivity3.Rn = null;
|
|
webViewActivity3.Sn = null;
|
|
String Y2 = webViewActivity3.Y2(str7, str8);
|
|
if (!TextUtils.isEmpty(str7) && !TextUtils.isEmpty(Y2) && webViewActivity3.I2 != null) {
|
|
MainUtil.I(webViewActivity3.I2, a.u("(function(){var els=document.querySelectorAll(\"[id='sb_btn_dc']\");if(!els||(els.length==0))return;for(var i=0;i<els.length;i++){var btn=els[i];if(btn.alt=='", str7, "'){btn.innerHTML='", Y2, "';btn.style.fontSize='13px';}}})();").toString(), true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.hb = dialogEditMemo2;
|
|
dialogEditMemo2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.627
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogEditMemo dialogEditMemo3 = webViewActivity2.hb;
|
|
if (dialogEditMemo3 != null) {
|
|
dialogEditMemo3.dismiss();
|
|
webViewActivity2.hb = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.R3();
|
|
webViewActivity.Nn = str2;
|
|
?? obj2 = new Object();
|
|
obj2.f16734a = 24;
|
|
obj2.f = R.string.memo_title;
|
|
webViewActivity.Z9();
|
|
DialogListBook dialogListBook = new DialogListBook(webViewActivity, obj2, str3, null);
|
|
webViewActivity.ib = dialogListBook;
|
|
dialogListBook.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.628
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.R3();
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
}
|
|
});
|
|
DialogListBook dialogListBook2 = webViewActivity.ib;
|
|
dialogListBook2.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.629
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
}
|
|
};
|
|
dialogListBook2.B = new DialogListBook.ListDcListener() { // from class: com.mycompany.app.web.WebViewActivity.630
|
|
@Override // com.mycompany.app.dialog.DialogListBook.ListDcListener
|
|
public final void a(int i2, MainItem.ChildItem childItem) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.ib == null) {
|
|
return;
|
|
}
|
|
boolean z3 = true;
|
|
if (childItem.f16550a != 1) {
|
|
z3 = false;
|
|
}
|
|
webViewActivity2.Jn = z3;
|
|
webViewActivity2.Kn = webViewActivity2.Nn;
|
|
webViewActivity2.Ln = childItem.g;
|
|
webViewActivity2.Mn = childItem.j;
|
|
WebViewActivity.Y0(webViewActivity2, i2);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogListBook.ListDcListener
|
|
public final void b(ArrayList arrayList2, ArrayList arrayList3) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.Vn = arrayList2;
|
|
webViewActivity2.Wn = arrayList3;
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.630.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z3;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
List<MainItem.ChildItem> list = webViewActivity3.Vn;
|
|
List<MainItem.ChildItem> list2 = webViewActivity3.Wn;
|
|
webViewActivity3.Vn = null;
|
|
webViewActivity3.Wn = null;
|
|
boolean z4 = false;
|
|
if (list != null && !list.isEmpty()) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
if (list2 != null && !list2.isEmpty()) {
|
|
z4 = true;
|
|
}
|
|
if ((!z3 && !z4) || webViewActivity3.I2 == null) {
|
|
return;
|
|
}
|
|
StringBuilder sb = new StringBuilder("function myDcMem(btn,path,text){if(!btn)return null;if(btn.alt==path){btn.innerHTML=text;btn.style.fontSize='13px';}}function myDcBlk(btn,path,text){if(!btn)return null;if(btn.alt==path){if(btn.name){btn.innerHTML='ⓘ'+btn.alt;}else{btn.innerHTML=text;btn.style.fontSize='15px';}}}(function(){var els=document.querySelectorAll(\"[id='sb_btn_dc']\");if(!els||(els.length==0))return;for(var i=0;i<els.length;i++){");
|
|
if (z3) {
|
|
for (MainItem.ChildItem childItem : list) {
|
|
if (childItem != null) {
|
|
String R2 = webViewActivity3.R2(childItem.g);
|
|
if (TextUtils.isEmpty(R2)) {
|
|
R2 = "ⓘ";
|
|
}
|
|
sb.append("myDcBlk(els[i],'");
|
|
android.support.v4.media.a.z(sb, childItem.g, "','", R2, "');");
|
|
}
|
|
}
|
|
}
|
|
if (z4) {
|
|
for (MainItem.ChildItem childItem2 : list2) {
|
|
if (childItem2 != null) {
|
|
sb.append("myDcMem(els[i],'");
|
|
sb.append(childItem2.g);
|
|
sb.append("','");
|
|
sb.append(childItem2.G);
|
|
sb.append("');");
|
|
}
|
|
}
|
|
}
|
|
sb.append("}})();");
|
|
MainUtil.I(webViewActivity3.I2, sb.toString(), true);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogListBook.ListDcListener
|
|
public final String c(String str5, String str6) {
|
|
int i2 = WebViewActivity.Fo;
|
|
return WebViewActivity.this.Y2(str5, str6);
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 8) {
|
|
webViewActivity.j9(false);
|
|
return;
|
|
}
|
|
if (i == 5) {
|
|
String S2 = S2(str3);
|
|
if (TextUtils.isEmpty(S2)) {
|
|
MainUtil.e8(webViewActivity, R.string.invalid_url);
|
|
return;
|
|
}
|
|
if (!webViewActivity.G1 && (dialogViewIp = webViewActivity.jb) == null) {
|
|
if (dialogViewIp != null) {
|
|
dialogViewIp.dismiss();
|
|
webViewActivity.jb = null;
|
|
}
|
|
int i2 = PrefMain.r;
|
|
if (i2 < 100) {
|
|
int i3 = i2 + 1;
|
|
PrefMain.r = i3;
|
|
PrefSet.f(webViewActivity.i1, 5, i3, "mShowAdsDcIp");
|
|
} else {
|
|
z2 = webViewActivity.h2();
|
|
}
|
|
DialogViewIp dialogViewIp2 = new DialogViewIp(webViewActivity, S2, z2);
|
|
webViewActivity.jb = dialogViewIp2;
|
|
dialogViewIp2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.631
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.d7 = null;
|
|
DialogViewIp dialogViewIp3 = webViewActivity2.jb;
|
|
if (dialogViewIp3 != null) {
|
|
dialogViewIp3.dismiss();
|
|
webViewActivity2.jb = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 4) {
|
|
str2 = null;
|
|
}
|
|
if (z) {
|
|
str = str3;
|
|
} else if (str4 == null || (length = str4.length()) == 0) {
|
|
str = null;
|
|
} else if (length > 2 && str4.endsWith("..")) {
|
|
str = str4.substring(0, length - 2);
|
|
} else {
|
|
str = str4;
|
|
}
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(webViewActivity, R.string.invalid_url);
|
|
return;
|
|
}
|
|
if (i == 6) {
|
|
if (TextUtils.isEmpty(str3)) {
|
|
W2 = null;
|
|
} else {
|
|
W2 = android.support.v4.media.a.C("https://m.dcinside.com/gallog/", str3);
|
|
}
|
|
} else {
|
|
W2 = W2(str2, str);
|
|
}
|
|
if (TextUtils.isEmpty(W2)) {
|
|
MainUtil.e8(webViewActivity, R.string.invalid_url);
|
|
return;
|
|
}
|
|
webViewActivity.G9(W2, 0, null, false);
|
|
if (webViewActivity.c7 == null) {
|
|
return;
|
|
}
|
|
int i4 = PrefMain.q;
|
|
if (i4 < 100) {
|
|
int i5 = i4 + 1;
|
|
PrefMain.q = i5;
|
|
PrefSet.f(webViewActivity.i1, 5, i5, "mShowAdsDcLog");
|
|
} else {
|
|
z2 = webViewActivity.h2();
|
|
}
|
|
DialogWebView dialogWebView = webViewActivity.c7;
|
|
DialogWebView.DialogWebDcListener dialogWebDcListener = new DialogWebView.DialogWebDcListener() { // from class: com.mycompany.app.web.WebViewActivity.623
|
|
@Override // com.mycompany.app.dialog.DialogWebView.DialogWebDcListener
|
|
public final String a(String str5, List list) {
|
|
int i6 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.getClass();
|
|
return webViewActivity2.Y2(str5, WebViewActivity.X2(str5, list));
|
|
}
|
|
};
|
|
dialogWebView.j1 = true;
|
|
dialogWebView.k1 = z;
|
|
dialogWebView.l1 = str2;
|
|
dialogWebView.m1 = str;
|
|
dialogWebView.p0 = z2;
|
|
dialogWebView.e0 = dialogWebDcListener;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static void Z0(WebViewActivity webViewActivity) {
|
|
Object[] objArr;
|
|
boolean contains;
|
|
int length;
|
|
int i;
|
|
int length2;
|
|
int indexOf;
|
|
int i2;
|
|
Handler handler;
|
|
boolean z = !MainUtil.q5(webViewActivity.Ji, webViewActivity.A8);
|
|
String str = webViewActivity.B8;
|
|
ArrayList arrayList = null;
|
|
r3 = null;
|
|
ArrayList arrayList2 = null;
|
|
r3 = null;
|
|
ArrayList arrayList3 = null;
|
|
r3 = null;
|
|
ArrayList arrayList4 = null;
|
|
r3 = null;
|
|
ArrayList arrayList5 = null;
|
|
r3 = null;
|
|
ArrayList arrayList6 = null;
|
|
arrayList = null;
|
|
webViewActivity.Ji = null;
|
|
boolean z2 = false;
|
|
int i3 = 0;
|
|
webViewActivity.Ki = false;
|
|
webViewActivity.Oi = false;
|
|
webViewActivity.Pi = null;
|
|
if (!webViewActivity.U1 && !TextUtils.isEmpty(webViewActivity.A8) && !"about:blank".equals(webViewActivity.A8) && !TextUtils.isEmpty(str)) {
|
|
if (str.endsWith("m.dcinside.com")) {
|
|
webViewActivity.Xn = 3;
|
|
objArr = true;
|
|
} else {
|
|
int i4 = webViewActivity.Xn;
|
|
if (i4 > 0) {
|
|
webViewActivity.Xn = i4 - 1;
|
|
} else {
|
|
webViewActivity.Yn = false;
|
|
webViewActivity.Zn = null;
|
|
webViewActivity.ao = null;
|
|
}
|
|
objArr = false;
|
|
}
|
|
if (!MainUtil.k6(str)) {
|
|
if (str.endsWith("facebook.com")) {
|
|
webViewActivity.Oi = true;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
boolean z3 = MainApp.R1;
|
|
if (z3 && webNestView != null) {
|
|
if (z3) {
|
|
if (MainNative.a(17, MainNative.q)) {
|
|
arrayList2 = MainNative.q;
|
|
} else {
|
|
ArrayList arrayList7 = new ArrayList();
|
|
int i5 = 0;
|
|
while (true) {
|
|
if (i5 < 17) {
|
|
String faceJs = MainUtil.getFaceJs(i5);
|
|
if (TextUtils.isEmpty(faceJs)) {
|
|
break;
|
|
}
|
|
arrayList7.add(faceJs);
|
|
i5++;
|
|
} else {
|
|
MainNative.q = arrayList7;
|
|
arrayList2 = arrayList7;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList2 != null && arrayList2.size() == 17) {
|
|
StringBuilder sb = new StringBuilder();
|
|
int i6 = 0;
|
|
while (true) {
|
|
if (i6 < 17) {
|
|
String str2 = (String) arrayList2.get(i6);
|
|
if (TextUtils.isEmpty(str2)) {
|
|
break;
|
|
}
|
|
sb.append(str2);
|
|
i6++;
|
|
} else {
|
|
MainUtil.I(webNestView, sb.toString(), true);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String str3 = webViewActivity.A8;
|
|
if (!TextUtils.isEmpty(str3)) {
|
|
z2 = str3.startsWith("https://m.facebook.com/reel");
|
|
}
|
|
if (z2 && (handler = webViewActivity.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.259
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.D7("face_dummy", null, null, null);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (str.endsWith("instagram.com")) {
|
|
String str4 = webViewActivity.A8;
|
|
String J1 = MainUtil.J1(str4, true);
|
|
if (J1 != null && (length = J1.length()) != 0 && (i = length + 1) < (length2 = str4.length()) && (indexOf = str4.indexOf(47, i)) != -1 && indexOf + 1 != length2 && str4.startsWith("/reels/", length) && (i2 = length + 7) < length2 && !str4.startsWith("audio/", i2)) {
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 != null) {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.260
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.D7("insta_dummy", null, null, null);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity.Oi = true;
|
|
WebNestView webNestView2 = webViewActivity.I2;
|
|
boolean z4 = MainApp.R1;
|
|
if (z4 && webNestView2 != null) {
|
|
if (z4) {
|
|
if (MainNative.a(21, MainNative.r)) {
|
|
arrayList3 = MainNative.r;
|
|
} else {
|
|
ArrayList arrayList8 = new ArrayList();
|
|
int i7 = 0;
|
|
while (true) {
|
|
if (i7 < 21) {
|
|
String instaJs = MainUtil.getInstaJs(i7);
|
|
if (TextUtils.isEmpty(instaJs)) {
|
|
break;
|
|
}
|
|
arrayList8.add(instaJs);
|
|
i7++;
|
|
} else {
|
|
MainNative.r = arrayList8;
|
|
arrayList3 = arrayList8;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList3 != null && arrayList3.size() == 21) {
|
|
StringBuilder sb2 = new StringBuilder();
|
|
for (int i8 = 0; i8 < 21; i8++) {
|
|
String str5 = (String) arrayList3.get(i8);
|
|
if (!TextUtils.isEmpty(str5)) {
|
|
sb2.append(str5);
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
MainUtil.I(webNestView2, sb2.toString(), true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
int i9 = 6;
|
|
if (str.equals("x.com")) {
|
|
String str6 = webViewActivity.A8;
|
|
if (TextUtils.isEmpty(str6)) {
|
|
contains = false;
|
|
} else {
|
|
contains = str6.contains("/mediaViewer?currentTweet=");
|
|
}
|
|
if (contains) {
|
|
Handler handler3 = webViewActivity.O0;
|
|
if (handler3 != null) {
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.261
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i10 = WebViewActivity.Fo;
|
|
WebViewActivity.this.D7("twit_dummy", null, null, null);
|
|
}
|
|
});
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.Oi = true;
|
|
WebNestView webNestView3 = webViewActivity.I2;
|
|
Context context = webViewActivity.i1;
|
|
boolean z5 = MainApp.R1;
|
|
if (z5 && webNestView3 != null && context != null) {
|
|
if (z5) {
|
|
if (MainNative.a(16, MainNative.w)) {
|
|
arrayList4 = MainNative.w;
|
|
} else {
|
|
ArrayList arrayList9 = new ArrayList();
|
|
int i10 = 0;
|
|
while (true) {
|
|
if (i10 < 16) {
|
|
String twitJs = MainUtil.getTwitJs(i10);
|
|
if (TextUtils.isEmpty(twitJs)) {
|
|
break;
|
|
}
|
|
arrayList9.add(twitJs);
|
|
i10++;
|
|
} else {
|
|
MainNative.w = arrayList9;
|
|
arrayList4 = arrayList9;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList4 != null && arrayList4.size() == 16) {
|
|
StringBuilder sb3 = new StringBuilder();
|
|
while (true) {
|
|
if (i3 < 6) {
|
|
String str7 = (String) arrayList4.get(i3);
|
|
if (TextUtils.isEmpty(str7)) {
|
|
break;
|
|
}
|
|
sb3.append(str7);
|
|
i3++;
|
|
} else {
|
|
sb3.append(context.getString(R.string.download));
|
|
while (true) {
|
|
if (i9 < 16) {
|
|
String str8 = (String) arrayList4.get(i9);
|
|
if (TextUtils.isEmpty(str8)) {
|
|
break;
|
|
}
|
|
sb3.append(str8);
|
|
i9++;
|
|
} else {
|
|
MainUtil.I(webNestView3, sb3.toString(), true);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Handler handler4 = webViewActivity.O0;
|
|
if (handler4 != null) {
|
|
handler4.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.262
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str9 = webViewActivity2.B8;
|
|
if (TextUtils.isEmpty(str9) || !str9.equals("x.com")) {
|
|
return;
|
|
}
|
|
MainUtil.I(webViewActivity2.I2, "(function(){mySns(document);})();", false);
|
|
}
|
|
}, 1000L);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (str.endsWith("reddit.com")) {
|
|
webViewActivity.Oi = true;
|
|
WebNestView webNestView4 = webViewActivity.I2;
|
|
boolean z6 = MainApp.R1;
|
|
if (z6 && webNestView4 != null) {
|
|
if (z6) {
|
|
if (MainNative.a(22, MainNative.y)) {
|
|
arrayList5 = MainNative.y;
|
|
} else {
|
|
ArrayList arrayList10 = new ArrayList();
|
|
int i11 = 0;
|
|
while (true) {
|
|
if (i11 < 22) {
|
|
String redditJs = MainUtil.getRedditJs(i11);
|
|
if (TextUtils.isEmpty(redditJs)) {
|
|
break;
|
|
}
|
|
arrayList10.add(redditJs);
|
|
i11++;
|
|
} else {
|
|
MainNative.y = arrayList10;
|
|
arrayList5 = arrayList10;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList5 != null && arrayList5.size() == 22) {
|
|
StringBuilder sb4 = new StringBuilder();
|
|
for (int i12 = 0; i12 < 22; i12++) {
|
|
String str9 = (String) arrayList5.get(i12);
|
|
if (!TextUtils.isEmpty(str9)) {
|
|
sb4.append(str9);
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
MainUtil.I(webNestView4, sb4.toString(), true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (str.endsWith("tiktok.com")) {
|
|
webViewActivity.Oi = true;
|
|
WebNestView webNestView5 = webViewActivity.I2;
|
|
boolean z7 = MainApp.R1;
|
|
if (z7 && webNestView5 != null) {
|
|
if (z7) {
|
|
if (MainNative.a(9, MainNative.z)) {
|
|
arrayList6 = MainNative.z;
|
|
} else {
|
|
ArrayList arrayList11 = new ArrayList();
|
|
int i13 = 0;
|
|
while (true) {
|
|
if (i13 < 9) {
|
|
String tiktokJs = MainUtil.getTiktokJs(i13);
|
|
if (TextUtils.isEmpty(tiktokJs)) {
|
|
break;
|
|
}
|
|
arrayList11.add(tiktokJs);
|
|
i13++;
|
|
} else {
|
|
MainNative.z = arrayList11;
|
|
arrayList6 = arrayList11;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList6 != null && arrayList6.size() == 9) {
|
|
StringBuilder sb5 = new StringBuilder();
|
|
for (int i14 = 0; i14 < 9; i14++) {
|
|
String str10 = (String) arrayList6.get(i14);
|
|
if (!TextUtils.isEmpty(str10)) {
|
|
sb5.append(str10);
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
MainUtil.I(webNestView5, sb5.toString(), true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (str.endsWith("onlyfans.com")) {
|
|
webViewActivity.Oi = true;
|
|
WebNestView webNestView6 = webViewActivity.I2;
|
|
Context context2 = webViewActivity.i1;
|
|
boolean z8 = MainApp.R1;
|
|
if (z8 && webNestView6 != null && context2 != null) {
|
|
if (z8) {
|
|
if (MainNative.a(16, MainNative.A)) {
|
|
arrayList = MainNative.A;
|
|
} else {
|
|
ArrayList arrayList12 = new ArrayList();
|
|
int i15 = 0;
|
|
while (true) {
|
|
if (i15 < 16) {
|
|
String fansJs = MainUtil.getFansJs(i15);
|
|
if (TextUtils.isEmpty(fansJs)) {
|
|
break;
|
|
}
|
|
arrayList12.add(fansJs);
|
|
i15++;
|
|
} else {
|
|
MainNative.A = arrayList12;
|
|
arrayList = arrayList12;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList != null && arrayList.size() == 16) {
|
|
StringBuilder sb6 = new StringBuilder();
|
|
for (int i16 = 0; i16 < 6; i16++) {
|
|
String str11 = (String) arrayList.get(i16);
|
|
if (!TextUtils.isEmpty(str11)) {
|
|
sb6.append(str11);
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
sb6.append(context2.getString(R.string.download));
|
|
while (i9 < 16) {
|
|
String str12 = (String) arrayList.get(i9);
|
|
if (!TextUtils.isEmpty(str12)) {
|
|
sb6.append(str12);
|
|
i9++;
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
MainUtil.I(webNestView6, sb6.toString(), true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (PrefWeb.H && webViewActivity.I2 != null) {
|
|
if (webViewActivity.Li) {
|
|
webViewActivity.Ji = webViewActivity.A8;
|
|
webViewActivity.G8(true, z);
|
|
return;
|
|
}
|
|
if (str.endsWith("pornhub.com")) {
|
|
webViewActivity.Ji = webViewActivity.A8;
|
|
MainUtil.R7(webViewActivity.I2, android.support.v4.media.a.t("function myVd(doc,win){if(!doc||!win)return false;var eles=doc.querySelectorAll(\"div[id='mobileContainer']>script[type='text/javascript']\");if(eles&&(eles.length>0)){for(var i=0;i<eles.length;i++){var val=eles[i].innerHTML;if(val&&val.includes('mediaDefinitions')){android.onVidDet(1);return true;}}}eles=doc.querySelectorAll(\"div[id='js-gifWebMWrapper'][data-gif^='http']\");if(eles&&(eles.length>0)){for(var i=0;i<eles.length;i++){if(eles[i].dataset.gif){android.onVidDet(2);return true;}}}return false;}"), z);
|
|
return;
|
|
}
|
|
if (Q5(str, webViewActivity.A8)) {
|
|
Handler handler5 = webViewActivity.O0;
|
|
if (handler5 != null) {
|
|
handler5.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.263
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i17 = WebViewActivity.Fo;
|
|
WebViewActivity.this.D7("vkv_dummy", null, null, null);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!MainUtil.u5(str) && !str.endsWith("vimeo.com") && !str.endsWith("dailymotion.com") && !str.endsWith("nicovideo.jp") && !str.endsWith("dzen.ru") && !str.endsWith("giphy.com")) {
|
|
webViewActivity.Ji = webViewActivity.A8;
|
|
webViewActivity.G8(false, z);
|
|
if (objArr != false) {
|
|
MainUtil.I(webViewActivity.I2, MainUtil.F2(), true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:102:0x01c6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:105:0x01ce */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void a1(com.mycompany.app.web.WebViewActivity r15) {
|
|
/*
|
|
Method dump skipped, instructions count: 584
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.a1(com.mycompany.app.web.WebViewActivity):void");
|
|
}
|
|
|
|
public static int a3(boolean z) {
|
|
int i;
|
|
if (z) {
|
|
i = PrefPdf.A;
|
|
} else {
|
|
i = PrefPdf.B;
|
|
}
|
|
int i2 = MainApp.Y0;
|
|
if (i < i2) {
|
|
return i2;
|
|
}
|
|
return i;
|
|
}
|
|
|
|
public static void b1(WebViewActivity webViewActivity) {
|
|
if (webViewActivity.K3 == 0) {
|
|
webViewActivity.L3 = false;
|
|
webViewActivity.N3 = 0;
|
|
webViewActivity.O3 = 0;
|
|
return;
|
|
}
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
webViewActivity.L3 = true;
|
|
int height = myWebBody.getHeight() - webViewActivity.e2.getPaddingTop();
|
|
int i = webViewActivity.K3;
|
|
webViewActivity.N3 = height - i;
|
|
webViewActivity.O3 = i - webViewActivity.e2.getPaddingBottom();
|
|
}
|
|
|
|
public static void c1(WebViewActivity webViewActivity) {
|
|
Handler handler;
|
|
boolean isFocused;
|
|
RelativeLayout.LayoutParams layoutParams;
|
|
if (!webViewActivity.j9 && !webViewActivity.U1) {
|
|
int i = webViewActivity.O3;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null && (layoutParams = (RelativeLayout.LayoutParams) myWebCoord.getLayoutParams()) != null && layoutParams.bottomMargin != i) {
|
|
layoutParams.bottomMargin = i;
|
|
webViewActivity.f2.requestLayout();
|
|
}
|
|
if (webViewActivity.O3 != 0) {
|
|
MyFindView myFindView = webViewActivity.C2;
|
|
if (myFindView != null) {
|
|
MyEditPure myEditPure = myFindView.n;
|
|
if (myEditPure == null) {
|
|
isFocused = false;
|
|
} else {
|
|
isFocused = myEditPure.isFocused();
|
|
}
|
|
if (isFocused) {
|
|
return;
|
|
}
|
|
}
|
|
int i2 = webViewActivity.N3;
|
|
MyFindView myFindView2 = webViewActivity.C2;
|
|
if (myFindView2 != null && !myFindView2.g) {
|
|
i2 -= myFindView2.getHeight();
|
|
}
|
|
if (webViewActivity.W9 + MainApp.f1 >= i2 && (handler = webViewActivity.O0) != null) {
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.16
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.I2 == null) {
|
|
return;
|
|
}
|
|
int i3 = webViewActivity2.N3;
|
|
MyFindView myFindView3 = webViewActivity2.C2;
|
|
if (myFindView3 != null && !myFindView3.g) {
|
|
i3 -= myFindView3.getHeight();
|
|
}
|
|
webViewActivity2.I2.scrollTo(0, webViewActivity2.I2.getScrollY() - (i3 - ((int) (webViewActivity2.W9 + MainApp.g1))));
|
|
}
|
|
}, 200L);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public static String c3() {
|
|
String q4 = MainUtil.q4(null, PrefWeb.k);
|
|
if (!TextUtils.isEmpty(q4)) {
|
|
return q4;
|
|
}
|
|
return "file:///android_asset/shortcut.html";
|
|
}
|
|
|
|
public static void d1(WebViewActivity webViewActivity) {
|
|
if (PrefWeb.w && !webViewActivity.j9 && !webViewActivity.U1 && webViewActivity.C2 == null && !webViewActivity.J5()) {
|
|
if (webViewActivity.L3) {
|
|
webViewActivity.Ng = 0;
|
|
webViewActivity.M8(0);
|
|
return;
|
|
}
|
|
int i = webViewActivity.Ng;
|
|
if (i != 0) {
|
|
webViewActivity.M8(i);
|
|
webViewActivity.Ng = 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void e1(WebViewActivity webViewActivity, boolean z) {
|
|
WebFltView webFltView = webViewActivity.lb;
|
|
if (webFltView == null) {
|
|
return;
|
|
}
|
|
webFltView.setLoad(z);
|
|
if (z && PrefZtwo.J && webViewActivity.D5()) {
|
|
webViewActivity.lb.setHideBlocked(true);
|
|
} else {
|
|
webViewActivity.lb.setHideBlocked(false);
|
|
}
|
|
}
|
|
|
|
public static void f1(WebViewActivity webViewActivity) {
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
webViewActivity.J1 = true;
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.24
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.J1 = false;
|
|
}
|
|
}, 800L);
|
|
}
|
|
|
|
public static void g1(WebViewActivity webViewActivity, WebView webView, final String str) {
|
|
if (webView != null) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(webViewActivity, R.string.input_name);
|
|
return;
|
|
}
|
|
try {
|
|
webViewActivity.zl = webView.createPrintDocumentAdapter(str);
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.388
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
PrintDocumentAdapter printDocumentAdapter = webViewActivity2.zl;
|
|
webViewActivity2.zl = null;
|
|
try {
|
|
webViewActivity2.v9 = ((PrintManager) webViewActivity2.getSystemService("print")).print(str, printDocumentAdapter, new PrintAttributes.Builder().build());
|
|
} catch (ActivityNotFoundException unused) {
|
|
webViewActivity2.v9 = null;
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.388.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.e8(WebViewActivity.this, R.string.apps_none);
|
|
}
|
|
});
|
|
}
|
|
} catch (Exception unused2) {
|
|
webViewActivity2.v9 = null;
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.388.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.e8(WebViewActivity.this, R.string.not_supported);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
} catch (ActivityNotFoundException unused) {
|
|
webViewActivity.v9 = null;
|
|
MainUtil.e8(webViewActivity, R.string.apps_none);
|
|
} catch (Exception unused2) {
|
|
webViewActivity.v9 = null;
|
|
MainUtil.e8(webViewActivity, R.string.not_supported);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void h1(WebViewActivity webViewActivity) {
|
|
WebNestView webNestView;
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.g1) {
|
|
webViewActivity.g1 = true;
|
|
webViewActivity.Eo = false;
|
|
if (!webViewActivity.Q1 && (webNestView = webViewActivity.I2) != null && !webNestView.z0) {
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(webViewActivity.P2);
|
|
if (n3 == null) {
|
|
webViewActivity.i8();
|
|
return;
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.675
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.i8();
|
|
}
|
|
}, 1000L);
|
|
webViewActivity.I2.V(webViewActivity.H2, n3.f19520c, n3.j, new WebNestView.WebBundleListener() { // from class: com.mycompany.app.web.WebViewActivity.676
|
|
@Override // com.mycompany.app.web.WebNestView.WebBundleListener
|
|
public final void a() {
|
|
Handler handler2 = WebViewActivity.this.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.676.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.i8();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.i8();
|
|
}
|
|
}
|
|
|
|
public static void i1(WebViewActivity webViewActivity, WebSearchAdapter.SearchItem searchItem) {
|
|
if (webViewActivity.I2 != null && webViewActivity.D2 != null) {
|
|
int i = searchItem.b;
|
|
if (i == 3) {
|
|
webViewActivity.E7(false);
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
// Prefer keystroke-tracked URL-bar text, then live EditText, then the
|
|
// suggestion row. Filter SearchItem.f and focus handoff can both leave
|
|
// only an early prefix (often the first character).
|
|
String findQuery = searchItem.f;
|
|
String candidate = webViewActivity.findQueryCandidate;
|
|
if (!TextUtils.isEmpty(candidate)
|
|
&& (TextUtils.isEmpty(findQuery)
|
|
|| candidate.length() >= findQuery.length()
|
|
|| !findQuery.startsWith(candidate))) {
|
|
findQuery = candidate;
|
|
}
|
|
MyEditAuto urlEdit = webViewActivity.x2;
|
|
if (urlEdit != null) {
|
|
String liveQuery = MainUtil.Q0(urlEdit, true);
|
|
if (!TextUtils.isEmpty(liveQuery)
|
|
&& (TextUtils.isEmpty(findQuery)
|
|
|| liveQuery.length() >= findQuery.length()
|
|
|| !findQuery.startsWith(liveQuery))) {
|
|
findQuery = liveQuery;
|
|
}
|
|
}
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
webViewActivity.i5(findQuery);
|
|
return;
|
|
}
|
|
String str = searchItem.e;
|
|
if (TextUtils.isEmpty(str)) {
|
|
str = null;
|
|
} else if (str.equals("about:blank")) {
|
|
str = "about:blank";
|
|
} else if (!URLUtil.isValidUrl(str)) {
|
|
str = "http://".concat(str);
|
|
}
|
|
if (TextUtils.isEmpty(str)) {
|
|
webViewActivity.a7(searchItem.f);
|
|
return;
|
|
}
|
|
if (MainUtil.A6(4)) {
|
|
webViewActivity.O1(null, str, true, null);
|
|
} else {
|
|
webViewActivity.S5(str, null);
|
|
}
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0011, code lost:
|
|
|
|
if (r0 == 1) goto L4;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void j1(com.mycompany.app.web.WebViewActivity r3, boolean r4) {
|
|
/*
|
|
int r0 = com.mycompany.app.pref.PrefSecret.q
|
|
r1 = 0
|
|
if (r0 != 0) goto L7
|
|
L5:
|
|
r4 = r1
|
|
goto L14
|
|
L7:
|
|
boolean r2 = com.mycompany.app.pref.PrefSecret.r
|
|
if (r2 == 0) goto L10
|
|
boolean r2 = com.mycompany.app.pref.PrefSync.k
|
|
if (r2 != 0) goto L10
|
|
goto L5
|
|
L10:
|
|
r1 = 1
|
|
if (r0 != r1) goto L14
|
|
goto L5
|
|
L14:
|
|
boolean r0 = r3.L5
|
|
if (r0 != r4) goto L19
|
|
return
|
|
L19:
|
|
r3.L5 = r4
|
|
r0 = 8192(0x2000, float:1.148E-41)
|
|
if (r4 == 0) goto L27
|
|
android.view.Window r3 = r3.getWindow()
|
|
r3.addFlags(r0)
|
|
return
|
|
L27:
|
|
android.view.Window r3 = r3.getWindow()
|
|
r3.clearFlags(r0)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.j1(com.mycompany.app.web.WebViewActivity, boolean):void");
|
|
}
|
|
|
|
public static String j3(String str) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
if (!str.startsWith("http")) {
|
|
if (!"file:///android_asset/shortcut.html".equals(str)) {
|
|
return null;
|
|
}
|
|
} else if (str.length() >= 10000) {
|
|
String J1 = MainUtil.J1(str, true);
|
|
if (!TextUtils.isEmpty(J1) && J1.startsWith("http") && J1.length() < 10000) {
|
|
return J1;
|
|
}
|
|
return null;
|
|
}
|
|
return str;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static void k1(WebViewActivity webViewActivity, boolean z, List list, int i, boolean z2) {
|
|
if (PrefSync.k != z2) {
|
|
if (z) {
|
|
webViewActivity.O2 = list;
|
|
webViewActivity.P2 = i;
|
|
}
|
|
webViewActivity.l8(z2);
|
|
return;
|
|
}
|
|
if (!z) {
|
|
webViewActivity.O1(null, o3(), true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.529
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z3) {
|
|
WebViewActivity.l1(WebViewActivity.this, z3);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (list != null && !list.isEmpty()) {
|
|
webViewActivity.O2 = list;
|
|
webViewActivity.P2 = i;
|
|
webViewActivity.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.530
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
WebViewActivity.this.O1(null, WebViewActivity.o3(), true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.530.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z3) {
|
|
WebViewActivity.l1(WebViewActivity.this, z3);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.x2(false);
|
|
}
|
|
|
|
public static void l1(WebViewActivity webViewActivity, boolean z) {
|
|
boolean z2;
|
|
if (PrefWeb.B && z) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
webViewActivity.S2 = z2;
|
|
if (z2 && !PrefAlbum.O) {
|
|
webViewActivity.O9();
|
|
}
|
|
}
|
|
|
|
public static void m1(WebViewActivity webViewActivity) {
|
|
boolean r5 = webViewActivity.r5();
|
|
if (webViewActivity.Ra == null) {
|
|
return;
|
|
}
|
|
float f = PrefTts.l;
|
|
if (f < 0.5f) {
|
|
PrefTts.l = 0.5f;
|
|
} else if (f > 3.0f) {
|
|
PrefTts.l = 3.0f;
|
|
}
|
|
float f2 = PrefTts.m;
|
|
if (f2 < 0.5f) {
|
|
PrefTts.m = 0.5f;
|
|
} else if (f2 > 2.0f) {
|
|
PrefTts.m = 2.0f;
|
|
}
|
|
try {
|
|
if (r5) {
|
|
float f3 = PrefTts.l;
|
|
webViewActivity.Va = f3;
|
|
webViewActivity.Wa = PrefTts.m;
|
|
if (Float.compare(f3, 1.0f) != 0) {
|
|
webViewActivity.Ra.setSpeechRate(PrefTts.l);
|
|
}
|
|
if (Float.compare(PrefTts.m, 1.0f) != 0) {
|
|
webViewActivity.Ra.setPitch(PrefTts.m);
|
|
}
|
|
} else {
|
|
if (Float.compare(PrefTts.l, webViewActivity.Va) != 0) {
|
|
float f4 = PrefTts.l;
|
|
webViewActivity.Va = f4;
|
|
webViewActivity.Ra.setSpeechRate(f4);
|
|
}
|
|
if (Float.compare(PrefTts.m, webViewActivity.Wa) != 0) {
|
|
float f5 = PrefTts.m;
|
|
webViewActivity.Wa = f5;
|
|
webViewActivity.Ra.setPitch(f5);
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
webViewActivity.Xa = null;
|
|
webViewActivity.u7(true);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static void n1(WebViewActivity webViewActivity, View view) {
|
|
int i;
|
|
Object[] objArr;
|
|
boolean z = PrefZone.o;
|
|
boolean z2 = PrefZone.p;
|
|
if (z2) {
|
|
i = (z ? 1 : 0) + 1;
|
|
} else {
|
|
i = z ? 1 : 0;
|
|
}
|
|
if (PrefZone.q) {
|
|
i++;
|
|
}
|
|
if (i > 1) {
|
|
objArr = true;
|
|
} else {
|
|
objArr = false;
|
|
}
|
|
if (objArr != false) {
|
|
webViewActivity.D9(view, false);
|
|
return;
|
|
}
|
|
if (z) {
|
|
webViewActivity.C7(2);
|
|
return;
|
|
}
|
|
if (z2) {
|
|
webViewActivity.C7(1);
|
|
} else if (PrefRead.q) {
|
|
webViewActivity.o9();
|
|
} else {
|
|
webViewActivity.C7(0);
|
|
}
|
|
}
|
|
|
|
public static void o1(WebViewActivity webViewActivity) {
|
|
if (webViewActivity.f2 != null) {
|
|
boolean z = true;
|
|
webViewActivity.Lc = true;
|
|
if (webViewActivity.R5 != null) {
|
|
z = PrefVideo.n;
|
|
}
|
|
boolean z2 = z;
|
|
if (Build.VERSION.SDK_INT < 30) {
|
|
MainUtil.G7(webViewActivity.getWindow(), webViewActivity.a0(), webViewActivity.w9, webViewActivity.x9, false, z2);
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.164
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.l2();
|
|
webViewActivity2.Lc = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.F7(webViewActivity.getWindow(), webViewActivity.w9, z2);
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new AnonymousClass165());
|
|
}
|
|
}
|
|
|
|
public static String o3() {
|
|
if ("..home_link".equals(PrefWeb.m)) {
|
|
return c3();
|
|
}
|
|
String q4 = MainUtil.q4(null, PrefWeb.m);
|
|
if (!TextUtils.isEmpty(q4)) {
|
|
return q4;
|
|
}
|
|
return "file:///android_asset/shortcut.html";
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x002a */
|
|
/* JADX WARN: Removed duplicated region for block: B:18:0x0037 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void p1(com.mycompany.app.web.WebViewActivity r5) {
|
|
/*
|
|
com.mycompany.app.web.WebVideoFrame r0 = r5.R5
|
|
r1 = 1
|
|
if (r0 == 0) goto L54
|
|
boolean r0 = r5.G8
|
|
if (r0 == 0) goto L4c
|
|
com.mycompany.app.web.WebNestView r0 = r5.I2
|
|
if (r0 != 0) goto Le
|
|
goto L49
|
|
Le:
|
|
boolean r2 = com.mycompany.app.pref.PrefWeb.o
|
|
if (r2 == 0) goto L21
|
|
java.lang.String r2 = com.mycompany.app.main.MainUtil.u4()
|
|
boolean r3 = android.text.TextUtils.isEmpty(r2)
|
|
if (r3 != 0) goto L21
|
|
java.lang.StringBuilder r2 = android.support.v4.media.a.t(r2)
|
|
goto L22
|
|
L21:
|
|
r2 = 0
|
|
L22:
|
|
java.lang.String r3 = "if(window.sb_win_open){window.sb_win_open.disconnect();window.sb_win_open=null;}"
|
|
boolean r4 = android.text.TextUtils.isEmpty(r3)
|
|
if (r4 != 0) goto L34
|
|
if (r2 != 0) goto L31
|
|
java.lang.StringBuilder r2 = new java.lang.StringBuilder
|
|
r2.<init>()
|
|
L31:
|
|
r2.append(r3)
|
|
L34:
|
|
if (r2 != 0) goto L37
|
|
goto L49
|
|
L37:
|
|
r3 = 0
|
|
java.lang.String r4 = "(function(){"
|
|
r2.insert(r3, r4)
|
|
java.lang.String r3 = "})();"
|
|
r2.append(r3)
|
|
java.lang.String r2 = r2.toString()
|
|
com.mycompany.app.main.MainUtil.I(r0, r2, r1)
|
|
L49:
|
|
r5.Z8()
|
|
L4c:
|
|
com.mycompany.app.web.WebVideoFrame r0 = r5.R5
|
|
java.lang.String r5 = r5.A8
|
|
r0.setUrl(r5)
|
|
return
|
|
L54:
|
|
com.mycompany.app.web.WebNestView r0 = r5.I2
|
|
if (r0 != 0) goto L59
|
|
return
|
|
L59:
|
|
int r2 = r5.P2
|
|
com.mycompany.app.web.WebViewActivity$233 r3 = new com.mycompany.app.web.WebViewActivity$233
|
|
r3.<init>()
|
|
r0.j(r1, r2, r3)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.p1(com.mycompany.app.web.WebViewActivity):void");
|
|
}
|
|
|
|
public static void q1(WebViewActivity webViewActivity, View view) {
|
|
int i;
|
|
boolean z;
|
|
boolean z2 = PrefZone.s;
|
|
if (PrefZone.t) {
|
|
i = (z2 ? 1 : 0) + 1;
|
|
} else {
|
|
i = z2 ? 1 : 0;
|
|
}
|
|
if (i > 1) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (z) {
|
|
webViewActivity.D9(view, true);
|
|
} else if (z2) {
|
|
webViewActivity.b9(2);
|
|
} else {
|
|
webViewActivity.b9(3);
|
|
}
|
|
}
|
|
|
|
public static String q3(Context context, WebTabAdapter.WebTabItem webTabItem) {
|
|
WebTabAdapter.WebTabItem webTabItem2;
|
|
String str = null;
|
|
if (context == null || webTabItem == null) {
|
|
return null;
|
|
}
|
|
List list = webTabItem.q;
|
|
if (list != null) {
|
|
if (list.size() > 0 && (webTabItem2 = (WebTabAdapter.WebTabItem) webTabItem.q.get(0)) != null) {
|
|
str = webTabItem2.f;
|
|
}
|
|
if (!TextUtils.isEmpty(str)) {
|
|
return str;
|
|
}
|
|
return context.getString(R.string.group_title);
|
|
}
|
|
if (TextUtils.isEmpty(webTabItem.j)) {
|
|
return context.getString(R.string.no_title);
|
|
}
|
|
if ("file:///android_asset/shortcut.html".equals(webTabItem.j)) {
|
|
return "Soul";
|
|
}
|
|
if (!TextUtils.isEmpty(webTabItem.k)) {
|
|
String K1 = MainUtil.K1(webTabItem.k, false);
|
|
webTabItem.k = K1;
|
|
if (!TextUtils.isEmpty(K1)) {
|
|
return webTabItem.k;
|
|
}
|
|
}
|
|
String r1 = MainUtil.r1(MainUtil.H1(webTabItem.j, true));
|
|
webTabItem.k = r1;
|
|
if (!TextUtils.isEmpty(r1)) {
|
|
return webTabItem.k;
|
|
}
|
|
return context.getString(R.string.no_title);
|
|
}
|
|
|
|
public static void r1(WebViewActivity webViewActivity, boolean z, boolean z2) {
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.M8 = webViewActivity.A8;
|
|
StringBuilder sb = new StringBuilder("(function(){var ele=document.querySelector(\"video\");if(!ele)return;window.yspd=true;");
|
|
if (z) {
|
|
sb.append("ele.addEventListener(\"ratechange\",function(){android.onRateDet(this.playbackRate);});");
|
|
}
|
|
if (z2) {
|
|
sb.append("ele.playbackRate=");
|
|
sb.append(PrefZtwo.W);
|
|
sb.append(";");
|
|
}
|
|
sb.append("})();");
|
|
MainUtil.I(webViewActivity.I2, sb.toString(), false);
|
|
}
|
|
|
|
public static void s1(WebViewActivity webViewActivity) {
|
|
if (webViewActivity.e2 != null && !webViewActivity.G8 && MainApp.A(webViewActivity.i1)) {
|
|
webViewActivity.e2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.522
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.e2 != null && !webViewActivity2.G8 && MainApp.A(webViewActivity2.i1)) {
|
|
MyAdNative d = MainApp.d(webViewActivity2, 0, new MainApp.AdLocalListener() { // from class: com.mycompany.app.web.WebViewActivity.523
|
|
@Override // com.mycompany.app.main.MainApp.AdLocalListener
|
|
public final void b(MyAdNative myAdNative) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.d7(myAdNative);
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainApp.AdLocalListener
|
|
public final void c(MyAdNative myAdNative) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.d7(myAdNative);
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainApp.AdLocalListener
|
|
public final void e() {
|
|
MainApp.f(WebViewActivity.this.i1, 0);
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainApp.AdLocalListener
|
|
public final void f(MyAdNative myAdNative) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.d7(myAdNative);
|
|
}
|
|
});
|
|
webViewActivity2.d7(d);
|
|
webViewActivity2.e2.b(d, webViewActivity2.O0);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void t1(final WebViewActivity webViewActivity) {
|
|
if (!PrefSync.j && webViewActivity.C1 && webViewActivity.B1 != null) {
|
|
final ConsentForm.OnConsentFormDismissedListener onConsentFormDismissedListener = new ConsentForm.OnConsentFormDismissedListener() { // from class: com.mycompany.app.web.WebViewActivity.56
|
|
@Override // com.google.android.ump.ConsentForm.OnConsentFormDismissedListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
zzj zzjVar = webViewActivity2.B1;
|
|
if (zzjVar == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.l6(zzjVar.a());
|
|
}
|
|
};
|
|
zza a2 = zza.a(webViewActivity);
|
|
if (a2.b().a()) {
|
|
onConsentFormDismissedListener.a();
|
|
return;
|
|
}
|
|
((Queue) a2.d().i.get()).add(Long.valueOf(System.currentTimeMillis()));
|
|
zzbq c2 = a2.c();
|
|
zzcz.a();
|
|
UserMessagingPlatform.OnConsentFormLoadSuccessListener onConsentFormLoadSuccessListener = new UserMessagingPlatform.OnConsentFormLoadSuccessListener() { // from class: com.google.android.gms.internal.consent_sdk.zzbo
|
|
@Override // com.google.android.ump.UserMessagingPlatform.OnConsentFormLoadSuccessListener
|
|
public final void b(ConsentForm consentForm) {
|
|
consentForm.a(WebViewActivity.this, onConsentFormDismissedListener);
|
|
}
|
|
};
|
|
UserMessagingPlatform.OnConsentFormLoadFailureListener onConsentFormLoadFailureListener = new UserMessagingPlatform.OnConsentFormLoadFailureListener() { // from class: com.google.android.gms.internal.consent_sdk.zzbp
|
|
@Override // com.google.android.ump.UserMessagingPlatform.OnConsentFormLoadFailureListener
|
|
public final void a(FormError formError) {
|
|
ConsentForm.OnConsentFormDismissedListener.this.a();
|
|
}
|
|
};
|
|
c2.getClass();
|
|
zzcz.a();
|
|
zzbs zzbsVar = (zzbs) c2.f9955c.get();
|
|
if (zzbsVar == null) {
|
|
onConsentFormLoadFailureListener.a(new zzg(3, "No available form can be built.").a());
|
|
return;
|
|
}
|
|
zzbe zza = ((zzay) c2.f9954a.zzb()).a(zzbsVar).zzb().zza();
|
|
zza.n = true;
|
|
zza.b(onConsentFormLoadSuccessListener, onConsentFormLoadFailureListener);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0099 */
|
|
/* JADX WARN: Removed duplicated region for block: B:28:0x00a9 A[ORIG_RETURN, RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:29:0x00aa */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void u0(com.mycompany.app.web.WebViewActivity r8, java.lang.String r9) {
|
|
/*
|
|
com.mycompany.app.web.WebNestView r0 = r8.I2
|
|
if (r0 != 0) goto L6
|
|
goto La9
|
|
L6:
|
|
r1 = 0
|
|
if (r0 != 0) goto Lb
|
|
r0 = r1
|
|
goto Lf
|
|
Lb:
|
|
java.lang.String r0 = r0.getFileUrl()
|
|
Lf:
|
|
com.mycompany.app.web.WebNestView r2 = r8.I2
|
|
java.lang.String r3 = "file:///"
|
|
r4 = 0
|
|
if (r2 != 0) goto L18
|
|
r5 = r1
|
|
goto L63
|
|
L18:
|
|
android.content.Context r5 = r8.i1
|
|
boolean r6 = android.text.TextUtils.isEmpty(r9)
|
|
if (r6 != 0) goto L5a
|
|
java.lang.String r6 = "http://"
|
|
boolean r6 = r9.startsWith(r6)
|
|
if (r6 == 0) goto L29
|
|
goto L5a
|
|
L29:
|
|
boolean r6 = r9.startsWith(r3)
|
|
if (r6 == 0) goto L57
|
|
r2.z = r4
|
|
r2.A = r4
|
|
java.lang.String r6 = "file:///android_asset/shortcut.html"
|
|
boolean r7 = r6.equals(r9)
|
|
if (r7 == 0) goto L3e
|
|
r2.b0 = r6
|
|
goto L54
|
|
L3e:
|
|
java.lang.String r6 = r2.b0
|
|
boolean r6 = android.text.TextUtils.isEmpty(r6)
|
|
if (r6 != 0) goto L4e
|
|
java.lang.String r6 = r2.c0
|
|
boolean r6 = r9.equals(r6)
|
|
if (r6 != 0) goto L54
|
|
L4e:
|
|
java.lang.String r5 = com.mycompany.app.main.MainUtil.Z2(r5, r9)
|
|
r2.b0 = r5
|
|
L54:
|
|
java.lang.String r5 = r2.b0
|
|
goto L61
|
|
L57:
|
|
r2.b0 = r1
|
|
goto L60
|
|
L5a:
|
|
r2.z = r4
|
|
r2.A = r4
|
|
r2.b0 = r1
|
|
L60:
|
|
r5 = r9
|
|
L61:
|
|
r2.c0 = r9
|
|
L63:
|
|
boolean r2 = android.text.TextUtils.isEmpty(r9)
|
|
r6 = 1
|
|
if (r2 != 0) goto L7e
|
|
boolean r9 = r9.startsWith(r3)
|
|
if (r9 == 0) goto L7e
|
|
boolean r9 = android.text.TextUtils.isEmpty(r5)
|
|
if (r9 != 0) goto L7e
|
|
boolean r9 = r5.startsWith(r3)
|
|
if (r9 != 0) goto L7e
|
|
L7c:
|
|
r9 = r6
|
|
goto L8f
|
|
L7e:
|
|
com.mycompany.app.web.WebNestView r9 = r8.I2
|
|
if (r9 != 0) goto L83
|
|
goto L87
|
|
L83:
|
|
java.lang.String r1 = r9.getFileUrl()
|
|
L87:
|
|
boolean r9 = com.mycompany.app.main.MainUtil.q5(r0, r1)
|
|
if (r9 != 0) goto L8e
|
|
goto L7c
|
|
L8e:
|
|
r9 = r4
|
|
L8f:
|
|
android.content.Context r0 = r8.i1
|
|
boolean r0 = com.mycompany.app.db.book.DbBookWeb.j(r0, r5)
|
|
boolean r1 = r8.z8
|
|
if (r1 == r0) goto L9a
|
|
r4 = r6
|
|
L9a:
|
|
r8.z8 = r0
|
|
if (r9 != 0) goto La1
|
|
if (r4 != 0) goto La1
|
|
goto La9
|
|
La1:
|
|
r8.zj = r9
|
|
r8.Aj = r4
|
|
com.mycompany.app.view.MyWebCoord r9 = r8.f2
|
|
if (r9 != 0) goto Laa
|
|
La9:
|
|
return
|
|
Laa:
|
|
com.mycompany.app.web.WebViewActivity$339 r0 = new com.mycompany.app.web.WebViewActivity$339
|
|
r0.<init>()
|
|
r9.post(r0)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.u0(com.mycompany.app.web.WebViewActivity, java.lang.String):void");
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x0056, code lost:
|
|
|
|
if (r0 == false) goto L32;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x0058, code lost:
|
|
|
|
if (r3 == false) goto L33;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void u1(com.mycompany.app.web.WebViewActivity r10, boolean r11) {
|
|
/*
|
|
boolean r0 = r10.G1
|
|
if (r0 == 0) goto L5
|
|
goto Lb
|
|
L5:
|
|
boolean r0 = r10.J5()
|
|
if (r0 == 0) goto Lc
|
|
Lb:
|
|
return
|
|
Lc:
|
|
com.mycompany.app.dialog.DialogAdNative r0 = r10.K7
|
|
if (r0 == 0) goto L16
|
|
r0.dismiss()
|
|
r0 = 0
|
|
r10.K7 = r0
|
|
L16:
|
|
if (r11 == 0) goto L60
|
|
boolean r0 = r10.h2()
|
|
r1 = 0
|
|
if (r0 == 0) goto L5a
|
|
android.content.Context r0 = r10.i1
|
|
com.mycompany.app.main.MainApp r0 = com.mycompany.app.main.MainApp.p(r0)
|
|
if (r0 != 0) goto L28
|
|
goto L2c
|
|
L28:
|
|
com.mycompany.app.view.MyAdNative r0 = r0.N0
|
|
if (r0 != 0) goto L2e
|
|
L2c:
|
|
r3 = r1
|
|
goto L58
|
|
L2e:
|
|
int r2 = r0.t
|
|
r3 = 1
|
|
if (r2 == r3) goto L35
|
|
r2 = r1
|
|
goto L3b
|
|
L35:
|
|
android.content.Context r2 = r0.g
|
|
boolean r2 = com.mycompany.app.main.MainApp.A(r2)
|
|
L3b:
|
|
if (r2 == 0) goto L2c
|
|
long r4 = r0.u
|
|
r6 = 0
|
|
int r2 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
|
|
if (r2 != 0) goto L47
|
|
L45:
|
|
r0 = r1
|
|
goto L56
|
|
L47:
|
|
long r4 = java.lang.System.currentTimeMillis()
|
|
long r6 = r0.u
|
|
r8 = 3000000(0x2dc6c0, double:1.482197E-317)
|
|
long r6 = r6 + r8
|
|
int r0 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
|
|
if (r0 <= 0) goto L45
|
|
r0 = r3
|
|
L56:
|
|
if (r0 != 0) goto L2c
|
|
L58:
|
|
if (r3 != 0) goto L6b
|
|
L5a:
|
|
android.content.Context r10 = r10.i1
|
|
com.mycompany.app.main.MainApp.f(r10, r1)
|
|
return
|
|
L60:
|
|
android.content.Context r0 = r10.i1
|
|
boolean r0 = com.mycompany.app.main.MainApp.z(r0)
|
|
if (r0 != 0) goto L6b
|
|
r10.c5()
|
|
L6b:
|
|
com.mycompany.app.dialog.DialogAdNative r0 = new com.mycompany.app.dialog.DialogAdNative
|
|
com.mycompany.app.web.WebViewActivity$518 r1 = new com.mycompany.app.web.WebViewActivity$518
|
|
r1.<init>()
|
|
r0.<init>(r10, r11, r1)
|
|
r10.K7 = r0
|
|
com.mycompany.app.web.WebViewActivity$519 r11 = new com.mycompany.app.web.WebViewActivity$519
|
|
r11.<init>()
|
|
r0.setOnDismissListener(r11)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.u1(com.mycompany.app.web.WebViewActivity, boolean):void");
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:104:0x019d */
|
|
/* JADX WARN: Removed duplicated region for block: B:108:0x01b0 A[SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:68:0x0159 */
|
|
/* JADX WARN: Removed duplicated region for block: B:77:0x0144 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void v0(com.mycompany.app.web.WebViewActivity r10, boolean r11) {
|
|
/*
|
|
Method dump skipped, instructions count: 465
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.v0(com.mycompany.app.web.WebViewActivity, boolean):void");
|
|
}
|
|
|
|
public static void v1(WebViewActivity webViewActivity) {
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1) {
|
|
if (webViewActivity.b7 != null) {
|
|
if (webViewActivity.e7 != null) {
|
|
return;
|
|
}
|
|
} else if (webViewActivity.J5()) {
|
|
return;
|
|
}
|
|
DialogAllowPopup dialogAllowPopup = webViewActivity.e7;
|
|
if (dialogAllowPopup != null) {
|
|
dialogAllowPopup.dismiss();
|
|
webViewActivity.e7 = null;
|
|
}
|
|
if (TextUtils.isEmpty(webViewActivity.B8)) {
|
|
MainUtil.e8(webViewActivity, R.string.invalid_url);
|
|
return;
|
|
}
|
|
DialogAllowPopup dialogAllowPopup2 = new DialogAllowPopup(webViewActivity, webViewActivity.s3(false), new DialogSetAdblock.DialogAdsListener() { // from class: com.mycompany.app.web.WebViewActivity.432
|
|
@Override // com.mycompany.app.dialog.DialogSetAdblock.DialogAdsListener
|
|
public final void a(boolean z, boolean z2, boolean z3, boolean z4, boolean z5, String str) {
|
|
WebViewActivity.T0(WebViewActivity.this, z2, z3, z4, z5);
|
|
}
|
|
});
|
|
webViewActivity.e7 = dialogAllowPopup2;
|
|
dialogAllowPopup2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.433
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogAllowPopup dialogAllowPopup3 = webViewActivity2.e7;
|
|
if (dialogAllowPopup3 != null) {
|
|
dialogAllowPopup3.dismiss();
|
|
webViewActivity2.e7 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void w0(WebViewActivity webViewActivity, WebView webView, String str) {
|
|
webViewActivity.getClass();
|
|
if (webView != null) {
|
|
if (!(webView instanceof WebNestView)) {
|
|
webViewActivity.Rg = webView;
|
|
webViewActivity.Sg = str;
|
|
webView.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.207
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebView webView2 = webViewActivity2.Rg;
|
|
String str2 = webViewActivity2.Sg;
|
|
webViewActivity2.Rg = null;
|
|
webViewActivity2.Sg = null;
|
|
if (webView2 == null) {
|
|
return;
|
|
}
|
|
if (!TextUtils.isEmpty(str2) && str2.startsWith("http://")) {
|
|
webView2.removeJavascriptInterface("android");
|
|
} else {
|
|
webView2.addJavascriptInterface(new WebAppInterface(), "android");
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
WebNestView webNestView = (WebNestView) webView;
|
|
if (MainUtil.D5(str)) {
|
|
if (webNestView.h1) {
|
|
webNestView.setJsAdded(false);
|
|
webViewActivity.Dn = false;
|
|
webViewActivity.Tg = webNestView;
|
|
webNestView.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.208
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView2 = webViewActivity2.Tg;
|
|
webViewActivity2.Tg = null;
|
|
if (webNestView2 == null) {
|
|
return;
|
|
}
|
|
webNestView2.setJsAdded(false);
|
|
webNestView2.removeJavascriptInterface("android");
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webNestView.h1) {
|
|
return;
|
|
}
|
|
webNestView.setJsAdded(true);
|
|
webViewActivity.Dn = false;
|
|
webViewActivity.Tg = webNestView;
|
|
webNestView.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.209
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView2 = webViewActivity2.Tg;
|
|
webViewActivity2.Tg = null;
|
|
if (webNestView2 == null) {
|
|
return;
|
|
}
|
|
webNestView2.setJsAdded(true);
|
|
webNestView2.addJavascriptInterface(new WebAppInterface(), "android");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void w1(WebViewActivity webViewActivity, String str, JsResult jsResult) {
|
|
if (webViewActivity.G1) {
|
|
return;
|
|
}
|
|
webViewActivity.P3();
|
|
webViewActivity.u7 = jsResult;
|
|
DialogSetMsg dialogSetMsg = new DialogSetMsg(webViewActivity, str, R.string.ok, new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.484
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
JsResult jsResult2 = webViewActivity2.u7;
|
|
if (jsResult2 != null) {
|
|
jsResult2.confirm();
|
|
webViewActivity2.u7 = null;
|
|
}
|
|
webViewActivity2.P3();
|
|
}
|
|
});
|
|
webViewActivity.t7 = dialogSetMsg;
|
|
dialogSetMsg.setOnCancelListener(new DialogInterface.OnCancelListener() { // from class: com.mycompany.app.web.WebViewActivity.485
|
|
@Override // android.content.DialogInterface.OnCancelListener
|
|
public final void onCancel(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.P3();
|
|
}
|
|
});
|
|
webViewActivity.t7.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.486
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.P3();
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void x0(int i, WebViewActivity webViewActivity, String str, String str2) {
|
|
webViewActivity.Ib = null;
|
|
webViewActivity.Jb = null;
|
|
boolean z = true;
|
|
if (!webViewActivity.Kb) {
|
|
if (i == 1) {
|
|
webViewActivity.Kb = true;
|
|
webViewActivity.Hb = 0;
|
|
webViewActivity.hj = str;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.291
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.hj;
|
|
webViewActivity2.hj = null;
|
|
webViewActivity2.x6();
|
|
if (PrefPdf.w != 0) {
|
|
webViewActivity2.d9(str3, null);
|
|
return;
|
|
}
|
|
webViewActivity2.pj = str3;
|
|
Handler handler = webViewActivity2.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass299());
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
webViewActivity.Kb = true;
|
|
webViewActivity.Hb = 0;
|
|
webViewActivity.hj = str;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.292
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.hj;
|
|
webViewActivity2.hj = null;
|
|
webViewActivity2.x6();
|
|
int i2 = PrefPdf.w;
|
|
if (i2 == 2) {
|
|
webViewActivity2.d9(str3, str3);
|
|
return;
|
|
}
|
|
if (i2 == 1) {
|
|
webViewActivity2.F1(null, str3, true, null);
|
|
return;
|
|
}
|
|
webViewActivity2.qj = str3;
|
|
Handler handler = webViewActivity2.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.300
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str4 = webViewActivity3.qj;
|
|
webViewActivity3.qj = null;
|
|
boolean I4 = MainUtil.I4(webViewActivity3, str4);
|
|
webViewActivity3.B9 = I4;
|
|
if (!I4) {
|
|
webViewActivity3.rj = str4;
|
|
Handler handler2 = webViewActivity3.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.300.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
String str5 = webViewActivity4.rj;
|
|
webViewActivity4.rj = null;
|
|
webViewActivity4.F1(null, str5, true, null);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
WebNestView webNestView = webViewActivity.Fb;
|
|
if (webNestView != null) {
|
|
webViewActivity.Gb = webNestView;
|
|
webViewActivity.Fb = null;
|
|
if (webViewActivity.Hb == 0) {
|
|
z = false;
|
|
}
|
|
webViewActivity.Hb = 0;
|
|
webViewActivity.ij = str;
|
|
webViewActivity.jj = str2;
|
|
webViewActivity.kj = i;
|
|
webViewActivity.lj = z;
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.293
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.ij;
|
|
String str4 = webViewActivity2.jj;
|
|
int i2 = webViewActivity2.kj;
|
|
boolean z2 = webViewActivity2.lj;
|
|
webViewActivity2.ij = null;
|
|
webViewActivity2.jj = null;
|
|
if (i2 == 3) {
|
|
if ((PrefZtwo.C & 2) == 2) {
|
|
webViewActivity2.F1(null, str3, true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.294
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z3) {
|
|
if (!z3) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.w6();
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
} else {
|
|
webViewActivity2.Q1(str3, webViewActivity2.A8, false);
|
|
return;
|
|
}
|
|
}
|
|
if (!z2) {
|
|
webViewActivity2.P4();
|
|
webViewActivity2.F1(null, str3, true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.295
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z3) {
|
|
if (!z3) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.w6();
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
if (TextUtils.isEmpty(str3)) {
|
|
webViewActivity2.w6();
|
|
return;
|
|
}
|
|
webViewActivity2.mj = str3;
|
|
webViewActivity2.nj = str4;
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.296
|
|
/* JADX WARN: Code restructure failed: missing block: B:137:0x0190, code lost:
|
|
|
|
if (r4 != false) goto L88;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:50:0x0194 */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:0x01a9 */
|
|
/* JADX WARN: Removed duplicated region for block: B:64:0x0206 */
|
|
/* JADX WARN: Type inference failed for: r3v15, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v16, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v18, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v19, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v2, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v20, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v21, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v22, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v23, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r3v24, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r4v40, types: [com.mycompany.app.web.WebViewActivity$PopItem, java.lang.Object] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 614
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass296.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void x1(WebViewActivity webViewActivity, QuickAdapter.QuickItem quickItem, int i) {
|
|
if (!webViewActivity.G1) {
|
|
if (webViewActivity.G3 != null || !webViewActivity.J5()) {
|
|
webViewActivity.p4();
|
|
if (i == 0) {
|
|
return;
|
|
}
|
|
webViewActivity.fm = quickItem;
|
|
webViewActivity.gm = i;
|
|
DialogDeleteItem dialogDeleteItem = new DialogDeleteItem(webViewActivity, new DialogDeleteItem.DelItemListener() { // from class: com.mycompany.app.web.WebViewActivity.470
|
|
@Override // com.mycompany.app.dialog.DialogDeleteItem.DelItemListener
|
|
public final void a() {
|
|
QuickView quickView;
|
|
boolean j;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.E3 != null) {
|
|
QuickSubView quickSubView = webViewActivity2.G3;
|
|
if (quickSubView != null) {
|
|
j = quickSubView.b();
|
|
} else {
|
|
QuickSchEdit quickSchEdit = webViewActivity2.C3;
|
|
if (quickSchEdit != null) {
|
|
QuickView quickView2 = quickSchEdit.i;
|
|
if (quickView2 != null) {
|
|
j = quickView2.j();
|
|
}
|
|
j = false;
|
|
} else {
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null && (quickView = webNestView.Z0) != null) {
|
|
j = quickView.j();
|
|
}
|
|
j = false;
|
|
}
|
|
}
|
|
if (j) {
|
|
return;
|
|
}
|
|
webViewActivity2.p4();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogDeleteItem.DelItemListener
|
|
public final void b(MyRoundImage myRoundImage, AppCompatTextView appCompatTextView) {
|
|
List list;
|
|
int i2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
QuickAdapter.QuickItem quickItem2 = webViewActivity2.fm;
|
|
int i3 = webViewActivity2.gm;
|
|
if (webViewActivity2.E3 == null) {
|
|
return;
|
|
}
|
|
int i4 = -460552;
|
|
if (quickItem2 == null) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(i3);
|
|
if (i3 > 1) {
|
|
i2 = R.string.items;
|
|
} else {
|
|
i2 = R.string.item;
|
|
}
|
|
sb.append(webViewActivity2.getString(i2));
|
|
myRoundImage.o(-460552, R.drawable.outline_public_black_24);
|
|
appCompatTextView.setText(sb.toString());
|
|
return;
|
|
}
|
|
if (quickItem2.f17363c) {
|
|
list = quickItem2.l;
|
|
} else {
|
|
list = null;
|
|
}
|
|
if (list != null && !list.isEmpty()) {
|
|
boolean z = PrefSync.k;
|
|
if (MainApp.K1) {
|
|
i4 = -11513776;
|
|
}
|
|
myRoundImage.B(1, i4, list, z);
|
|
} else {
|
|
int i5 = quickItem2.h;
|
|
if (i5 != 0 && i5 != -460552) {
|
|
if (quickItem2.f17363c) {
|
|
myRoundImage.o(0, DbBookQuick.f(i5));
|
|
} else {
|
|
myRoundImage.setCircleRadius(MainApp.G1 * 3);
|
|
myRoundImage.t(quickItem2.h, quickItem2.g, null);
|
|
}
|
|
} else {
|
|
Bitmap c2 = MainListLoader.c(quickItem2.d, PrefSync.k);
|
|
if (MainUtil.f6(c2)) {
|
|
myRoundImage.setIconSmall(true);
|
|
myRoundImage.setImageBitmap(c2);
|
|
} else {
|
|
myRoundImage.p(-460552, R.drawable.outline_public_black_24, quickItem2.g, null);
|
|
}
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(quickItem2.f)) {
|
|
appCompatTextView.setText(quickItem2.f);
|
|
return;
|
|
}
|
|
appCompatTextView.setText(i3 + webViewActivity2.getString(R.string.item));
|
|
}
|
|
});
|
|
webViewActivity.E3 = dialogDeleteItem;
|
|
dialogDeleteItem.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.471
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.p4();
|
|
webViewActivity2.fm = null;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public static boolean y0(final GeolocationPermissions.Callback callback, final PermissionRequest permissionRequest, final WebViewActivity webViewActivity, final String str) {
|
|
if (webViewActivity.I2 != null && webViewActivity.x7 == null && !webViewActivity.F5()) {
|
|
webViewActivity.j4();
|
|
webViewActivity.D6();
|
|
webViewActivity.um = false;
|
|
webViewActivity.vm = false;
|
|
webViewActivity.wm = false;
|
|
webViewActivity.xm = false;
|
|
webViewActivity.ym = false;
|
|
webViewActivity.zm = false;
|
|
webViewActivity.Am = false;
|
|
webViewActivity.Bm = false;
|
|
webViewActivity.Cm = false;
|
|
webViewActivity.Dm = false;
|
|
webViewActivity.Em = false;
|
|
webViewActivity.Fm = 0;
|
|
webViewActivity.Gm = 0;
|
|
if (permissionRequest != null) {
|
|
String[] resources = permissionRequest.getResources();
|
|
if (resources != null && resources.length > 0) {
|
|
for (String str2 : resources) {
|
|
if ("android.webkit.resource.VIDEO_CAPTURE".equals(str2)) {
|
|
webViewActivity.um = true;
|
|
} else if ("android.webkit.resource.AUDIO_CAPTURE".equals(str2)) {
|
|
webViewActivity.vm = true;
|
|
} else if ("android.webkit.resource.PROTECTED_MEDIA_ID".equals(str2)) {
|
|
webViewActivity.wm = true;
|
|
}
|
|
}
|
|
}
|
|
} else if (callback != null && !TextUtils.isEmpty(str)) {
|
|
webViewActivity.xm = true;
|
|
}
|
|
if (webViewActivity.um || webViewActivity.vm || webViewActivity.wm || webViewActivity.xm) {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.490
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:120:0x00b0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:121:0x00aa */
|
|
/* JADX WARN: Removed duplicated region for block: B:122:0x00a3 */
|
|
/* JADX WARN: Removed duplicated region for block: B:123:0x009c */
|
|
/* JADX WARN: Removed duplicated region for block: B:124:0x0095 */
|
|
/* JADX WARN: Removed duplicated region for block: B:125:0x008b */
|
|
/* JADX WARN: Removed duplicated region for block: B:126:0x0080 */
|
|
/* JADX WARN: Removed duplicated region for block: B:127:0x0076 */
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0053 */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x0061 */
|
|
/* JADX WARN: Removed duplicated region for block: B:27:0x0073 */
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x007d */
|
|
/* JADX WARN: Removed duplicated region for block: B:33:0x0088 */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x0092 */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x009a */
|
|
/* JADX WARN: Removed duplicated region for block: B:42:0x00a1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:45:0x00a8 */
|
|
/* JADX WARN: Removed duplicated region for block: B:48:0x00ae */
|
|
/* JADX WARN: Type inference failed for: r4v1 */
|
|
/* JADX WARN: Type inference failed for: r4v11, types: [java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r4v15, types: [com.mycompany.app.main.MainItem$ChildItem, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r4v17 */
|
|
/* JADX WARN: Type inference failed for: r4v19 */
|
|
/* JADX WARN: Type inference failed for: r4v2 */
|
|
/* JADX WARN: Type inference failed for: r4v3, types: [com.mycompany.app.main.MainItem$ChildItem] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 342
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass490.run():void");
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static void y1(WebViewActivity webViewActivity, QuickAdapter.QuickItem quickItem) {
|
|
boolean z;
|
|
boolean z2;
|
|
List list;
|
|
String str;
|
|
String v3;
|
|
Bitmap favicon;
|
|
int i;
|
|
if (!webViewActivity.G1) {
|
|
if (webViewActivity.G3 != null || !webViewActivity.J5()) {
|
|
webViewActivity.q4();
|
|
if (quickItem != null) {
|
|
boolean z3 = quickItem.f17363c;
|
|
String str2 = quickItem.d;
|
|
String str3 = quickItem.f;
|
|
int i2 = quickItem.h;
|
|
if (z3) {
|
|
z2 = true;
|
|
z = z3;
|
|
v3 = str3;
|
|
i = i2;
|
|
favicon = null;
|
|
str = str2;
|
|
list = quickItem.l;
|
|
} else {
|
|
z2 = true;
|
|
z = z3;
|
|
v3 = str3;
|
|
i = i2;
|
|
list = null;
|
|
str = str2;
|
|
favicon = null;
|
|
}
|
|
} else {
|
|
String s3 = webViewActivity.s3(true);
|
|
if (TextUtils.isEmpty(s3)) {
|
|
return;
|
|
}
|
|
z = false;
|
|
z2 = false;
|
|
list = null;
|
|
str = s3;
|
|
v3 = webViewActivity.v3(webViewActivity.I2, s3);
|
|
favicon = webViewActivity.I2.getFavicon();
|
|
i = 0;
|
|
}
|
|
DialogQuickEdit dialogQuickEdit = new DialogQuickEdit(webViewActivity, z, str, v3, favicon, i, z2, list, new DialogQuickEdit.QuickEditListener() { // from class: com.mycompany.app.web.WebViewActivity.472
|
|
@Override // com.mycompany.app.dialog.DialogQuickEdit.QuickEditListener
|
|
public final void a(String str4, int i3, int i4, String str5) {
|
|
QuickAdapter quickAdapter;
|
|
QuickView quickView;
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.q4();
|
|
MainUtil.e8(webViewActivity2, R.string.added);
|
|
if (webViewActivity2.G3 == null) {
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null && (quickView = webNestView.Z0) != null) {
|
|
quickView.e(str4, i3, i4, str5);
|
|
}
|
|
QuickSearch quickSearch = webViewActivity2.A3;
|
|
if (quickSearch != null && (quickAdapter = quickSearch.z) != null) {
|
|
quickAdapter.w(str4, i3, i4, str5);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogQuickEdit.QuickEditListener
|
|
public final void b(String str4, String str5, String str6, int i3, List list2) {
|
|
List list3;
|
|
QuickAdapter quickAdapter;
|
|
QuickView quickView;
|
|
QuickAdapter quickAdapter2;
|
|
QuickView quickView2;
|
|
QuickAdapter quickAdapter3;
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.q4();
|
|
MainUtil.e8(webViewActivity2, R.string.changed);
|
|
QuickSubView quickSubView = webViewActivity2.G3;
|
|
if (quickSubView != null) {
|
|
QuickAdapter quickAdapter4 = quickSubView.y;
|
|
if (quickAdapter4 != null) {
|
|
quickAdapter4.e0(str4, str5, str6, i3, null);
|
|
quickSubView.G = true;
|
|
quickSubView.h();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
QuickSchEdit quickSchEdit = webViewActivity2.C3;
|
|
if (quickSchEdit != null && (quickView2 = quickSchEdit.i) != null && (quickAdapter3 = quickView2.l) != null) {
|
|
list3 = list2;
|
|
quickAdapter3.e0(str4, str5, str6, i3, list3);
|
|
quickView2.F();
|
|
} else {
|
|
list3 = list2;
|
|
}
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null && (quickView = webNestView.Z0) != null && (quickAdapter2 = quickView.l) != null) {
|
|
quickAdapter2.e0(str4, str5, str6, i3, list3);
|
|
quickView.F();
|
|
}
|
|
QuickSearch quickSearch = webViewActivity2.A3;
|
|
if (quickSearch != null && (quickAdapter = quickSearch.z) != null) {
|
|
quickAdapter.e0(str4, str5, str6, i3, list3);
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.F3 = dialogQuickEdit;
|
|
dialogQuickEdit.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.473
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.q4();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:46:0x0076 A[Catch: Exception -> 0x0083, TryCatch #0 {Exception -> 0x0083, blocks: (B:22:0x0047, B:27:0x004c, B:31:0x0055, B:35:0x005a, B:38:0x0065, B:44:0x0071, B:46:0x0076, B:47:0x007b), top: B:21:0x0047 }] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void z0(com.mycompany.app.web.WebViewActivity r15) {
|
|
/*
|
|
com.mycompany.app.web.WebNestFrame r0 = r15.H2
|
|
if (r0 != 0) goto L6
|
|
goto La5
|
|
L6:
|
|
boolean r1 = r0.u
|
|
if (r1 == 0) goto Lb
|
|
goto Lf
|
|
Lb:
|
|
android.animation.ValueAnimator r1 = r0.v
|
|
if (r1 == 0) goto L13
|
|
Lf:
|
|
r0.I()
|
|
return
|
|
L13:
|
|
boolean r1 = r15.J2
|
|
boolean r2 = r15.K2
|
|
boolean r3 = r15.L2
|
|
r4 = 0
|
|
r15.J2 = r4
|
|
r15.K2 = r4
|
|
r15.L2 = r4
|
|
boolean r5 = com.mycompany.app.pref.PrefZtwo.E
|
|
if (r5 == 0) goto L27
|
|
r0.o()
|
|
L27:
|
|
java.util.List r0 = r15.O2
|
|
if (r0 != 0) goto L2d
|
|
goto L83
|
|
L2d:
|
|
int r5 = r0.size()
|
|
if (r5 != 0) goto L34
|
|
goto L83
|
|
L34:
|
|
int r6 = r15.P2
|
|
int r7 = r6 + (-4)
|
|
int r8 = r6 + 4
|
|
if (r7 >= 0) goto L3d
|
|
r7 = r4
|
|
L3d:
|
|
if (r8 <= r5) goto L40
|
|
goto L41
|
|
L40:
|
|
r5 = r8
|
|
L41:
|
|
int r8 = r6 + (-1)
|
|
r9 = 1
|
|
int r6 = r6 + r9
|
|
L45:
|
|
if (r7 >= r5) goto L83
|
|
int r10 = r15.P2 // Catch: java.lang.Exception -> L83
|
|
if (r7 != r10) goto L4c
|
|
goto L80
|
|
L4c:
|
|
java.lang.Object r10 = r0.get(r7) // Catch: java.lang.Exception -> L83
|
|
com.mycompany.app.web.WebTabAdapter$WebTabItem r10 = (com.mycompany.app.web.WebTabAdapter.WebTabItem) r10 // Catch: java.lang.Exception -> L83
|
|
if (r10 != 0) goto L55
|
|
goto L80
|
|
L55:
|
|
com.mycompany.app.web.WebNestFrame r11 = r10.p // Catch: java.lang.Exception -> L83
|
|
if (r11 != 0) goto L5a
|
|
goto L80
|
|
L5a:
|
|
int r11 = r11.getVisibility() // Catch: java.lang.Exception -> L83
|
|
r12 = 8
|
|
if (r11 == r12) goto L64
|
|
r11 = r9
|
|
goto L65
|
|
L64:
|
|
r11 = r4
|
|
L65:
|
|
com.mycompany.app.web.WebNestFrame r13 = r10.p // Catch: java.lang.Exception -> L83
|
|
if (r11 != 0) goto L70
|
|
if (r7 == r8) goto L70
|
|
if (r7 != r6) goto L6e
|
|
goto L70
|
|
L6e:
|
|
r14 = r4
|
|
goto L71
|
|
L70:
|
|
r14 = r9
|
|
L71:
|
|
r13.p(r14) // Catch: java.lang.Exception -> L83
|
|
if (r11 == 0) goto L7b
|
|
com.mycompany.app.web.WebNestFrame r11 = r10.p // Catch: java.lang.Exception -> L83
|
|
r11.setVisibility(r12) // Catch: java.lang.Exception -> L83
|
|
L7b:
|
|
com.mycompany.app.web.WebNestFrame r10 = r10.p // Catch: java.lang.Exception -> L83
|
|
r10.u() // Catch: java.lang.Exception -> L83
|
|
L80:
|
|
int r7 = r7 + 1
|
|
goto L45
|
|
L83:
|
|
com.mycompany.app.web.WebNestFrame r0 = r15.H2
|
|
boolean r4 = r15.U1
|
|
r0.setDarkMode(r4)
|
|
if (r1 == 0) goto L91
|
|
com.mycompany.app.web.WebNestFrame r0 = r15.H2
|
|
r0.n()
|
|
L91:
|
|
if (r2 == 0) goto L96
|
|
r15.j2()
|
|
L96:
|
|
if (r3 == 0) goto La5
|
|
com.mycompany.app.view.MyWebCoord r0 = r15.f2
|
|
if (r0 != 0) goto L9d
|
|
goto La5
|
|
L9d:
|
|
com.mycompany.app.web.WebViewActivity$256 r1 = new com.mycompany.app.web.WebViewActivity$256
|
|
r1.<init>()
|
|
r0.post(r1)
|
|
La5:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.z0(com.mycompany.app.web.WebViewActivity):void");
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x006a */
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x009f */
|
|
/* JADX WARN: Removed duplicated region for block: B:58:0x0109 A[ADDED_TO_REGION] */
|
|
/* JADX WARN: Removed duplicated region for block: B:62:0x00dd A[ADDED_TO_REGION] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void z1(com.mycompany.app.web.WebViewActivity r10, java.lang.String r11, java.lang.String r12, boolean r13, java.lang.String r14, boolean r15) {
|
|
/*
|
|
Method dump skipped, instructions count: 296
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.z1(com.mycompany.app.web.WebViewActivity, java.lang.String, java.lang.String, boolean, java.lang.String, boolean):void");
|
|
}
|
|
|
|
public final void A2(int i) {
|
|
Throwable th;
|
|
WebViewActivity webViewActivity;
|
|
WebTabAdapter.WebTabItem n3 = n3(i);
|
|
if (n3 == null) {
|
|
this.c3 = false;
|
|
return;
|
|
}
|
|
if (!this.yc) {
|
|
this.yc = true;
|
|
P4();
|
|
t6(true);
|
|
synchronized (this.f1) {
|
|
try {
|
|
try {
|
|
WebNestFrame webNestFrame = n3.p;
|
|
WebNestFrame webNestFrame2 = null;
|
|
if (webNestFrame != null) {
|
|
try {
|
|
MainUtil.V6(webNestFrame);
|
|
if (PrefWeb.A) {
|
|
webNestFrame2 = n3.p;
|
|
webNestFrame2.setBackItem(n3);
|
|
} else {
|
|
n3.p.t(null);
|
|
n3.p = null;
|
|
}
|
|
} catch (Throwable th2) {
|
|
th = th2;
|
|
throw th;
|
|
}
|
|
}
|
|
if (PrefWeb.A && webNestFrame2 == null) {
|
|
webViewActivity = this;
|
|
webNestFrame2 = webViewActivity.O2(n3.f19520c, n3.j, n3.l, false);
|
|
webNestFrame2.setBackItem(n3);
|
|
} else {
|
|
webViewActivity = this;
|
|
}
|
|
webViewActivity.Gf = i;
|
|
webViewActivity.Hf = webNestFrame2;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.126
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.126.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = webViewActivity2.Gf;
|
|
WebNestFrame webNestFrame3 = webViewActivity2.Hf;
|
|
webViewActivity2.Hf = null;
|
|
webViewActivity2.v8(i2);
|
|
webViewActivity2.If = i2;
|
|
webViewActivity2.Jf = webNestFrame3;
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.127
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i3 = webViewActivity3.If;
|
|
WebNestFrame webNestFrame4 = webViewActivity3.Jf;
|
|
webViewActivity3.Jf = null;
|
|
List list = webViewActivity3.O2;
|
|
if (list != null && list.size() != 0) {
|
|
webViewActivity3.Kf = i3;
|
|
webViewActivity3.Lf = webNestFrame4;
|
|
webViewActivity3.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.128
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
int i4 = webViewActivity4.Kf;
|
|
WebNestFrame webNestFrame5 = webViewActivity4.Lf;
|
|
webViewActivity4.Lf = null;
|
|
if (webNestFrame5 != null) {
|
|
webViewActivity4.P9(webNestFrame5);
|
|
}
|
|
webViewActivity4.B2(i4);
|
|
}
|
|
});
|
|
} else {
|
|
webViewActivity3.O1(null, WebViewActivity.o3(), false, null);
|
|
if (webNestFrame4 != null) {
|
|
webViewActivity3.P9(webNestFrame4);
|
|
}
|
|
webViewActivity3.B2(i3);
|
|
}
|
|
webViewActivity3.yc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
} catch (Throwable th3) {
|
|
th = th3;
|
|
th = th;
|
|
throw th;
|
|
}
|
|
} catch (Throwable th4) {
|
|
th = th4;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean A3(int i) {
|
|
if (i == 1) {
|
|
ActivityCompat.h(this, new String[]{"android.permission.CAMERA", "android.permission.RECORD_AUDIO"}, 21);
|
|
return true;
|
|
}
|
|
if (i == 2) {
|
|
ActivityCompat.h(this, new String[]{"android.permission.CAMERA"}, 22);
|
|
return true;
|
|
}
|
|
if (i == 3) {
|
|
ActivityCompat.h(this, new String[]{"android.permission.RECORD_AUDIO"}, 23);
|
|
return true;
|
|
}
|
|
if (i == 4) {
|
|
ActivityCompat.h(this, new String[]{"android.permission.ACCESS_FINE_LOCATION"}, 24);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void A4() {
|
|
DialogTabEdit dialogTabEdit = this.J3;
|
|
if (dialogTabEdit != null) {
|
|
dialogTabEdit.dismiss();
|
|
this.J3 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean A5(int i) {
|
|
WebTabAdapter.WebTabItem n3 = n3(i);
|
|
if (n3 == null) {
|
|
return false;
|
|
}
|
|
WebTabAdapter.WebTabItem n32 = n3(i - 1);
|
|
if (n32 != null && n32.e == n3.e) {
|
|
return true;
|
|
}
|
|
WebTabAdapter.WebTabItem n33 = n3(i + 1);
|
|
if (n33 == null || n33.e != n3.e) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void A6() {
|
|
this.Sa = true;
|
|
this.Ta = false;
|
|
this.Xa = null;
|
|
this.Ya = null;
|
|
M6();
|
|
if (this.Ra == null) {
|
|
this.Sa = false;
|
|
} else {
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.608
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (webViewActivity.Ra.isSpeaking()) {
|
|
webViewActivity.Ra.stop();
|
|
}
|
|
webViewActivity.Ra.shutdown();
|
|
} catch (Exception unused) {
|
|
}
|
|
webViewActivity.Ra = null;
|
|
webViewActivity.Sa = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void A7(int i, int i2) {
|
|
MyIconView myIconView = this.R3;
|
|
if (myIconView != null || this.S3 != null) {
|
|
if (PrefPdf.z) {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
boolean z = this.U1;
|
|
if (myIconView == null) {
|
|
i = 0;
|
|
}
|
|
int s0 = MainUtil.s0(i, z);
|
|
if (this.U3 != s0) {
|
|
this.U3 = s0;
|
|
int d4 = MainUtil.d4(s0, false);
|
|
MyIconView myIconView2 = this.R3;
|
|
if (myIconView2 != null) {
|
|
myIconView2.setImageResource(d4);
|
|
this.R3.setAlpha(MyIconView.i(s0));
|
|
this.R3.setBgPreColor(MainUtil.P1(s0, i2));
|
|
}
|
|
MyIconView myIconView3 = this.S3;
|
|
if (myIconView3 != null) {
|
|
myIconView3.setImageResource(d4);
|
|
this.S3.setAlpha(MyIconView.i(s0));
|
|
this.S3.setBgPreColor(MainUtil.P1(s0, i2));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void A8() {
|
|
boolean z;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null && (webNestView.c1 || webNestView.e1)) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
MyBehaviorTop myBehaviorTop = this.m2;
|
|
if (myBehaviorTop != null) {
|
|
myBehaviorTop.f12851c = z;
|
|
}
|
|
MyBehaviorBot myBehaviorBot = this.n2;
|
|
if (myBehaviorBot != null) {
|
|
myBehaviorBot.f12844c = z;
|
|
}
|
|
}
|
|
|
|
public final void A9() {
|
|
boolean z;
|
|
int i;
|
|
if (this.Ca != null && this.I2 != null && !this.G1 && !J5()) {
|
|
D4();
|
|
X4(false);
|
|
boolean z2 = PrefZone.D;
|
|
this.P7 = z2;
|
|
if (z2 && PrefZone.C == 0) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
this.Q7 = z;
|
|
w8(this.P2);
|
|
boolean h0 = h0();
|
|
int i2 = R.style.DialogExpandTheme;
|
|
if (h0) {
|
|
i = 0;
|
|
} else {
|
|
i = i2;
|
|
}
|
|
if (!this.P7) {
|
|
Z9();
|
|
}
|
|
DialogTabMini dialogTabMini = new DialogTabMini(this, this.H2, i, this.O2, h0, this.j1, new DialogTabMain.ListTabListener() { // from class: com.mycompany.app.web.WebViewActivity.527
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void a(int i3, List list) {
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity.this.s8(i3, list);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final int b() {
|
|
MyWebBody myWebBody = WebViewActivity.this.e2;
|
|
if (myWebBody == null) {
|
|
return 0;
|
|
}
|
|
return myWebBody.getRectWidth();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void c(final boolean z3, final List list, final int i3, final boolean z4) {
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.D4();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.527.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i5 = WebViewActivity.Fo;
|
|
boolean z5 = PrefSync.k;
|
|
boolean z6 = z3;
|
|
List list2 = list;
|
|
int i6 = i3;
|
|
boolean z7 = z4;
|
|
if (z5 != z7) {
|
|
if (z6) {
|
|
webViewActivity2.O2 = list2;
|
|
webViewActivity2.P2 = i6;
|
|
}
|
|
if (z7) {
|
|
PrefSync.m = i6;
|
|
} else {
|
|
PrefSync.l = i6;
|
|
}
|
|
webViewActivity2.l8(z7);
|
|
return;
|
|
}
|
|
if (z6) {
|
|
webViewActivity2.s8(i6, list2);
|
|
} else {
|
|
webViewActivity2.c7(i6, false);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void d(final boolean z3, final List list, final int i3, final boolean z4) {
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.D4();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.527.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.k1(WebViewActivity.this, z3, list, i3, z4);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void e() {
|
|
WebTabBarAdapter webTabBarAdapter = WebViewActivity.this.b3;
|
|
if (webTabBarAdapter != null) {
|
|
webTabBarAdapter.g();
|
|
}
|
|
}
|
|
});
|
|
this.O7 = dialogTabMini;
|
|
dialogTabMini.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.528
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
boolean z3;
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.D4();
|
|
boolean z4 = PrefZone.D;
|
|
if (z4 && PrefZone.C == 0) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
if (z4 == webViewActivity.P7 && z3 == webViewActivity.Q7) {
|
|
return;
|
|
}
|
|
if (z4) {
|
|
webViewActivity.A9();
|
|
} else {
|
|
webViewActivity.z9();
|
|
}
|
|
}
|
|
});
|
|
if (!MainConst.e && i == 0) {
|
|
return;
|
|
}
|
|
this.O7.x(t3(), b3(), this.U1, a6(), false);
|
|
}
|
|
}
|
|
|
|
public final void B2(int i) {
|
|
WebTabBarAdapter webTabBarAdapter;
|
|
List list;
|
|
if (this.Y2 != null && (webTabBarAdapter = this.b3) != null && (list = this.O2) != null) {
|
|
this.c3 = true;
|
|
webTabBarAdapter.v(list, this.P2, i, false, new WebTabBarAdapter.TabBarChangeListener() { // from class: com.mycompany.app.web.WebViewActivity.175
|
|
@Override // com.mycompany.app.web.WebTabBarAdapter.TabBarChangeListener
|
|
public final void a() {
|
|
MyRecyclerView myRecyclerView = WebViewActivity.this.Y2;
|
|
if (myRecyclerView == null) {
|
|
return;
|
|
}
|
|
myRecyclerView.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.175.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass175 anonymousClass175 = AnonymousClass175.this;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity.b7(0, true);
|
|
WebViewActivity.this.c3 = false;
|
|
}
|
|
}, 300L);
|
|
}
|
|
});
|
|
} else {
|
|
this.c3 = false;
|
|
}
|
|
}
|
|
|
|
public final void B3(String str, String str2, boolean z) {
|
|
if (!this.Jj) {
|
|
this.Jj = true;
|
|
this.Kj = str;
|
|
this.Lj = str2;
|
|
this.Mj = z;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.349
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str3 = webViewActivity.Kj;
|
|
String str4 = webViewActivity.Lj;
|
|
boolean z2 = webViewActivity.Mj;
|
|
webViewActivity.Kj = null;
|
|
webViewActivity.Lj = null;
|
|
if (TextUtils.isEmpty(str4)) {
|
|
str4 = webViewActivity.A8;
|
|
}
|
|
try {
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) MainImagePreview.class);
|
|
intent.putExtra("EXTRA_PATH", str3);
|
|
intent.putExtra("EXTRA_REFERER", str4);
|
|
intent.putExtra("EXTRA_POPUP", z2);
|
|
webViewActivity.startActivity(intent);
|
|
} catch (Exception unused) {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported);
|
|
}
|
|
webViewActivity.Jj = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void B4() {
|
|
I2();
|
|
DialogTabMain dialogTabMain = this.N7;
|
|
if (dialogTabMain != null) {
|
|
dialogTabMain.dismiss();
|
|
this.N7 = null;
|
|
}
|
|
}
|
|
|
|
public final void B6(boolean z) {
|
|
this.C9 = false;
|
|
this.D9 = false;
|
|
this.F9 = null;
|
|
if (z) {
|
|
MainUtil.W4(this.i1);
|
|
}
|
|
}
|
|
|
|
public final void B7() {
|
|
int i;
|
|
if (!PrefPdf.z) {
|
|
i = t3();
|
|
} else {
|
|
i = 0;
|
|
}
|
|
boolean z = this.U1;
|
|
if (this.R3 == null) {
|
|
i = 0;
|
|
}
|
|
int d4 = MainUtil.d4(MainUtil.s0(i, z), false);
|
|
MyIconView myIconView = this.R3;
|
|
if (myIconView != null) {
|
|
myIconView.setImageResource(d4);
|
|
return;
|
|
}
|
|
MyIconView myIconView2 = this.S3;
|
|
if (myIconView2 != null) {
|
|
myIconView2.setImageResource(d4);
|
|
}
|
|
}
|
|
|
|
public final void B8() {
|
|
if (!this.Hc) {
|
|
this.Hc = true;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
Runnable runnable = this.Co;
|
|
myWebCoord.removeCallbacks(runnable);
|
|
this.f2.post(runnable);
|
|
}
|
|
}
|
|
|
|
public final void B9() {
|
|
if (this.G1 || J5()) {
|
|
return;
|
|
}
|
|
E4();
|
|
DialogTransMsg dialogTransMsg = new DialogTransMsg(this, new DialogSetDesk.SetDeskListener() { // from class: com.mycompany.app.web.WebViewActivity.393
|
|
@Override // com.mycompany.app.dialog.DialogSetDesk.SetDeskListener
|
|
public final void a(boolean z) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.E4();
|
|
if (z) {
|
|
WebViewActivity.Q0(webViewActivity);
|
|
return;
|
|
}
|
|
String s3 = webViewActivity.s3(false);
|
|
if (!URLUtil.isNetworkUrl(s3)) {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
} else {
|
|
webViewActivity.B9 = MainUtil.E4(webViewActivity, null, s3);
|
|
}
|
|
}
|
|
});
|
|
this.F6 = dialogTransMsg;
|
|
dialogTransMsg.setOnCancelListener(new DialogInterface.OnCancelListener() { // from class: com.mycompany.app.web.WebViewActivity.394
|
|
@Override // android.content.DialogInterface.OnCancelListener
|
|
public final void onCancel(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.E4();
|
|
}
|
|
});
|
|
this.F6.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.395
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.E4();
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void C2() {
|
|
MyFindView myFindView = this.C2;
|
|
if (myFindView == null || !TextUtils.isEmpty(myFindView.getFindText())) {
|
|
return;
|
|
}
|
|
I6();
|
|
}
|
|
|
|
public final void C3(String str, String str2) {
|
|
if (!this.Rj) {
|
|
this.Rj = true;
|
|
this.Sj = str;
|
|
this.Tj = str2;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.351
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str3 = webViewActivity.Sj;
|
|
String str4 = webViewActivity.Tj;
|
|
webViewActivity.Sj = null;
|
|
webViewActivity.Tj = null;
|
|
if (webViewActivity.I2 != null) {
|
|
String Z2 = webViewActivity.Z2(str3);
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) MainTxtView.class);
|
|
intent.putExtra("EXTRA_PATH", str3);
|
|
intent.putExtra("EXTRA_REFERER", Z2);
|
|
intent.putExtra("EXTRA_NAME", str4);
|
|
webViewActivity.startActivity(intent);
|
|
}
|
|
webViewActivity.Rj = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void C4() {
|
|
DialogTabMenu dialogTabMenu = this.Z5;
|
|
if (dialogTabMenu != null) {
|
|
dialogTabMenu.dismiss();
|
|
this.Z5 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean C5() {
|
|
WebNestView webNestView;
|
|
if ((this.aa == 0 || !PrefWeb.u) && !this.j9) {
|
|
WebMoveText webMoveText = this.h7;
|
|
if (webMoveText != null && webMoveText.u) {
|
|
if (!webMoveText.z) {
|
|
webMoveText.s();
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
WebAreaText webAreaText = this.i7;
|
|
if (webAreaText != null && webAreaText.w) {
|
|
if (!webAreaText.A) {
|
|
webAreaText.s();
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
WebAreaMenu webAreaMenu = this.j7;
|
|
if (webAreaMenu != null && webAreaMenu.u) {
|
|
if (!webAreaMenu.y) {
|
|
webAreaMenu.c();
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
WebAreaView webAreaView = this.k7;
|
|
if (webAreaView == null || !webAreaView.p) {
|
|
MySnackbar mySnackbar = this.l3;
|
|
if (mySnackbar == null || !mySnackbar.W) {
|
|
MySnackbar mySnackbar2 = this.s3;
|
|
if (mySnackbar2 == null || !mySnackbar2.W) {
|
|
MySnackbar mySnackbar3 = this.t3;
|
|
if (mySnackbar3 == null || !mySnackbar3.W) {
|
|
MySnackbar mySnackbar4 = this.u3;
|
|
if ((mySnackbar4 == null || !mySnackbar4.W) && (webNestView = this.I2) != null && !webNestView.w() && this.C3 == null) {
|
|
WebFltView webFltView = this.Na;
|
|
if (webFltView == null || !webFltView.H) {
|
|
WebTtsView webTtsView = this.Za;
|
|
if (webTtsView == null || !webTtsView.E) {
|
|
WebUpView webUpView = this.P3;
|
|
if ((webUpView == null || !webUpView.z) && !this.Q3) {
|
|
WebDownView webDownView = this.T3;
|
|
if (webDownView == null || !webDownView.H) {
|
|
WebDownView webDownView2 = this.b4;
|
|
if (webDownView2 == null || !webDownView2.H) {
|
|
WebFltView webFltView2 = this.bb;
|
|
if (webFltView2 == null || !webFltView2.H) {
|
|
WebFltView webFltView3 = this.cb;
|
|
if (webFltView3 == null || !webFltView3.H) {
|
|
WebFltView webFltView4 = this.db;
|
|
if (webFltView4 == null || !webFltView4.H) {
|
|
WebFltView webFltView5 = this.Nb;
|
|
if (webFltView5 == null || !webFltView5.H) {
|
|
WebFltView webFltView6 = this.lb;
|
|
if (webFltView6 == null || !webFltView6.H) {
|
|
WebFltView webFltView7 = this.T6;
|
|
if (webFltView7 == null || !webFltView7.H) {
|
|
WebFltView webFltView8 = this.ab;
|
|
if (webFltView8 == null || !webFltView8.H) {
|
|
WebCastView webCastView = this.Ab;
|
|
if (webCastView == null || !webCastView.j) {
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead == null || !dialogViewRead.I1) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void C6() {
|
|
WebLoadView webLoadView = this.x3;
|
|
if (webLoadView != null) {
|
|
webLoadView.b();
|
|
this.x3 = null;
|
|
}
|
|
}
|
|
|
|
public final void C7(int i) {
|
|
if (!this.Hg) {
|
|
this.Hg = true;
|
|
this.Ig = i;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.186
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i2 = webViewActivity.Ig;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
if (i2 == 0 && webViewActivity.R5 != null && webViewActivity.Q5 == 4) {
|
|
webViewActivity.k9(webViewActivity.A8, null);
|
|
} else {
|
|
String downVideo = webNestView.getDownVideo();
|
|
if (TextUtils.isEmpty(downVideo)) {
|
|
if (i2 == 0) {
|
|
MainUtil.e8(webViewActivity, R.string.no_down_video);
|
|
} else {
|
|
MainUtil.e8(webViewActivity, R.string.not_support_video);
|
|
}
|
|
} else if (downVideo.equals("face_dummy")) {
|
|
MainUtil.I(webViewActivity.I2, android.support.v4.media.a.s(i2, "(function(){var nam=null;var eles=document.querySelectorAll(\"button[id='sb_btn_dn1']\");if(eles&&(eles.length>0)){for(var i=0;i<eles.length;i++){var tp=eles[i].getBoundingClientRect().top;if((tp>6)&&(tp<14)){nam=eles[i].name;break;}}}android.onFaceDet(nam,", ");})();").toString(), true);
|
|
} else if (downVideo.equals("insta_dummy")) {
|
|
if (i2 == 0) {
|
|
webViewActivity.k9(downVideo, null);
|
|
} else {
|
|
webViewActivity.M7(downVideo, i2, false);
|
|
}
|
|
} else if (downVideo.equals("twit_dummy")) {
|
|
if (i2 == 0) {
|
|
webViewActivity.k9(downVideo, null);
|
|
} else {
|
|
webViewActivity.M7(downVideo, i2, false);
|
|
}
|
|
} else if (downVideo.equals("vid_dummy")) {
|
|
webViewActivity.C9(i2);
|
|
DialogVideoList dialogVideoList = webViewActivity.X7;
|
|
if (dialogVideoList != null) {
|
|
dialogVideoList.N(1);
|
|
}
|
|
} else if (downVideo.equals("pub_dummy")) {
|
|
webViewActivity.C9(i2);
|
|
DialogVideoList dialogVideoList2 = webViewActivity.X7;
|
|
if (dialogVideoList2 != null) {
|
|
dialogVideoList2.N(2);
|
|
}
|
|
} else if (downVideo.equals("pgf_dummy")) {
|
|
webViewActivity.C9(i2);
|
|
DialogVideoList dialogVideoList3 = webViewActivity.X7;
|
|
if (dialogVideoList3 != null) {
|
|
dialogVideoList3.N(3);
|
|
}
|
|
} else if (downVideo.equals("vkv_dummy")) {
|
|
webViewActivity.C9(i2);
|
|
if (webViewActivity.X7 != null) {
|
|
List list = webViewActivity.Pi;
|
|
if (list != null && !list.isEmpty()) {
|
|
DialogVideoList dialogVideoList4 = webViewActivity.X7;
|
|
List list2 = webViewActivity.Pi;
|
|
dialogVideoList4.g0 = 5;
|
|
dialogVideoList4.C0 = list2;
|
|
dialogVideoList4.D0 = 0;
|
|
} else {
|
|
webViewActivity.X7.P(webViewActivity.f2, new DialogVideoList.VkvListListener() { // from class: com.mycompany.app.web.WebViewActivity.187
|
|
@Override // com.mycompany.app.dialog.DialogVideoList.VkvListListener
|
|
public final void a(List list3) {
|
|
WebViewActivity.this.Pi = list3;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
List<String> downList = webViewActivity.I2.getDownList();
|
|
if (downList != null && downList.size() > 1) {
|
|
webViewActivity.C9(i2);
|
|
} else if (i2 == 0) {
|
|
webViewActivity.k9(downVideo, null);
|
|
} else {
|
|
webViewActivity.M7(downVideo, i2, false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
webViewActivity.Hg = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void C8() {
|
|
CoordinatorLayout.LayoutParams layoutParams;
|
|
int i;
|
|
View view = this.U6;
|
|
if (view != null && (layoutParams = (CoordinatorLayout.LayoutParams) view.getLayoutParams()) != null) {
|
|
if (PrefZone.y == 3) {
|
|
i = 51;
|
|
} else {
|
|
i = 53;
|
|
}
|
|
if (layoutParams.d == i && layoutParams.f611c == i) {
|
|
return;
|
|
}
|
|
layoutParams.d = i;
|
|
layoutParams.f611c = i;
|
|
this.U6.requestLayout();
|
|
}
|
|
}
|
|
|
|
public final void C9(int i) {
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
H4();
|
|
if (this.R5 != null) {
|
|
this.nb = true;
|
|
MainApp.K1 = true;
|
|
}
|
|
boolean h2 = h2();
|
|
this.bk = h2;
|
|
DialogVideoList dialogVideoList = new DialogVideoList(this, this.I2, this.A8, i, h2, new DialogVideoList.VideoListListener() { // from class: com.mycompany.app.web.WebViewActivity.546
|
|
@Override // com.mycompany.app.dialog.DialogVideoList.VideoListListener
|
|
public final void a(String str, int i2, String str2, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null && !TextUtils.isEmpty(str)) {
|
|
webViewActivity.H4();
|
|
if (!webViewActivity.cn) {
|
|
webViewActivity.cn = true;
|
|
webViewActivity.dn = str;
|
|
webViewActivity.en = z;
|
|
webViewActivity.fn = i2;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass548());
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogVideoList.VideoListListener
|
|
public final void b(String str, String str2) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.H4();
|
|
webViewActivity.m8(str, str2);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogVideoList.VideoListListener
|
|
public final void c(String str, String str2, String str3) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.H4();
|
|
webViewActivity.c9(str, str2, str3);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogVideoList.VideoListListener
|
|
public final void d() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView != null) {
|
|
try {
|
|
ArrayList arrayList = webNestView.g0;
|
|
if (arrayList == null || arrayList.isEmpty()) {
|
|
webNestView.f0 = null;
|
|
webNestView.m0 = false;
|
|
webNestView.n0 = false;
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogVideoList.VideoListListener
|
|
public final void e(String str, String str2, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null || TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
if (z) {
|
|
webViewActivity.C3(str, str2);
|
|
} else {
|
|
webViewActivity.u9(str, null, true);
|
|
}
|
|
}
|
|
});
|
|
this.X7 = dialogVideoList;
|
|
dialogVideoList.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.547
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.H4();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.547.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity2.I9(true);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
if (this.R5 != null) {
|
|
this.X7.E = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void D2(int i, boolean z) {
|
|
int pageIndex;
|
|
if (this.H2 != null && this.I2 != null) {
|
|
WebNestView webNestView = this.p3;
|
|
if (webNestView != null) {
|
|
ValueAnimator valueAnimator = webNestView.F0;
|
|
if (valueAnimator != null) {
|
|
valueAnimator.cancel();
|
|
webNestView.F0 = null;
|
|
}
|
|
this.p3 = null;
|
|
}
|
|
WebNestFrame webNestFrame = this.q3;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.m();
|
|
this.q3 = null;
|
|
}
|
|
this.o3 = 0;
|
|
this.r3 = false;
|
|
this.m3 = null;
|
|
this.n3 = null;
|
|
this.I2.s();
|
|
this.H2.A();
|
|
if (i != 4) {
|
|
this.H2.o();
|
|
return;
|
|
}
|
|
if (z) {
|
|
pageIndex = this.H2.getPageIndex() - 1;
|
|
} else {
|
|
pageIndex = this.H2.getPageIndex() + 1;
|
|
}
|
|
WebNestFrame.PageItem y = this.H2.y(pageIndex);
|
|
if (y == null) {
|
|
this.H2.o();
|
|
this.i9 = false;
|
|
if (z) {
|
|
this.I2.goBack();
|
|
return;
|
|
} else {
|
|
this.I2.goForward();
|
|
return;
|
|
}
|
|
}
|
|
P4();
|
|
t6(true);
|
|
r6();
|
|
I3(true);
|
|
WebNestView webNestView2 = y.i;
|
|
if (webNestView2 != null && webNestView2.getVisibility() != 0) {
|
|
if (!TextUtils.isEmpty(webNestView2.C0)) {
|
|
webNestView2.setBackgroundColor(0);
|
|
}
|
|
webNestView2.setVisibility(0);
|
|
}
|
|
this.I2.setWebViewClient(null);
|
|
this.I2.setWebChromeClient(null);
|
|
this.I2.setDownloadListener(null);
|
|
this.I2.setVisibility(8);
|
|
this.ag = y;
|
|
this.bg = pageIndex;
|
|
}
|
|
}
|
|
|
|
public final void D3(String str, String str2, boolean z) {
|
|
if (!this.Nj) {
|
|
this.Nj = true;
|
|
this.Oj = str;
|
|
this.Pj = str2;
|
|
this.Qj = z;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.350
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0039, code lost:
|
|
|
|
if (r4.equals(r1) != false) goto L45;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x007d */
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x007f */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r11 = this;
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
java.lang.String r1 = r0.Oj
|
|
java.lang.String r2 = r0.Pj
|
|
boolean r3 = r0.Qj
|
|
r4 = 0
|
|
r0.Oj = r4
|
|
r0.Pj = r4
|
|
com.mycompany.app.web.WebNestView r5 = r0.I2
|
|
r6 = 0
|
|
if (r5 != 0) goto L14
|
|
goto Ld4
|
|
L14:
|
|
r5 = 1
|
|
if (r3 == 0) goto L3d
|
|
int r7 = android.os.Build.VERSION.SDK_INT
|
|
r8 = 26
|
|
if (r7 >= r8) goto L24
|
|
int r1 = com.mycompany.app.soulbrowser.R.string.pip_info
|
|
com.mycompany.app.main.MainUtil.e8(r0, r1)
|
|
goto Ld4
|
|
L24:
|
|
android.content.Context r7 = r0.i1
|
|
com.mycompany.app.main.MainApp r7 = com.mycompany.app.main.MainApp.p(r7)
|
|
if (r7 != 0) goto L2d
|
|
goto L2f
|
|
L2d:
|
|
java.lang.String r4 = r7.i
|
|
L2f:
|
|
boolean r7 = android.text.TextUtils.isEmpty(r4)
|
|
if (r7 != 0) goto L6f
|
|
boolean r4 = r4.equals(r1)
|
|
if (r4 == 0) goto L6f
|
|
goto Ld4
|
|
L3d:
|
|
java.lang.String r4 = com.mycompany.app.pref.PrefAlbum.K
|
|
boolean r4 = android.text.TextUtils.isEmpty(r4)
|
|
if (r4 != 0) goto L6f
|
|
java.lang.String r4 = com.mycompany.app.pref.PrefAlbum.L
|
|
boolean r4 = android.text.TextUtils.isEmpty(r4)
|
|
if (r4 != 0) goto L6f
|
|
java.lang.String r2 = com.mycompany.app.pref.PrefAlbum.K
|
|
java.lang.String r3 = com.mycompany.app.pref.PrefAlbum.L
|
|
boolean r4 = com.mycompany.app.main.MainUtil.P4(r0, r2, r3, r1, r5)
|
|
if (r4 == 0) goto L58
|
|
goto L6c
|
|
L58:
|
|
r4 = 2
|
|
boolean r4 = com.mycompany.app.main.MainUtil.P4(r0, r2, r3, r1, r4)
|
|
if (r4 == 0) goto L60
|
|
goto L6c
|
|
L60:
|
|
r4 = 3
|
|
boolean r4 = com.mycompany.app.main.MainUtil.P4(r0, r2, r3, r1, r4)
|
|
if (r4 == 0) goto L68
|
|
goto L6c
|
|
L68:
|
|
boolean r5 = com.mycompany.app.main.MainUtil.P4(r0, r2, r3, r1, r6)
|
|
L6c:
|
|
r0.B9 = r5
|
|
goto Ld4
|
|
L6f:
|
|
r0.E9 = r5
|
|
com.mycompany.app.web.WebNestView r4 = r0.I2
|
|
int r4 = r4.n(r2)
|
|
boolean r7 = com.mycompany.app.main.MainUtil.t5(r2)
|
|
if (r7 == 0) goto L7f
|
|
r7 = r2
|
|
goto L93
|
|
L7f:
|
|
com.mycompany.app.web.WebNestView r7 = r0.I2
|
|
if (r7 != 0) goto L86
|
|
java.lang.String r7 = r0.A8
|
|
goto L93
|
|
L86:
|
|
java.lang.String r7 = r7.p(r4)
|
|
boolean r8 = android.text.TextUtils.isEmpty(r7)
|
|
if (r8 != 0) goto L91
|
|
goto L93
|
|
L91:
|
|
java.lang.String r7 = r0.A8
|
|
L93:
|
|
com.mycompany.app.web.WebNestView r8 = r0.I2
|
|
java.lang.String r4 = r8.o(r4)
|
|
android.content.Intent r8 = new android.content.Intent
|
|
android.content.Context r9 = r0.i1
|
|
java.lang.Class<com.mycompany.app.video.VideoActivity> r10 = com.mycompany.app.video.VideoActivity.class
|
|
r8.<init>(r9, r10)
|
|
android.net.Uri r1 = android.net.Uri.parse(r1)
|
|
r8.setData(r1)
|
|
java.lang.String r1 = "EXTRA_ORG"
|
|
r8.putExtra(r1, r2)
|
|
java.lang.String r1 = "EXTRA_PIP"
|
|
r8.putExtra(r1, r3)
|
|
java.lang.String r1 = "EXTRA_POPUP"
|
|
r8.putExtra(r1, r5)
|
|
java.lang.String r1 = "EXTRA_URL"
|
|
r8.putExtra(r1, r7)
|
|
java.lang.String r1 = "EXTRA_HOST"
|
|
java.lang.String r2 = r0.B8
|
|
r8.putExtra(r1, r2)
|
|
java.lang.String r1 = "EXTRA_THUMB"
|
|
r8.putExtra(r1, r4)
|
|
java.lang.String r1 = "EXTRA_INDEX"
|
|
r2 = 0
|
|
int r2 = (int) r2
|
|
r8.putExtra(r1, r2)
|
|
r0.startActivity(r8)
|
|
Ld4:
|
|
r0.Nj = r6
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass350.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void D4() {
|
|
I2();
|
|
DialogTabMini dialogTabMini = this.O7;
|
|
if (dialogTabMini != null) {
|
|
dialogTabMini.dismiss();
|
|
this.O7 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean D5() {
|
|
WebNestView webNestView;
|
|
if (!PrefSync.j && (webNestView = this.I2) != null && this.U1 && !webNestView.w() && this.f6 == null && this.p6 == null && !this.j9 && !this.L3 && this.C3 == null && this.G3 == null && this.R5 == null) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void D6() {
|
|
this.y7 = null;
|
|
this.z7 = null;
|
|
this.A7 = null;
|
|
this.B7 = 0;
|
|
this.C7 = 0;
|
|
}
|
|
|
|
public final void D7(String str, String str2, String str3, ArrayList arrayList) {
|
|
WebNestView webNestView;
|
|
boolean z = false;
|
|
if (arrayList != null) {
|
|
int size = arrayList.size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
Object obj = arrayList.get(i);
|
|
i++;
|
|
String str4 = (String) obj;
|
|
WebNestView webNestView2 = this.I2;
|
|
if (webNestView2 != null) {
|
|
if (webNestView2.O(this.A8, str4, str2, str3)) {
|
|
z = true;
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
} else if (str != null && (webNestView = this.I2) != null) {
|
|
if (webNestView.O(this.A8, str, str2, str3)) {
|
|
z = true;
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
if (!z) {
|
|
this.W3 = true;
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.c();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.189
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.W3 = true;
|
|
WebVideoFrame webVideoFrame2 = webViewActivity.R5;
|
|
if (webVideoFrame2 != null) {
|
|
webVideoFrame2.setVideoDown(true);
|
|
}
|
|
if (!webViewActivity.P5() && !webViewActivity.G8) {
|
|
boolean z2 = false;
|
|
if (PrefZone.n == 1 && webViewActivity.R3 != null) {
|
|
webViewActivity.I2.setDownNoti(true);
|
|
webViewActivity.R3.x(true, true);
|
|
webViewActivity.R3.setVisibility(0);
|
|
}
|
|
if (PrefZone.n == 2 && webViewActivity.S3 != null) {
|
|
webViewActivity.I2.setDownNoti(true);
|
|
webViewActivity.S3.x(true, true);
|
|
webViewActivity.S3.setVisibility(0);
|
|
}
|
|
if (PrefZone.n == 3 && webViewActivity.T3 != null) {
|
|
int i2 = webViewActivity.V3;
|
|
if (i2 < 2) {
|
|
webViewActivity.V3 = i2 + 1;
|
|
z2 = true;
|
|
}
|
|
WebNestView webNestView3 = webViewActivity.I2;
|
|
if (webNestView3.q0) {
|
|
webNestView3.setDownNoti(true);
|
|
webViewActivity.T3.p(true);
|
|
z2 = true;
|
|
}
|
|
if (z2) {
|
|
if (webViewActivity.x5()) {
|
|
webViewActivity.T3.r();
|
|
} else {
|
|
webViewActivity.T3.s();
|
|
}
|
|
}
|
|
}
|
|
webViewActivity.j7(true);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void D8(boolean z) {
|
|
int i;
|
|
int i2;
|
|
int i3;
|
|
if (z) {
|
|
g7(K2());
|
|
} else {
|
|
boolean X5 = X5();
|
|
int i4 = 0;
|
|
if (!PrefPdf.z) {
|
|
i = t3();
|
|
i2 = u3();
|
|
} else {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
int s0 = MainUtil.s0(i, this.U1);
|
|
MyIconView myIconView = myBarView.k;
|
|
if (myIconView != null) {
|
|
myIconView.t(this, X5, s0);
|
|
if (X5) {
|
|
i3 = MainUtil.P1(s0, i2);
|
|
} else {
|
|
i3 = 0;
|
|
}
|
|
myIconView.setTrnsPreColor(i3);
|
|
}
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
int s02 = MainUtil.s0(0, this.U1);
|
|
MyIconView myIconView2 = myBarView2.k;
|
|
if (myIconView2 != null) {
|
|
myIconView2.t(this, X5, s02);
|
|
if (X5) {
|
|
i4 = MainUtil.P1(s02, 0);
|
|
}
|
|
myIconView2.setTrnsPreColor(i4);
|
|
}
|
|
}
|
|
}
|
|
this.El = z;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.403
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z2;
|
|
MyWebBody myWebBody;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
boolean z3 = webViewActivity.El;
|
|
if (!webViewActivity.Y5()) {
|
|
z2 = false;
|
|
} else {
|
|
z2 = PrefAlbum.w;
|
|
}
|
|
if (z2) {
|
|
if (webViewActivity.T6 == null && webViewActivity.e2 != null) {
|
|
try {
|
|
WebFltView webFltView = new WebFltView(webViewActivity, 3);
|
|
webViewActivity.T6 = webFltView;
|
|
webFltView.q();
|
|
webViewActivity.T6.setVisibility(8);
|
|
webViewActivity.T6.setFltListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.408
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i5) {
|
|
int i6 = WebViewActivity.Fo;
|
|
WebViewActivity.this.Q9(view);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity.this.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody2 = webViewActivity.e2;
|
|
WebFltView webFltView2 = webViewActivity.T6;
|
|
int i5 = MainApp.g1;
|
|
myWebBody2.addView(webFltView2, i5, i5);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
webViewActivity.S9(true);
|
|
} else if (z3) {
|
|
WebFltView webFltView3 = webViewActivity.T6;
|
|
if (webFltView3 != null && (myWebBody = webViewActivity.e2) != null) {
|
|
if (PrefAlbum.w && PrefAlbum.u != 0) {
|
|
webFltView3.m(false);
|
|
} else {
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.409
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebFltView webFltView4 = webViewActivity2.T6;
|
|
if (webFltView4 != null) {
|
|
webFltView4.o();
|
|
MyWebBody myWebBody3 = webViewActivity2.e2;
|
|
if (myWebBody3 != null) {
|
|
myWebBody3.removeView(webViewActivity2.T6);
|
|
}
|
|
webViewActivity2.T6 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
WebFltView webFltView4 = webViewActivity.T6;
|
|
if (webFltView4 != null) {
|
|
webFltView4.m(false);
|
|
}
|
|
}
|
|
webViewActivity.Fl = z3;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.404
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z4;
|
|
MyWebCoord myWebCoord3;
|
|
int i6;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z5 = webViewActivity2.Fl;
|
|
if (!webViewActivity2.Y5() || webViewActivity2.H6 != 3) {
|
|
z4 = false;
|
|
} else {
|
|
z4 = webViewActivity2.L6;
|
|
}
|
|
boolean z6 = true;
|
|
if (z4) {
|
|
if (webViewActivity2.U6 == null && webViewActivity2.f2 != null) {
|
|
int round = Math.round(MainUtil.G(webViewActivity2.i1, 130.0f));
|
|
int round2 = Math.round(MainUtil.G(webViewActivity2.i1, 24.0f));
|
|
if (PrefZone.y == 3) {
|
|
i6 = 51;
|
|
} else {
|
|
i6 = 53;
|
|
}
|
|
CoordinatorLayout.LayoutParams layoutParams = new CoordinatorLayout.LayoutParams(round, round2);
|
|
int i7 = R.id.web_bot_view;
|
|
layoutParams.l = null;
|
|
layoutParams.k = null;
|
|
layoutParams.f = i7;
|
|
layoutParams.d = i6;
|
|
layoutParams.f611c = i6;
|
|
try {
|
|
View view = new View(webViewActivity2);
|
|
webViewActivity2.U6 = view;
|
|
if (MainApp.K1) {
|
|
view.setBackgroundResource(R.drawable.trans_logo_short_back_white);
|
|
} else {
|
|
view.setBackgroundResource(R.drawable.trans_logo_short_back_color);
|
|
}
|
|
webViewActivity2.f2.addView(webViewActivity2.U6, layoutParams);
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
webViewActivity2.R9(true);
|
|
} else if (z5) {
|
|
if (webViewActivity2.U6 != null && (myWebCoord3 = webViewActivity2.f2) != null) {
|
|
int i8 = PrefAlbum.u;
|
|
if (i8 != 1 && i8 != 2) {
|
|
z6 = false;
|
|
}
|
|
if (z6) {
|
|
webViewActivity2.R9(false);
|
|
} else {
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.410
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
View view2 = webViewActivity3.U6;
|
|
if (view2 != null) {
|
|
MyWebCoord myWebCoord4 = webViewActivity3.f2;
|
|
if (myWebCoord4 != null) {
|
|
myWebCoord4.removeView(view2);
|
|
}
|
|
webViewActivity3.U6 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
webViewActivity2.R9(false);
|
|
}
|
|
MyWebCoord myWebCoord4 = webViewActivity2.f2;
|
|
if (myWebCoord4 != null) {
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.405
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebTransControl webTransControl = webViewActivity3.V6;
|
|
if (webTransControl == null) {
|
|
return;
|
|
}
|
|
webTransControl.f(webViewActivity3.M6, webViewActivity3.H6, webViewActivity3.L6);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void D9(View view, boolean z) {
|
|
if (!this.G1 && !J5() && !this.Y3) {
|
|
I4();
|
|
if (view == null) {
|
|
return;
|
|
}
|
|
this.Y3 = false;
|
|
this.Gg = z;
|
|
if (z) {
|
|
WebDownView webDownView = this.b4;
|
|
if (webDownView != null) {
|
|
webDownView.setHideBlocked(true);
|
|
}
|
|
} else {
|
|
WebDownView webDownView2 = this.T3;
|
|
if (webDownView2 != null) {
|
|
webDownView2.setHideBlocked(true);
|
|
}
|
|
}
|
|
this.X3 = new DialogVideoMenu(this, this.e2, view, z, this.j1, new DialogVideoMenu.VideoMenuListener() { // from class: com.mycompany.app.web.WebViewActivity.185
|
|
@Override // com.mycompany.app.dialog.DialogVideoMenu.VideoMenuListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Y3 = false;
|
|
webViewActivity.I4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogVideoMenu.VideoMenuListener
|
|
public final void b(int i) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.I4();
|
|
if (webViewActivity.Gg) {
|
|
webViewActivity.b9(i);
|
|
} else {
|
|
webViewActivity.C7(i);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void E2() {
|
|
WebNestFrame webNestFrame;
|
|
WebNestView webNestView;
|
|
WebNestFrame.PageItem pageItem = this.ag;
|
|
int i = this.bg;
|
|
this.ag = null;
|
|
if (pageItem != null && (webNestFrame = this.H2) != null && (webNestView = this.I2) != null) {
|
|
boolean z = webNestView.C;
|
|
WebNestView webNestView2 = pageItem.i;
|
|
if (webNestView2 == null && (webNestView2 = webNestFrame.x(i)) != null && !TextUtils.isEmpty(webNestView2.C0)) {
|
|
webNestView2.T(t3(), u3());
|
|
}
|
|
if (webNestView2 != null) {
|
|
this.I2 = webNestView2;
|
|
this.H2.setPageIndex(i);
|
|
}
|
|
if (this.j1) {
|
|
this.I2.s();
|
|
this.H2.A();
|
|
}
|
|
String url = this.I2.getUrl();
|
|
if (TextUtils.isEmpty(url)) {
|
|
url = this.I2.getValidPageUrl();
|
|
}
|
|
if (TextUtils.isEmpty(url)) {
|
|
WebTabAdapter.WebTabItem n3 = n3(this.P2);
|
|
if (n3 != null) {
|
|
url = n3.j;
|
|
}
|
|
} else {
|
|
WebTabAdapter.WebTabItem n32 = n3(this.P2);
|
|
if (n32 != null) {
|
|
n32.j = url;
|
|
n32.k = v3(this.I2, url);
|
|
n32.l = z;
|
|
ga(n32);
|
|
}
|
|
}
|
|
this.cg = z;
|
|
this.dg = url;
|
|
}
|
|
}
|
|
|
|
public final void E3(int i) {
|
|
if (i == 24) {
|
|
if (this.A7 != null && !TextUtils.isEmpty(this.z7)) {
|
|
this.A7.invoke(this.z7, true, false);
|
|
}
|
|
} else {
|
|
PermissionRequest permissionRequest = this.y7;
|
|
if (permissionRequest != null) {
|
|
permissionRequest.grant(permissionRequest.getResources());
|
|
}
|
|
}
|
|
String str = this.B8;
|
|
int i2 = this.B7;
|
|
int i3 = this.C7;
|
|
this.Nm = str;
|
|
this.Om = i2;
|
|
this.Pm = i3;
|
|
m0(new AnonymousClass494());
|
|
}
|
|
|
|
public final void E4() {
|
|
DialogTransMsg dialogTransMsg = this.F6;
|
|
if (dialogTransMsg != null) {
|
|
dialogTransMsg.dismiss();
|
|
this.F6 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean E5() {
|
|
WebNestView webNestView = this.m3;
|
|
if (webNestView != null) {
|
|
if (webNestView.D0 > 0.0f) {
|
|
return true;
|
|
}
|
|
} else {
|
|
WebNestFrame webNestFrame = this.n3;
|
|
if (webNestFrame != null && webNestFrame.x > 0.0f) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void E6() {
|
|
Handler handler;
|
|
if (this.I2 != null) {
|
|
F6();
|
|
if (TextUtils.isEmpty(this.I2.getUrl())) {
|
|
a8(100);
|
|
}
|
|
if (this.U1 && PrefZtwo.J && this.lb != null && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.220
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.U1 && PrefZtwo.J && webViewActivity.lb != null) {
|
|
WebViewActivity.J0(webViewActivity);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x0097 */
|
|
/* JADX WARN: Removed duplicated region for block: B:44:0x00ab */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void E7(boolean r11) {
|
|
/*
|
|
Method dump skipped, instructions count: 497
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.E7(boolean):void");
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:27:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x002d */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void E8() {
|
|
/*
|
|
r4 = this;
|
|
java.lang.String r0 = com.mycompany.app.pref.PrefTts.k
|
|
boolean r0 = android.text.TextUtils.isEmpty(r0)
|
|
r1 = 0
|
|
if (r0 != 0) goto Lf
|
|
java.lang.String r0 = com.mycompany.app.pref.PrefTts.k
|
|
Lb:
|
|
r3 = r1
|
|
r1 = r0
|
|
r0 = r3
|
|
goto L24
|
|
Lf:
|
|
java.lang.String r0 = r4.Xa
|
|
boolean r0 = android.text.TextUtils.isEmpty(r0)
|
|
if (r0 != 0) goto L1a
|
|
java.lang.String r0 = r4.Xa
|
|
goto Lb
|
|
L1a:
|
|
java.util.Locale r0 = com.mycompany.app.main.MainApp.j()
|
|
if (r0 == 0) goto L24
|
|
java.lang.String r1 = r0.toString()
|
|
L24:
|
|
java.lang.String r2 = r4.Ya
|
|
boolean r2 = com.mycompany.app.main.MainUtil.q5(r2, r1)
|
|
if (r2 == 0) goto L2d
|
|
goto L52
|
|
L2d:
|
|
r4.Ya = r1
|
|
if (r0 != 0) goto L35
|
|
java.util.Locale r0 = com.mycompany.app.main.MainUtil.O3(r1)
|
|
L35:
|
|
if (r0 != 0) goto L3c
|
|
java.util.Locale r0 = com.mycompany.app.main.MainApp.j()
|
|
goto L4d
|
|
L3c:
|
|
android.speech.tts.TextToSpeech r1 = r4.Ra // Catch: java.lang.Exception -> L43
|
|
int r1 = r1.isLanguageAvailable(r0) // Catch: java.lang.Exception -> L43
|
|
goto L44
|
|
L43:
|
|
r1 = -2
|
|
L44:
|
|
if (r1 == 0) goto L4d
|
|
r2 = 1
|
|
if (r1 == r2) goto L4d
|
|
java.util.Locale r0 = com.mycompany.app.main.MainApp.j()
|
|
L4d:
|
|
android.speech.tts.TextToSpeech r1 = r4.Ra // Catch: java.lang.Exception -> L52
|
|
r1.setLanguage(r0) // Catch: java.lang.Exception -> L52
|
|
L52:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.E8():void");
|
|
}
|
|
|
|
public final void E9(String str, QuickAdapter.QuickItem quickItem, boolean z) {
|
|
String v3;
|
|
boolean z2;
|
|
WebNestView webNestView;
|
|
if (this.I2 != null && !this.G1 && !J5() && !this.n8 && !this.nn) {
|
|
boolean z3 = false;
|
|
if (quickItem != null) {
|
|
str = quickItem.d;
|
|
if (TextUtils.isEmpty(str)) {
|
|
str = quickItem.e;
|
|
}
|
|
v3 = quickItem.f;
|
|
z2 = true;
|
|
} else {
|
|
v3 = v3(this.I2, str);
|
|
z2 = false;
|
|
}
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead == null || !dialogViewRead.Z(str, z2, z)) {
|
|
DialogViewRead dialogViewRead2 = this.m8;
|
|
this.m8 = null;
|
|
if (dialogViewRead2 != null) {
|
|
dialogViewRead2.f0(null);
|
|
}
|
|
this.n8 = false;
|
|
this.nn = true;
|
|
ca();
|
|
G3();
|
|
if (!z && (webNestView = this.I2) != null) {
|
|
webNestView.C();
|
|
}
|
|
int i = PrefMain.o;
|
|
if (i < 100) {
|
|
int i2 = i + 1;
|
|
PrefMain.o = i2;
|
|
PrefSet.f(this.i1, 5, i2, "mShowAdsNews");
|
|
} else {
|
|
z3 = h2();
|
|
}
|
|
this.m5 = this.M6;
|
|
this.on = str;
|
|
this.pn = v3;
|
|
this.qn = quickItem;
|
|
this.rn = z;
|
|
this.sn = z3;
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.578
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str2 = webViewActivity.on;
|
|
String str3 = webViewActivity.pn;
|
|
QuickAdapter.QuickItem quickItem2 = webViewActivity.qn;
|
|
boolean z4 = webViewActivity.rn;
|
|
boolean z5 = webViewActivity.sn;
|
|
webViewActivity.nn = false;
|
|
webViewActivity.on = null;
|
|
webViewActivity.pn = null;
|
|
webViewActivity.qn = null;
|
|
if (webViewActivity.m8 == null && webViewActivity.f2 != null) {
|
|
DialogViewRead dialogViewRead3 = new DialogViewRead(webViewActivity);
|
|
webViewActivity.m8 = dialogViewRead3;
|
|
dialogViewRead3.X(webViewActivity, webViewActivity.e2, str2, str3, quickItem2, z4, webViewActivity.c9, webViewActivity.d9, webViewActivity.e9, z5, new DialogViewRead.DialogReadListener() { // from class: com.mycompany.app.web.WebViewActivity.579
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final WebNestView a() {
|
|
return WebViewActivity.this.I2;
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final void b(final String str4) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogViewRead dialogViewRead4 = webViewActivity2.m8;
|
|
webViewActivity2.m8 = null;
|
|
if (dialogViewRead4 != null && !webViewActivity2.n8) {
|
|
webViewActivity2.n8 = dialogViewRead4.J();
|
|
}
|
|
webViewActivity2.nn = false;
|
|
webViewActivity2.m5 = null;
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.579.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i4 = WebViewActivity.Fo;
|
|
webViewActivity3.F1(null, str4, true, null);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final void c(String str4) {
|
|
QuickView quickView;
|
|
QuickAdapter quickAdapter;
|
|
MyManagerGrid myManagerGrid;
|
|
QuickAdapter.QuickHolder J;
|
|
QuickAdapter.QuickItem E;
|
|
WebNestView webNestView2 = WebViewActivity.this.I2;
|
|
if (webNestView2 != null && (quickView = webNestView2.Z0) != null && (quickAdapter = quickView.l) != null && !TextUtils.isEmpty(str4) && (myManagerGrid = quickAdapter.k) != null) {
|
|
int V0 = myManagerGrid.V0() + 1;
|
|
for (int U0 = myManagerGrid.U0(); U0 < V0; U0++) {
|
|
View s = myManagerGrid.s(U0);
|
|
if (s != null && (J = QuickAdapter.J(s)) != null && J.f1589a != null && (E = quickAdapter.E(J.c())) != null && E.f17362a == 7 && str4.equals(E.d)) {
|
|
quickAdapter.Z(E, J.x, U0);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final void d() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.ca();
|
|
webViewActivity2.G3();
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
webNestView2.C();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final void e(final int i3, final int i4, final int i5) {
|
|
MyWebCoord myWebCoord;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
webNestView2.onResume();
|
|
}
|
|
if ((webViewActivity2.c9 == i3 && webViewActivity2.d9 == i4 && webViewActivity2.e9 == i5) || (myWebCoord = webViewActivity2.f2) == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.579.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass579 anonymousClass579 = AnonymousClass579.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i6 = webViewActivity3.c9;
|
|
int i7 = i4;
|
|
int i8 = i3;
|
|
if (i6 != i8 || webViewActivity3.d9 != i7) {
|
|
webViewActivity3.c9 = i8;
|
|
webViewActivity3.d9 = i7;
|
|
webViewActivity3.o8(webViewActivity3.t3(), WebViewActivity.this.b3());
|
|
}
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.e9 != i5) {
|
|
webViewActivity4.V8();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final void f(WebView webView, String str4) {
|
|
WebViewActivity.g1(WebViewActivity.this, webView, str4);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final void g() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogViewRead dialogViewRead4 = webViewActivity2.m8;
|
|
webViewActivity2.m8 = null;
|
|
if (dialogViewRead4 != null) {
|
|
dialogViewRead4.f0(null);
|
|
}
|
|
webViewActivity2.n8 = false;
|
|
webViewActivity2.nn = false;
|
|
webViewActivity2.s2();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogViewRead.DialogReadListener
|
|
public final boolean h() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Ua) {
|
|
webViewActivity2.ca();
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void F1(WebNestFrame webNestFrame, String str, boolean z, TabAddListener tabAddListener) {
|
|
X1(webNestFrame, str, z, A5(this.P2), PrefTts.v, tabAddListener);
|
|
}
|
|
|
|
public final void F2() {
|
|
WebNestView webNestView;
|
|
boolean z = this.eg;
|
|
String str = this.fg;
|
|
this.fg = null;
|
|
if (this.H2 != null && (webNestView = this.I2) != null) {
|
|
webNestView.onResume();
|
|
this.I2.setVisibility(0);
|
|
WebNestView webNestView2 = this.I2;
|
|
if (webNestView2.C != z) {
|
|
boolean B = webNestView2.B();
|
|
webNestView2.C = z;
|
|
if (z) {
|
|
MainUtil.Q7(webNestView2.getSettings(), MainUtil.F0(webNestView2.getContext()));
|
|
} else {
|
|
webNestView2.K(webNestView2.getContext(), PrefZtwo.p, null);
|
|
}
|
|
if (B != webNestView2.B()) {
|
|
String url = webNestView2.getUrl();
|
|
MainUtil.U7(webNestView2, url, MainUtil.J1(url, true));
|
|
}
|
|
webNestView2.F();
|
|
}
|
|
this.H2.o();
|
|
T8(str, true, true);
|
|
u7(true);
|
|
this.H2.n();
|
|
this.i9 = false;
|
|
}
|
|
}
|
|
|
|
public final boolean F3() {
|
|
int i;
|
|
int i2;
|
|
if (PrefZone.K == 0 || PrefZone.L == 0 || (i = PrefZone.M) == 0 || (i2 = PrefZone.N) == 0 || PrefZone.O == 0) {
|
|
return true;
|
|
}
|
|
if (PrefWeb.u) {
|
|
return false;
|
|
}
|
|
if ((i == 2 || i2 == 2) && i0()) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void F4() {
|
|
DialogTransLang dialogTransLang = this.E6;
|
|
if (dialogTransLang != null) {
|
|
dialogTransLang.dismiss();
|
|
this.E6 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean F5() {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView == null) {
|
|
return false;
|
|
}
|
|
if (this.U1) {
|
|
return true;
|
|
}
|
|
return "file:///android_asset/shortcut.html".equals(webNestView.getUrl());
|
|
}
|
|
|
|
public final void F6() {
|
|
if (this.I2 != null) {
|
|
this.Q6 = false;
|
|
r6();
|
|
I3(true);
|
|
ca();
|
|
if (this.I2.F() || TextUtils.isEmpty(this.A8)) {
|
|
return;
|
|
}
|
|
this.I2.z(this.A8, null);
|
|
}
|
|
}
|
|
|
|
public final void F7() {
|
|
boolean z;
|
|
int i;
|
|
int a3;
|
|
int i2;
|
|
int a32;
|
|
int i3;
|
|
if (this.s2 != null && this.f2 != null) {
|
|
if (this.z2 == 0) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
MyBarView myBarView = this.p2;
|
|
if (myBarView != null && myBarView.u) {
|
|
this.z2 = 2;
|
|
} else {
|
|
MyBarView myBarView2 = this.o2;
|
|
if (myBarView2 != null && myBarView2.u) {
|
|
if (PrefPdf.z) {
|
|
this.z2 = 2;
|
|
} else {
|
|
this.z2 = 1;
|
|
}
|
|
} else if (MainUtil.R4()) {
|
|
this.z2 = 2;
|
|
} else {
|
|
this.z2 = 1;
|
|
}
|
|
}
|
|
if (this.A3 != null) {
|
|
if (O5()) {
|
|
i3 = a3(true);
|
|
a32 = 0;
|
|
} else {
|
|
a32 = a3(false);
|
|
i3 = 0;
|
|
}
|
|
if (MainConst.d) {
|
|
a32 += this.O3;
|
|
}
|
|
QuickSearch quickSearch = this.A3;
|
|
if (quickSearch.M != i3 || quickSearch.N != a32) {
|
|
quickSearch.M = i3;
|
|
quickSearch.N = a32;
|
|
quickSearch.setPadding(quickSearch.J, i3, quickSearch.K, quickSearch.L + a32);
|
|
quickSearch.l();
|
|
}
|
|
}
|
|
if (this.x2 != null) {
|
|
if (O5()) {
|
|
i = 0;
|
|
} else {
|
|
i = this.O3;
|
|
}
|
|
if (this.s2.getPaddingBottom() != i) {
|
|
this.s2.setPadding(0, 0, 0, i);
|
|
}
|
|
if (O5()) {
|
|
a3 = a3(true);
|
|
i2 = 48;
|
|
} else {
|
|
a3 = a3(false);
|
|
if (MainConst.d) {
|
|
a3 += this.O3;
|
|
}
|
|
i2 = 80;
|
|
}
|
|
if (z) {
|
|
CoordinatorLayout.LayoutParams layoutParams = new CoordinatorLayout.LayoutParams(-1, a3);
|
|
((ViewGroup.MarginLayoutParams) layoutParams).height = a3;
|
|
layoutParams.f611c = i2;
|
|
this.f2.addView(this.s2, layoutParams);
|
|
return;
|
|
}
|
|
CoordinatorLayout.LayoutParams layoutParams2 = (CoordinatorLayout.LayoutParams) this.s2.getLayoutParams();
|
|
if (layoutParams2 != null) {
|
|
if (((ViewGroup.MarginLayoutParams) layoutParams2).height != a3 || layoutParams2.f611c != i2) {
|
|
((ViewGroup.MarginLayoutParams) layoutParams2).height = a3;
|
|
layoutParams2.f611c = i2;
|
|
this.s2.requestLayout();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void F8() {
|
|
WebUpView webUpView = this.P3;
|
|
if (webUpView != null) {
|
|
if (webUpView.getVisibility() != 0) {
|
|
if (this.K9 != 0) {
|
|
return;
|
|
} else {
|
|
this.P3.setAlpha(1.0f);
|
|
}
|
|
}
|
|
WebUpView webUpView2 = this.P3;
|
|
webUpView2.f();
|
|
webUpView2.setVisibility(0);
|
|
}
|
|
}
|
|
|
|
public final void F9() {
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
DialogWebBookEdit dialogWebBookEdit = this.i6;
|
|
if (dialogWebBookEdit != null) {
|
|
dialogWebBookEdit.dismiss();
|
|
this.i6 = null;
|
|
}
|
|
String s3 = s3(true);
|
|
if (TextUtils.isEmpty(s3)) {
|
|
return;
|
|
}
|
|
DialogWebBookEdit dialogWebBookEdit2 = new DialogWebBookEdit(this, null, s3, v3(this.I2, s3), new DialogWebBookEdit.BookEditListener() { // from class: com.mycompany.app.web.WebViewActivity.329
|
|
@Override // com.mycompany.app.dialog.DialogWebBookEdit.BookEditListener
|
|
public final void a(long j, String str, String str2) {
|
|
int i = R.string.added;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MainUtil.e8(webViewActivity, i);
|
|
webViewActivity.h7(true);
|
|
MainUtil.l8(webViewActivity.i1, false);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebBookEdit.BookEditListener
|
|
public final Bitmap getIcon() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return null;
|
|
}
|
|
return webNestView.getFavicon();
|
|
}
|
|
});
|
|
this.i6 = dialogWebBookEdit2;
|
|
dialogWebBookEdit2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.330
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogWebBookEdit dialogWebBookEdit3 = webViewActivity.i6;
|
|
if (dialogWebBookEdit3 != null) {
|
|
dialogWebBookEdit3.dismiss();
|
|
webViewActivity.i6 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void G1(String str) {
|
|
if (this.f2 != null && !this.uc) {
|
|
this.uc = true;
|
|
H2();
|
|
boolean equals = "file:///android_asset/shortcut.html".equals(str);
|
|
i6();
|
|
WebNestView webNestView = new WebNestView(this);
|
|
K8(webNestView);
|
|
webNestView.a1 = equals;
|
|
webNestView.setBackTab(true);
|
|
webNestView.setDeskMode(false);
|
|
WebNestFrame webNestFrame = new WebNestFrame(this);
|
|
webNestFrame.E(equals);
|
|
webNestFrame.k(webNestView, 0, 0);
|
|
webNestView.setScrollPos(PrefZone.x);
|
|
webNestView.setWebViewClient(new WebViewClient());
|
|
webNestView.setBackListener(new WebNestView.WebBackListener() { // from class: com.mycompany.app.web.WebViewActivity.111
|
|
@Override // com.mycompany.app.web.WebNestView.WebBackListener
|
|
public final void a() {
|
|
boolean z = PrefPdf.L;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!z && (!webViewActivity.H8 || webViewActivity.J8)) {
|
|
webViewActivity.R6();
|
|
} else {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.111.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.S6(true);
|
|
if (webViewActivity2.H8 && !webViewActivity2.J8) {
|
|
Handler handler = webViewActivity2.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass235());
|
|
return;
|
|
}
|
|
webViewActivity2.R6();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
this.mf = webNestView;
|
|
this.nf = webNestFrame;
|
|
this.of = str;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass112());
|
|
}
|
|
}
|
|
|
|
public final void G2(int i, boolean z) {
|
|
int i2;
|
|
WebNestFrame webNestFrame = this.U2;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.m();
|
|
this.U2 = null;
|
|
}
|
|
WebNestFrame webNestFrame2 = this.V2;
|
|
if (webNestFrame2 != null) {
|
|
webNestFrame2.m();
|
|
this.V2 = null;
|
|
}
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.B();
|
|
}
|
|
int i3 = 0;
|
|
this.T2 = 0;
|
|
this.W2 = false;
|
|
this.Q2 = null;
|
|
this.R2 = null;
|
|
this.S2 = false;
|
|
if (i == 2) {
|
|
if (this.I2 != null && !this.Ac) {
|
|
this.Ac = true;
|
|
WebTabAdapter.WebTabItem n3 = n3(this.P2);
|
|
if (n3 == null) {
|
|
this.Ac = false;
|
|
return;
|
|
}
|
|
P4();
|
|
t6(true);
|
|
r6();
|
|
I3(true);
|
|
this.zf = n3;
|
|
MyWebCoord myWebCoord2 = this.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.118
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem = webViewActivity.zf;
|
|
webViewActivity.zf = null;
|
|
if (webTabItem != null && webViewActivity.H2 != null) {
|
|
WebViewActivity.T7(webViewActivity.I2);
|
|
webViewActivity.Af = webTabItem;
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.119
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem2 = webViewActivity2.Af;
|
|
webViewActivity2.Af = null;
|
|
if (webTabItem2 != null && webViewActivity2.H2 != null) {
|
|
WebViewActivity.U7(webViewActivity2.I2);
|
|
webViewActivity2.Bf = webTabItem2;
|
|
MyWebCoord myWebCoord4 = webViewActivity2.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.120
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame webNestFrame3;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem3 = webViewActivity3.Bf;
|
|
WebNestFrame webNestFrame4 = null;
|
|
webViewActivity3.Bf = null;
|
|
if (webTabItem3 != null && (webNestFrame3 = webViewActivity3.H2) != null) {
|
|
MainUtil.V6(webNestFrame3);
|
|
if (PrefWeb.A) {
|
|
webNestFrame4 = webViewActivity3.H2;
|
|
webNestFrame4.setBackItem(webTabItem3);
|
|
} else {
|
|
webViewActivity3.H2.t(null);
|
|
}
|
|
webViewActivity3.Cf = webNestFrame4;
|
|
MyWebCoord myWebCoord5 = webViewActivity3.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.121
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.121.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame5 = webViewActivity4.Cf;
|
|
webViewActivity4.Cf = null;
|
|
webViewActivity4.v8(webViewActivity4.P2);
|
|
webViewActivity4.Df = webNestFrame5;
|
|
MyWebCoord myWebCoord6 = webViewActivity4.f2;
|
|
if (myWebCoord6 == null) {
|
|
return;
|
|
}
|
|
myWebCoord6.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.122
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame6 = webViewActivity5.Df;
|
|
webViewActivity5.Df = null;
|
|
List list = webViewActivity5.O2;
|
|
if (list != null && list.size() != 0) {
|
|
webViewActivity5.Ef = webNestFrame6;
|
|
webViewActivity5.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.123
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity6 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame7 = webViewActivity6.Ef;
|
|
webViewActivity6.Ef = null;
|
|
if (webNestFrame7 != null) {
|
|
webViewActivity6.P9(webNestFrame7);
|
|
}
|
|
webViewActivity6.b7(1, true);
|
|
}
|
|
});
|
|
} else {
|
|
webViewActivity5.O1(null, WebViewActivity.o3(), false, null);
|
|
if (webNestFrame6 != null) {
|
|
webViewActivity5.P9(webNestFrame6);
|
|
}
|
|
}
|
|
webViewActivity5.f8();
|
|
webViewActivity5.Ac = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity3.Ac = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity2.Ac = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity.Ac = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 3) {
|
|
c7(this.P2, false);
|
|
return;
|
|
}
|
|
if (i == 4) {
|
|
if (z) {
|
|
i2 = this.P2 - 1;
|
|
} else {
|
|
i2 = this.P2 + 1;
|
|
}
|
|
if (PrefZtwo.s) {
|
|
if (z) {
|
|
if (i2 < 0) {
|
|
if (this.O2 == null || r4.size() - 1 == this.P2) {
|
|
return;
|
|
}
|
|
}
|
|
} else {
|
|
List list = this.O2;
|
|
if (list != null) {
|
|
if (i2 >= list.size()) {
|
|
if (this.P2 == 0) {
|
|
return;
|
|
}
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
c7(i3, true);
|
|
}
|
|
i3 = i2;
|
|
c7(i3, true);
|
|
}
|
|
}
|
|
|
|
public final void G3() {
|
|
ActionMode actionMode = this.l9;
|
|
if (actionMode != null) {
|
|
actionMode.finish();
|
|
this.l9 = null;
|
|
}
|
|
}
|
|
|
|
public final void G4() {
|
|
DialogUrlLink dialogUrlLink = this.m6;
|
|
if (dialogUrlLink != null) {
|
|
dialogUrlLink.dismiss();
|
|
this.m6 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean G5() {
|
|
if (!this.nc) {
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null) {
|
|
if (!webVideoFrame.l() && !this.Ic && !this.Jc && !this.Kc && !this.Lc && !this.Mc && !this.Nc && !this.Oc && !this.Pc) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
if (!w5() && !this.Q1 && !this.oc && !this.pc && !this.qc && !this.rc && !this.sc && !this.tc && !this.uc && !this.vc && !this.wc && !this.xc && !this.yc && !this.zc && !this.Ac && !this.Bc && !this.Cc && !this.Dc && !this.Ec && !this.Fc && !this.Gc && !this.Ic && !this.Jc && !this.Kc && !this.Lc && !this.Mc && !this.Nc && !this.Oc && !this.Pc) {
|
|
DialogSetMsg dialogSetMsg = this.F2;
|
|
if (dialogSetMsg == null || !dialogSetMsg.o()) {
|
|
DialogDeleteItem dialogDeleteItem = this.E3;
|
|
if (dialogDeleteItem == null || !dialogDeleteItem.o()) {
|
|
DialogQuickEdit dialogQuickEdit = this.F3;
|
|
if (dialogQuickEdit == null || !dialogQuickEdit.o()) {
|
|
DialogDeleteItem dialogDeleteItem2 = this.H3;
|
|
if (dialogDeleteItem2 == null || !dialogDeleteItem2.o()) {
|
|
DialogDeleteItem dialogDeleteItem3 = this.I3;
|
|
if (dialogDeleteItem3 == null || !dialogDeleteItem3.o()) {
|
|
DialogTabEdit dialogTabEdit = this.J3;
|
|
if (dialogTabEdit == null || !dialogTabEdit.o()) {
|
|
DialogSetRate dialogSetRate = this.d4;
|
|
if (dialogSetRate == null || !dialogSetRate.o()) {
|
|
DialogTabMenu dialogTabMenu = this.Z5;
|
|
if (dialogTabMenu == null || !dialogTabMenu.o()) {
|
|
DialogNewsLocale dialogNewsLocale = this.e6;
|
|
if (dialogNewsLocale == null || !dialogNewsLocale.o()) {
|
|
DialogNewsSearch dialogNewsSearch = this.f6;
|
|
if (dialogNewsSearch == null || !dialogNewsSearch.o()) {
|
|
DialogConfirm dialogConfirm = this.h6;
|
|
if (dialogConfirm == null || !dialogConfirm.o()) {
|
|
DialogWebBookEdit dialogWebBookEdit = this.i6;
|
|
if (dialogWebBookEdit == null || !dialogWebBookEdit.o()) {
|
|
DialogWebBookList dialogWebBookList = this.j6;
|
|
if (dialogWebBookList == null || !dialogWebBookList.k()) {
|
|
DialogListBook dialogListBook = this.k6;
|
|
if (dialogListBook == null || !dialogListBook.k()) {
|
|
DialogEditShort dialogEditShort = this.l6;
|
|
if (dialogEditShort == null || !dialogEditShort.o()) {
|
|
DialogUrlLink dialogUrlLink = this.m6;
|
|
if (dialogUrlLink == null || !dialogUrlLink.o()) {
|
|
DialogGuideNoti dialogGuideNoti = this.n6;
|
|
if (dialogGuideNoti == null || !dialogGuideNoti.o()) {
|
|
DialogConfirm dialogConfirm2 = this.o6;
|
|
if (dialogConfirm2 == null || !dialogConfirm2.o()) {
|
|
DialogDownUrl dialogDownUrl = this.p6;
|
|
if (dialogDownUrl == null || !dialogDownUrl.o()) {
|
|
DialogSetDown dialogSetDown = this.q6;
|
|
if (dialogSetDown == null || !dialogSetDown.o()) {
|
|
DialogDownBlob dialogDownBlob = this.r6;
|
|
if (dialogDownBlob == null || !dialogDownBlob.o()) {
|
|
MyDialogBottom myDialogBottom = this.s6;
|
|
if (myDialogBottom == null || !myDialogBottom.o()) {
|
|
DialogCapture dialogCapture = this.A6;
|
|
if (dialogCapture == null || !dialogCapture.k()) {
|
|
DialogDownPage dialogDownPage = this.B6;
|
|
if (dialogDownPage == null || !dialogDownPage.o()) {
|
|
DialogPrintPage dialogPrintPage = this.C6;
|
|
if (dialogPrintPage == null || !dialogPrintPage.o()) {
|
|
DialogSetTrans dialogSetTrans = this.D6;
|
|
if (dialogSetTrans == null || !dialogSetTrans.o()) {
|
|
DialogTransLang dialogTransLang = this.E6;
|
|
if (dialogTransLang == null || !dialogTransLang.o()) {
|
|
DialogTransMsg dialogTransMsg = this.F6;
|
|
if (dialogTransMsg == null || !dialogTransMsg.o()) {
|
|
DialogViewTrans dialogViewTrans = this.G6;
|
|
if (dialogViewTrans == null || !dialogViewTrans.o()) {
|
|
DialogSetDesk dialogSetDesk = this.Y6;
|
|
if (dialogSetDesk == null || !dialogSetDesk.o()) {
|
|
DialogSetUrl dialogSetUrl = this.Z6;
|
|
if (dialogSetUrl == null || !dialogSetUrl.o()) {
|
|
DialogOpenType dialogOpenType = this.a7;
|
|
if (dialogOpenType == null || !dialogOpenType.o()) {
|
|
DialogPopupMenu dialogPopupMenu = this.b7;
|
|
if (dialogPopupMenu == null || !dialogPopupMenu.o()) {
|
|
DialogWebView dialogWebView = this.c7;
|
|
if (dialogWebView == null || !dialogWebView.o()) {
|
|
DialogAllowPopup dialogAllowPopup = this.e7;
|
|
if (dialogAllowPopup == null || !dialogAllowPopup.o()) {
|
|
DialogBlockLink dialogBlockLink = this.f7;
|
|
if (dialogBlockLink == null || !dialogBlockLink.o()) {
|
|
DialogBlockImage dialogBlockImage = this.g7;
|
|
if (dialogBlockImage == null || !dialogBlockImage.o()) {
|
|
DialogGuideArea dialogGuideArea = this.q7;
|
|
if (dialogGuideArea == null || !dialogGuideArea.o()) {
|
|
DialogGuideArea dialogGuideArea2 = this.r7;
|
|
if (dialogGuideArea2 == null || !dialogGuideArea2.o()) {
|
|
DialogEditArea dialogEditArea = this.s7;
|
|
if (dialogEditArea == null || !dialogEditArea.o()) {
|
|
DialogSetMsg dialogSetMsg2 = this.t7;
|
|
if (dialogSetMsg2 == null || !dialogSetMsg2.o()) {
|
|
DialogPrompt dialogPrompt = this.v7;
|
|
if (dialogPrompt == null || !dialogPrompt.o()) {
|
|
DialogEditAuth dialogEditAuth = this.w7;
|
|
if (dialogEditAuth == null || !dialogEditAuth.o()) {
|
|
DialogPermission dialogPermission = this.x7;
|
|
if (dialogPermission == null || !dialogPermission.o()) {
|
|
DialogPassInfo dialogPassInfo = this.D7;
|
|
if (dialogPassInfo == null || !dialogPassInfo.o()) {
|
|
DialogWebSelect dialogWebSelect = this.E7;
|
|
if (dialogWebSelect == null || !dialogWebSelect.o()) {
|
|
DialogMenuMain dialogMenuMain = this.F7;
|
|
if (dialogMenuMain == null || !dialogMenuMain.o()) {
|
|
DialogAdNative dialogAdNative = this.K7;
|
|
if (dialogAdNative == null || !dialogAdNative.o()) {
|
|
DialogTabMain dialogTabMain = this.N7;
|
|
if (dialogTabMain == null || !dialogTabMain.k()) {
|
|
DialogTabMini dialogTabMini = this.O7;
|
|
if (dialogTabMini == null || !dialogTabMini.o()) {
|
|
DialogLoadImg dialogLoadImg = this.R7;
|
|
if (dialogLoadImg == null || !dialogLoadImg.o()) {
|
|
DialogLoadEmg dialogLoadEmg = this.S7;
|
|
if (dialogLoadEmg == null || !dialogLoadEmg.o()) {
|
|
DialogLoadHmg dialogLoadHmg = this.T7;
|
|
if (dialogLoadHmg == null || !dialogLoadHmg.o()) {
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog == null || !webGridDialog.k()) {
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog == null || !webEmgDialog.k()) {
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog == null || !webHmgDialog.k()) {
|
|
DialogVideoList dialogVideoList = this.X7;
|
|
if (dialogVideoList == null || !dialogVideoList.o()) {
|
|
DialogDownFont dialogDownFont = this.Y7;
|
|
if (dialogDownFont == null || !dialogDownFont.o()) {
|
|
DialogPreview dialogPreview = this.Z7;
|
|
if (dialogPreview == null || !dialogPreview.o()) {
|
|
DialogPreImage dialogPreImage = this.a8;
|
|
if (dialogPreImage == null || !dialogPreImage.o()) {
|
|
DialogSeekBright dialogSeekBright = this.c8;
|
|
if (dialogSeekBright == null || !dialogSeekBright.o()) {
|
|
DialogSeekWebText dialogSeekWebText = this.d8;
|
|
if (dialogSeekWebText == null || !dialogSeekWebText.o()) {
|
|
DialogSetFull dialogSetFull = this.e8;
|
|
if (dialogSetFull == null || !dialogSetFull.o()) {
|
|
DialogSetDark dialogSetDark = this.f8;
|
|
if (dialogSetDark == null || !dialogSetDark.o()) {
|
|
DialogConfirm dialogConfirm3 = this.g8;
|
|
if (dialogConfirm3 == null || !dialogConfirm3.o()) {
|
|
DialogSetUseTts dialogSetUseTts = this.h8;
|
|
if (dialogSetUseTts == null || !dialogSetUseTts.o()) {
|
|
DialogSetAdblock dialogSetAdblock = this.i8;
|
|
if (dialogSetAdblock == null || !dialogSetAdblock.o()) {
|
|
DialogSetJava dialogSetJava = this.j8;
|
|
if (dialogSetJava == null || !dialogSetJava.o()) {
|
|
DialogSetTmem dialogSetTmem = this.k8;
|
|
if (dialogSetTmem == null || !dialogSetTmem.o()) {
|
|
DialogSetRead dialogSetRead = this.l8;
|
|
if (dialogSetRead == null || !dialogSetRead.o()) {
|
|
DialogViewSrc dialogViewSrc = this.p8;
|
|
if (dialogViewSrc == null || !dialogViewSrc.k()) {
|
|
DialogSetPrivacy dialogSetPrivacy = this.q8;
|
|
if (dialogSetPrivacy == null || !dialogSetPrivacy.o()) {
|
|
DialogSetVpn dialogSetVpn = this.r8;
|
|
if (dialogSetVpn == null || !dialogSetVpn.o()) {
|
|
DialogSetCookie dialogSetCookie = this.s8;
|
|
if (dialogSetCookie == null || !dialogSetCookie.o()) {
|
|
DialogSetScrFil dialogSetScrFil = this.t8;
|
|
if (dialogSetScrFil == null || !dialogSetScrFil.o()) {
|
|
DialogWebCerti dialogWebCerti = this.u8;
|
|
if (dialogWebCerti == null || !dialogWebCerti.o()) {
|
|
DialogConfirm dialogConfirm4 = this.v8;
|
|
if (dialogConfirm4 == null || !dialogConfirm4.o()) {
|
|
DialogSetMsg dialogSetMsg3 = this.w8;
|
|
if (dialogSetMsg3 == null || !dialogSetMsg3.o()) {
|
|
DialogDeleteBook dialogDeleteBook = this.gb;
|
|
if (dialogDeleteBook == null || !dialogDeleteBook.o()) {
|
|
DialogEditMemo dialogEditMemo = this.hb;
|
|
if (dialogEditMemo == null || !dialogEditMemo.o()) {
|
|
DialogListBook dialogListBook2 = this.ib;
|
|
if (dialogListBook2 == null || !dialogListBook2.k()) {
|
|
DialogViewIp dialogViewIp = this.jb;
|
|
if (dialogViewIp == null || !dialogViewIp.o()) {
|
|
DialogConfirm dialogConfirm5 = this.kb;
|
|
if (dialogConfirm5 == null || !dialogConfirm5.o()) {
|
|
DialogSetMsg dialogSetMsg4 = this.Yb;
|
|
if (dialogSetMsg4 == null || !dialogSetMsg4.o()) {
|
|
DialogUpdateScript dialogUpdateScript = this.Zb;
|
|
if (dialogUpdateScript == null || !dialogUpdateScript.o()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void G6() {
|
|
CastContext castContext = this.sb;
|
|
MyStateListener myStateListener = this.ub;
|
|
MySessionListener mySessionListener = this.vb;
|
|
this.tb = null;
|
|
this.ub = null;
|
|
this.vb = null;
|
|
if (castContext != null) {
|
|
if (myStateListener != null) {
|
|
try {
|
|
castContext.g(myStateListener);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
if (mySessionListener != null) {
|
|
try {
|
|
castContext.d().e(mySessionListener);
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void G7(boolean z) {
|
|
MyAddrView myAddrView = this.s2;
|
|
if (myAddrView == null) {
|
|
return;
|
|
}
|
|
myAddrView.d(z);
|
|
if (z) {
|
|
this.u2.setVisibility(8);
|
|
this.v2.setVisibility(8);
|
|
this.w2.setVisibility(8);
|
|
} else {
|
|
this.u2.setVisibility(0);
|
|
this.v2.setVisibility(0);
|
|
if (DbBookRecent.l()) {
|
|
this.w2.setVisibility(0);
|
|
} else {
|
|
this.w2.setVisibility(8);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void G8(boolean z, boolean z2) {
|
|
StringBuilder sb = new StringBuilder();
|
|
if (z) {
|
|
boolean z3 = MainApp.R1;
|
|
if (z3) {
|
|
ArrayList arrayList = null;
|
|
if (z3) {
|
|
if (MainNative.a(5, MainNative.L)) {
|
|
arrayList = MainNative.L;
|
|
} else {
|
|
ArrayList arrayList2 = new ArrayList();
|
|
int i = 0;
|
|
while (true) {
|
|
if (i < 5) {
|
|
String adsHamJs = MainUtil.getAdsHamJs(i);
|
|
if (TextUtils.isEmpty(adsHamJs)) {
|
|
break;
|
|
}
|
|
arrayList2.add(adsHamJs);
|
|
i++;
|
|
} else {
|
|
MainNative.L = arrayList2;
|
|
arrayList = arrayList2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (arrayList != null && arrayList.size() == 5) {
|
|
for (int i2 = 0; i2 < 5; i2++) {
|
|
String str = (String) arrayList.get(i2);
|
|
if (TextUtils.isEmpty(str)) {
|
|
break;
|
|
}
|
|
sb.append(str);
|
|
}
|
|
}
|
|
}
|
|
sb.append("function myHamUr2(html){if(!html)return false;var len=html.length;if(len==0)return false;if(!window.sbhtag){window.sbhtag=myHamTag(html,len);if(window.sbhtag){android.onHamTag(window.sbhtag);}}return window.sbhtag?true:false;}");
|
|
}
|
|
sb.append("function mySrc(src){return src&&(src.indexOf('http')==0)&&!src.includes('youtube.com');}function myVi2(ele,win){if(((ele.tagName=='VIDEO')&&ele.src)||((ele.tagName=='SOURCE')&&ele.src&&ele.getAttribute('type').includes('video'))){if(mySrc(ele.src)){android.onVidDet(0);}if(win.sb_vi2){win.sb_vi2.disconnect();win.sb_vi2=null;}return true;}return false;}function myVd(doc,win){if(!doc||!win)return false;");
|
|
if (z) {
|
|
sb.append("var elh=doc.querySelector(\"script[id='initials-script']\");if(!elh||!myHamUr2(elh.innerHTML))return false;");
|
|
}
|
|
sb.append("var ele=doc.querySelector(\"video\");if(!ele)return false;if(ele.src){if(mySrc(ele.src)){android.onVidDet(0);}return true;}var el2=ele.querySelector(\"source[type*='video']\");if(el2&&el2.src){if(mySrc(el2.src)){android.onVidDet(0);}return true;}if(!win.sb_vi2){win.sb_vi2=new MutationObserver(e=>{for(var i=0;i<e.length;i++){if(myVi2(e[i].target,win))break;}}),win.sb_vi2.observe(doc,{childList:!0,subtree:!0,attributes:!0});}return true;}");
|
|
MainUtil.R7(this.I2, sb, z2);
|
|
}
|
|
|
|
public final void G9(String str, int i, String str2, boolean z) {
|
|
if (this.G1 || this.c7 != null) {
|
|
return;
|
|
}
|
|
K4();
|
|
this.d7 = str;
|
|
if (TextUtils.isEmpty(str2)) {
|
|
str2 = this.A8;
|
|
}
|
|
DialogWebView dialogWebView = new DialogWebView(this, str, str2, z, i, new DialogWebView.DialogWebListener() { // from class: com.mycompany.app.web.WebViewActivity.430
|
|
@Override // com.mycompany.app.dialog.DialogWebView.DialogWebListener
|
|
public final void a(int i2, String str3, String str4) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i2 != 7 && i2 != 8) {
|
|
webViewActivity.K4();
|
|
webViewActivity.R3();
|
|
}
|
|
webViewActivity.g6(i2, str3, str4);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebView.DialogWebListener
|
|
public final void b() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.K4();
|
|
webViewActivity.R3();
|
|
WebViewActivity.v1(webViewActivity);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebView.DialogWebListener
|
|
public final void c(String str3, String str4, String str5, long j) {
|
|
WebViewActivity.L0(WebViewActivity.this, str3, str4, str5, j, false);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebView.DialogWebListener
|
|
public final void d(WebNestView webNestView, String str3) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.K4();
|
|
webViewActivity.R3();
|
|
if (webNestView != null) {
|
|
boolean equals = "file:///android_asset/shortcut.html".equals(str3);
|
|
webNestView.a1 = equals;
|
|
WebNestFrame webNestFrame = new WebNestFrame(webViewActivity);
|
|
webNestFrame.E(equals);
|
|
webNestFrame.k(webNestView, 0, 0);
|
|
webViewActivity.F1(webNestFrame, str3, true, null);
|
|
return;
|
|
}
|
|
webViewActivity.F1(null, str3, true, null);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebView.DialogWebListener
|
|
public final void e() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.K4();
|
|
webViewActivity.R3();
|
|
webViewActivity.r9(webViewActivity.d7, true);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebView.DialogWebListener
|
|
public final void f() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.K4();
|
|
webViewActivity.R3();
|
|
webViewActivity.z3(webViewActivity.d7, true);
|
|
}
|
|
});
|
|
this.c7 = dialogWebView;
|
|
dialogWebView.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.431
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.d7 = null;
|
|
webViewActivity.K4();
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v4, types: [android.widget.LinearLayout, com.mycompany.app.view.MyBarView] */
|
|
public final void H1(String str, int i, int i2, String str2, int i3) {
|
|
int[] a2 = MainUtil.a2(PrefMain.E);
|
|
boolean X5 = X5();
|
|
int s0 = MainUtil.s0(0, this.U1);
|
|
MyBarView myBarView = this.p2;
|
|
if (myBarView != null) {
|
|
myBarView.a(this, a2, str, str2, i, X5, this.P2, i2, this.U1, s0, 0, i3, 2);
|
|
return;
|
|
}
|
|
if (a2 != null && a2.length != 0) {
|
|
?? linearLayout = new LinearLayout(this);
|
|
this.p2 = linearLayout;
|
|
linearLayout.a(this, a2, str, str2, i, X5, this.P2, i2, this.U1, s0, 0, i3, 2);
|
|
this.k2.a(this.p2, 1);
|
|
this.p2.setListener(new MyBarView.BarListener() { // from class: com.mycompany.app.web.WebViewActivity.74
|
|
@Override // com.mycompany.app.view.MyBarView.BarListener
|
|
public final void a(int i4, View view, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.U0(webViewActivity, webViewActivity.p2, view, i4);
|
|
}
|
|
});
|
|
if (PrefZone.n == 2) {
|
|
J1();
|
|
}
|
|
if (PrefZone.r == 2) {
|
|
a2();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void H2() {
|
|
WebNestView webNestView;
|
|
int i = this.T2;
|
|
if (i != 0) {
|
|
G2(i, this.W2);
|
|
}
|
|
int i2 = this.o3;
|
|
if (i2 != 0) {
|
|
D2(i2, this.r3);
|
|
if (this.ag != null) {
|
|
T7(this.I2);
|
|
U7(this.I2);
|
|
E2();
|
|
boolean z = this.cg;
|
|
String str = this.dg;
|
|
this.dg = null;
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null && (webNestView = this.I2) != null) {
|
|
if (!webNestView.g) {
|
|
N8(webNestView, 0);
|
|
O8(webNestView);
|
|
P8(webNestView);
|
|
Q8(webNestFrame, webNestView, 0);
|
|
} else {
|
|
webNestView.setWebViewClient(new LocalWebViewClient());
|
|
this.I2.setWebChromeClient(new LocalChromeClient());
|
|
this.I2.setDownloadListener(new DownloadListener() { // from class: com.mycompany.app.web.WebViewActivity.149
|
|
@Override // android.webkit.DownloadListener
|
|
public final void onDownloadStart(String str2, String str3, String str4, String str5, long j) {
|
|
WebViewActivity.L0(WebViewActivity.this, str2, str4, str5, j, true);
|
|
}
|
|
});
|
|
}
|
|
this.eg = z;
|
|
this.fg = str;
|
|
}
|
|
F2();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void H3() {
|
|
I3(true);
|
|
R9(false);
|
|
U9(false);
|
|
if (this.T3 != null && PrefZone.n == 3) {
|
|
I9(false);
|
|
}
|
|
if (this.b4 != null && PrefZone.r == 3) {
|
|
W9(false);
|
|
}
|
|
J9(false);
|
|
K9(false);
|
|
L9(false);
|
|
S9(false);
|
|
X9(false);
|
|
}
|
|
|
|
public final void H4() {
|
|
DialogVideoList dialogVideoList = this.X7;
|
|
if (dialogVideoList != null) {
|
|
dialogVideoList.dismiss();
|
|
this.X7 = null;
|
|
if (this.R5 != null && this.p6 == null) {
|
|
this.nb = false;
|
|
MainUtil.K7(this, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void H6() {
|
|
MainListView mainListView;
|
|
MyWebCoord myWebCoord;
|
|
DialogWebBookList dialogWebBookList = this.j6;
|
|
if (dialogWebBookList != null) {
|
|
MainListView2 mainListView2 = dialogWebBookList.B;
|
|
if (mainListView2 != null) {
|
|
mainListView2.r();
|
|
}
|
|
} else {
|
|
DialogListBook dialogListBook = this.k6;
|
|
if (dialogListBook != null) {
|
|
MainListView mainListView3 = dialogListBook.D;
|
|
if (mainListView3 != null) {
|
|
mainListView3.T();
|
|
}
|
|
} else {
|
|
DialogTabMain dialogTabMain = this.N7;
|
|
if (dialogTabMain != null) {
|
|
dialogTabMain.q();
|
|
} else {
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog != null) {
|
|
webGridDialog.q();
|
|
} else {
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog != null) {
|
|
webEmgDialog.q();
|
|
} else {
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog != null) {
|
|
webHmgDialog.q();
|
|
} else {
|
|
DialogViewSrc dialogViewSrc = this.p8;
|
|
if (dialogViewSrc != null) {
|
|
dialogViewSrc.q();
|
|
} else {
|
|
DialogListBook dialogListBook2 = this.ib;
|
|
if (dialogListBook2 != null && (mainListView = dialogListBook2.D) != null) {
|
|
mainListView.T();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.wb = false;
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
this.zb = false;
|
|
WebCastView webCastView = this.Ab;
|
|
if (webCastView != null) {
|
|
MainUtil.W6(webCastView);
|
|
this.Ab = null;
|
|
}
|
|
FrameLayout frameLayout = this.Cb;
|
|
if (frameLayout != null) {
|
|
try {
|
|
frameLayout.removeAllViewsInLayout();
|
|
} catch (Exception unused) {
|
|
}
|
|
this.Cb.setVisibility(8);
|
|
this.Cb = null;
|
|
}
|
|
this.Bb = null;
|
|
this.Db = null;
|
|
try {
|
|
Fragment B = T().B(R.id.cast_mini_controller);
|
|
if (B != null) {
|
|
FragmentTransaction d = T().d();
|
|
d.g(B);
|
|
d.e();
|
|
}
|
|
} catch (Exception unused2) {
|
|
}
|
|
if (PrefZone.n != 0 && !PrefZone.p && (myWebCoord = this.f2) != null) {
|
|
myWebCoord.post(new AnonymousClass35());
|
|
}
|
|
}
|
|
|
|
public final void H7() {
|
|
if (!this.Do) {
|
|
this.Do = true;
|
|
new Thread(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.670
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.a1(WebViewActivity.this);
|
|
}
|
|
}).start();
|
|
moveTaskToBack(true);
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.C();
|
|
MainApp.F(this.i1, this.I2);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void H8(int i, int i2, int i3) {
|
|
if (this.f2 != null) {
|
|
this.q2 = i;
|
|
this.r2 = i2;
|
|
W8(i, i2);
|
|
o8(i, i3);
|
|
z8(i);
|
|
i7(i, i2);
|
|
q8(i, i2, true);
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.72
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i4;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i5 = webViewActivity.q2;
|
|
int i6 = webViewActivity.r2;
|
|
MyFindView myFindView = webViewActivity.C2;
|
|
if (myFindView != null) {
|
|
myFindView.e(i5, i6, webViewActivity.U1);
|
|
}
|
|
webViewActivity.b8(i5);
|
|
WebUpView webUpView = webViewActivity.P3;
|
|
if (webUpView != null) {
|
|
webUpView.setBgColors(webViewActivity.U1);
|
|
}
|
|
View view = webViewActivity.U6;
|
|
if (view != null) {
|
|
if (MainApp.K1) {
|
|
view.setBackgroundResource(R.drawable.trans_logo_short_back_white);
|
|
} else {
|
|
view.setBackgroundResource(R.drawable.trans_logo_short_back_color);
|
|
}
|
|
}
|
|
MyScrollBar myScrollBar = webViewActivity.v3;
|
|
if (myScrollBar != null) {
|
|
if (MainApp.K1) {
|
|
i4 = -12632257;
|
|
} else {
|
|
i4 = -2434342;
|
|
}
|
|
myScrollBar.setPreColor(i4);
|
|
}
|
|
MyPullView myPullView = webViewActivity.M2;
|
|
if (myPullView != null) {
|
|
myPullView.h(webViewActivity.U1);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void H9(long j, int i, String str, String str2, int i2) {
|
|
if (this.R5 == null && !z5()) {
|
|
this.eo = j;
|
|
this.fo = i;
|
|
this.f19723go = str;
|
|
this.ho = str2;
|
|
this.f19724io = i2;
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass639());
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r5v4, types: [com.mycompany.app.wview.WebCastView, android.widget.FrameLayout, android.view.ViewGroup] */
|
|
public final void I1() {
|
|
ViewGroup viewGroup;
|
|
MainListView mainListView;
|
|
MainListView mainListView2;
|
|
MainListView2 mainListView22;
|
|
if (!PrefMain.s) {
|
|
H6();
|
|
return;
|
|
}
|
|
if (this.l2 == null) {
|
|
H6();
|
|
return;
|
|
}
|
|
this.zb = false;
|
|
if (MainUtil.V4()) {
|
|
viewGroup = this.o2;
|
|
} else {
|
|
viewGroup = this.e2;
|
|
this.zb = true;
|
|
}
|
|
if (this.Ab == null && viewGroup != null) {
|
|
try {
|
|
Fragment B = T().B(R.id.cast_mini_controller);
|
|
if (B != null) {
|
|
FragmentTransaction d = T().d();
|
|
d.g(B);
|
|
d.e();
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
try {
|
|
LayoutInflater layoutInflater = getLayoutInflater();
|
|
?? frameLayout = new FrameLayout(this);
|
|
this.Ab = frameLayout;
|
|
this.Bb = (MediaRouteButton) layoutInflater.inflate(R.layout.cast_icon_layout, (ViewGroup) frameLayout, false);
|
|
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-2, -2);
|
|
layoutParams.gravity = 17;
|
|
this.Ab.addView(this.Bb, layoutParams);
|
|
FrameLayout frameLayout2 = this.l2;
|
|
this.Cb = frameLayout2;
|
|
this.Db = layoutInflater.inflate(R.layout.cast_mini_control, (ViewGroup) frameLayout2, false);
|
|
} catch (Exception unused2) {
|
|
H6();
|
|
return;
|
|
}
|
|
}
|
|
WebCastView webCastView = this.Ab;
|
|
if (webCastView != null && this.Bb != null && this.Db != null) {
|
|
webCastView.setAvailListener(new WebCastView.MyCastAvailListener() { // from class: com.mycompany.app.web.WebViewActivity.30
|
|
@Override // com.mycompany.app.wview.WebCastView.MyCastAvailListener
|
|
public final void b() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebCastView.MyCastAvailListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebCastView.MyCastAvailListener
|
|
public final boolean d() {
|
|
return WebViewActivity.this.wb;
|
|
}
|
|
});
|
|
DialogWebBookList dialogWebBookList = this.j6;
|
|
if (dialogWebBookList != null) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
WebCastView webCastView2 = this.Ab;
|
|
MediaRouteButton mediaRouteButton = this.Bb;
|
|
View view = this.Db;
|
|
if (webCastView2 != null && mediaRouteButton != null && view != null && (mainListView22 = dialogWebBookList.B) != null) {
|
|
mainListView22.e(webCastView2, mediaRouteButton, view);
|
|
}
|
|
h9();
|
|
return;
|
|
}
|
|
DialogListBook dialogListBook = this.k6;
|
|
if (dialogListBook != null) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
WebCastView webCastView3 = this.Ab;
|
|
MediaRouteButton mediaRouteButton2 = this.Bb;
|
|
View view2 = this.Db;
|
|
if (webCastView3 != null && mediaRouteButton2 != null && view2 != null && (mainListView2 = dialogListBook.D) != null) {
|
|
mainListView2.k(webCastView3, mediaRouteButton2, view2);
|
|
}
|
|
h9();
|
|
return;
|
|
}
|
|
DialogTabMain dialogTabMain = this.N7;
|
|
if (dialogTabMain != null && !PrefZone.D) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
dialogTabMain.o(this.Ab, this.Bb, this.Db);
|
|
h9();
|
|
return;
|
|
}
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog != null) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
webGridDialog.o(this.Ab, this.Bb, this.Db);
|
|
h9();
|
|
return;
|
|
}
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog != null) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
webEmgDialog.o(this.Ab, this.Bb, this.Db);
|
|
h9();
|
|
return;
|
|
}
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog != null) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
webHmgDialog.o(this.Ab, this.Bb, this.Db);
|
|
h9();
|
|
return;
|
|
}
|
|
DialogViewSrc dialogViewSrc = this.p8;
|
|
if (dialogViewSrc != null) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
dialogViewSrc.o(this.Ab, this.Bb, this.Db);
|
|
h9();
|
|
return;
|
|
}
|
|
DialogListBook dialogListBook2 = this.ib;
|
|
if (dialogListBook2 != null) {
|
|
this.xb = false;
|
|
this.yb = 0;
|
|
WebCastView webCastView4 = this.Ab;
|
|
MediaRouteButton mediaRouteButton3 = this.Bb;
|
|
View view3 = this.Db;
|
|
if (webCastView4 != null && mediaRouteButton3 != null && view3 != null && (mainListView = dialogListBook2.D) != null) {
|
|
mainListView.k(webCastView4, mediaRouteButton3, view3);
|
|
}
|
|
h9();
|
|
return;
|
|
}
|
|
if (!this.xb) {
|
|
this.xb = true;
|
|
try {
|
|
MainUtil.W6(this.Ab);
|
|
t7(viewGroup);
|
|
MainUtil.W6(this.Db);
|
|
this.Cb.removeAllViewsInLayout();
|
|
this.Cb.addView(this.Db, -1, -2);
|
|
this.Cb.setVisibility(0);
|
|
Handler handler = this.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.31
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MyWebCoord myWebCoord;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
AppBarLayout appBarLayout = webViewActivity.g2;
|
|
if (appBarLayout != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
webViewActivity.s7(webViewActivity.t3());
|
|
MediaRouteButton mediaRouteButton4 = webViewActivity.Bb;
|
|
if (mediaRouteButton4 != null) {
|
|
try {
|
|
CastButtonFactory.a(webViewActivity.i1, mediaRouteButton4);
|
|
} catch (Exception unused3) {
|
|
}
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 != null) {
|
|
handler2.post(new AnonymousClass32());
|
|
}
|
|
}
|
|
webViewActivity.U3();
|
|
webViewActivity.H4();
|
|
webViewActivity.m4();
|
|
webViewActivity.h9();
|
|
if (PrefZone.n != 0 && !PrefZone.p && (myWebCoord = webViewActivity.f2) != null) {
|
|
myWebCoord.post(new AnonymousClass35());
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
} catch (Exception unused3) {
|
|
H6();
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
H6();
|
|
}
|
|
|
|
public final void I2() {
|
|
if (this.v0) {
|
|
this.v0 = false;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.onResume();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void I3(boolean z) {
|
|
N4();
|
|
WebAreaText webAreaText = this.i7;
|
|
if (webAreaText != null) {
|
|
webAreaText.s();
|
|
}
|
|
WebAreaMenu webAreaMenu = this.j7;
|
|
if (webAreaMenu != null) {
|
|
webAreaMenu.c();
|
|
}
|
|
if (this.k7 != null) {
|
|
if (z) {
|
|
MainUtil.I(this.I2, "(function(){window.sblast=null;window.sbchkc=false;myClr();document.removeEventListener('touchstart',myTc1);document.removeEventListener('touchmove',myTc2);document.removeEventListener('touchend',myTc3);})();", true);
|
|
}
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.448
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebAreaView webAreaView = webViewActivity.k7;
|
|
if (webAreaView != null) {
|
|
webAreaView.b();
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(webViewActivity.k7);
|
|
}
|
|
webViewActivity.k7 = null;
|
|
webViewActivity.n7 = null;
|
|
webViewActivity.o7 = null;
|
|
webViewActivity.p7 = null;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.setOnTouchListener(null);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void I4() {
|
|
DialogVideoMenu dialogVideoMenu = this.X3;
|
|
if (dialogVideoMenu != null) {
|
|
if (!this.Y3) {
|
|
this.Y3 = dialogVideoMenu.c();
|
|
}
|
|
this.X3 = null;
|
|
}
|
|
WebDownView webDownView = this.T3;
|
|
if (webDownView != null) {
|
|
webDownView.setHideBlocked(false);
|
|
}
|
|
WebDownView webDownView2 = this.b4;
|
|
if (webDownView2 != null) {
|
|
webDownView2.setHideBlocked(false);
|
|
}
|
|
}
|
|
|
|
public final boolean I5() {
|
|
int length;
|
|
String str;
|
|
int length2;
|
|
try {
|
|
String str2 = this.M8;
|
|
if (str2 == null || (length = str2.length()) == 0 || (str = this.A8) == null || (length2 = str.length()) == 0) {
|
|
return false;
|
|
}
|
|
if (length > length2) {
|
|
return this.M8.startsWith(this.A8);
|
|
}
|
|
if (length < length2) {
|
|
return this.A8.startsWith(this.M8);
|
|
}
|
|
return this.M8.equals(this.A8);
|
|
} catch (Exception unused) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public final void I6() {
|
|
MyFindView myFindView = this.C2;
|
|
if (myFindView != null) {
|
|
if (myFindView.g) {
|
|
myFindView.c();
|
|
this.j2.h(this.C2);
|
|
this.C2 = null;
|
|
this.j2.setVisibility(0);
|
|
this.k2.setVisibility(0);
|
|
f7();
|
|
} else {
|
|
myFindView.c();
|
|
this.k2.h(this.C2);
|
|
this.C2 = null;
|
|
this.j2.setVisibility(0);
|
|
this.k2.setVisibility(0);
|
|
if (PrefWeb.w) {
|
|
M8(this.Ng);
|
|
this.Ng = 0;
|
|
}
|
|
}
|
|
AppBarLayout appBarLayout = this.g2;
|
|
if (appBarLayout != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void I7(int i) {
|
|
int i2;
|
|
WebFltView webFltView;
|
|
if (i == 7) {
|
|
i2 = PrefFloat.k;
|
|
} else if (i == 8) {
|
|
i2 = PrefFloat.l;
|
|
} else {
|
|
i2 = PrefFloat.j;
|
|
}
|
|
if (i2 >= 0 && i2 < 74 && i2 != 0) {
|
|
if (i == 7) {
|
|
webFltView = this.cb;
|
|
} else if (i == 8) {
|
|
webFltView = this.db;
|
|
} else {
|
|
webFltView = this.bb;
|
|
}
|
|
if (webFltView == null && this.e2 != null) {
|
|
try {
|
|
WebFltView webFltView2 = new WebFltView(this, i);
|
|
webFltView2.q();
|
|
webFltView2.setFltListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.616
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i3) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebFltView webFltView3 = webViewActivity.bb;
|
|
if (webFltView3 != null) {
|
|
webFltView3.w(false);
|
|
}
|
|
WebFltView webFltView4 = webViewActivity.cb;
|
|
if (webFltView4 != null) {
|
|
webFltView4.w(false);
|
|
}
|
|
WebFltView webFltView5 = webViewActivity.db;
|
|
if (webFltView5 != null) {
|
|
webFltView5.w(false);
|
|
}
|
|
webViewActivity.d6(view, i3);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = this.e2;
|
|
int i3 = MainApp.g1;
|
|
myWebBody.addView(webFltView2, i3, i3);
|
|
if (i == 7) {
|
|
this.cb = webFltView2;
|
|
return;
|
|
} else if (i == 8) {
|
|
this.db = webFltView2;
|
|
return;
|
|
} else {
|
|
this.bb = webFltView2;
|
|
return;
|
|
}
|
|
} catch (Exception unused) {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
if (i == 7) {
|
|
WebFltView webFltView3 = this.cb;
|
|
if (webFltView3 != null) {
|
|
webFltView3.o();
|
|
MyWebBody myWebBody2 = this.e2;
|
|
if (myWebBody2 != null) {
|
|
myWebBody2.removeView(this.cb);
|
|
}
|
|
this.cb = null;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 8) {
|
|
WebFltView webFltView4 = this.db;
|
|
if (webFltView4 != null) {
|
|
webFltView4.o();
|
|
MyWebBody myWebBody3 = this.e2;
|
|
if (myWebBody3 != null) {
|
|
myWebBody3.removeView(this.db);
|
|
}
|
|
this.db = null;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
WebFltView webFltView5 = this.bb;
|
|
if (webFltView5 != null) {
|
|
webFltView5.o();
|
|
MyWebBody myWebBody4 = this.e2;
|
|
if (myWebBody4 != null) {
|
|
myWebBody4.removeView(this.bb);
|
|
}
|
|
this.bb = null;
|
|
}
|
|
}
|
|
|
|
public final void I8(int i, int i2) {
|
|
if (!this.j9 && N5(i)) {
|
|
H8(i, i2, b3());
|
|
}
|
|
}
|
|
|
|
public final void I9(boolean z) {
|
|
WebNestView webNestView;
|
|
if (z && !P5() && !this.G8 && !PrefSync.j && (webNestView = this.I2) != null) {
|
|
if (TextUtils.isEmpty(webNestView.getDownVideo())) {
|
|
WebDownView webDownView = this.T3;
|
|
if (webDownView != null) {
|
|
webDownView.i(false);
|
|
}
|
|
f9(false);
|
|
j7(false);
|
|
return;
|
|
}
|
|
WebDownView webDownView2 = this.T3;
|
|
if (webDownView2 != null) {
|
|
if (PrefZone.n == 3) {
|
|
webDownView2.r();
|
|
} else {
|
|
webDownView2.i(false);
|
|
}
|
|
}
|
|
f9(true);
|
|
j7(true);
|
|
return;
|
|
}
|
|
WebDownView webDownView3 = this.T3;
|
|
if (webDownView3 != null) {
|
|
webDownView3.i(false);
|
|
}
|
|
f9(false);
|
|
j7(false);
|
|
}
|
|
|
|
public final void J1() {
|
|
Handler handler;
|
|
Handler handler2;
|
|
Handler handler3;
|
|
WebDownView webDownView;
|
|
MyIconView myIconView;
|
|
MyIconView myIconView2;
|
|
if (PrefZone.n != 1 && (myIconView2 = this.R3) != null) {
|
|
MainUtil.W6(myIconView2);
|
|
this.R3.m();
|
|
this.R3 = null;
|
|
}
|
|
if (PrefZone.n != 2 && (myIconView = this.S3) != null) {
|
|
MainUtil.W6(myIconView);
|
|
this.S3.m();
|
|
this.S3 = null;
|
|
}
|
|
if (PrefZone.n != 3 && (webDownView = this.T3) != null) {
|
|
MainUtil.W6(webDownView);
|
|
this.T3.j();
|
|
this.T3 = null;
|
|
}
|
|
int i = PrefZone.n;
|
|
if (i == 1) {
|
|
if (this.o2 != null && (handler3 = this.O0) != null) {
|
|
if (this.R3 != null) {
|
|
B7();
|
|
return;
|
|
} else {
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.182
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.o2 != null && webViewActivity.O0 != null) {
|
|
if (webViewActivity.R3 != null) {
|
|
webViewActivity.B7();
|
|
return;
|
|
}
|
|
webViewActivity.U3 = 1234;
|
|
webViewActivity.O6();
|
|
try {
|
|
MyIconView myIconView3 = new MyIconView(webViewActivity);
|
|
webViewActivity.R3 = myIconView3;
|
|
myIconView3.setDownIcon(true);
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.setDownNoti(true);
|
|
}
|
|
webViewActivity.R3.x(true, false);
|
|
webViewActivity.R3.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
|
webViewActivity.R3.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.182.1
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
AnonymousClass182 anonymousClass182 = AnonymousClass182.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.R3 == null) {
|
|
return;
|
|
}
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
webNestView2.setDownNoti(false);
|
|
}
|
|
WebViewActivity.this.R3.x(false, true);
|
|
WebViewActivity.n1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
webViewActivity.A7(webViewActivity.t3(), webViewActivity.u3());
|
|
webViewActivity.I9(true);
|
|
WebCastView castView = webViewActivity.o2.getCastView();
|
|
if (castView != null) {
|
|
webViewActivity.o2.removeView(castView);
|
|
}
|
|
webViewActivity.o2.addView(webViewActivity.R3, MainApp.g1, -1);
|
|
if (castView != null) {
|
|
webViewActivity.o2.addView(castView, MainApp.g1, -1);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
if (this.p2 != null && (handler2 = this.O0) != null) {
|
|
if (this.S3 != null) {
|
|
B7();
|
|
return;
|
|
} else {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.183
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.p2 != null && webViewActivity.O0 != null) {
|
|
if (webViewActivity.S3 != null) {
|
|
webViewActivity.B7();
|
|
return;
|
|
}
|
|
webViewActivity.U3 = 1234;
|
|
webViewActivity.O6();
|
|
try {
|
|
MyIconView myIconView3 = new MyIconView(webViewActivity);
|
|
webViewActivity.S3 = myIconView3;
|
|
myIconView3.setDownIcon(true);
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.setDownNoti(true);
|
|
}
|
|
webViewActivity.S3.x(true, false);
|
|
webViewActivity.S3.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
|
webViewActivity.S3.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.183.1
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
AnonymousClass183 anonymousClass183 = AnonymousClass183.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.S3 == null) {
|
|
return;
|
|
}
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
webNestView2.setDownNoti(false);
|
|
}
|
|
WebViewActivity.this.S3.x(false, true);
|
|
WebViewActivity.n1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
webViewActivity.A7(webViewActivity.t3(), webViewActivity.u3());
|
|
webViewActivity.I9(true);
|
|
webViewActivity.p2.addView(webViewActivity.S3, MainApp.g1, -1);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (i == 3 && this.e2 != null && (handler = this.O0) != null) {
|
|
WebDownView webDownView2 = this.T3;
|
|
if (webDownView2 != null) {
|
|
webDownView2.m();
|
|
} else {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.184
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.e2 != null && webViewActivity.O0 != null) {
|
|
WebDownView webDownView3 = webViewActivity.T3;
|
|
if (webDownView3 != null) {
|
|
webDownView3.m();
|
|
return;
|
|
}
|
|
webViewActivity.U3 = 1234;
|
|
webViewActivity.O6();
|
|
try {
|
|
WebDownView webDownView4 = new WebDownView(webViewActivity, false);
|
|
webViewActivity.T3 = webDownView4;
|
|
webDownView4.l();
|
|
webViewActivity.T3.setVisibility(8);
|
|
webViewActivity.T3.setListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.184.1
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i2) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.T3 == null) {
|
|
return;
|
|
}
|
|
WebNestView webNestView = webViewActivity2.I2;
|
|
if (webNestView != null) {
|
|
webNestView.setDownNoti(false);
|
|
}
|
|
webViewActivity2.T3.p(false);
|
|
WebViewActivity.n1(webViewActivity2, view);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebDownView webDownView5 = webViewActivity.T3;
|
|
int i2 = MainApp.g1;
|
|
myWebBody.addView(webDownView5, i2, i2);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final int J2(boolean z) {
|
|
List list;
|
|
List list2;
|
|
int i = this.P2;
|
|
int i2 = i + 1;
|
|
if (PrefTts.D && (list = this.O2) != null) {
|
|
if (!z) {
|
|
return list.size();
|
|
}
|
|
WebTabAdapter.WebTabItem n3 = n3(i);
|
|
if (n3 != null && n3.e != 0 && (list2 = this.O2) != null && i2 >= 0 && i2 < list2.size()) {
|
|
long j = n3.e;
|
|
int size = this.O2.size();
|
|
int i3 = i2;
|
|
while (i2 < size) {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) this.O2.get(i2);
|
|
if (webTabItem != null) {
|
|
if (webTabItem.e != j) {
|
|
return i2;
|
|
}
|
|
i3 = i2;
|
|
}
|
|
i2++;
|
|
}
|
|
return i3;
|
|
}
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
public final void J3() {
|
|
if (this.g6 != null) {
|
|
this.Z0 = this.b6;
|
|
W7();
|
|
this.g6.a();
|
|
this.g6 = null;
|
|
}
|
|
}
|
|
|
|
public final void J4() {
|
|
I2();
|
|
DialogWebBookList dialogWebBookList = this.j6;
|
|
if (dialogWebBookList != null) {
|
|
dialogWebBookList.dismiss();
|
|
this.j6 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean J5() {
|
|
if (this.F2 == null && this.E3 == null && this.F3 == null && this.G3 == null && this.H3 == null && this.I3 == null && this.J3 == null && this.X3 == null && this.d4 == null && this.Z5 == null && this.c6 == null && this.e6 == null && this.f6 == null && this.h6 == null && this.i6 == null && this.j6 == null && this.k6 == null && this.l6 == null && this.m6 == null && this.n6 == null && this.o6 == null && this.p6 == null && this.q6 == null && this.r6 == null && this.s6 == null && this.A6 == null && this.B6 == null && this.C6 == null && this.D6 == null && this.E6 == null && this.F6 == null && this.G6 == null && this.Y6 == null && this.Z6 == null && this.a7 == null && this.b7 == null && this.c7 == null && this.e7 == null && this.f7 == null && this.g7 == null && this.q7 == null && this.r7 == null && this.s7 == null && this.t7 == null && this.v7 == null && this.w7 == null && this.x7 == null && this.D7 == null && this.E7 == null && this.F7 == null && this.G7 == null && this.K7 == null && this.N7 == null && this.O7 == null && this.R7 == null && this.S7 == null && this.T7 == null && this.U7 == null && this.V7 == null && this.W7 == null && this.X7 == null && this.Y7 == null && this.Z7 == null && this.a8 == null && this.c8 == null && this.d8 == null && this.e8 == null && this.f8 == null && this.g8 == null && this.h8 == null && this.i8 == null && this.j8 == null && this.k8 == null && this.l8 == null && !z5() && this.p8 == null && this.q8 == null && this.r8 == null && this.s8 == null && this.t8 == null && this.u8 == null && this.v8 == null && this.w8 == null && this.gb == null && this.hb == null && this.ib == null && this.jb == null && this.kb == null && this.Yb == null && this.Zb == null && this.d3 == null && this.V6 == null) {
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null && webVideoFrame.m()) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void J6() {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.C = 0;
|
|
if (myWebBody.B != null) {
|
|
myWebBody.B = null;
|
|
myWebBody.invalidate();
|
|
}
|
|
RelativeLayout relativeLayout = this.Ob;
|
|
if (relativeLayout != null) {
|
|
this.e2.removeView(relativeLayout);
|
|
this.Ob = null;
|
|
}
|
|
this.Pb = null;
|
|
this.Qb = null;
|
|
}
|
|
|
|
public final void J7() {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
if (!PrefTts.H) {
|
|
myWebBody.setHandListener(null);
|
|
} else {
|
|
myWebBody.setHandListener(new MyWebBody.HandListener() { // from class: com.mycompany.app.web.WebViewActivity.596
|
|
@Override // com.mycompany.app.view.MyWebBody.HandListener
|
|
public final void a() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.K5()) {
|
|
if (PrefTts.I) {
|
|
PrefTts.I = false;
|
|
PrefSet.d(12, webViewActivity.i1, "mHandNoti", false);
|
|
}
|
|
if (PrefTts.H) {
|
|
webViewActivity.ba();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void J8(boolean z) {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
if (!z) {
|
|
webNestView.C();
|
|
MainApp.F(this.i1, this.I2);
|
|
} else {
|
|
this.C9 = true;
|
|
webNestView.setBackPlay(true);
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.594
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2 = WebViewActivity.this.I2;
|
|
if (webNestView2 == null) {
|
|
return;
|
|
}
|
|
StringBuilder X = MainUtil.X(null);
|
|
X.append("if(ele&&!ele.paused){android.onVideoAddListener(ele.src,false,true);");
|
|
X.append("function myVideoPlaying(evt){var src=null;var ele=evt.target||evt.srcElement;if(ele){src=ele.src;}android.onVideoPaused(src,false);}");
|
|
X.append("function myVideoPaused(evt){var src=null;var ele=evt.target||evt.srcElement;if(ele){src=ele.src;}android.onVideoPaused(src,true);}");
|
|
X.append("ele.addEventListener(\"playing\",myVideoPlaying);");
|
|
X.append("ele.addEventListener(\"pause\",myVideoPaused);}");
|
|
X.append("else{android.onVideoAddListener(null,false,false);}");
|
|
X.insert(0, "(function(){");
|
|
X.append("})();");
|
|
MainUtil.I(webNestView2, X.toString(), true);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void J9(boolean z) {
|
|
if (z && !this.j9 && !this.L3 && this.R5 == null && !PrefSync.j) {
|
|
WebFltView webFltView = this.bb;
|
|
if (webFltView != null) {
|
|
webFltView.w(false);
|
|
}
|
|
WebFltView webFltView2 = this.cb;
|
|
if (webFltView2 != null) {
|
|
webFltView2.w(false);
|
|
}
|
|
WebFltView webFltView3 = this.db;
|
|
if (webFltView3 != null) {
|
|
webFltView3.w(false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
WebFltView webFltView4 = this.bb;
|
|
if (webFltView4 != null) {
|
|
webFltView4.m(false);
|
|
}
|
|
WebFltView webFltView5 = this.cb;
|
|
if (webFltView5 != null) {
|
|
webFltView5.m(false);
|
|
}
|
|
WebFltView webFltView6 = this.db;
|
|
if (webFltView6 != null) {
|
|
webFltView6.m(false);
|
|
}
|
|
}
|
|
|
|
public final void K1() {
|
|
if (this.g4 == null && this.f2 != null) {
|
|
MyGesNoti myGesNoti = new MyGesNoti(this);
|
|
this.g4 = myGesNoti;
|
|
myGesNoti.setVisibility(8);
|
|
int i = MainApp.i1;
|
|
CoordinatorLayout.LayoutParams layoutParams = new CoordinatorLayout.LayoutParams(i, i);
|
|
layoutParams.f611c = 17;
|
|
this.f2.addView(this.g4, layoutParams);
|
|
}
|
|
}
|
|
|
|
public final String K2() {
|
|
String str = null;
|
|
if (this.U1 || TextUtils.isEmpty(this.A8)) {
|
|
return null;
|
|
}
|
|
if (PrefPdf.H == 2) {
|
|
return v3(this.I2, this.A8);
|
|
}
|
|
if (!this.U1) {
|
|
str = this.A8;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
str = webNestView.q(str);
|
|
}
|
|
}
|
|
if (MainUtil.q5(str, this.hc)) {
|
|
return this.ic;
|
|
}
|
|
this.hc = str;
|
|
String D1 = MainUtil.D1(str, true);
|
|
this.ic = D1;
|
|
return D1;
|
|
}
|
|
|
|
public final void K3() {
|
|
MyWebCoord myWebCoord;
|
|
if (!this.L3 || (myWebCoord = this.f2) == null || this.M3) {
|
|
return;
|
|
}
|
|
this.M3 = true;
|
|
MainUtil.X4(this.i1, myWebCoord);
|
|
this.f2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.249
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.M3 = false;
|
|
}
|
|
}, 100L);
|
|
}
|
|
|
|
public final void K4() {
|
|
DialogWebView dialogWebView = this.c7;
|
|
if (dialogWebView != null) {
|
|
dialogWebView.dismiss();
|
|
this.c7 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean K5() {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null && myWebBody.getWidth() <= myWebBody.getHeight()) {
|
|
return !MainUtil.V5(this);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void K6(PrevPageListener prevPageListener) {
|
|
if (this.qc) {
|
|
return;
|
|
}
|
|
this.qc = true;
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null && webNestFrame.H == null && this.T2 == 0 && this.o3 == 0) {
|
|
this.Mb = PrefWeb.A;
|
|
X7(false, null, prevPageListener);
|
|
} else {
|
|
if (prevPageListener != null) {
|
|
prevPageListener.a();
|
|
}
|
|
this.qc = false;
|
|
}
|
|
}
|
|
|
|
public final void K7(boolean z) {
|
|
int i;
|
|
MyWebBody myWebBody;
|
|
if (this.f2 != null) {
|
|
ValueAnimator valueAnimator = this.Rb;
|
|
if (valueAnimator != null) {
|
|
valueAnimator.cancel();
|
|
}
|
|
ValueAnimator valueAnimator2 = this.Sb;
|
|
if (valueAnimator2 != null) {
|
|
valueAnimator2.cancel();
|
|
}
|
|
if (z && !this.j9 && !this.L3 && this.R5 == null && K5() && (myWebBody = this.e2) != null) {
|
|
i = myWebBody.e(this);
|
|
} else {
|
|
i = 0;
|
|
}
|
|
Io = i;
|
|
if (MainConst.d) {
|
|
MyWebBody myWebBody2 = this.e2;
|
|
t3();
|
|
myWebBody2.n = i;
|
|
myWebBody2.setTopColor(myWebBody2.f);
|
|
} else if (i == 0) {
|
|
this.e2.setOldTheme(0);
|
|
} else {
|
|
this.e2.setOldTheme(t3());
|
|
}
|
|
this.f2.setTranslationY(0.0f);
|
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.f2.getLayoutParams();
|
|
if (layoutParams != null && layoutParams.topMargin != i) {
|
|
layoutParams.topMargin = i;
|
|
this.f2.requestLayout();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void K8(WebNestView webNestView) {
|
|
if (webNestView != null) {
|
|
webNestView.setWebDestroy(this.d2);
|
|
}
|
|
}
|
|
|
|
public final void K9(boolean z) {
|
|
if (this.Nb == null) {
|
|
return;
|
|
}
|
|
if (z && PrefZtri.H && !this.j9 && !this.L3 && this.R5 == null && !PrefSync.j && K5()) {
|
|
this.Nb.w(false);
|
|
} else {
|
|
this.Nb.m(false);
|
|
}
|
|
}
|
|
|
|
public final void L1(String str, TabAddListener tabAddListener) {
|
|
X1(null, str, true, true, true, tabAddListener);
|
|
}
|
|
|
|
public final int L2(String str) {
|
|
if (!TextUtils.isEmpty(str) && !TextUtils.isEmpty(this.A8)) {
|
|
if (this.A8.startsWith("https://")) {
|
|
return 1;
|
|
}
|
|
if (this.A8.startsWith("file://")) {
|
|
return 2;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final void L3() {
|
|
if (this.fb != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.fb.a();
|
|
this.fb = null;
|
|
}
|
|
}
|
|
|
|
public final void L4() {
|
|
if (this.W5 != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.W5.a();
|
|
this.W5 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean L5() {
|
|
if (PrefWeb.u || PrefZone.M != 2 || !i0()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void L6() {
|
|
WebFltView webFltView;
|
|
FrameLayout frameLayout = this.W6;
|
|
WebTransControl webTransControl = this.V6;
|
|
this.W6 = null;
|
|
this.V6 = null;
|
|
if (frameLayout != null) {
|
|
try {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(frameLayout);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
if (webTransControl != null) {
|
|
webTransControl.c();
|
|
}
|
|
if (PrefAlbum.w && (webFltView = this.T6) != null) {
|
|
webFltView.setHideBlocked(false);
|
|
}
|
|
}
|
|
|
|
public final void L7(int i) {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
boolean z = this.U1;
|
|
if (myWebBody.B != null) {
|
|
myWebBody.g(this, z, i);
|
|
}
|
|
if (this.Pb != null && this.Qb != null) {
|
|
int s0 = MainUtil.s0(i, this.U1);
|
|
int k = MyIconView.k(s0, false);
|
|
if (s0 == 0) {
|
|
this.Pb.setBackgroundResource(R.drawable.outline_keyboard_arrow_up_black_24);
|
|
} else {
|
|
this.Pb.setBackgroundResource(R.drawable.outline_keyboard_arrow_up_dark_24);
|
|
}
|
|
this.Qb.setTextColor(k);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:102:0x0170 A[ORIG_RETURN, RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:104:0x0171 */
|
|
/* JADX WARN: Removed duplicated region for block: B:88:0x0138 A[Catch: Exception -> 0x0160, TryCatch #0 {Exception -> 0x0160, blocks: (B:86:0x0134, B:88:0x0138, B:90:0x014c, B:93:0x0155, B:94:0x0157, B:96:0x0147), top: B:85:0x0134 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:96:0x0147 A[Catch: Exception -> 0x0160, TryCatch #0 {Exception -> 0x0160, blocks: (B:86:0x0134, B:88:0x0138, B:90:0x014c, B:93:0x0155, B:94:0x0157, B:96:0x0147), top: B:85:0x0134 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:99:0x0162 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void L8() {
|
|
/*
|
|
Method dump skipped, instructions count: 408
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.L8():void");
|
|
}
|
|
|
|
public final void L9(boolean z) {
|
|
if (this.lb != null && this.I2 != null) {
|
|
if (z && PrefZtwo.J && D5()) {
|
|
this.lb.w(false);
|
|
} else {
|
|
this.lb.m(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void M1() {
|
|
MyWebBody myWebBody;
|
|
int e;
|
|
if (PrefTts.H && (myWebBody = this.e2) != null) {
|
|
if (!PrefTts.I) {
|
|
boolean z = this.U1;
|
|
int t3 = t3();
|
|
if (myWebBody.B == null) {
|
|
myWebBody.g(this, z, t3);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.Ob != null) {
|
|
return;
|
|
}
|
|
RelativeLayout relativeLayout = new RelativeLayout(this);
|
|
this.Ob = relativeLayout;
|
|
relativeLayout.setGravity(16);
|
|
View view = new View(this);
|
|
this.Pb = view;
|
|
int i = R.id.hand_noti_icon;
|
|
view.setId(i);
|
|
int G = (int) MainUtil.G(this.i1, 24.0f);
|
|
this.Ob.addView(this.Pb, a.g(G, G, 14));
|
|
AppCompatTextView appCompatTextView = new AppCompatTextView(this, null);
|
|
this.Qb = appCompatTextView;
|
|
appCompatTextView.setTextSize(1, 16.0f);
|
|
this.Qb.setText(R.string.onehand_noti);
|
|
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2);
|
|
layoutParams.topMargin = MainApp.F1;
|
|
layoutParams.addRule(3, i);
|
|
layoutParams.addRule(14);
|
|
this.Ob.addView(this.Qb, layoutParams);
|
|
MyWebBody myWebBody2 = this.e2;
|
|
if (myWebBody2 == null) {
|
|
e = 0;
|
|
} else {
|
|
e = myWebBody2.e(this);
|
|
}
|
|
Io = e;
|
|
if (MainConst.d) {
|
|
MyWebBody myWebBody3 = this.e2;
|
|
t3();
|
|
myWebBody3.n = e;
|
|
myWebBody3.setTopColor(myWebBody3.f);
|
|
}
|
|
this.Pb.setAlpha(0.7f);
|
|
L7(t3());
|
|
this.e2.addView(this.Ob, 0, new ViewGroup.LayoutParams(-1, e));
|
|
}
|
|
}
|
|
|
|
public final String M2() {
|
|
boolean z;
|
|
String str;
|
|
int indexOf;
|
|
int length;
|
|
int i;
|
|
int indexOf2;
|
|
String str2 = null;
|
|
if (PrefPdf.H != 1 || (z = this.U1)) {
|
|
return null;
|
|
}
|
|
if (z) {
|
|
str = null;
|
|
} else {
|
|
str = this.A8;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
str = webNestView.q(str);
|
|
}
|
|
}
|
|
if (MainUtil.q5(str, this.jc)) {
|
|
return this.kc;
|
|
}
|
|
this.jc = str;
|
|
if (!TextUtils.isEmpty(str) && (indexOf = str.indexOf("://")) != -1 && (i = indexOf + 3) < (length = str.length()) && (indexOf2 = str.indexOf(47, i)) != -1 && ((indexOf2 != i || ((i = indexOf + 4) < length && (indexOf2 = str.indexOf(47, i)) != -1)) && indexOf2 > i && indexOf2 + 1 < length)) {
|
|
str2 = str.substring(indexOf2);
|
|
}
|
|
this.kc = str2;
|
|
return str2;
|
|
}
|
|
|
|
public final void M3() {
|
|
r4();
|
|
p4();
|
|
q4();
|
|
R4();
|
|
z4();
|
|
y4();
|
|
A4();
|
|
I4();
|
|
DialogSetRate dialogSetRate = this.d4;
|
|
if (dialogSetRate != null) {
|
|
dialogSetRate.dismiss();
|
|
this.d4 = null;
|
|
}
|
|
C4();
|
|
g4();
|
|
f4();
|
|
h4();
|
|
DialogWebBookEdit dialogWebBookEdit = this.i6;
|
|
if (dialogWebBookEdit != null) {
|
|
dialogWebBookEdit.dismiss();
|
|
this.i6 = null;
|
|
}
|
|
J4();
|
|
a4();
|
|
DialogEditShort dialogEditShort = this.l6;
|
|
if (dialogEditShort != null) {
|
|
dialogEditShort.dismiss();
|
|
this.l6 = null;
|
|
}
|
|
G4();
|
|
X3();
|
|
U3();
|
|
u4();
|
|
S3();
|
|
N3();
|
|
I2();
|
|
DialogCapture dialogCapture = this.A6;
|
|
if (dialogCapture != null) {
|
|
dialogCapture.dismiss();
|
|
this.A6 = null;
|
|
}
|
|
DialogDownPage dialogDownPage = this.B6;
|
|
if (dialogDownPage != null) {
|
|
dialogDownPage.dismiss();
|
|
this.B6 = null;
|
|
}
|
|
n4();
|
|
w4();
|
|
F4();
|
|
E4();
|
|
DialogViewTrans dialogViewTrans = this.G6;
|
|
if (dialogViewTrans != null) {
|
|
dialogViewTrans.dismiss();
|
|
this.G6 = null;
|
|
}
|
|
t4();
|
|
x4();
|
|
DialogOpenType dialogOpenType = this.a7;
|
|
if (dialogOpenType != null) {
|
|
dialogOpenType.dismiss();
|
|
this.a7 = null;
|
|
}
|
|
k4();
|
|
K4();
|
|
DialogAllowPopup dialogAllowPopup = this.e7;
|
|
if (dialogAllowPopup != null) {
|
|
dialogAllowPopup.dismiss();
|
|
this.e7 = null;
|
|
}
|
|
DialogBlockLink dialogBlockLink = this.f7;
|
|
if (dialogBlockLink != null) {
|
|
dialogBlockLink.dismiss();
|
|
this.f7 = null;
|
|
}
|
|
DialogBlockImage dialogBlockImage = this.g7;
|
|
if (dialogBlockImage != null) {
|
|
dialogBlockImage.dismiss();
|
|
this.g7 = null;
|
|
}
|
|
V3();
|
|
DialogGuideArea dialogGuideArea = this.r7;
|
|
if (dialogGuideArea != null) {
|
|
dialogGuideArea.dismiss();
|
|
this.r7 = null;
|
|
}
|
|
DialogEditArea dialogEditArea = this.s7;
|
|
if (dialogEditArea != null) {
|
|
dialogEditArea.dismiss();
|
|
this.s7 = null;
|
|
}
|
|
P3();
|
|
o4();
|
|
DialogEditAuth dialogEditAuth = this.w7;
|
|
if (dialogEditAuth != null) {
|
|
dialogEditAuth.dismiss();
|
|
this.w7 = null;
|
|
}
|
|
j4();
|
|
i4();
|
|
DialogWebSelect dialogWebSelect = this.E7;
|
|
if (dialogWebSelect != null) {
|
|
dialogWebSelect.dismiss();
|
|
this.E7 = null;
|
|
}
|
|
e4();
|
|
DialogAdNative dialogAdNative = this.K7;
|
|
if (dialogAdNative != null) {
|
|
dialogAdNative.dismiss();
|
|
this.K7 = null;
|
|
}
|
|
B4();
|
|
D4();
|
|
d4();
|
|
b4();
|
|
c4();
|
|
I2();
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog != null) {
|
|
webGridDialog.dismiss();
|
|
this.U7 = null;
|
|
}
|
|
I2();
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog != null) {
|
|
webEmgDialog.dismiss();
|
|
this.V7 = null;
|
|
}
|
|
I2();
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog != null) {
|
|
webHmgDialog.dismiss();
|
|
this.W7 = null;
|
|
}
|
|
H4();
|
|
T3();
|
|
m4();
|
|
l4();
|
|
DialogSeekBright dialogSeekBright = this.c8;
|
|
if (dialogSeekBright != null) {
|
|
dialogSeekBright.dismiss();
|
|
this.c8 = null;
|
|
}
|
|
DialogSeekWebText dialogSeekWebText = this.d8;
|
|
if (dialogSeekWebText != null) {
|
|
dialogSeekWebText.dismiss();
|
|
this.d8 = null;
|
|
}
|
|
DialogSetFull dialogSetFull = this.e8;
|
|
if (dialogSetFull != null) {
|
|
dialogSetFull.dismiss();
|
|
this.e8 = null;
|
|
}
|
|
DialogSetDark dialogSetDark = this.f8;
|
|
if (dialogSetDark != null) {
|
|
dialogSetDark.dismiss();
|
|
this.f8 = null;
|
|
}
|
|
W3();
|
|
DialogSetUseTts dialogSetUseTts = this.h8;
|
|
if (dialogSetUseTts != null) {
|
|
dialogSetUseTts.dismiss();
|
|
this.h8 = null;
|
|
}
|
|
DialogSetAdblock dialogSetAdblock = this.i8;
|
|
if (dialogSetAdblock != null) {
|
|
dialogSetAdblock.dismiss();
|
|
this.i8 = null;
|
|
}
|
|
DialogSetJava dialogSetJava = this.j8;
|
|
if (dialogSetJava != null) {
|
|
dialogSetJava.dismiss();
|
|
this.j8 = null;
|
|
}
|
|
DialogSetTmem dialogSetTmem = this.k8;
|
|
if (dialogSetTmem != null) {
|
|
dialogSetTmem.dismiss();
|
|
this.k8 = null;
|
|
}
|
|
v4();
|
|
if (z5()) {
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
this.m8 = null;
|
|
if (dialogViewRead != null && !this.n8) {
|
|
this.n8 = dialogViewRead.J();
|
|
}
|
|
this.nn = false;
|
|
}
|
|
I2();
|
|
DialogViewSrc dialogViewSrc = this.p8;
|
|
if (dialogViewSrc != null) {
|
|
dialogViewSrc.dismiss();
|
|
this.p8 = null;
|
|
}
|
|
DialogSetPrivacy dialogSetPrivacy = this.q8;
|
|
if (dialogSetPrivacy != null) {
|
|
dialogSetPrivacy.dismiss();
|
|
this.q8 = null;
|
|
}
|
|
DialogSetVpn dialogSetVpn = this.r8;
|
|
if (dialogSetVpn != null) {
|
|
dialogSetVpn.dismiss();
|
|
this.r8 = null;
|
|
}
|
|
DialogSetCookie dialogSetCookie = this.s8;
|
|
if (dialogSetCookie != null) {
|
|
dialogSetCookie.dismiss();
|
|
this.s8 = null;
|
|
}
|
|
DialogSetScrFil dialogSetScrFil = this.t8;
|
|
if (dialogSetScrFil != null) {
|
|
dialogSetScrFil.dismiss();
|
|
this.t8 = null;
|
|
}
|
|
DialogWebCerti dialogWebCerti = this.u8;
|
|
if (dialogWebCerti != null) {
|
|
dialogWebCerti.dismiss();
|
|
this.u8 = null;
|
|
}
|
|
Y3();
|
|
s4();
|
|
Q3();
|
|
DialogEditMemo dialogEditMemo = this.hb;
|
|
if (dialogEditMemo != null) {
|
|
dialogEditMemo.dismiss();
|
|
this.hb = null;
|
|
}
|
|
R3();
|
|
DialogViewIp dialogViewIp = this.jb;
|
|
if (dialogViewIp != null) {
|
|
dialogViewIp.dismiss();
|
|
this.jb = null;
|
|
}
|
|
O3();
|
|
DialogUpdateScript dialogUpdateScript = this.Zb;
|
|
if (dialogUpdateScript != null) {
|
|
dialogUpdateScript.dismiss();
|
|
this.Zb = null;
|
|
}
|
|
}
|
|
|
|
public final void M4() {
|
|
a5();
|
|
L4();
|
|
S4();
|
|
W4();
|
|
V4();
|
|
Q4();
|
|
J3();
|
|
Z4();
|
|
O4();
|
|
L3();
|
|
}
|
|
|
|
public final boolean M5() {
|
|
if (PrefWeb.u || PrefZone.N != 2 || !i0()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void M6() {
|
|
Handler handler;
|
|
if (this.Za != null && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.613
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTtsView webTtsView = webViewActivity.Za;
|
|
if (webTtsView != null) {
|
|
webTtsView.f20895c = false;
|
|
webTtsView.f();
|
|
webTtsView.f = null;
|
|
webTtsView.g = null;
|
|
webTtsView.k = null;
|
|
webTtsView.o = null;
|
|
webTtsView.t = null;
|
|
webTtsView.z = null;
|
|
webTtsView.A = null;
|
|
webTtsView.T = null;
|
|
webTtsView.U = null;
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(webViewActivity.Za);
|
|
}
|
|
webViewActivity.Za = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void M7(String str, int i, boolean z) {
|
|
String str2;
|
|
boolean z2;
|
|
CastSession castSession;
|
|
if (this.I2 == null) {
|
|
return;
|
|
}
|
|
boolean z3 = false;
|
|
if (!URLUtil.isNetworkUrl(str)) {
|
|
z2 = MainUtil.r5(str);
|
|
str2 = MainUtil.O0(str);
|
|
if (!URLUtil.isNetworkUrl(str2)) {
|
|
MainUtil.e8(this, R.string.not_support_video);
|
|
return;
|
|
}
|
|
} else {
|
|
str2 = str;
|
|
z2 = false;
|
|
}
|
|
if (!z2) {
|
|
if (z) {
|
|
C3(str2, v3(this.I2, str2));
|
|
return;
|
|
}
|
|
String t2 = MainUtil.t2(MainUtil.U3(str2, false));
|
|
if (!TextUtils.isEmpty(t2) && t2.startsWith("text")) {
|
|
C3(str2, v3(this.I2, str2));
|
|
return;
|
|
}
|
|
}
|
|
if (i == 1 && (castSession = this.tb) != null && castSession.c()) {
|
|
j6(0L, str2);
|
|
return;
|
|
}
|
|
if (!z2 && str2.endsWith(".gif")) {
|
|
B3(str2, null, false);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
z3 = true;
|
|
}
|
|
D3(str2, str, z3);
|
|
}
|
|
|
|
public final void M8(int i) {
|
|
CoordinatorLayout.LayoutParams layoutParams;
|
|
int i2;
|
|
WebNestLayout webNestLayout = this.i2;
|
|
if (webNestLayout != null && (layoutParams = (CoordinatorLayout.LayoutParams) webNestLayout.getLayoutParams()) != null && (i2 = ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin) != i) {
|
|
this.Ng = i2;
|
|
((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin = i;
|
|
this.i2.requestLayout();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r0v5, types: [com.mycompany.app.view.MySnackbar$SnackItem, java.lang.Object] */
|
|
public final void M9(String str, String str2) {
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if ((webVideoFrame == null || !webVideoFrame.j()) && !TextUtils.isEmpty(str) && !"about:blank".equals(str)) {
|
|
if (TextUtils.isEmpty(str2)) {
|
|
str2 = this.A8;
|
|
}
|
|
?? obj = new Object();
|
|
obj.d = str;
|
|
obj.e = str2;
|
|
U9(false);
|
|
T4();
|
|
ea(1, true);
|
|
MySnackbar mySnackbar = new MySnackbar(this);
|
|
this.s3 = mySnackbar;
|
|
mySnackbar.setAppBarView(this.g2);
|
|
this.s3.setSnackItem(obj);
|
|
this.s3.setActivity(this);
|
|
MySnackbar mySnackbar2 = this.s3;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
int i = R.string.pop_blocked;
|
|
boolean z = PrefZone.c0;
|
|
MySnackbar.SnackbarListener snackbarListener = new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.422
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
MySnackbar.SnackItem snackItem;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MySnackbar mySnackbar3 = webViewActivity.s3;
|
|
if (mySnackbar3 != null && (snackItem = mySnackbar3.getSnackItem()) != null) {
|
|
String str3 = snackItem.d;
|
|
String str4 = snackItem.e;
|
|
boolean z2 = PrefZone.c0;
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.k4();
|
|
if (!TextUtils.isEmpty(str3) && !"about:blank".equals(str3)) {
|
|
int i2 = R.style.DialogExpandTheme;
|
|
if (webViewActivity.h0()) {
|
|
i2 = 0;
|
|
}
|
|
if (TextUtils.isEmpty(str4)) {
|
|
str4 = webViewActivity.A8;
|
|
}
|
|
DialogPopupMenu dialogPopupMenu = new DialogPopupMenu(webViewActivity, i2, str3, str4, z2, new DialogPopupMenu.PopupMenuListener() { // from class: com.mycompany.app.web.WebViewActivity.423
|
|
@Override // com.mycompany.app.dialog.DialogPopupMenu.PopupMenuListener
|
|
public final void a(int i3, String str5, String str6) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (i3 != 0) {
|
|
if (i3 != 1) {
|
|
if (i3 != 2) {
|
|
if (i3 != 3) {
|
|
if (i3 == 4) {
|
|
WebViewActivity.v1(webViewActivity2);
|
|
Handler handler = webViewActivity2.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.423.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i4 = WebViewActivity.Fo;
|
|
webViewActivity3.k4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
int i4 = WebViewActivity.Fo;
|
|
webViewActivity2.k4();
|
|
webViewActivity2.z3(str5, true);
|
|
return;
|
|
}
|
|
int i5 = WebViewActivity.Fo;
|
|
webViewActivity2.k4();
|
|
webViewActivity2.r9(str5, true);
|
|
return;
|
|
}
|
|
webViewActivity2.Qc = str6;
|
|
webViewActivity2.F1(null, str5, true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.423.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z3) {
|
|
WebViewActivity.this.Qc = null;
|
|
}
|
|
});
|
|
webViewActivity2.k4();
|
|
return;
|
|
}
|
|
int i6 = WebViewActivity.Fo;
|
|
webViewActivity2.k4();
|
|
webViewActivity2.G9(str5, 1, str6, false);
|
|
}
|
|
});
|
|
webViewActivity.b7 = dialogPopupMenu;
|
|
dialogPopupMenu.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.424
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.k4();
|
|
}
|
|
});
|
|
if (MainConst.e || i2 != 0) {
|
|
webViewActivity.b7.x(webViewActivity.t3(), webViewActivity.b3(), webViewActivity.U1, webViewActivity.a6(), true);
|
|
}
|
|
}
|
|
}
|
|
if (PrefZone.c0) {
|
|
PrefZone.c0 = false;
|
|
PrefSet.d(15, webViewActivity.i1, "mPopNoti", false);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
MySnackbar.SnackItem snackItem;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MySnackbar mySnackbar3 = webViewActivity.s3;
|
|
if (mySnackbar3 == null || (snackItem = mySnackbar3.getSnackItem()) == null) {
|
|
return;
|
|
}
|
|
String str3 = snackItem.d;
|
|
webViewActivity.Qc = snackItem.e;
|
|
webViewActivity.F1(null, str3, true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.422.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z2) {
|
|
WebViewActivity.this.Qc = null;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.s3 = null;
|
|
}
|
|
};
|
|
mySnackbar2.i = 4;
|
|
mySnackbar2.m = str;
|
|
mySnackbar2.o = z;
|
|
mySnackbar2.x(myWebCoord, i, 4, 3, snackbarListener);
|
|
}
|
|
}
|
|
|
|
public final void N1() {
|
|
if (this.Nb == null && this.e2 != null) {
|
|
try {
|
|
WebFltView webFltView = new WebFltView(this, 0);
|
|
this.Nb = webFltView;
|
|
webFltView.q();
|
|
this.Nb.setVisibility(8);
|
|
this.Nb.setFltListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.595
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.K5()) {
|
|
MainUtil.e8(webViewActivity, R.string.not_support_land);
|
|
} else if (PrefTts.H) {
|
|
webViewActivity.ba();
|
|
} else {
|
|
webViewActivity.aa();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = this.e2;
|
|
WebFltView webFltView2 = this.Nb;
|
|
int i = MainApp.g1;
|
|
myWebBody.addView(webFltView2, i, i);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r3v0 */
|
|
/* JADX WARN: Type inference failed for: r3v2, types: [java.lang.Object, com.mycompany.app.view.MyBarView$BarItem] */
|
|
/* JADX WARN: Type inference failed for: r3v3 */
|
|
/* JADX WARN: Type inference failed for: r3v4 */
|
|
public final void N2(int i, int i2) {
|
|
int i3;
|
|
int i4;
|
|
int i5;
|
|
boolean J5;
|
|
MyBarView myBarView = this.p2;
|
|
if (myBarView != null) {
|
|
int[] iArr = myBarView.i;
|
|
if (iArr != null) {
|
|
i3 = iArr.length;
|
|
} else {
|
|
i3 = 0;
|
|
}
|
|
MyBarView.BarItem barItem = 0;
|
|
barItem = 0;
|
|
barItem = 0;
|
|
if (i3 != 0) {
|
|
MyIconView[] myIconViewArr = myBarView.j;
|
|
if (myIconViewArr != null) {
|
|
i4 = myIconViewArr.length;
|
|
} else {
|
|
i4 = 0;
|
|
}
|
|
if (i3 == i4) {
|
|
int i6 = 0;
|
|
while (true) {
|
|
if (i6 >= i3) {
|
|
break;
|
|
}
|
|
MyIconView myIconView = myBarView.j[i6];
|
|
if (myIconView != null && (i5 = myBarView.i[i6]) != 0 && i5 != 68 && i5 >= 0 && i5 < 74) {
|
|
if (!myIconView.isShown()) {
|
|
J5 = false;
|
|
} else {
|
|
J5 = MainUtil.J5(i, i2, 0, myIconView);
|
|
}
|
|
if (J5) {
|
|
barItem = new Object();
|
|
barItem.f18531a = myIconView;
|
|
barItem.b = i5;
|
|
break;
|
|
}
|
|
}
|
|
i6++;
|
|
}
|
|
}
|
|
}
|
|
if (barItem == 0) {
|
|
return;
|
|
}
|
|
this.pa = barItem.f18531a;
|
|
this.qa = barItem.b;
|
|
}
|
|
}
|
|
|
|
public final void N3() {
|
|
SettingListAdapter settingListAdapter = this.v6;
|
|
if (settingListAdapter != null) {
|
|
settingListAdapter.z();
|
|
this.v6 = null;
|
|
}
|
|
MyDialogBottom myDialogBottom = this.s6;
|
|
if (myDialogBottom != null) {
|
|
myDialogBottom.dismiss();
|
|
this.s6 = null;
|
|
this.t6 = null;
|
|
this.u6 = null;
|
|
}
|
|
}
|
|
|
|
public final void N4() {
|
|
WebMoveText webMoveText = this.h7;
|
|
if (webMoveText != null) {
|
|
webMoveText.s();
|
|
}
|
|
}
|
|
|
|
public final boolean N5(int i) {
|
|
if (this.q2 != i) {
|
|
return true;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
if (PrefPdf.z) {
|
|
i = 0;
|
|
}
|
|
if (myBarView.getColorType() != MainUtil.s0(i, this.U1)) {
|
|
return true;
|
|
}
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null && myBarView2.getColorType() != MainUtil.s0(0, this.U1)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void N6(WebNestFrame webNestFrame) {
|
|
boolean z;
|
|
if (this.i2 != null) {
|
|
try {
|
|
if (webNestFrame.getVisibility() != 8) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
webNestFrame.p(z);
|
|
if (z) {
|
|
webNestFrame.setVisibility(8);
|
|
}
|
|
webNestFrame.u();
|
|
this.i2.removeViewInLayout(webNestFrame);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void N7() {
|
|
MyBarFrame myBarFrame = this.k2;
|
|
if (myBarFrame != null) {
|
|
if (this.L3) {
|
|
if (this.j9) {
|
|
myBarFrame.setVisibility(8);
|
|
return;
|
|
} else {
|
|
if (this.C2 != null) {
|
|
if (O5()) {
|
|
this.k2.setVisibility(8);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
myBarFrame.setVisibility(8);
|
|
return;
|
|
}
|
|
}
|
|
if (this.D3 == 0) {
|
|
myBarFrame.setVisibility(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void N8(WebNestView webNestView, int i) {
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
int i2 = PrefZone.w;
|
|
if (i2 < 50 || i2 > 500) {
|
|
PrefZone.w = 100;
|
|
}
|
|
webNestView.setHasSetting(true);
|
|
K8(webNestView);
|
|
WebSettings settings = webNestView.getSettings();
|
|
settings.setTextZoom(PrefZone.w);
|
|
settings.setSupportZoom(true);
|
|
settings.setBuiltInZoomControls(true);
|
|
settings.setDisplayZoomControls(false);
|
|
settings.setUseWideViewPort(true);
|
|
settings.setLoadWithOverviewMode(true);
|
|
settings.setDomStorageEnabled(true);
|
|
settings.setJavaScriptCanOpenWindowsAutomatically(true);
|
|
settings.setSupportMultipleWindows(true);
|
|
settings.setMediaPlaybackRequiresUserGesture(false);
|
|
settings.setDatabaseEnabled(true);
|
|
settings.setMixedContentMode(0);
|
|
if (Build.VERSION.SDK_INT < 30) {
|
|
settings.setAllowFileAccessFromFileURLs(true);
|
|
settings.setAllowUniversalAccessFromFileURLs(true);
|
|
}
|
|
settings.setAllowFileAccess(true);
|
|
if (PrefZone.u) {
|
|
settings.setLoadsImagesAutomatically(false);
|
|
}
|
|
if (PrefZone.v) {
|
|
settings.setOffscreenPreRaster(true);
|
|
}
|
|
if (i == 0) {
|
|
MainUtil.d5(this.i1);
|
|
}
|
|
if (webNestView.C) {
|
|
MainUtil.Q7(settings, MainUtil.F0(this.i1));
|
|
} else {
|
|
webNestView.K(this.i1, PrefZtwo.p, settings);
|
|
}
|
|
webNestView.setEnableJs(PrefWeb.H);
|
|
webNestView.setViewCookie(this.i1);
|
|
webNestView.setOverScrollMode(2);
|
|
}
|
|
|
|
public final void N9() {
|
|
if (PrefRead.y && this.da == null && this.e2 != null && !this.Bo) {
|
|
this.Bo = true;
|
|
Handler handler = this.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.655
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r3v9, types: [android.view.View$OnClickListener, java.lang.Object] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z = PrefRead.y;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z) {
|
|
if (webViewActivity.da == null && webViewActivity.e2 != null) {
|
|
MyFadeFrame myFadeFrame = new MyFadeFrame(webViewActivity);
|
|
int k3 = webViewActivity.k3();
|
|
myFadeFrame.setPadding(k3, 0, k3, 0);
|
|
int G = (int) MainUtil.G(webViewActivity.i1, 30.0f);
|
|
int i = (int) (MainApp.f1 / 2.0f);
|
|
MyRoundFrame myRoundFrame = new MyRoundFrame(webViewActivity);
|
|
int i2 = MainApp.E1;
|
|
myRoundFrame.setPadding(i2, G, i2, i);
|
|
myRoundFrame.c(-14983648, MainApp.E1);
|
|
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);
|
|
layoutParams.gravity = 8388691;
|
|
myFadeFrame.addView(myRoundFrame, layoutParams);
|
|
LinearLayout linearLayout = new LinearLayout(webViewActivity);
|
|
linearLayout.setOrientation(1);
|
|
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-2, -2);
|
|
layoutParams2.gravity = 1;
|
|
myRoundFrame.addView(linearLayout, layoutParams2);
|
|
AppCompatTextView appCompatTextView = new AppCompatTextView(webViewActivity, null);
|
|
appCompatTextView.setLineSpacing(MainApp.G1, 1.0f);
|
|
appCompatTextView.setTextSize(1, 16.0f);
|
|
appCompatTextView.setTextColor(-1);
|
|
linearLayout.addView(appCompatTextView, -2, -2);
|
|
MyButtonText myButtonText = new MyButtonText(webViewActivity);
|
|
int i3 = MainApp.F1;
|
|
myButtonText.setPadding(0, i3, 0, i3);
|
|
myButtonText.setGravity(1);
|
|
myButtonText.setTextSize(1, 14.0f);
|
|
myButtonText.setTextColor(-1);
|
|
myButtonText.setRoundRect(true);
|
|
myButtonText.setRoundRadius(MainApp.F1);
|
|
myButtonText.v(-1, MainApp.n1);
|
|
myButtonText.setBgPreColor(1155588320);
|
|
LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(-1, -2);
|
|
layoutParams3.topMargin = G;
|
|
layoutParams3.setMarginStart(MainApp.i1);
|
|
layoutParams3.setMarginEnd(MainApp.i1);
|
|
linearLayout.addView(myButtonText, layoutParams3);
|
|
MyButtonText myButtonText2 = new MyButtonText(webViewActivity);
|
|
int i4 = MainApp.F1;
|
|
myButtonText2.setPadding(0, i4, 0, i4);
|
|
myButtonText2.setGravity(1);
|
|
myButtonText2.setTextSize(1, 14.0f);
|
|
myButtonText2.setTextColor(-1);
|
|
myButtonText2.setRoundRect(true);
|
|
myButtonText2.setRoundRadius(MainApp.F1);
|
|
myButtonText2.v(-1, MainApp.n1);
|
|
myButtonText2.setBgPreColor(1155588320);
|
|
LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(-1, -2);
|
|
layoutParams4.topMargin = i;
|
|
layoutParams4.setMarginStart(MainApp.i1);
|
|
layoutParams4.setMarginEnd(MainApp.i1);
|
|
linearLayout.addView(myButtonText2, layoutParams4);
|
|
webViewActivity.da = myFadeFrame;
|
|
appCompatTextView.setText(R.string.gesture_guide);
|
|
myButtonText.setText(R.string.setting);
|
|
myButtonText2.setText(R.string.ok);
|
|
myButtonText.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.656
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
boolean z2 = PrefRead.y;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (z2) {
|
|
PrefRead.y = false;
|
|
PrefSet.d(8, webViewActivity2.i1, "mGuideGesture", false);
|
|
}
|
|
MyFadeFrame myFadeFrame2 = webViewActivity2.da;
|
|
if (myFadeFrame2 != null) {
|
|
myFadeFrame2.d(true);
|
|
}
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.656.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass656 anonymousClass656 = AnonymousClass656.this;
|
|
if (WebViewActivity.this.i1 == null) {
|
|
return;
|
|
}
|
|
Intent intent = new Intent(WebViewActivity.this.i1, (Class<?>) SettingGesture.class);
|
|
intent.putExtra("EXTRA_NOTI", true);
|
|
intent.putExtra("EXTRA_INDEX", 1);
|
|
WebViewActivity.this.startActivity(intent);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
myButtonText2.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.657
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
boolean z2 = PrefRead.y;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (z2) {
|
|
PrefRead.y = false;
|
|
PrefSet.d(8, webViewActivity2.i1, "mGuideGesture", false);
|
|
}
|
|
MyFadeFrame myFadeFrame2 = webViewActivity2.da;
|
|
if (myFadeFrame2 != null) {
|
|
myFadeFrame2.d(true);
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.da.setSizeListener(new ImageSizeListener() { // from class: com.mycompany.app.web.WebViewActivity.658
|
|
@Override // com.mycompany.app.image.ImageSizeListener
|
|
public final void a(View view, int i5, int i6) {
|
|
Handler handler2 = WebViewActivity.this.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.658.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int k32;
|
|
AnonymousClass658 anonymousClass658 = AnonymousClass658.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.da == null || (k32 = webViewActivity2.k3()) == WebViewActivity.this.da.getPaddingLeft()) {
|
|
return;
|
|
}
|
|
WebViewActivity.this.da.setPadding(k32, 0, k32, 0);
|
|
WebViewActivity.this.da.requestLayout();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity.da.setListener(new MyFadeListener() { // from class: com.mycompany.app.web.WebViewActivity.659
|
|
@Override // com.mycompany.app.view.MyFadeListener
|
|
public final void a(boolean z2) {
|
|
WebViewActivity webViewActivity2;
|
|
MyFadeFrame myFadeFrame2;
|
|
if (!z2 && (myFadeFrame2 = (webViewActivity2 = WebViewActivity.this).da) != null && webViewActivity2.e2 != null) {
|
|
myFadeFrame2.f();
|
|
webViewActivity2.e2.removeView(webViewActivity2.da);
|
|
webViewActivity2.da = null;
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyFadeListener
|
|
public final void b(boolean z2, boolean z3) {
|
|
}
|
|
});
|
|
webViewActivity.da.setOnClickListener(new Object());
|
|
webViewActivity.e2.addView(webViewActivity.da, -1, -1);
|
|
}
|
|
} else {
|
|
int i5 = WebViewActivity.Fo;
|
|
}
|
|
webViewActivity.Bo = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void O1(WebNestFrame webNestFrame, String str, boolean z, TabAddListener tabAddListener) {
|
|
X1(webNestFrame, str, z, false, false, tabAddListener);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r9v1, types: [com.mycompany.app.web.WebNestFrame$PageItem, java.lang.Object] */
|
|
public final WebNestFrame O2(long j, String str, boolean z, boolean z2) {
|
|
boolean equals = "file:///android_asset/shortcut.html".equals(str);
|
|
WebNestFrame webNestFrame = new WebNestFrame(this);
|
|
webNestFrame.setTabUid(j);
|
|
webNestFrame.E(equals);
|
|
webNestFrame.setVisibility(4);
|
|
if (z2) {
|
|
i6();
|
|
WebNestView webNestView = new WebNestView(this);
|
|
K8(webNestView);
|
|
webNestView.a1 = equals;
|
|
webNestView.z0 = true;
|
|
webNestView.A0 = j;
|
|
webNestView.B0 = str;
|
|
webNestView.setDeskMode(z);
|
|
webNestFrame.k(webNestView, 0, 0);
|
|
webNestView.setScrollPos(PrefZone.x);
|
|
webNestView.g();
|
|
webNestFrame.setListener(new AnonymousClass200());
|
|
return webNestFrame;
|
|
}
|
|
?? obj = new Object();
|
|
obj.b = true;
|
|
obj.f19337c = j;
|
|
obj.d = str;
|
|
obj.f = z;
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(obj);
|
|
webNestFrame.o = arrayList;
|
|
webNestFrame.p = 0;
|
|
webNestFrame.r = webNestFrame.q;
|
|
webNestFrame.setListener(new AnonymousClass200());
|
|
return webNestFrame;
|
|
}
|
|
|
|
public final void O3() {
|
|
DialogSetMsg dialogSetMsg = this.Yb;
|
|
if (dialogSetMsg != null) {
|
|
dialogSetMsg.dismiss();
|
|
this.Yb = null;
|
|
}
|
|
}
|
|
|
|
public final void O4() {
|
|
if (this.Oa != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.Oa.a();
|
|
this.Oa = null;
|
|
}
|
|
}
|
|
|
|
public final boolean O5() {
|
|
if (this.z2 == 1) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void O6() {
|
|
this.V3 = 0;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
MyIconView myIconView = this.R3;
|
|
if (myIconView != null) {
|
|
myIconView.x(webNestView.p0, true);
|
|
return;
|
|
}
|
|
MyIconView myIconView2 = this.S3;
|
|
if (myIconView2 != null) {
|
|
myIconView2.x(webNestView.p0, true);
|
|
return;
|
|
}
|
|
WebDownView webDownView = this.T3;
|
|
if (webDownView != null) {
|
|
webDownView.p(webNestView.p0);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void O7(boolean z) {
|
|
RelativeLayout.LayoutParams layoutParams;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null || (layoutParams = (RelativeLayout.LayoutParams) myWebCoord.getLayoutParams()) == null) {
|
|
return;
|
|
}
|
|
if (z) {
|
|
layoutParams.leftMargin = PrefTts.F;
|
|
layoutParams.rightMargin = PrefTts.G;
|
|
} else {
|
|
layoutParams.leftMargin = 0;
|
|
layoutParams.rightMargin = 0;
|
|
}
|
|
}
|
|
|
|
public final void O8(WebNestView webNestView) {
|
|
if (webNestView == null || webNestView.h1) {
|
|
return;
|
|
}
|
|
webNestView.setJsAdded(true);
|
|
webNestView.addJavascriptInterface(new WebAppInterface(), "android");
|
|
this.Dn = false;
|
|
}
|
|
|
|
public final void O9() {
|
|
boolean z;
|
|
MyEditAuto myEditAuto;
|
|
if (this.S2 && PrefWeb.B) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
this.S2 = false;
|
|
if (z && (myEditAuto = this.x2) != null) {
|
|
myEditAuto.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.102
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.E7(true);
|
|
}
|
|
}, 200L);
|
|
}
|
|
}
|
|
|
|
public final void P1() {
|
|
Handler handler;
|
|
if (this.lb == null && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.635
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.lb == null && webViewActivity.e2 != null) {
|
|
try {
|
|
WebFltView webFltView = new WebFltView(webViewActivity, 1);
|
|
webViewActivity.lb = webFltView;
|
|
webFltView.q();
|
|
if (!PrefZtwo.y && webViewActivity.D5()) {
|
|
if (webViewActivity.bm != null) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (z) {
|
|
WebViewActivity.e1(webViewActivity, true);
|
|
}
|
|
webViewActivity.lb.setVisibility(0);
|
|
} else {
|
|
webViewActivity.lb.setVisibility(8);
|
|
}
|
|
webViewActivity.lb.setFltListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.635.1
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i) {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebFltView webFltView2 = webViewActivity2.lb;
|
|
if (webFltView2 != null) {
|
|
if (webFltView2.A) {
|
|
MainUtil.e8(webViewActivity2, R.string.wait_retry);
|
|
return;
|
|
}
|
|
if (webViewActivity2.G1 || webViewActivity2.J5() || webViewActivity2.d6) {
|
|
return;
|
|
}
|
|
webViewActivity2.g4();
|
|
WebFltView webFltView3 = webViewActivity2.lb;
|
|
if (webFltView3 != null) {
|
|
webFltView3.setHideBlocked(true);
|
|
}
|
|
webViewActivity2.d6 = false;
|
|
webViewActivity2.c6 = new DialogNewsMenu(webViewActivity2, webViewActivity2.e2, view, webViewActivity2.j1, new DialogMenuMain.DownMenuListener() { // from class: com.mycompany.app.web.WebViewActivity.322
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.d6 = false;
|
|
webViewActivity3.g4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void b(View view2, int i2) {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.lb != null && i2 >= 0) {
|
|
int i3 = i2 % 10;
|
|
webViewActivity3.g4();
|
|
if (i3 == 9) {
|
|
if (webViewActivity3.G1 || webViewActivity3.J5()) {
|
|
return;
|
|
}
|
|
webViewActivity3.h4();
|
|
webViewActivity3.L9(false);
|
|
DialogNewsSearch dialogNewsSearch = new DialogNewsSearch(webViewActivity3, webViewActivity3.f2, new DialogEditText.EditTextListener() { // from class: com.mycompany.app.web.WebViewActivity.325
|
|
@Override // com.mycompany.app.dialog.DialogEditText.EditTextListener
|
|
public final void a(String str) {
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.h4();
|
|
if (webViewActivity4.lb == null) {
|
|
return;
|
|
}
|
|
if (PrefZtwo.Q != 9 || !MainUtil.q5(PrefZtwo.R, str)) {
|
|
PrefZtwo.Q = 9;
|
|
PrefZtwo.R = str;
|
|
PrefZtwo.u(webViewActivity4.i1);
|
|
}
|
|
WebViewActivity.J0(webViewActivity4);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogEditText.EditTextListener
|
|
public final void b() {
|
|
}
|
|
});
|
|
webViewActivity3.f6 = dialogNewsSearch;
|
|
dialogNewsSearch.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.326
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.h4();
|
|
webViewActivity4.L9(true);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (PrefZtwo.Q != i3) {
|
|
PrefZtwo.Q = i3;
|
|
PrefSet.f(webViewActivity3.i1, 16, i3, "mNewsTopic");
|
|
}
|
|
WebViewActivity.J0(webViewActivity3);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void c() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void d() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void e() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void f() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.lb != null) {
|
|
webViewActivity3.g4();
|
|
if (webViewActivity3.J5()) {
|
|
return;
|
|
}
|
|
webViewActivity3.f4();
|
|
DialogNewsLocale dialogNewsLocale = new DialogNewsLocale(webViewActivity3, null, new MainSelectAdapter.MainSelectListener() { // from class: com.mycompany.app.web.WebViewActivity.323
|
|
@Override // com.mycompany.app.main.MainSelectAdapter.MainSelectListener
|
|
public final void a(int i2) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.f4();
|
|
if (webViewActivity4.lb != null && PrefZtwo.N != i2) {
|
|
PrefZtwo.N = i2;
|
|
PrefSet.f(webViewActivity4.i1, 16, i2, "mNewsLang2");
|
|
QuickView quickView = webViewActivity4.I2.Z0;
|
|
if (quickView != null) {
|
|
quickView.g(true);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
webViewActivity3.e6 = dialogNewsLocale;
|
|
dialogNewsLocale.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.324
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.f4();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void g() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void h() {
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebFltView webFltView2 = webViewActivity.lb;
|
|
int i = MainApp.g1;
|
|
myWebBody.addView(webFltView2, i, i);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final int P2() {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
return 0;
|
|
}
|
|
if (MainConst.d) {
|
|
return myWebBody.getRectTop();
|
|
}
|
|
if (!PrefWeb.t) {
|
|
return 0;
|
|
}
|
|
return MainUtil.z3(this.i1, getWindow(), a0());
|
|
}
|
|
|
|
public final void P3() {
|
|
JsResult jsResult = this.u7;
|
|
if (jsResult != null) {
|
|
jsResult.cancel();
|
|
this.u7 = null;
|
|
}
|
|
DialogSetMsg dialogSetMsg = this.t7;
|
|
if (dialogSetMsg != null) {
|
|
dialogSetMsg.dismiss();
|
|
this.t7 = null;
|
|
}
|
|
}
|
|
|
|
public final void P4() {
|
|
boolean z;
|
|
MyProgressBar myProgressBar = this.G2;
|
|
if (myProgressBar == null) {
|
|
z = false;
|
|
} else {
|
|
z = !myProgressBar.B;
|
|
}
|
|
if (z) {
|
|
a8(100);
|
|
}
|
|
}
|
|
|
|
public final boolean P5() {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
if (!this.j9 && !this.L3 && !webNestView.y() && this.C3 == null && this.R5 == null) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void P6(boolean z, boolean z2) {
|
|
if (this.ga == 0 && this.I2 != null) {
|
|
p5(true, false);
|
|
if (z) {
|
|
if (this.j1) {
|
|
if (z2) {
|
|
MyScrollNavi myScrollNavi = this.e4;
|
|
if (myScrollNavi != null) {
|
|
myScrollNavi.c();
|
|
}
|
|
MyScrollNavi myScrollNavi2 = this.f4;
|
|
if (myScrollNavi2 != null) {
|
|
myScrollNavi2.c();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MyScrollNavi myScrollNavi3 = this.e4;
|
|
if (myScrollNavi3 != null) {
|
|
myScrollNavi3.c();
|
|
}
|
|
MyScrollNavi myScrollNavi4 = this.f4;
|
|
if (myScrollNavi4 != null) {
|
|
myScrollNavi4.c();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (z2) {
|
|
MyScrollNavi myScrollNavi5 = this.e4;
|
|
if (myScrollNavi5 != null) {
|
|
myScrollNavi5.c();
|
|
}
|
|
MyScrollNavi myScrollNavi6 = this.f4;
|
|
if (myScrollNavi6 != null) {
|
|
myScrollNavi6.c();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MyScrollNavi myScrollNavi7 = this.e4;
|
|
if (myScrollNavi7 != null) {
|
|
myScrollNavi7.c();
|
|
}
|
|
MyScrollNavi myScrollNavi8 = this.f4;
|
|
if (myScrollNavi8 != null) {
|
|
myScrollNavi8.c();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MyScrollNavi myScrollNavi9 = this.e4;
|
|
if (myScrollNavi9 != null) {
|
|
myScrollNavi9.c();
|
|
}
|
|
MyScrollNavi myScrollNavi10 = this.f4;
|
|
if (myScrollNavi10 != null) {
|
|
myScrollNavi10.c();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:46:0x0070, code lost:
|
|
|
|
if (android.text.TextUtils.isEmpty(r6.no) == false) goto L41;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
|
|
/** Clear element long-press state (mo/no/oo/po/so/uo/vo/…). */
|
|
public final void resetElementLongPress() {
|
|
this.mo = null;
|
|
this.no = null;
|
|
this.oo = null;
|
|
this.qo = null;
|
|
this.ro = null;
|
|
this.po = false;
|
|
this.so = false;
|
|
this.to = false;
|
|
this.uo = false;
|
|
this.vo = false;
|
|
this.wo = false;
|
|
}
|
|
|
|
/**
|
|
* Drive link/image HitTest for page Preview ({@code DialogWebView} / {@code c7}).
|
|
* Activity context menus do not reliably fire for WebViews inside Dialog windows,
|
|
* and {@code z1} normally aborts while Preview keeps {@code J5()} true.
|
|
*/
|
|
public final boolean handleWebNestLongClick(WebNestView webNestView) {
|
|
if (webNestView == null || this.k7 != null || this.R5 != null) {
|
|
return false;
|
|
}
|
|
if (this.m6 != null) {
|
|
return true;
|
|
}
|
|
resetElementLongPress();
|
|
try {
|
|
WebView.HitTestResult hit = webNestView.getHitTestResult();
|
|
if (hit == null) {
|
|
return false;
|
|
}
|
|
int type = hit.getType();
|
|
String link = null;
|
|
String image = null;
|
|
if (type == 5 || type == 8) {
|
|
image = hit.getExtra();
|
|
} else if (type == 7) {
|
|
link = hit.getExtra();
|
|
} else {
|
|
return false;
|
|
}
|
|
if (this.c7 != null) {
|
|
if (TextUtils.isEmpty(link) && TextUtils.isEmpty(image)) {
|
|
// fall through to AnchorHandler
|
|
} else {
|
|
MainUtil.l7(webNestView);
|
|
z1(this, link, image, false, null, true);
|
|
return true;
|
|
}
|
|
}
|
|
this.so = true;
|
|
webNestView.requestFocusNodeHref(new AnchorHandler(this, link, image).obtainMessage());
|
|
return true;
|
|
} catch (Exception unused) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public final void P7() {
|
|
/*
|
|
r6 = this;
|
|
boolean r0 = r6.vo
|
|
if (r0 == 0) goto L6
|
|
goto L77
|
|
L6:
|
|
com.mycompany.app.web.WebVideoFrame r0 = r6.R5
|
|
if (r0 == 0) goto Lc
|
|
goto L77
|
|
Lc:
|
|
boolean r0 = r6.po
|
|
r1 = 400(0x190, double:1.976E-321)
|
|
r3 = 0
|
|
if (r0 == 0) goto L6a
|
|
boolean r0 = r6.so
|
|
if (r0 == 0) goto L6a
|
|
java.lang.String r0 = r6.mo
|
|
java.lang.String r5 = r6.no
|
|
boolean r5 = android.text.TextUtils.isEmpty(r5)
|
|
if (r5 != 0) goto L25
|
|
java.lang.String r5 = r6.no
|
|
goto L27
|
|
L25:
|
|
java.lang.String r5 = r6.ro
|
|
L27:
|
|
boolean r0 = android.text.TextUtils.isEmpty(r0)
|
|
if (r0 == 0) goto L68
|
|
boolean r0 = android.text.TextUtils.isEmpty(r5)
|
|
if (r0 == 0) goto L68
|
|
java.lang.String r0 = r6.oo
|
|
boolean r3 = android.text.TextUtils.isEmpty(r0)
|
|
if (r3 != 0) goto L50
|
|
boolean r3 = r6.uo
|
|
if (r3 == 0) goto L40
|
|
goto L77
|
|
L40:
|
|
r6.yo = r0
|
|
android.os.Handler r0 = r6.O0
|
|
if (r0 != 0) goto L47
|
|
goto L77
|
|
L47:
|
|
com.mycompany.app.web.WebViewActivity$645 r3 = new com.mycompany.app.web.WebViewActivity$645
|
|
r3.<init>()
|
|
r0.postDelayed(r3, r1)
|
|
return
|
|
L50:
|
|
boolean r0 = com.mycompany.app.pref.PrefWeb.p
|
|
if (r0 != 0) goto L55
|
|
goto L77
|
|
L55:
|
|
boolean r0 = r6.uo
|
|
if (r0 == 0) goto L5a
|
|
goto L77
|
|
L5a:
|
|
android.os.Handler r0 = r6.O0
|
|
if (r0 != 0) goto L5f
|
|
goto L77
|
|
L5f:
|
|
com.mycompany.app.web.WebViewActivity$646 r3 = new com.mycompany.app.web.WebViewActivity$646
|
|
r3.<init>()
|
|
r0.postDelayed(r3, r1)
|
|
return
|
|
L68:
|
|
r1 = r3
|
|
goto L73
|
|
L6a:
|
|
java.lang.String r0 = r6.no
|
|
boolean r0 = android.text.TextUtils.isEmpty(r0)
|
|
if (r0 != 0) goto L73
|
|
goto L68
|
|
L73:
|
|
android.os.Handler r0 = r6.O0
|
|
if (r0 != 0) goto L78
|
|
L77:
|
|
return
|
|
L78:
|
|
com.mycompany.app.web.WebViewActivity$644 r3 = new com.mycompany.app.web.WebViewActivity$644
|
|
r3.<init>()
|
|
r0.postDelayed(r3, r1)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.P7():void");
|
|
}
|
|
|
|
public final void P9(WebNestFrame webNestFrame) {
|
|
if (!this.Mb && webNestFrame != null && this.f2 != null) {
|
|
webNestFrame.setVisibility(8);
|
|
this.Vf = webNestFrame;
|
|
this.f2.post(new AnonymousClass140());
|
|
} else {
|
|
this.Mb = false;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.t(null);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void Q1(String str, String str2, boolean z) {
|
|
if (this.H2 != null && !this.sc) {
|
|
this.sc = true;
|
|
this.Lb = false;
|
|
if (this.R5 != null) {
|
|
b5();
|
|
}
|
|
r6();
|
|
I3(true);
|
|
K3();
|
|
if (!z && t2(str)) {
|
|
P4();
|
|
w6();
|
|
this.sc = false;
|
|
return;
|
|
}
|
|
t6(false);
|
|
H2();
|
|
this.ve = str;
|
|
this.we = str2;
|
|
this.xe = z;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.103
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
int i2;
|
|
QuickView quickView;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str3 = webViewActivity.ve;
|
|
String str4 = webViewActivity.we;
|
|
boolean z2 = webViewActivity.xe;
|
|
webViewActivity.ve = null;
|
|
webViewActivity.we = null;
|
|
WebNestFrame webNestFrame = webViewActivity.H2;
|
|
boolean z3 = false;
|
|
if (webNestFrame == null) {
|
|
webViewActivity.w6();
|
|
webViewActivity.sc = false;
|
|
return;
|
|
}
|
|
int pageIndex = webNestFrame.getPageIndex() + 1;
|
|
int z4 = webViewActivity.H2.z(pageIndex);
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
z3 = webNestView.C;
|
|
i = webViewActivity.t3();
|
|
i2 = webViewActivity.u3();
|
|
if (webViewActivity.U1 && (quickView = webViewActivity.I2.Z0) != null) {
|
|
quickView.M = true;
|
|
}
|
|
webViewActivity.I2.setWebViewClient(null);
|
|
webViewActivity.I2.setWebChromeClient(null);
|
|
webViewActivity.I2.setDownloadListener(null);
|
|
webViewActivity.J2 = true;
|
|
webViewActivity.L2 = webViewActivity.U1;
|
|
} else {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
webViewActivity.ye = str3;
|
|
webViewActivity.ze = str4;
|
|
webViewActivity.Ae = z2;
|
|
webViewActivity.Be = pageIndex;
|
|
webViewActivity.Ce = z4;
|
|
webViewActivity.De = z3;
|
|
webViewActivity.Ee = i;
|
|
webViewActivity.Fe = i2;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.104
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str5 = webViewActivity2.ye;
|
|
String str6 = webViewActivity2.ze;
|
|
boolean z5 = webViewActivity2.Ae;
|
|
int i3 = webViewActivity2.Be;
|
|
int i4 = webViewActivity2.Ce;
|
|
boolean z6 = webViewActivity2.De;
|
|
int i5 = webViewActivity2.Ee;
|
|
int i6 = webViewActivity2.Fe;
|
|
webViewActivity2.ye = null;
|
|
webViewActivity2.ze = null;
|
|
WebViewActivity.T7(webViewActivity2.I2);
|
|
webViewActivity2.Ge = str5;
|
|
webViewActivity2.He = str6;
|
|
webViewActivity2.Ie = z5;
|
|
webViewActivity2.Je = i3;
|
|
webViewActivity2.Ke = i4;
|
|
webViewActivity2.Le = z6;
|
|
webViewActivity2.Me = i5;
|
|
webViewActivity2.Ne = i6;
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.105
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str7 = webViewActivity3.Ge;
|
|
String str8 = webViewActivity3.He;
|
|
boolean z7 = webViewActivity3.Ie;
|
|
int i7 = webViewActivity3.Je;
|
|
int i8 = webViewActivity3.Ke;
|
|
boolean z8 = webViewActivity3.Le;
|
|
int i9 = webViewActivity3.Me;
|
|
int i10 = webViewActivity3.Ne;
|
|
webViewActivity3.Ge = null;
|
|
webViewActivity3.He = null;
|
|
boolean z9 = false;
|
|
if (webViewActivity3.H2 == null) {
|
|
webViewActivity3.w6();
|
|
webViewActivity3.sc = false;
|
|
return;
|
|
}
|
|
WebNestView webNestView2 = webViewActivity3.Gb;
|
|
if (webNestView2 != null) {
|
|
MyWebBody myWebBody = webViewActivity3.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeViewInLayout(webNestView2);
|
|
}
|
|
WebNestView webNestView3 = webViewActivity3.Gb;
|
|
webViewActivity3.I2 = webNestView3;
|
|
webViewActivity3.Gb = null;
|
|
webNestView3.setVisibility(0);
|
|
z9 = true;
|
|
} else {
|
|
webViewActivity3.i6();
|
|
WebNestView webNestView4 = new WebNestView(webViewActivity3);
|
|
webViewActivity3.I2 = webNestView4;
|
|
webViewActivity3.K8(webNestView4);
|
|
}
|
|
webViewActivity3.Oe = str7;
|
|
webViewActivity3.Pe = str8;
|
|
webViewActivity3.Qe = z7;
|
|
webViewActivity3.Re = i7;
|
|
webViewActivity3.Se = i8;
|
|
webViewActivity3.Te = z8;
|
|
webViewActivity3.Ue = i9;
|
|
webViewActivity3.Ve = i10;
|
|
webViewActivity3.We = z9;
|
|
MyWebCoord myWebCoord4 = webViewActivity3.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.106
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView5;
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
String str9 = webViewActivity4.Oe;
|
|
String str10 = webViewActivity4.Pe;
|
|
boolean z10 = webViewActivity4.Qe;
|
|
int i11 = webViewActivity4.Re;
|
|
int i12 = webViewActivity4.Se;
|
|
boolean z11 = webViewActivity4.Te;
|
|
int i13 = webViewActivity4.Ue;
|
|
int i14 = webViewActivity4.Ve;
|
|
boolean z12 = webViewActivity4.We;
|
|
webViewActivity4.Oe = null;
|
|
webViewActivity4.Pe = null;
|
|
if (webViewActivity4.H2 != null && (webNestView5 = webViewActivity4.I2) != null) {
|
|
webNestView5.setDeskMode(z11);
|
|
webViewActivity4.I2.T(i13, i14);
|
|
WebNestFrame webNestFrame2 = webViewActivity4.H2;
|
|
WebNestView webNestView6 = webViewActivity4.I2;
|
|
if (webNestFrame2 != null) {
|
|
webNestFrame2.k(webNestView6, i11, i12);
|
|
}
|
|
webViewActivity4.j8();
|
|
webViewActivity4.Xe = str9;
|
|
webViewActivity4.Ye = str10;
|
|
webViewActivity4.Ze = z10;
|
|
webViewActivity4.af = i13;
|
|
webViewActivity4.bf = i14;
|
|
webViewActivity4.cf = z12;
|
|
MyWebCoord myWebCoord5 = webViewActivity4.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.107
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
String str11 = webViewActivity5.Xe;
|
|
String str12 = webViewActivity5.Ye;
|
|
boolean z13 = webViewActivity5.Ze;
|
|
int i15 = webViewActivity5.af;
|
|
int i16 = webViewActivity5.bf;
|
|
boolean z14 = webViewActivity5.cf;
|
|
webViewActivity5.Xe = null;
|
|
webViewActivity5.Ye = null;
|
|
webViewActivity5.N8(webViewActivity5.I2, 0);
|
|
webViewActivity5.df = str11;
|
|
webViewActivity5.ef = str12;
|
|
webViewActivity5.ff = z13;
|
|
webViewActivity5.gf = i15;
|
|
webViewActivity5.hf = i16;
|
|
webViewActivity5.jf = z14;
|
|
MyWebCoord myWebCoord6 = webViewActivity5.f2;
|
|
if (myWebCoord6 == null) {
|
|
return;
|
|
}
|
|
myWebCoord6.post(new AnonymousClass108());
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity4.sc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final HashMap Q2() {
|
|
JSONObject jSONObject = new JSONObject(V2(false));
|
|
HashMap hashMap = new HashMap();
|
|
Iterator<String> keys = jSONObject.keys();
|
|
while (keys.hasNext()) {
|
|
String next = keys.next();
|
|
Object obj = jSONObject.get(next);
|
|
if (obj instanceof JSONArray) {
|
|
JSONArray jSONArray = (JSONArray) obj;
|
|
int length = jSONArray.length();
|
|
for (int i = 0; i < length; i++) {
|
|
hashMap.put(String.valueOf(jSONArray.get(i)), next);
|
|
}
|
|
}
|
|
}
|
|
return hashMap;
|
|
}
|
|
|
|
public final void Q3() {
|
|
DialogDeleteBook dialogDeleteBook = this.gb;
|
|
if (dialogDeleteBook != null) {
|
|
dialogDeleteBook.dismiss();
|
|
this.gb = null;
|
|
}
|
|
}
|
|
|
|
public final void Q4() {
|
|
if (this.b6 != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.b6.a();
|
|
this.b6 = null;
|
|
}
|
|
}
|
|
|
|
public final void Q6(int i) {
|
|
Z6(i);
|
|
if (E5() && i == 0) {
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.o();
|
|
this.H2.A();
|
|
}
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.s();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void Q7() {
|
|
if (!this.rc) {
|
|
this.rc = true;
|
|
o5();
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.160
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.P6(true, false);
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView == null) {
|
|
webViewActivity.rc = false;
|
|
return;
|
|
}
|
|
webViewActivity.Cg = webNestView.canGoForward();
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.161
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
int size;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z = webViewActivity2.Cg;
|
|
WebNestFrame webNestFrame = webViewActivity2.H2;
|
|
if (webNestFrame != null && (webNestView2 = webViewActivity2.I2) != null) {
|
|
if (PrefZtwo.E && !z) {
|
|
List list = webNestFrame.o;
|
|
if (list != null && (size = list.size()) >= 2 && webNestFrame.p < size - 1) {
|
|
webViewActivity2.i9 = false;
|
|
webViewActivity2.k6(4, false, null);
|
|
}
|
|
} else if (z) {
|
|
webViewActivity2.i9 = false;
|
|
webNestView2.goForward();
|
|
}
|
|
webViewActivity2.rc = false;
|
|
return;
|
|
}
|
|
webViewActivity2.rc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void Q8(WebNestFrame webNestFrame, WebNestView webNestView, int i) {
|
|
if (i == 2 || webNestView == null) {
|
|
return;
|
|
}
|
|
if (i == 0) {
|
|
webNestView.setWebViewClient(new LocalWebViewClient());
|
|
webNestView.setWebChromeClient(new LocalChromeClient());
|
|
}
|
|
webNestView.setDownloadListener(new DownloadListener() { // from class: com.mycompany.app.web.WebViewActivity.196
|
|
@Override // android.webkit.DownloadListener
|
|
public final void onDownloadStart(String str, String str2, String str3, String str4, long j) {
|
|
WebViewActivity.L0(WebViewActivity.this, str, str3, str4, j, true);
|
|
}
|
|
});
|
|
webNestView.setListener(new WebNestView.WebViewListener() { // from class: com.mycompany.app.web.WebViewActivity.197
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
public final void a(int i2) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String j3 = WebViewActivity.j3(webViewActivity.s3(false));
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) SettingMain.class);
|
|
intent.putExtra("EXTRA_NOTI", true);
|
|
intent.putExtra("EXTRA_INDEX", i2);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
webViewActivity.t0(intent, 1);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) SettingAdvanced.class);
|
|
intent.putExtra("EXTRA_NOTI", true);
|
|
intent.putExtra("EXTRA_INDEX", 12);
|
|
webViewActivity.startActivity(intent);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
public final void c(int i2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
Runnable runnable = webViewActivity.Di;
|
|
if (webViewActivity.I2 == null || webViewActivity.Ci) {
|
|
return;
|
|
}
|
|
webViewActivity.Ci = true;
|
|
webViewActivity.v3.removeCallbacks(runnable);
|
|
webViewActivity.v3.post(runnable);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x0039, code lost:
|
|
|
|
if (com.mycompany.app.main.MainUtil.l6(r1) != false) goto L19;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:35:0x0066, code lost:
|
|
|
|
if ((r1 + 9) >= r4) goto L14;
|
|
*/
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean d() {
|
|
/*
|
|
r8 = this;
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
com.mycompany.app.pull.MyPullView r1 = r0.M2
|
|
r2 = 0
|
|
if (r1 != 0) goto L8
|
|
return r2
|
|
L8:
|
|
int r3 = r0.K9
|
|
if (r3 == 0) goto L10
|
|
r1.e()
|
|
return r2
|
|
L10:
|
|
java.lang.String r1 = r0.Og
|
|
java.lang.String r3 = r0.A8
|
|
boolean r1 = com.mycompany.app.main.MainUtil.q5(r1, r3)
|
|
r3 = 1
|
|
if (r1 == 0) goto L1f
|
|
int r1 = r0.Pg
|
|
goto L7d
|
|
L1f:
|
|
java.lang.String r1 = r0.A8
|
|
r0.Og = r1
|
|
java.lang.String r4 = r0.B8
|
|
boolean r5 = android.text.TextUtils.isEmpty(r4)
|
|
if (r5 == 0) goto L2d
|
|
L2b:
|
|
r1 = r2
|
|
goto L7b
|
|
L2d:
|
|
java.lang.String r5 = "youtube.com"
|
|
boolean r5 = r4.endsWith(r5)
|
|
if (r5 == 0) goto L3d
|
|
boolean r1 = com.mycompany.app.main.MainUtil.l6(r1)
|
|
if (r1 == 0) goto L2b
|
|
L3b:
|
|
r1 = r3
|
|
goto L7b
|
|
L3d:
|
|
java.lang.String r5 = "pornhub.com"
|
|
boolean r5 = r4.endsWith(r5)
|
|
if (r5 == 0) goto L69
|
|
if (r1 != 0) goto L48
|
|
goto L2b
|
|
L48:
|
|
int r4 = r1.length()
|
|
if (r4 != 0) goto L4f
|
|
goto L2b
|
|
L4f:
|
|
java.lang.String r5 = "pornhub.com/"
|
|
int r5 = r1.indexOf(r5)
|
|
r6 = -1
|
|
if (r5 != r6) goto L59
|
|
goto L2b
|
|
L59:
|
|
int r5 = r5 + 12
|
|
java.lang.String r7 = "shorties/"
|
|
int r1 = r1.indexOf(r7, r5)
|
|
if (r1 != r6) goto L64
|
|
goto L2b
|
|
L64:
|
|
int r1 = r1 + 9
|
|
if (r1 >= r4) goto L2b
|
|
goto L3b
|
|
L69:
|
|
java.lang.String r1 = "tiktok.com"
|
|
boolean r1 = r4.endsWith(r1)
|
|
if (r1 == 0) goto L72
|
|
goto L3b
|
|
L72:
|
|
java.lang.String r1 = "flipkart.com"
|
|
boolean r1 = r4.endsWith(r1)
|
|
if (r1 == 0) goto L2b
|
|
r1 = 2
|
|
L7b:
|
|
r0.Pg = r1
|
|
L7d:
|
|
if (r1 != r3) goto L85
|
|
com.mycompany.app.pull.MyPullView r0 = r0.M2
|
|
r0.e()
|
|
return r2
|
|
L85:
|
|
return r3
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass197.d():boolean");
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
public final void e() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.A8();
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
public final void f(int i2) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.ea(i2, false);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
public final boolean g(float f, float f2, int i2) {
|
|
MyPullView myPullView = WebViewActivity.this.M2;
|
|
if (myPullView == null) {
|
|
return false;
|
|
}
|
|
return myPullView.f(f, f2, i2);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebViewListener
|
|
public final void h(String str) {
|
|
WebNestView webNestView2;
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.A8();
|
|
if (!TextUtils.isEmpty(str) && (webNestView2 = webViewActivity.I2) != null) {
|
|
webNestView2.z(str, null);
|
|
}
|
|
}
|
|
});
|
|
webNestView.setQuickListener(new WebNestView.WebQuickListener() { // from class: com.mycompany.app.web.WebViewActivity.198
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final boolean a() {
|
|
int i2 = WebViewActivity.Fo;
|
|
return WebViewActivity.this.x5();
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final boolean b() {
|
|
return WebViewActivity.this.h0();
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void c(QuickAdapter.QuickItem quickItem, boolean z) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.G5()) {
|
|
return;
|
|
}
|
|
String str = quickItem.d;
|
|
if (TextUtils.isEmpty(str)) {
|
|
str = quickItem.e;
|
|
}
|
|
webViewActivity.Hj = !z;
|
|
WebViewActivity.z1(webViewActivity, str, quickItem.p, false, quickItem.f, false);
|
|
DialogUrlLink dialogUrlLink = webViewActivity.m6;
|
|
if (dialogUrlLink != null) {
|
|
dialogUrlLink.h0 = quickItem.q;
|
|
}
|
|
webViewActivity.Hj = false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final boolean d() {
|
|
if (WebViewActivity.this.dm != null) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void e(QuickAdapter.QuickItem quickItem) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.G5()) {
|
|
return;
|
|
}
|
|
int i3 = PrefZtwo.M;
|
|
if (i3 == 0) {
|
|
webViewActivity.E9(null, quickItem, false);
|
|
return;
|
|
}
|
|
int i4 = 1;
|
|
if (i3 != 1) {
|
|
i4 = 2;
|
|
if (i3 != 2) {
|
|
int i5 = 3;
|
|
if (i3 != 3) {
|
|
i5 = 4;
|
|
if (i3 != 4) {
|
|
i5 = 5;
|
|
if (i3 != 5) {
|
|
if (!PrefSync.k) {
|
|
i4 = 6;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
i4 = i5;
|
|
}
|
|
}
|
|
String str = quickItem.d;
|
|
if (TextUtils.isEmpty(str)) {
|
|
str = quickItem.e;
|
|
}
|
|
webViewActivity.g6(i4, str, quickItem.f);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final MyWebBody f() {
|
|
return WebViewActivity.this.e2;
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final int h() {
|
|
return WebViewActivity.this.cm;
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void i(boolean z) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.f2 != null) {
|
|
if (!z) {
|
|
webViewActivity.d8(1, false);
|
|
webViewActivity.I2.setQuickControl(null);
|
|
QuickControl quickControl = webViewActivity.B3;
|
|
if (quickControl != null) {
|
|
quickControl.b();
|
|
webViewActivity.f2.removeView(webViewActivity.B3);
|
|
webViewActivity.B3 = null;
|
|
}
|
|
} else if (webViewActivity.B3 != null) {
|
|
webViewActivity.d8(1, true);
|
|
webViewActivity.B3.setQuickMode(webViewActivity.U1);
|
|
webViewActivity.I2.setQuickControl(webViewActivity.B3);
|
|
} else if (!webViewActivity.em) {
|
|
webViewActivity.em = true;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.467
|
|
/* JADX WARN: Type inference failed for: r1v3, types: [android.widget.RelativeLayout, com.mycompany.app.quick.QuickControl] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.I2 == null) {
|
|
webViewActivity2.em = false;
|
|
return;
|
|
}
|
|
webViewActivity2.d8(1, true);
|
|
QuickControl quickControl2 = webViewActivity2.B3;
|
|
if (quickControl2 != null) {
|
|
quickControl2.setQuickMode(webViewActivity2.U1);
|
|
webViewActivity2.I2.setQuickControl(webViewActivity2.B3);
|
|
webViewActivity2.em = false;
|
|
return;
|
|
}
|
|
?? relativeLayout = new RelativeLayout(webViewActivity2);
|
|
webViewActivity2.B3 = relativeLayout;
|
|
relativeLayout.a(webViewActivity2.U1);
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.468
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
QuickControl quickControl3;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
MyWebCoord myWebCoord = webViewActivity3.f2;
|
|
if (myWebCoord != null && (quickControl3 = webViewActivity3.B3) != null && webViewActivity3.I2 != null) {
|
|
myWebCoord.addView(quickControl3, -1, -1);
|
|
webViewActivity3.I2.setQuickControl(webViewActivity3.B3);
|
|
}
|
|
webViewActivity3.em = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
if (z) {
|
|
webViewActivity.L9(false);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void j() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.p4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void k() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.G5() && !webViewActivity.pb) {
|
|
webViewActivity.pb = true;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.198.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass198 anonymousClass198 = AnonymousClass198.this;
|
|
WebViewActivity.this.startActivity(new Intent(WebViewActivity.this.i1, (Class<?>) SettingNews.class));
|
|
WebViewActivity.this.pb = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void l() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.G5() && !webViewActivity.pb) {
|
|
webViewActivity.pb = true;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.198.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
String j3 = WebViewActivity.j3(webViewActivity2.s3(false));
|
|
Intent intent = new Intent(webViewActivity2.i1, (Class<?>) SettingPay.class);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
webViewActivity2.t0(intent, 32);
|
|
webViewActivity2.pb = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void m(QuickAdapter.QuickItem quickItem) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.G5()) {
|
|
return;
|
|
}
|
|
WebViewActivity.y1(webViewActivity, quickItem);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void n(List list) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.dm != null) {
|
|
return;
|
|
}
|
|
webViewActivity.dm = new MainTransNews(webViewActivity, webViewActivity.i1, webViewActivity.f2, list, new MainTransNews.TransNewsListener() { // from class: com.mycompany.app.web.WebViewActivity.463
|
|
@Override // com.mycompany.app.main.MainTransNews.TransNewsListener
|
|
public final void a(boolean z) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MainTransNews mainTransNews = webViewActivity2.dm;
|
|
if (mainTransNews != null) {
|
|
if (!z && mainTransNews != null) {
|
|
mainTransNews.b();
|
|
webViewActivity2.dm = null;
|
|
}
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
webNestView2.setTransLoaded(z);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainTransNews.TransNewsListener
|
|
public final int b() {
|
|
WebNestView webNestView2 = WebViewActivity.this.I2;
|
|
if (webNestView2 == null) {
|
|
return 0;
|
|
}
|
|
return webNestView2.getTransPos();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void o(QuickAdapter.QuickItem quickItem, int i2) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.G5()) {
|
|
return;
|
|
}
|
|
WebViewActivity.x1(webViewActivity, quickItem, i2);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void p(int i2, int i3, int i4, String str, int i5) {
|
|
int i6 = WebViewActivity.Fo;
|
|
if (!WebViewActivity.this.G5()) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.C1(webViewActivity, i2, i3, i4, i5, str);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final boolean q() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.tc && PrefAlbum.O) {
|
|
return true;
|
|
}
|
|
return webViewActivity.w5();
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void r() {
|
|
if (PrefZtwo.J && PrefZtri.C && !QuickView.s()) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.P1();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void s(View view) {
|
|
int i2 = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.G5() && webViewActivity.b6 == null) {
|
|
webViewActivity.Q4();
|
|
if (view != null) {
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(0, R.string.quick_access));
|
|
if (!MainConst.b) {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(1, R.string.news_title));
|
|
}
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(2, R.string.background));
|
|
if (PrefZtri.i0) {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(3, R.string.add));
|
|
}
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(4, R.string.at_bottom, 0, PrefZtwo.y));
|
|
MyPopupMenu myPopupMenu = new MyPopupMenu(webViewActivity, webViewActivity.e2, view, arrayList, MainUtil.k5(webViewActivity.U1), new MyPopupMenu.MyPopupListener() { // from class: com.mycompany.app.web.WebViewActivity.320
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.Q4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view2, int i3) {
|
|
QuickView quickView;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (i3 != 0) {
|
|
if (i3 != 1) {
|
|
if (i3 != 2) {
|
|
if (i3 != 3) {
|
|
if (i3 == 4) {
|
|
boolean z = !PrefZtwo.y;
|
|
PrefZtwo.y = z;
|
|
PrefSet.d(16, webViewActivity2.i1, "mQuickDown2", z);
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null && (quickView = webNestView2.Z0) != null) {
|
|
quickView.i();
|
|
return true;
|
|
}
|
|
}
|
|
} else if (webViewActivity2.I2 != null) {
|
|
webViewActivity2.k9 = false;
|
|
webViewActivity2.E7(false);
|
|
webViewActivity2.t0(new Intent(webViewActivity2.i1, (Class<?>) QuickAdd.class), 0);
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
if (webViewActivity2.g6 == null) {
|
|
webViewActivity2.J3();
|
|
if (view2 != null) {
|
|
webViewActivity2.P5 = null;
|
|
ArrayList arrayList2 = new ArrayList();
|
|
arrayList2.add(new MyPopupAdapter.PopMenuItem(0, R.string.do_change));
|
|
arrayList2.add(new MyPopupAdapter.PopMenuItem(1, R.string.not_used));
|
|
MyPopupMenu myPopupMenu2 = new MyPopupMenu(webViewActivity2, webViewActivity2.e2, view2, arrayList2, MainUtil.k5(webViewActivity2.U1), new AnonymousClass327());
|
|
webViewActivity2.g6 = myPopupMenu2;
|
|
myPopupMenu2.m = 3;
|
|
webViewActivity2.Z0 = myPopupMenu2;
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.328
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.g6 != null) {
|
|
WebViewActivity.f1(webViewActivity3);
|
|
}
|
|
}
|
|
});
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
webViewActivity2.startActivity(new Intent(webViewActivity2.i1, (Class<?>) SettingNews.class));
|
|
return true;
|
|
}
|
|
webViewActivity2.t0(new Intent(webViewActivity2.i1, (Class<?>) SettingQuick.class), 33);
|
|
return true;
|
|
}
|
|
});
|
|
webViewActivity.b6 = myPopupMenu;
|
|
webViewActivity.Z0 = myPopupMenu;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.321
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.b6 != null) {
|
|
WebViewActivity.f1(webViewActivity2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void t(int i2, String str) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.G5() && webViewActivity.I2 != null) {
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
if (i2 == 0) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
if (MainUtil.A6(8)) {
|
|
webViewActivity.O1(null, str, true, null);
|
|
return;
|
|
} else {
|
|
webViewActivity.S5(str, null);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (i2 == 1) {
|
|
webViewActivity.t0(new Intent(webViewActivity.i1, (Class<?>) QuickAdd.class), 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void u() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.U1) {
|
|
return;
|
|
}
|
|
webViewActivity.U9(true);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void v() {
|
|
QuickSearch quickSearch = WebViewActivity.this.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.n();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void w() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.G5()) {
|
|
return;
|
|
}
|
|
webViewActivity.V7(true, true);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final boolean x() {
|
|
int i2 = WebViewActivity.Fo;
|
|
if (WebViewActivity.this.bm != null) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r4v2, types: [com.mycompany.app.quick.QuickNews, com.mycompany.app.quick.QuickNewsGoogle] */
|
|
@Override // com.mycompany.app.web.WebNestView.WebQuickListener
|
|
public final void y() {
|
|
String str;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebFltView webFltView = webViewActivity.lb;
|
|
if (webFltView != null) {
|
|
webFltView.setLoad(true);
|
|
webViewActivity.lb.setHideBlocked(true);
|
|
}
|
|
if (webViewActivity.bm == null) {
|
|
MainTransNews mainTransNews = webViewActivity.dm;
|
|
String str2 = null;
|
|
if (mainTransNews != null) {
|
|
mainTransNews.b();
|
|
webViewActivity.dm = null;
|
|
}
|
|
webViewActivity.cm = 0;
|
|
if (QuickView.s()) {
|
|
str = PrefZtwo.L;
|
|
webViewActivity.bm = new QuickNews(true);
|
|
} else {
|
|
Context context = webViewActivity.i1;
|
|
if (context != null) {
|
|
StringBuilder sb = new StringBuilder("https://news.google.com");
|
|
if (PrefZtwo.Q == 9) {
|
|
sb.append("/search?q=");
|
|
sb.append(PrefZtwo.R);
|
|
} else {
|
|
sb.append("/headlines/section/topic/");
|
|
sb.append(QuickView.k0[PrefZtwo.Q]);
|
|
}
|
|
if (PrefZtwo.Q == 9) {
|
|
sb.append("&hl=");
|
|
} else {
|
|
sb.append("?hl=");
|
|
}
|
|
sb.append(QuickView.l(context, context.getResources().getStringArray(R.array.news_code)));
|
|
str2 = sb.toString();
|
|
}
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
?? quickNews = new QuickNews(false);
|
|
quickNews.j = webViewActivity;
|
|
quickNews.k = myWebCoord;
|
|
webViewActivity.bm = quickNews;
|
|
str = str2;
|
|
}
|
|
webViewActivity.bm.b(webViewActivity.i1, webViewActivity.O0, str, new QuickNews.NewsListListener() { // from class: com.mycompany.app.web.WebViewActivity.461
|
|
@Override // com.mycompany.app.quick.QuickNews.NewsListListener
|
|
public final void a(List list) {
|
|
WebNestView webNestView2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.bm != null && (webNestView2 = webViewActivity2.I2) != null) {
|
|
webNestView2.setNewsPrepared(list);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickNews.NewsListListener
|
|
public final void b(List list, boolean z) {
|
|
QuickView quickView;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
QuickNews quickNews2 = webViewActivity2.bm;
|
|
if (quickNews2 != null) {
|
|
if (quickNews2 != null) {
|
|
quickNews2.c();
|
|
webViewActivity2.bm = null;
|
|
}
|
|
webViewActivity2.cm = 0;
|
|
WebViewActivity.e1(webViewActivity2, false);
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null && (quickView = webNestView2.Z0) != null) {
|
|
quickView.W = DataNews.a(quickView.f17494c).f12898c;
|
|
QuickAdapter quickAdapter = quickView.l;
|
|
if (quickAdapter != null) {
|
|
if (z) {
|
|
quickAdapter.f0();
|
|
} else {
|
|
quickAdapter.a0(list, true);
|
|
}
|
|
quickAdapter.p = false;
|
|
}
|
|
quickView.D = true;
|
|
quickView.B();
|
|
}
|
|
MyWebBody myWebBody = webViewActivity2.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
Runnable runnable = webViewActivity2.mb;
|
|
if (runnable == null) {
|
|
webViewActivity2.mb = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.461.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView3;
|
|
QuickView quickView2;
|
|
QuickAdapter quickAdapter2;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (!webViewActivity3.F1 && (webNestView3 = webViewActivity3.I2) != null && (quickView2 = webNestView3.Z0) != null && PrefZtwo.J && quickView2.g && quickView2.W != 0 && !quickView2.p && (quickAdapter2 = quickView2.l) != null && quickView2.i != null && !quickAdapter2.q && quickView2.getVisibility() == 0 && System.currentTimeMillis() > quickView2.W + 1800000) {
|
|
quickView2.u(true);
|
|
}
|
|
}
|
|
};
|
|
} else {
|
|
myWebBody.removeCallbacks(runnable);
|
|
}
|
|
webViewActivity2.e2.postDelayed(webViewActivity2.mb, 3600000L);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickNews.NewsListListener
|
|
public final void c(int i2) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.cm = i2;
|
|
WebNestView webNestView2 = webViewActivity2.I2;
|
|
if (webNestView2 != null) {
|
|
webNestView2.setNewsProgress(i2);
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.Fc = true;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.462
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.Fc = false;
|
|
}
|
|
}, 200L);
|
|
}
|
|
}
|
|
});
|
|
i2(webNestView);
|
|
if (webNestFrame != null) {
|
|
webNestFrame.setListener(new AnonymousClass200());
|
|
}
|
|
registerForContextMenu(webNestView);
|
|
}
|
|
|
|
public final void Q9(View view) {
|
|
if (!this.G1 && !J5() && view != null && this.e2 != null) {
|
|
L6();
|
|
if (this.Gl == null) {
|
|
this.Gl = new WebTransControl(this);
|
|
this.Hl = view;
|
|
Handler handler = this.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.411
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTransControl webTransControl = webViewActivity.Gl;
|
|
if (webTransControl != null) {
|
|
webTransControl.b(0);
|
|
}
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.411.1
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x008f */
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x0092 */
|
|
/* JADX WARN: Removed duplicated region for block: B:27:0x00b9 A[Catch: Exception -> 0x0127, TryCatch #0 {Exception -> 0x0127, blocks: (B:11:0x0042, B:13:0x0046, B:17:0x0050, B:25:0x00b3, B:27:0x00b9, B:28:0x00c1, B:32:0x00c8, B:40:0x00d8, B:42:0x00f3, B:44:0x00f7, B:45:0x00fc, B:46:0x00fe, B:53:0x00bd, B:54:0x0099, B:57:0x009e, B:62:0x00aa), top: B:10:0x0042 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x00c5 */
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x00c8 A[Catch: Exception -> 0x0127, TryCatch #0 {Exception -> 0x0127, blocks: (B:11:0x0042, B:13:0x0046, B:17:0x0050, B:25:0x00b3, B:27:0x00b9, B:28:0x00c1, B:32:0x00c8, B:40:0x00d8, B:42:0x00f3, B:44:0x00f7, B:45:0x00fc, B:46:0x00fe, B:53:0x00bd, B:54:0x0099, B:57:0x009e, B:62:0x00aa), top: B:10:0x0042 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:42:0x00f3 A[Catch: Exception -> 0x0127, TryCatch #0 {Exception -> 0x0127, blocks: (B:11:0x0042, B:13:0x0046, B:17:0x0050, B:25:0x00b3, B:27:0x00b9, B:28:0x00c1, B:32:0x00c8, B:40:0x00d8, B:42:0x00f3, B:44:0x00f7, B:45:0x00fc, B:46:0x00fe, B:53:0x00bd, B:54:0x0099, B:57:0x009e, B:62:0x00aa), top: B:10:0x0042 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:52:0x00d7 */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:0x00bd A[Catch: Exception -> 0x0127, TryCatch #0 {Exception -> 0x0127, blocks: (B:11:0x0042, B:13:0x0046, B:17:0x0050, B:25:0x00b3, B:27:0x00b9, B:28:0x00c1, B:32:0x00c8, B:40:0x00d8, B:42:0x00f3, B:44:0x00f7, B:45:0x00fc, B:46:0x00fe, B:53:0x00bd, B:54:0x0099, B:57:0x009e, B:62:0x00aa), top: B:10:0x0042 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:59:0x00a6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:61:0x00a9 */
|
|
/* JADX WARN: Removed duplicated region for block: B:64:0x00af */
|
|
/* JADX WARN: Removed duplicated region for block: B:66:0x00b2 */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 296
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass411.AnonymousClass1.run():void");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void R1() {
|
|
ArrayList arrayList;
|
|
if (this.Na == null && this.O0 != null && (arrayList = this.Ga) != null && !arrayList.isEmpty()) {
|
|
this.O0.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.501
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Na == null && webViewActivity.e2 != null) {
|
|
try {
|
|
ArrayList arrayList2 = webViewActivity.Ga;
|
|
if (arrayList2 != null && !arrayList2.isEmpty()) {
|
|
WebFltView webFltView = new WebFltView(webViewActivity, 2);
|
|
webViewActivity.Na = webFltView;
|
|
webFltView.q();
|
|
webViewActivity.Na.setHideBlocked(true);
|
|
webViewActivity.Na.setFltListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.501.1
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i) {
|
|
int i2;
|
|
int i3;
|
|
String str;
|
|
int length;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Oa == null) {
|
|
webViewActivity2.O4();
|
|
ArrayList arrayList3 = webViewActivity2.Ga;
|
|
if (arrayList3 != null && !arrayList3.isEmpty()) {
|
|
ArrayList arrayList4 = new ArrayList();
|
|
int size = arrayList3.size();
|
|
int i4 = 0;
|
|
for (int i5 = 0; i5 < size; i5++) {
|
|
MainItem.ChildItem childItem = (MainItem.ChildItem) arrayList3.get(i5);
|
|
if (childItem != null && childItem.G != null) {
|
|
int i6 = i4 + 1;
|
|
if (MainApp.K1) {
|
|
i2 = R.drawable.outline_account_circle_dark_24;
|
|
} else {
|
|
i2 = R.drawable.outline_account_circle_black_24;
|
|
}
|
|
arrayList4.add(new MyPopupAdapter.PopMenuItem(i4, i2, childItem.q));
|
|
i4 += 2;
|
|
if (MainApp.K1) {
|
|
i3 = R.drawable.outline_vpn_key_dark_24;
|
|
} else {
|
|
i3 = R.drawable.outline_vpn_key_black_24;
|
|
}
|
|
String str2 = childItem.G;
|
|
if (str2 == null || (length = str2.length()) < 2) {
|
|
str = "*";
|
|
} else if (length == 2) {
|
|
str = "**";
|
|
} else if (length == 3) {
|
|
str = "***";
|
|
} else if (length == 4) {
|
|
str = "****";
|
|
} else if (length == 5) {
|
|
str = "*****";
|
|
} else if (length == 6) {
|
|
str = "******";
|
|
} else if (length == 7) {
|
|
str = "*******";
|
|
} else if (length == 8) {
|
|
str = "********";
|
|
} else if (length == 9) {
|
|
str = "*********";
|
|
} else if (length == 10) {
|
|
str = "**********";
|
|
} else if (length == 11) {
|
|
str = "***********";
|
|
} else if (length == 12) {
|
|
str = "************";
|
|
} else if (length == 13) {
|
|
str = "*************";
|
|
} else if (length == 14) {
|
|
str = "**************";
|
|
} else if (length == 15) {
|
|
str = "***************";
|
|
} else if (length == 16) {
|
|
str = "****************";
|
|
} else if (length == 17) {
|
|
str = "*****************";
|
|
} else if (length == 18) {
|
|
str = "******************";
|
|
} else if (length == 19) {
|
|
str = "*******************";
|
|
} else {
|
|
str = "********************";
|
|
}
|
|
arrayList4.add(new MyPopupAdapter.PopMenuItem(i6, i3, str));
|
|
}
|
|
}
|
|
MyPopupMenu myPopupMenu = new MyPopupMenu(webViewActivity2, webViewActivity2.e2, view, arrayList4, MainApp.K1, new MyPopupMenu.MyPopupListener() { // from class: com.mycompany.app.web.WebViewActivity.503
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.O4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view2, int i7) {
|
|
ArrayList arrayList5;
|
|
int i8;
|
|
MainItem.ChildItem childItem2;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.Na != null && (arrayList5 = webViewActivity3.Ga) != null && !arrayList5.isEmpty() && (i8 = i7 / 2) < arrayList5.size() && (childItem2 = (MainItem.ChildItem) arrayList5.get(i8)) != null) {
|
|
if (i7 % 2 == 0) {
|
|
MainUtil.s(R.string.copied_clipboard, webViewActivity3, "Copied username", childItem2.q);
|
|
return true;
|
|
}
|
|
MainUtil.s(R.string.copied_clipboard, webViewActivity3, "Copied password", childItem2.G);
|
|
}
|
|
return true;
|
|
}
|
|
});
|
|
webViewActivity2.Oa = myPopupMenu;
|
|
webViewActivity2.Z0 = myPopupMenu;
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.504
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.Oa != null) {
|
|
WebViewActivity.f1(webViewActivity3);
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
MainUtil.e8(webViewActivity2, R.string.empty);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebFltView webFltView2 = webViewActivity.Na;
|
|
int i = MainApp.g1;
|
|
myWebBody.addView(webFltView2, i, i);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:37:0x00a4 A[Catch: Exception -> 0x0020, TryCatch #0 {Exception -> 0x0020, blocks: (B:3:0x0002, B:8:0x000d, B:10:0x0012, B:12:0x0019, B:13:0x0023, B:15:0x0027, B:17:0x003c, B:19:0x004a, B:20:0x004c, B:22:0x0058, B:25:0x0060, B:30:0x006d, B:34:0x0076, B:35:0x0093, B:37:0x00a4, B:39:0x00a9, B:40:0x00ae), top: B:2:0x0002 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x00a9 A[Catch: Exception -> 0x0020, TryCatch #0 {Exception -> 0x0020, blocks: (B:3:0x0002, B:8:0x000d, B:10:0x0012, B:12:0x0019, B:13:0x0023, B:15:0x0027, B:17:0x003c, B:19:0x004a, B:20:0x004c, B:22:0x0058, B:25:0x0060, B:30:0x006d, B:34:0x0076, B:35:0x0093, B:37:0x00a4, B:39:0x00a9, B:40:0x00ae), top: B:2:0x0002 }] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.String R2(java.lang.String r9) {
|
|
/*
|
|
r8 = this;
|
|
r0 = 0
|
|
r1 = 0
|
|
java.lang.String r9 = S2(r9) // Catch: java.lang.Exception -> L20
|
|
boolean r2 = android.text.TextUtils.isEmpty(r9) // Catch: java.lang.Exception -> L20
|
|
if (r2 == 0) goto Ld
|
|
goto L11
|
|
Ld:
|
|
boolean r2 = r8.Yn // Catch: java.lang.Exception -> L20
|
|
if (r2 == 0) goto L12
|
|
L11:
|
|
return r1
|
|
L12:
|
|
r2 = 1
|
|
r8.Yn = r2 // Catch: java.lang.Exception -> L20
|
|
java.util.HashMap r3 = r8.Zn // Catch: java.lang.Exception -> L20
|
|
if (r3 != 0) goto L23
|
|
java.util.HashMap r3 = r8.Q2() // Catch: java.lang.Exception -> L20
|
|
r8.Zn = r3 // Catch: java.lang.Exception -> L20
|
|
goto L23
|
|
L20:
|
|
r9 = move-exception
|
|
goto Lb3
|
|
L23:
|
|
java.util.HashSet r3 = r8.ao // Catch: java.lang.Exception -> L20
|
|
if (r3 != 0) goto L4c
|
|
java.lang.String r3 = r8.V2(r2) // Catch: java.lang.Exception -> L20
|
|
org.json.JSONArray r4 = new org.json.JSONArray // Catch: java.lang.Exception -> L20
|
|
r4.<init>(r3) // Catch: java.lang.Exception -> L20
|
|
java.util.HashSet r3 = new java.util.HashSet // Catch: java.lang.Exception -> L20
|
|
r3.<init>() // Catch: java.lang.Exception -> L20
|
|
int r5 = r4.length() // Catch: java.lang.Exception -> L20
|
|
r6 = r0
|
|
L3a:
|
|
if (r6 >= r5) goto L4a
|
|
java.lang.Object r7 = r4.get(r6) // Catch: java.lang.Exception -> L20
|
|
java.lang.String r7 = java.lang.String.valueOf(r7) // Catch: java.lang.Exception -> L20
|
|
r3.add(r7) // Catch: java.lang.Exception -> L20
|
|
int r6 = r6 + 1
|
|
goto L3a
|
|
L4a:
|
|
r8.ao = r3 // Catch: java.lang.Exception -> L20
|
|
L4c:
|
|
r8.Yn = r0 // Catch: java.lang.Exception -> L20
|
|
java.util.HashMap r3 = r8.Zn // Catch: java.lang.Exception -> L20
|
|
java.lang.Object r3 = r3.get(r9) // Catch: java.lang.Exception -> L20
|
|
java.lang.String r3 = (java.lang.String) r3 // Catch: java.lang.Exception -> L20
|
|
if (r3 == 0) goto L92
|
|
int r4 = r3.length() // Catch: java.lang.Exception -> L20
|
|
r5 = 2
|
|
if (r4 == r5) goto L60
|
|
goto L92
|
|
L60:
|
|
char r4 = r3.charAt(r0) // Catch: java.lang.Exception -> L20
|
|
r5 = 65
|
|
if (r4 < r5) goto L92
|
|
r6 = 90
|
|
if (r4 <= r6) goto L6d
|
|
goto L92
|
|
L6d:
|
|
char r2 = r3.charAt(r2) // Catch: java.lang.Exception -> L20
|
|
if (r2 < r5) goto L92
|
|
if (r2 <= r6) goto L76
|
|
goto L92
|
|
L76:
|
|
java.lang.String r3 = new java.lang.String // Catch: java.lang.Exception -> L20
|
|
r5 = -127397(0xfffffffffffe0e5b, float:NaN)
|
|
int r4 = r4 - r5
|
|
char[] r4 = java.lang.Character.toChars(r4) // Catch: java.lang.Exception -> L20
|
|
r3.<init>(r4) // Catch: java.lang.Exception -> L20
|
|
java.lang.String r4 = new java.lang.String // Catch: java.lang.Exception -> L20
|
|
int r2 = r2 - r5
|
|
char[] r2 = java.lang.Character.toChars(r2) // Catch: java.lang.Exception -> L20
|
|
r4.<init>(r2) // Catch: java.lang.Exception -> L20
|
|
java.lang.String r2 = r3.concat(r4) // Catch: java.lang.Exception -> L20
|
|
goto L93
|
|
L92:
|
|
r2 = r1
|
|
L93:
|
|
java.util.HashSet r3 = r8.ao // Catch: java.lang.Exception -> L20
|
|
boolean r9 = r3.contains(r9) // Catch: java.lang.Exception -> L20
|
|
java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch: java.lang.Exception -> L20
|
|
r3.<init>() // Catch: java.lang.Exception -> L20
|
|
boolean r4 = android.text.TextUtils.isEmpty(r2) // Catch: java.lang.Exception -> L20
|
|
if (r4 != 0) goto La7
|
|
r3.append(r2) // Catch: java.lang.Exception -> L20
|
|
La7:
|
|
if (r9 == 0) goto Lae
|
|
java.lang.String r9 = "🔒"
|
|
r3.append(r9) // Catch: java.lang.Exception -> L20
|
|
Lae:
|
|
java.lang.String r9 = r3.toString() // Catch: java.lang.Exception -> L20
|
|
return r9
|
|
Lb3:
|
|
r9.printStackTrace()
|
|
r8.Yn = r0
|
|
return r1
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.R2(java.lang.String):java.lang.String");
|
|
}
|
|
|
|
public final void R3() {
|
|
I2();
|
|
DialogListBook dialogListBook = this.ib;
|
|
if (dialogListBook != null) {
|
|
dialogListBook.dismiss();
|
|
this.ib = null;
|
|
}
|
|
this.Nn = null;
|
|
}
|
|
|
|
public final void R4() {
|
|
QuickView quickView;
|
|
QuickSubView quickSubView = this.G3;
|
|
this.G3 = null;
|
|
if (quickSubView != null) {
|
|
if (this.D3 == 3) {
|
|
d8(3, false);
|
|
}
|
|
if (quickSubView.G) {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null && (quickView = webNestView.Z0) != null) {
|
|
quickView.v(true);
|
|
}
|
|
QuickSearch quickSearch = this.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.n();
|
|
}
|
|
}
|
|
quickSubView.H = false;
|
|
quickSubView.e();
|
|
MyButtonCheck myButtonCheck = quickSubView.o;
|
|
if (myButtonCheck != null) {
|
|
myButtonCheck.l();
|
|
quickSubView.o = null;
|
|
}
|
|
MyLineText myLineText = quickSubView.v;
|
|
if (myLineText != null) {
|
|
myLineText.u();
|
|
quickSubView.v = null;
|
|
}
|
|
MyRecyclerView myRecyclerView = quickSubView.x;
|
|
if (myRecyclerView != null) {
|
|
myRecyclerView.s0();
|
|
quickSubView.x = null;
|
|
}
|
|
QuickAdapter quickAdapter = quickSubView.y;
|
|
if (quickAdapter != null) {
|
|
quickAdapter.M();
|
|
quickSubView.y = null;
|
|
}
|
|
QuickDragHelper quickDragHelper = quickSubView.A;
|
|
if (quickDragHelper != null) {
|
|
quickDragHelper.d = null;
|
|
quickDragHelper.g = null;
|
|
quickDragHelper.h = null;
|
|
quickSubView.A = null;
|
|
}
|
|
MyCoverView myCoverView = quickSubView.F;
|
|
if (myCoverView != null) {
|
|
myCoverView.i();
|
|
quickSubView.F = null;
|
|
}
|
|
quickSubView.f17477c = null;
|
|
quickSubView.f = null;
|
|
quickSubView.k = null;
|
|
quickSubView.m = null;
|
|
quickSubView.n = null;
|
|
quickSubView.p = null;
|
|
quickSubView.q = null;
|
|
quickSubView.r = null;
|
|
quickSubView.s = null;
|
|
quickSubView.t = null;
|
|
quickSubView.u = null;
|
|
quickSubView.w = null;
|
|
quickSubView.z = null;
|
|
quickSubView.B = null;
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(quickSubView);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean R5() {
|
|
String str = this.B8;
|
|
if (TextUtils.isEmpty(str)) {
|
|
return false;
|
|
}
|
|
if (str.endsWith("instagram.com")) {
|
|
String str2 = this.A8;
|
|
if (str2 == null || str2.length() >= 27) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
if (str.endsWith("naver.com")) {
|
|
String str3 = this.A8;
|
|
if (str3 == null || str3.length() >= 21) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
if (!str.endsWith("daum.net")) {
|
|
return false;
|
|
}
|
|
return "https://m.daum.net/?nil_top=mobile".equals(this.A8);
|
|
}
|
|
|
|
public final void R6() {
|
|
MainWebDestroy mainWebDestroy = this.d2;
|
|
if (mainWebDestroy != null) {
|
|
mainWebDestroy.i = false;
|
|
mainWebDestroy.d(false);
|
|
}
|
|
}
|
|
|
|
public final void R7() {
|
|
List list;
|
|
MyWebCoord myWebCoord;
|
|
if (this.T2 == 0 && (list = this.O2) != null && list.size() >= 2) {
|
|
if ((PrefZtwo.s || this.P2 < this.O2.size() - 1) && (myWebCoord = this.f2) != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.143
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.V6(webViewActivity.x3() - 0.5f, false);
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.143.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.p8(4, false);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0031, code lost:
|
|
|
|
if (r4 != 2) goto L24;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0053 */
|
|
/* JADX WARN: Type inference failed for: r6v3, types: [com.mycompany.app.behavior.MyBehaviorWebTop, androidx.coordinatorlayout.widget.CoordinatorLayout$Behavior, java.lang.Object] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void R8() {
|
|
/*
|
|
r10 = this;
|
|
com.mycompany.app.web.WebNestLayout r0 = r10.i2
|
|
if (r0 != 0) goto L6
|
|
goto Lb4
|
|
L6:
|
|
int r0 = com.mycompany.app.main.MainUtil.H3()
|
|
boolean r1 = com.mycompany.app.pref.PrefWeb.v
|
|
r2 = 0
|
|
if (r1 == 0) goto L11
|
|
r1 = r0
|
|
goto L12
|
|
L11:
|
|
r1 = r2
|
|
L12:
|
|
boolean r3 = com.mycompany.app.pref.PrefWeb.w
|
|
if (r3 == 0) goto L1b
|
|
int r3 = com.mycompany.app.main.MainUtil.j0()
|
|
goto L1c
|
|
L1b:
|
|
r3 = r2
|
|
L1c:
|
|
com.mycompany.app.web.WebNestLayout r4 = r10.i2
|
|
r5 = 2
|
|
if (r4 != 0) goto L22
|
|
goto L78
|
|
L22:
|
|
boolean r4 = com.mycompany.app.pref.PrefWeb.v
|
|
if (r4 != 0) goto L34
|
|
boolean r4 = com.mycompany.app.main.MainUtil.V4()
|
|
r6 = 1
|
|
if (r4 != 0) goto L35
|
|
int r4 = com.mycompany.app.pref.PrefWeb.x
|
|
if (r4 == r6) goto L35
|
|
if (r4 != r5) goto L34
|
|
goto L35
|
|
L34:
|
|
r6 = r2
|
|
L35:
|
|
int r4 = r10.Kg
|
|
if (r4 != r1) goto L42
|
|
int r4 = r10.Lg
|
|
if (r4 != r3) goto L42
|
|
boolean r4 = r10.Mg
|
|
if (r4 != r6) goto L42
|
|
goto L78
|
|
L42:
|
|
r10.Kg = r1
|
|
r10.Lg = r3
|
|
r10.Mg = r6
|
|
com.mycompany.app.web.WebNestLayout r4 = r10.i2
|
|
android.view.ViewGroup$LayoutParams r4 = r4.getLayoutParams()
|
|
androidx.coordinatorlayout.widget.CoordinatorLayout$LayoutParams r4 = (androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams) r4
|
|
if (r4 != 0) goto L53
|
|
goto L78
|
|
L53:
|
|
r7 = 0
|
|
if (r6 == 0) goto L66
|
|
com.mycompany.app.behavior.MyBehaviorWebTop r6 = new com.mycompany.app.behavior.MyBehaviorWebTop
|
|
com.mycompany.app.web.WebNestLayout r8 = r10.i2
|
|
com.mycompany.app.view.MyBarFrame r9 = r10.j2
|
|
r6.<init>()
|
|
r6.j(r7, r8, r9)
|
|
r4.b(r6)
|
|
goto L6f
|
|
L66:
|
|
com.mycompany.app.web.WebNestLayout r6 = r10.i2
|
|
r8 = 0
|
|
r6.setTranslationY(r8)
|
|
r4.b(r7)
|
|
L6f:
|
|
r4.topMargin = r1
|
|
r4.bottomMargin = r3
|
|
com.mycompany.app.web.WebNestLayout r1 = r10.i2
|
|
r1.requestLayout()
|
|
L78:
|
|
com.mycompany.app.web.WebNestView r1 = r10.I2
|
|
if (r1 == 0) goto L8a
|
|
com.mycompany.app.web.WebSslView r4 = r1.b1
|
|
if (r4 == 0) goto L83
|
|
r4.c()
|
|
L83:
|
|
com.mycompany.app.web.WebCrashView r1 = r1.d1
|
|
if (r1 == 0) goto L8a
|
|
r1.b()
|
|
L8a:
|
|
com.mycompany.app.view.MyScrollBar r1 = r10.v3
|
|
if (r1 == 0) goto L92
|
|
r1.O = r0
|
|
r1.P = r3
|
|
L92:
|
|
com.mycompany.app.view.MyProgressBar r0 = r10.G2
|
|
if (r0 != 0) goto L97
|
|
goto Lb4
|
|
L97:
|
|
android.view.ViewGroup$LayoutParams r0 = r0.getLayoutParams()
|
|
androidx.coordinatorlayout.widget.CoordinatorLayout$LayoutParams r0 = (androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams) r0
|
|
if (r0 != 0) goto La0
|
|
goto Lb4
|
|
La0:
|
|
boolean r1 = com.mycompany.app.pref.PrefWeb.t
|
|
if (r1 == 0) goto La5
|
|
goto Lb0
|
|
La5:
|
|
int r1 = com.mycompany.app.main.MainUtil.H3()
|
|
if (r1 == 0) goto Lac
|
|
goto Lb0
|
|
Lac:
|
|
int r1 = com.mycompany.app.main.MainApp.G1
|
|
int r2 = r1 / 2
|
|
Lb0:
|
|
int r1 = r0.topMargin
|
|
if (r1 != r2) goto Lb5
|
|
Lb4:
|
|
return
|
|
Lb5:
|
|
r0.topMargin = r2
|
|
com.mycompany.app.view.MyProgressBar r0 = r10.G2
|
|
r0.requestLayout()
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.R8():void");
|
|
}
|
|
|
|
public final void R9(boolean z) {
|
|
boolean z2;
|
|
if (this.U6 == null) {
|
|
return;
|
|
}
|
|
if (z) {
|
|
if (!Y5() || this.H6 != 3) {
|
|
z2 = false;
|
|
} else {
|
|
z2 = this.L6;
|
|
}
|
|
if (z2 && !this.j9 && !this.L3) {
|
|
boolean z3 = true;
|
|
if (this.l3 == null && this.s3 == null && this.t3 == null && this.u3 == null) {
|
|
z3 = false;
|
|
}
|
|
if (!z3 && !PrefSync.j) {
|
|
this.U6.setVisibility(0);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
this.U6.setVisibility(8);
|
|
}
|
|
|
|
public final void S1(int i, int i2) {
|
|
if (this.Z2 != null) {
|
|
r8(i, i2);
|
|
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) this.Z2.getLayoutParams();
|
|
if (layoutParams != null) {
|
|
if (PrefPdf.C == 3) {
|
|
layoutParams.gravity = 5;
|
|
} else {
|
|
layoutParams.gravity = 3;
|
|
}
|
|
}
|
|
this.Z2.requestLayout();
|
|
return;
|
|
}
|
|
MyButtonImage myButtonImage = new MyButtonImage(this);
|
|
this.Z2 = myButtonImage;
|
|
myButtonImage.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
|
r8(i, i2);
|
|
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(MainApp.g1, -1);
|
|
if (PrefPdf.C == 3) {
|
|
layoutParams2.gravity = 5;
|
|
} else {
|
|
layoutParams2.gravity = 3;
|
|
}
|
|
this.X2.addView(this.Z2, layoutParams2);
|
|
this.Z2.setNoAnim(MainUtil.S4());
|
|
this.Z2.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.173
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H2 == null || webViewActivity.G5()) {
|
|
return;
|
|
}
|
|
webViewActivity.O1(null, WebViewActivity.o3(), true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.173.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z) {
|
|
WebViewActivity.l1(WebViewActivity.this, z);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void S3() {
|
|
DialogDownBlob dialogDownBlob = this.r6;
|
|
if (dialogDownBlob != null) {
|
|
dialogDownBlob.dismiss();
|
|
this.r6 = null;
|
|
if (this.R5 != null) {
|
|
this.nb = false;
|
|
MainUtil.K7(this, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void S4() {
|
|
if (this.X5 != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.X5.a();
|
|
this.X5 = null;
|
|
}
|
|
}
|
|
|
|
public final void S5(String str, String str2) {
|
|
if (this.I2 != null) {
|
|
M3();
|
|
r6();
|
|
I3(true);
|
|
if (MainUtil.x6(this.I2, this.A8, this.B8, str, null, false)) {
|
|
Q1(str, str2, false);
|
|
} else {
|
|
if (t2(str)) {
|
|
return;
|
|
}
|
|
String h = this.I2.h(str, false);
|
|
T8(h, false, true);
|
|
this.D8 = str2;
|
|
this.I2.z(h, str2);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:47:0x0095, code lost:
|
|
|
|
r9 = new java.util.ArrayList();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:75:0x00b8, code lost:
|
|
|
|
r5 = com.mycompany.app.db.book.DbBookScript.l(r16, r4, java.lang.Boolean.TRUE);
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:77:0x00c0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:79:0x00c3 */
|
|
/* JADX WARN: Type inference failed for: r6v14, types: [com.mycompany.app.script.ScriptId[]] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void S6(boolean r17) {
|
|
/*
|
|
Method dump skipped, instructions count: 281
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.S6(boolean):void");
|
|
}
|
|
|
|
public final void S7(int i, boolean z) {
|
|
int width;
|
|
int i2;
|
|
Object parent;
|
|
WebNestView webNestView = this.m3;
|
|
if (webNestView != null) {
|
|
i2(webNestView);
|
|
final WebNestView webNestView2 = this.m3;
|
|
if (i == 0) {
|
|
webNestView2.getClass();
|
|
} else if (webNestView2.F0 == null && ((width = webNestView2.getWidth()) != 0 || ((parent = webNestView2.getParent()) != null && (width = ((View) parent).getWidth()) != 0))) {
|
|
webNestView2.r();
|
|
if (!webNestView2.h ? !z ? i != 3 : i == 3 : !z ? i == 3 : i != 3) {
|
|
i2 = 0;
|
|
} else {
|
|
i2 = width;
|
|
}
|
|
float f = i2;
|
|
if (Float.compare(webNestView2.D0, f) == 0) {
|
|
webNestView2.l(i, z);
|
|
} else {
|
|
webNestView2.E0 = i2;
|
|
webNestView2.x2 = i;
|
|
webNestView2.y2 = z;
|
|
float f2 = webNestView2.D0;
|
|
webNestView2.z2 = f2;
|
|
webNestView2.A2 = false;
|
|
ValueAnimator ofFloat = ValueAnimator.ofFloat(f2, f);
|
|
webNestView2.F0 = ofFloat;
|
|
ofFloat.setDuration((Math.abs(f - webNestView2.D0) / width) * 300.0f);
|
|
webNestView2.F0.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.mycompany.app.web.WebNestView.27
|
|
public AnonymousClass27() {
|
|
}
|
|
|
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
|
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
|
WebNestView webNestView3 = WebNestView.this;
|
|
if (webNestView3.F0 != null) {
|
|
float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
|
|
if (webNestView3.F0 != null) {
|
|
webNestView3.z2 = floatValue;
|
|
if (webNestView3.H0 || webNestView3.I0 || webNestView3.A2) {
|
|
return;
|
|
}
|
|
webNestView3.A2 = true;
|
|
MainApp.N(webNestView3.getContext(), webNestView3.B2);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
webNestView2.F0.addListener(new Animator.AnimatorListener() { // from class: com.mycompany.app.web.WebNestView.28
|
|
public AnonymousClass28() {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationCancel(Animator animator) {
|
|
WebNestView webNestView3 = WebNestView.this;
|
|
if (webNestView3.F0 == null) {
|
|
return;
|
|
}
|
|
webNestView3.F0 = null;
|
|
webNestView3.l(webNestView3.x2, webNestView3.y2);
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
WebNestView webNestView3 = WebNestView.this;
|
|
if (webNestView3.F0 == null) {
|
|
return;
|
|
}
|
|
MainApp.N(webNestView3.getContext(), new Runnable() { // from class: com.mycompany.app.web.WebNestView.30
|
|
public AnonymousClass30() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView4 = WebNestView.this;
|
|
if (webNestView4.F0 == null) {
|
|
return;
|
|
}
|
|
webNestView4.F0 = null;
|
|
webNestView4.D0 = webNestView4.E0;
|
|
webNestView4.Q();
|
|
webNestView4.invalidate();
|
|
webNestView4.l(webNestView4.x2, webNestView4.y2);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationRepeat(Animator animator) {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationStart(Animator animator) {
|
|
}
|
|
});
|
|
webNestView2.F0.start();
|
|
this.o3 = i;
|
|
this.p3 = this.m3;
|
|
this.r3 = z;
|
|
}
|
|
}
|
|
this.m3 = null;
|
|
return;
|
|
}
|
|
WebNestFrame webNestFrame = this.n3;
|
|
if (webNestFrame != null) {
|
|
if (webNestFrame.N(i, z)) {
|
|
this.o3 = i;
|
|
this.q3 = this.n3;
|
|
this.r3 = z;
|
|
}
|
|
this.n3 = null;
|
|
}
|
|
}
|
|
|
|
public final void S8() {
|
|
boolean z = this.ei;
|
|
boolean z2 = this.f19722fi;
|
|
boolean z3 = this.gi;
|
|
if (this.I2 == null) {
|
|
this.Sh = null;
|
|
return;
|
|
}
|
|
e8();
|
|
U9(true);
|
|
if (this.I2 != null) {
|
|
O6();
|
|
if (this.R5 != null && this.Q5 == 4) {
|
|
boolean z4 = !MainUtil.K5(this.A8);
|
|
this.W3 = z4;
|
|
this.R5.setVideoDown(z4);
|
|
} else {
|
|
boolean u = WebNestView.u(this.I2.getDownUrl(), this.A8);
|
|
if (u) {
|
|
this.I2.D(null);
|
|
this.W3 = false;
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.setVideoDown(false);
|
|
}
|
|
} else if (!TextUtils.isEmpty(this.I2.getDownVideo())) {
|
|
this.W3 = true;
|
|
WebVideoFrame webVideoFrame2 = this.R5;
|
|
if (webVideoFrame2 != null) {
|
|
webVideoFrame2.setVideoDown(true);
|
|
}
|
|
}
|
|
if (u) {
|
|
I9(false);
|
|
} else {
|
|
I9(true);
|
|
}
|
|
}
|
|
if (this.Ii) {
|
|
this.Ii = false;
|
|
} else {
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.188
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.188.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.Z0(WebViewActivity.this);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
W9(true);
|
|
J9(true);
|
|
K9(true);
|
|
if (!PrefZtwo.y) {
|
|
L9(true);
|
|
}
|
|
X9(true);
|
|
if (this.U1) {
|
|
P4();
|
|
} else {
|
|
u2(this.A8);
|
|
}
|
|
if (!z && !z2 && this.b3 == null) {
|
|
this.Sh = null;
|
|
return;
|
|
}
|
|
this.hi = z;
|
|
this.ii = z2;
|
|
this.ji = z3;
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.230
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AppBarLayout appBarLayout;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
boolean z5 = webViewActivity.hi;
|
|
boolean z6 = webViewActivity.ii;
|
|
if (webViewActivity.ji) {
|
|
AppBarLayout appBarLayout2 = webViewActivity.g2;
|
|
if (appBarLayout2 != null) {
|
|
appBarLayout2.setExpanded(false);
|
|
}
|
|
} else if (z6 && (appBarLayout = webViewActivity.g2) != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
if (!z5 && webViewActivity.b3 == null) {
|
|
webViewActivity.Sh = null;
|
|
return;
|
|
}
|
|
webViewActivity.ki = z5;
|
|
MyWebBody myWebBody2 = webViewActivity.e2;
|
|
if (myWebBody2 == null) {
|
|
return;
|
|
}
|
|
myWebBody2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.231
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z7 = webViewActivity2.ki;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity2.b3;
|
|
if (webTabBarAdapter != null) {
|
|
webTabBarAdapter.x(webTabBarAdapter.C(webViewActivity2.P2));
|
|
}
|
|
if (!z7) {
|
|
webViewActivity2.Sh = null;
|
|
} else {
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.232
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebViewActivity.u0(webViewActivity3, webViewActivity3.A8);
|
|
webViewActivity3.Sh = null;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void S9(boolean z) {
|
|
boolean z2;
|
|
if (this.T6 != null && this.I2 != null && this.e2 != null) {
|
|
if (z) {
|
|
if (!Y5()) {
|
|
z2 = false;
|
|
} else {
|
|
z2 = PrefAlbum.w;
|
|
}
|
|
if (z2 && !P5() && !PrefSync.j) {
|
|
this.T6.w(false);
|
|
return;
|
|
}
|
|
}
|
|
this.T6.m(false);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v3, types: [com.mycompany.app.view.MyTouchFrame, android.widget.FrameLayout] */
|
|
public final void T1(int i, int i2) {
|
|
if (this.X2 == null && this.j2 != null && this.k2 != null) {
|
|
this.X2 = new FrameLayout(this);
|
|
MyRecyclerView myRecyclerView = new MyRecyclerView(this);
|
|
this.Y2 = myRecyclerView;
|
|
myRecyclerView.setVerticalScrollBarEnabled(false);
|
|
this.Y2.setHorizontalScrollBarEnabled(false);
|
|
this.X2.addView(this.Y2, -1, -1);
|
|
int i3 = PrefWeb.x;
|
|
if (i3 != 0) {
|
|
if (i3 != 1 && i3 != 2) {
|
|
this.k2.a(this.X2, 2);
|
|
} else {
|
|
this.j2.a(this.X2, 2);
|
|
}
|
|
}
|
|
int i4 = PrefPdf.C;
|
|
this.a3 = i4;
|
|
if (i4 != 0) {
|
|
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.Y2.getLayoutParams();
|
|
if (marginLayoutParams != null) {
|
|
if (PrefPdf.C == 3) {
|
|
marginLayoutParams.setMargins(0, 0, MainApp.g1, 0);
|
|
} else {
|
|
marginLayoutParams.setMargins(MainApp.g1, 0, 0, 0);
|
|
}
|
|
}
|
|
S1(i, i2);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final String T2(String str) {
|
|
InputStream inputStream;
|
|
BufferedReader bufferedReader;
|
|
String str2 = null;
|
|
try {
|
|
inputStream = MainUtil.Y1(this.i1, str);
|
|
try {
|
|
bufferedReader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));
|
|
try {
|
|
StringBuilder sb = new StringBuilder();
|
|
while (true) {
|
|
String readLine = bufferedReader.readLine();
|
|
if (readLine == null) {
|
|
break;
|
|
}
|
|
if (!TextUtils.isEmpty(readLine)) {
|
|
sb.append(readLine);
|
|
}
|
|
}
|
|
str2 = sb.toString();
|
|
} catch (Throwable unused) {
|
|
}
|
|
} catch (Throwable unused2) {
|
|
bufferedReader = null;
|
|
}
|
|
} catch (Throwable unused3) {
|
|
inputStream = null;
|
|
bufferedReader = null;
|
|
}
|
|
if (bufferedReader != null) {
|
|
try {
|
|
bufferedReader.close();
|
|
} catch (Exception unused4) {
|
|
}
|
|
}
|
|
if (inputStream != null) {
|
|
try {
|
|
inputStream.close();
|
|
} catch (Exception unused5) {
|
|
}
|
|
}
|
|
return str2;
|
|
}
|
|
|
|
public final void T3() {
|
|
DialogDownFont dialogDownFont = this.Y7;
|
|
if (dialogDownFont != null) {
|
|
dialogDownFont.dismiss();
|
|
this.Y7 = null;
|
|
}
|
|
}
|
|
|
|
public final void T4() {
|
|
MySnackbar mySnackbar = this.l3;
|
|
if (mySnackbar != null) {
|
|
mySnackbar.i(false);
|
|
this.l3 = null;
|
|
}
|
|
MySnackbar mySnackbar2 = this.s3;
|
|
if (mySnackbar2 != null) {
|
|
mySnackbar2.i(false);
|
|
this.s3 = null;
|
|
}
|
|
MySnackbar mySnackbar3 = this.t3;
|
|
if (mySnackbar3 != null) {
|
|
mySnackbar3.i(false);
|
|
this.t3 = null;
|
|
}
|
|
MySnackbar mySnackbar4 = this.u3;
|
|
if (mySnackbar4 != null) {
|
|
mySnackbar4.i(false);
|
|
this.u3 = null;
|
|
}
|
|
}
|
|
|
|
public final void T6(float f, boolean z) {
|
|
List list;
|
|
if (z) {
|
|
WebNestFrame webNestFrame = this.Q2;
|
|
if (webNestFrame != null) {
|
|
if (webNestFrame.M(2)) {
|
|
this.T2 = 2;
|
|
this.U2 = this.Q2;
|
|
this.W2 = false;
|
|
}
|
|
this.Q2 = null;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
int i = this.P2 - 1;
|
|
List list2 = this.O2;
|
|
if (list2 != null) {
|
|
if (i < 0) {
|
|
i = list2.size() - 1;
|
|
}
|
|
if (this.H2 != null && (list = this.O2) != null && i >= 0 && i < list.size()) {
|
|
try {
|
|
if (i != this.P2) {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) this.O2.get(i);
|
|
if (webTabItem != null) {
|
|
WebNestFrame webNestFrame2 = webTabItem.p;
|
|
if (webNestFrame2 != null) {
|
|
WebNestView pageValid = webNestFrame2.getPageValid();
|
|
if (pageValid != null && pageValid.z0) {
|
|
pageValid.T(t3(), u3());
|
|
}
|
|
if (webTabItem.p.getVisibility() != 0) {
|
|
int indexOfChild = this.i2.indexOfChild(webTabItem.p);
|
|
int indexOfChild2 = this.i2.indexOfChild(this.H2);
|
|
if (indexOfChild == -1) {
|
|
this.i2.a(webTabItem.p, indexOfChild2);
|
|
} else if (indexOfChild > indexOfChild2) {
|
|
this.i2.a(webTabItem.p, indexOfChild2);
|
|
}
|
|
webTabItem.p.setVisibility(0);
|
|
}
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
WebNestFrame webNestFrame3 = this.H2;
|
|
this.Q2 = webNestFrame3;
|
|
webNestFrame3.setTabY(f);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void T8(String str, boolean z, boolean z2) {
|
|
boolean z3;
|
|
Handler handler;
|
|
int length;
|
|
boolean startsWith;
|
|
int length2;
|
|
boolean startsWith2;
|
|
Handler handler2;
|
|
Handler handler3;
|
|
boolean z4;
|
|
boolean z5;
|
|
boolean z6;
|
|
Handler handler4;
|
|
Handler handler5;
|
|
boolean z7 = true;
|
|
this.Ii = !z;
|
|
if (this.a2 && this.I2 != null) {
|
|
if (!TextUtils.isEmpty(str) && str.startsWith("data:text/html")) {
|
|
str = this.I2.getUrl();
|
|
}
|
|
if (!MainUtil.q5(this.Sh, str)) {
|
|
this.Sh = str;
|
|
t6(true);
|
|
boolean z8 = this.G8;
|
|
boolean z9 = this.J8;
|
|
String str2 = this.A8;
|
|
boolean z10 = false;
|
|
if (MainUtil.q5(str2, str) && !TextUtils.isEmpty(this.B8)) {
|
|
z5 = false;
|
|
z7 = false;
|
|
} else {
|
|
if (this.Q6 && !TextUtils.isEmpty(str) && !TextUtils.isEmpty(this.A8) && !str.startsWith("data:text/html") && !this.A8.startsWith("data:text/html")) {
|
|
this.Q6 = false;
|
|
}
|
|
String str3 = this.B8;
|
|
this.A8 = str;
|
|
this.B8 = MainUtil.I1(str, true);
|
|
String str4 = this.A8;
|
|
this.D8 = str4;
|
|
boolean equals = "file:///android_asset/shortcut.html".equals(str4);
|
|
this.U1 = equals;
|
|
if (!equals && MainUtil.w5(this.B8, false)) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
this.Li = z3;
|
|
this.Mi = null;
|
|
this.O9 = true;
|
|
this.P9 = false;
|
|
this.O8 = false;
|
|
this.P8 = null;
|
|
this.Q8 = null;
|
|
this.R8 = null;
|
|
this.a9 = false;
|
|
this.b9 = null;
|
|
this.F9 = null;
|
|
this.Dn = false;
|
|
this.uo = true;
|
|
N4();
|
|
WebAreaText webAreaText = this.i7;
|
|
if (webAreaText != null) {
|
|
webAreaText.s();
|
|
}
|
|
WebAreaMenu webAreaMenu = this.j7;
|
|
if (webAreaMenu != null) {
|
|
webAreaMenu.c();
|
|
}
|
|
this.I2.setUrlChanged(this.A8);
|
|
G3();
|
|
if (!MainUtil.Z5(this.A8, this.B8)) {
|
|
this.Da = false;
|
|
this.Ea = false;
|
|
this.Fa = null;
|
|
this.Ga = null;
|
|
if (this.Na != null && (handler5 = this.O0) != null) {
|
|
handler5.post(new AnonymousClass502());
|
|
}
|
|
}
|
|
String str5 = this.B8;
|
|
if (TextUtils.isEmpty(str5)) {
|
|
if (this.eb != null && (handler4 = this.O0) != null) {
|
|
handler4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.620
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebFltView webFltView = webViewActivity.eb;
|
|
if (webFltView != null) {
|
|
webFltView.o();
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(webViewActivity.eb);
|
|
}
|
|
webViewActivity.eb = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
} else {
|
|
if (str5.endsWith("e-hentai.org")) {
|
|
String J1 = MainUtil.J1(this.A8, true);
|
|
String str6 = this.A8;
|
|
if (J1 == null || (length = J1.length()) == 0) {
|
|
startsWith = false;
|
|
} else {
|
|
startsWith = str6.startsWith("/s/", length);
|
|
}
|
|
if (startsWith) {
|
|
this.In = 2;
|
|
if (this.eb == null && (handler3 = this.O0) != null) {
|
|
handler3.post(new AnonymousClass619());
|
|
}
|
|
} else {
|
|
String str7 = this.A8;
|
|
if (J1 == null || (length2 = J1.length()) == 0) {
|
|
startsWith2 = false;
|
|
} else {
|
|
startsWith2 = str7.startsWith("/lofi/s/", length2);
|
|
}
|
|
if (startsWith2) {
|
|
this.In = 3;
|
|
if (this.eb == null && (handler2 = this.O0) != null) {
|
|
handler2.post(new AnonymousClass619());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.eb != null && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.620
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebFltView webFltView = webViewActivity.eb;
|
|
if (webFltView != null) {
|
|
webFltView.o();
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(webViewActivity.eb);
|
|
}
|
|
webViewActivity.eb = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (!MainUtil.q5(str3, this.B8)) {
|
|
this.S8 = 0;
|
|
MainNative.b();
|
|
if (this.U1) {
|
|
this.I2.T(0, 0);
|
|
}
|
|
this.La = null;
|
|
this.F8 = null;
|
|
this.G8 = MainUtil.k6(this.B8);
|
|
int i = PrefAlbum.u;
|
|
if (i == 1 || i == 2) {
|
|
z6 = true;
|
|
} else {
|
|
z6 = false;
|
|
}
|
|
if (!z6 && !this.Q6) {
|
|
this.R6 = null;
|
|
this.S6 = 0;
|
|
}
|
|
z4 = true;
|
|
} else {
|
|
z4 = false;
|
|
}
|
|
boolean z11 = this.I8;
|
|
a9(this.A8);
|
|
if (!z11 && this.I8) {
|
|
z10 = true;
|
|
}
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.setYouDialog(this.J8);
|
|
}
|
|
boolean z12 = z10;
|
|
z10 = z4;
|
|
z5 = z12;
|
|
z2 = true;
|
|
}
|
|
if (z8 && this.G8) {
|
|
if (this.J8) {
|
|
this.Sh = null;
|
|
return;
|
|
} else if (z9 && !TextUtils.isEmpty(str2) && str2.startsWith(this.A8)) {
|
|
this.Sh = null;
|
|
return;
|
|
}
|
|
}
|
|
this.Th = z7;
|
|
this.Uh = z10;
|
|
this.Vh = z5;
|
|
this.Wh = z2;
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.226
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
boolean z13 = webViewActivity.Th;
|
|
boolean z14 = webViewActivity.Uh;
|
|
boolean z15 = webViewActivity.Vh;
|
|
boolean z16 = webViewActivity.Wh;
|
|
if (webViewActivity.I2 == null) {
|
|
webViewActivity.Sh = null;
|
|
return;
|
|
}
|
|
int t3 = webViewActivity.t3();
|
|
boolean z17 = true;
|
|
if ((webViewActivity.j9 || !webViewActivity.N5(t3)) && (!MainUtil.U4() || webViewActivity.am == webViewActivity.U1)) {
|
|
z17 = false;
|
|
}
|
|
webViewActivity.am = webViewActivity.U1;
|
|
if (z17) {
|
|
webViewActivity.H8(t3, webViewActivity.u3(), webViewActivity.b3());
|
|
}
|
|
webViewActivity.Xh = z13;
|
|
webViewActivity.Yh = z14;
|
|
webViewActivity.Zh = z15;
|
|
webViewActivity.ai = z16;
|
|
MyWebBody myWebBody2 = webViewActivity.e2;
|
|
if (myWebBody2 == null) {
|
|
return;
|
|
}
|
|
myWebBody2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.227
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean z18 = webViewActivity2.Xh;
|
|
boolean z19 = webViewActivity2.Yh;
|
|
boolean z20 = webViewActivity2.Zh;
|
|
boolean z21 = webViewActivity2.ai;
|
|
if (webViewActivity2.I2 == null) {
|
|
webViewActivity2.Sh = null;
|
|
return;
|
|
}
|
|
if (z21) {
|
|
if (webViewActivity2.Q6) {
|
|
webViewActivity2.q5(z18);
|
|
} else {
|
|
webViewActivity2.H6 = 0;
|
|
webViewActivity2.I6 = false;
|
|
webViewActivity2.K6 = false;
|
|
webViewActivity2.L6 = false;
|
|
webViewActivity2.M6 = null;
|
|
webViewActivity2.N6 = null;
|
|
webViewActivity2.Q6 = false;
|
|
if (PrefAlbum.u == 0) {
|
|
webViewActivity2.J6 = false;
|
|
}
|
|
webViewActivity2.D8(z18);
|
|
}
|
|
} else if (z18) {
|
|
webViewActivity2.g7(webViewActivity2.K2());
|
|
}
|
|
webViewActivity2.m7();
|
|
webViewActivity2.bi = z18;
|
|
webViewActivity2.ci = z19;
|
|
webViewActivity2.di = z20;
|
|
MyWebBody myWebBody3 = webViewActivity2.e2;
|
|
if (myWebBody3 == null) {
|
|
return;
|
|
}
|
|
myWebBody3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.228
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z22 = webViewActivity3.bi;
|
|
boolean z23 = webViewActivity3.ci;
|
|
boolean z24 = webViewActivity3.di;
|
|
WebNestView webNestView = webViewActivity3.I2;
|
|
if (webNestView == null) {
|
|
webViewActivity3.Sh = null;
|
|
return;
|
|
}
|
|
if (webViewActivity3.O9) {
|
|
webViewActivity3.O9 = false;
|
|
if (PrefZone.w != 100) {
|
|
webViewActivity3.P9 = true;
|
|
webNestView.getSettings().setTextZoom(PrefZone.w - 1);
|
|
}
|
|
} else if (webViewActivity3.P9) {
|
|
webViewActivity3.P9 = false;
|
|
webNestView.getSettings().setTextZoom(PrefZone.w);
|
|
} else {
|
|
webViewActivity3.ei = z22;
|
|
webViewActivity3.f19722fi = z23;
|
|
webViewActivity3.gi = z24;
|
|
webViewActivity3.S8();
|
|
return;
|
|
}
|
|
webViewActivity3.ei = z22;
|
|
webViewActivity3.f19722fi = z23;
|
|
webViewActivity3.gi = z24;
|
|
MyWebBody myWebBody4 = webViewActivity3.e2;
|
|
if (myWebBody4 == null) {
|
|
return;
|
|
}
|
|
myWebBody4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.229
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.S8();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
this.Sh = null;
|
|
}
|
|
|
|
public final void T9(final boolean z, final boolean z2) {
|
|
Handler handler;
|
|
this.Sa = z2;
|
|
this.Ua = z;
|
|
if (this.Za != null && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.614
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTtsView webTtsView = webViewActivity.Za;
|
|
if (webTtsView != null && webViewActivity.e2 != null) {
|
|
if (z) {
|
|
webTtsView.n(z2);
|
|
} else {
|
|
webTtsView.i();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
this.Sa = false;
|
|
this.Ua = false;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r10v2, types: [com.mycompany.app.view.MyManagerLinear, androidx.recyclerview.widget.RecyclerView$LayoutManager, androidx.recyclerview.widget.LinearLayoutManager] */
|
|
public final void U1(int i, int i2) {
|
|
if (this.X2 != null && this.Y2 != null) {
|
|
this.b3 = new WebTabBarAdapter(this.i1, this.O2, this.P2, this.U1, i, i2, new WebTabBarAdapter.TabBarListener() { // from class: com.mycompany.app.web.WebViewActivity.170
|
|
@Override // com.mycompany.app.web.WebTabBarAdapter.TabBarListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity.b3;
|
|
if (webTabBarAdapter != null) {
|
|
try {
|
|
webTabBarAdapter.J(webViewActivity.P2, webViewActivity.O2);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebTabBarAdapter.TabBarListener
|
|
public final void b(final int i3, View view, boolean z) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z) {
|
|
if (webViewActivity.a6 == null) {
|
|
webViewActivity.V4();
|
|
if (view != null) {
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(0, R.string.edit));
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(1, R.string.delete));
|
|
MyPopupMenu myPopupMenu = new MyPopupMenu(webViewActivity, webViewActivity.e2, view, arrayList, MainUtil.k5(webViewActivity.U1), new MyPopupMenu.MyPopupListener() { // from class: com.mycompany.app.web.WebViewActivity.318
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i4 = WebViewActivity.Fo;
|
|
WebViewActivity.this.V4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view2, int i4) {
|
|
int i5 = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.e4();
|
|
int i6 = i3;
|
|
if (i4 == 0) {
|
|
if (!webViewActivity2.G1 && !webViewActivity2.J5()) {
|
|
webViewActivity2.A4();
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity2.n3(i6);
|
|
if (n3 != null) {
|
|
long j = n3.e;
|
|
if (j != 0) {
|
|
ArrayList arrayList2 = new ArrayList();
|
|
int size = webViewActivity2.O2.size();
|
|
while (i6 < size) {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) webViewActivity2.O2.get(i6);
|
|
if (webTabItem != null) {
|
|
if (webTabItem.e != j) {
|
|
break;
|
|
}
|
|
arrayList2.add(webTabItem);
|
|
}
|
|
i6++;
|
|
}
|
|
if (!arrayList2.isEmpty()) {
|
|
webViewActivity2.X4(false);
|
|
DialogTabEdit dialogTabEdit = new DialogTabEdit(webViewActivity2, webViewActivity2.O2, arrayList2, n3.f, n3.g, new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.482
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.A4();
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity3.b3;
|
|
if (webTabBarAdapter != null) {
|
|
webTabBarAdapter.g();
|
|
}
|
|
}
|
|
});
|
|
webViewActivity2.J3 = dialogTabEdit;
|
|
dialogTabEdit.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.483
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.A4();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
webViewActivity2.x9(i6);
|
|
return true;
|
|
}
|
|
});
|
|
webViewActivity.a6 = myPopupMenu;
|
|
webViewActivity.Z0 = myPopupMenu;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.319
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.a6 != null) {
|
|
WebViewActivity.f1(webViewActivity2);
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webViewActivity.H2 == null || webViewActivity.G5() || webViewActivity.c3) {
|
|
return;
|
|
}
|
|
if (i3 == webViewActivity.P2) {
|
|
webViewActivity.d6(null, 38);
|
|
} else {
|
|
webViewActivity.A2(i3);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebTabBarAdapter.TabBarListener
|
|
public final void c(WebTabBarAdapter.WebTabBarHolder webTabBarHolder, View view, int i3, int i4, boolean z) {
|
|
TabLongPressGate.arm(WebViewActivity.this, webTabBarHolder, view, i3, i4, z);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r3v0, types: [android.widget.FrameLayout, com.mycompany.app.web.WebTabBarSubView] */
|
|
@Override // com.mycompany.app.web.WebTabBarAdapter.TabBarListener
|
|
public final void d(int i3, int i4, int i5, boolean z) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z) {
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.z6();
|
|
if (webViewActivity.b3 != null) {
|
|
int t3 = webViewActivity.t3();
|
|
int u3 = webViewActivity.u3();
|
|
?? frameLayout = new FrameLayout(webViewActivity);
|
|
frameLayout.L = true;
|
|
frameLayout.f19533c = webViewActivity;
|
|
webViewActivity.d3 = frameLayout;
|
|
frameLayout.d(webViewActivity.e2, i3, webViewActivity.O2, webViewActivity.P2, i4, i5, webViewActivity.U1, t3, u3, new AnonymousClass177());
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.178
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebTabBarSubView webTabBarSubView;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MyWebBody myWebBody = webViewActivity2.e2;
|
|
if (myWebBody != null && (webTabBarSubView = webViewActivity2.d3) != null) {
|
|
myWebBody.addView(webTabBarSubView, -1, -1);
|
|
final WebTabBarSubView webTabBarSubView2 = webViewActivity2.d3;
|
|
if (webTabBarSubView2.q != null) {
|
|
webTabBarSubView2.post(new Runnable() { // from class: com.mycompany.app.web.WebTabBarSubView.5
|
|
public AnonymousClass5() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebTabBarSubView webTabBarSubView3 = WebTabBarSubView.this;
|
|
MyTabFrame myTabFrame = webTabBarSubView3.q;
|
|
if (myTabFrame != null) {
|
|
myTabFrame.j(webTabBarSubView3.h, webTabBarSubView3.i, true, null);
|
|
int i6 = webTabBarSubView3.w;
|
|
if (i6 > 1) {
|
|
webTabBarSubView3.r.i0(i6);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
int i6 = WebViewActivity.Fo;
|
|
webViewActivity.c7(i4, true);
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebTabBarAdapter.TabBarListener
|
|
public final void e(int i3, ArrayList arrayList) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (arrayList != null && !arrayList.isEmpty()) {
|
|
webViewActivity.O2 = arrayList;
|
|
webViewActivity.P2 = i3;
|
|
webViewActivity.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.170.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i4 = WebViewActivity.Fo;
|
|
webViewActivity2.t8();
|
|
}
|
|
});
|
|
} else {
|
|
int i4 = WebViewActivity.Fo;
|
|
webViewActivity.x2(false);
|
|
}
|
|
}
|
|
});
|
|
if (Build.VERSION.SDK_INT < 31) {
|
|
this.Y2.setOverScrollMode(2);
|
|
}
|
|
?? linearLayoutManager = new LinearLayoutManager(0);
|
|
this.Y2.setLayoutManager(linearLayoutManager);
|
|
WebTabBarAdapter webTabBarAdapter = this.b3;
|
|
MyRecyclerView myRecyclerView = this.Y2;
|
|
webTabBarAdapter.e = myRecyclerView;
|
|
webTabBarAdapter.f = linearLayoutManager;
|
|
myRecyclerView.setAdapter(webTabBarAdapter);
|
|
TabDragHelper tabDragHelper = new TabDragHelper(null, null, true, new TabDragHelper.TabDragListener() { // from class: com.mycompany.app.web.WebViewActivity.171
|
|
@Override // com.mycompany.app.quick.TabDragHelper.TabDragListener
|
|
public final void a(int i3) {
|
|
MyWebCoord myWebCoord;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i3 == 1) {
|
|
webViewActivity.g3 = false;
|
|
webViewActivity.j3 = true;
|
|
} else if (i3 == 2) {
|
|
webViewActivity.g3 = true;
|
|
webViewActivity.j3 = false;
|
|
} else if (i3 == 0 && webViewActivity.g3 && (myWebCoord = webViewActivity.f2) != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.171.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.g3) {
|
|
webViewActivity2.g3 = false;
|
|
WebTabBarAdapter webTabBarAdapter2 = webViewActivity2.b3;
|
|
if (webTabBarAdapter2 == null) {
|
|
return;
|
|
}
|
|
if (webViewActivity2.h3 != webViewActivity2.i3) {
|
|
webTabBarAdapter2.M(true);
|
|
} else {
|
|
webTabBarAdapter2.w();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.TabDragHelper.TabDragListener
|
|
public final boolean b(int i3, int i4) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabBarAdapter webTabBarAdapter2 = webViewActivity.b3;
|
|
if (webTabBarAdapter2 == null) {
|
|
return false;
|
|
}
|
|
webViewActivity.i3 = i4;
|
|
return webTabBarAdapter2.I(i3, i4);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r13v1, types: [java.lang.Object, com.mycompany.app.web.WebTabAdapter$WebTabItem] */
|
|
@Override // com.mycompany.app.quick.TabDragHelper.TabDragListener
|
|
public final void c(int i3, int i4) {
|
|
int size;
|
|
WebTabAdapter.WebTabItem B;
|
|
WebTabAdapter.WebTabItem B2;
|
|
WebTabAdapter.WebTabItem webTabItem;
|
|
WebTabAdapter.WebTabItem E;
|
|
WebTabAdapter.WebTabItem E2;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
final WebTabBarAdapter webTabBarAdapter2 = webViewActivity.b3;
|
|
if (webTabBarAdapter2 != null) {
|
|
MyRecyclerView myRecyclerView2 = webViewActivity.Y2;
|
|
ArrayList arrayList = webTabBarAdapter2.i;
|
|
if (arrayList != null && i3 >= 0 && i4 >= 0 && i3 < (size = arrayList.size()) && i4 < size && (B = webTabBarAdapter2.B(i3)) != null && (B2 = webTabBarAdapter2.B(i4)) != null) {
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
if (B2.q != null) {
|
|
webTabBarAdapter2.i.remove(B);
|
|
WebTabAdapter.WebTabItem webTabItem2 = (WebTabAdapter.WebTabItem) B2.q.get(0);
|
|
if (webTabItem2 != null) {
|
|
List<WebTabAdapter.WebTabItem> list = B.q;
|
|
if (list != null) {
|
|
for (WebTabAdapter.WebTabItem webTabItem3 : list) {
|
|
WebTabAdapter.WebTabItem E3 = webTabBarAdapter2.E(webTabItem3.h);
|
|
if (E3 != null && (E2 = webTabBarAdapter2.E(webTabItem2.h)) != null) {
|
|
E3.e = E2.e;
|
|
E3.f = E2.f;
|
|
E3.g = E2.g;
|
|
webTabItem3.n = true;
|
|
B2.q.add(webTabItem3);
|
|
}
|
|
}
|
|
} else {
|
|
WebTabAdapter.WebTabItem E4 = webTabBarAdapter2.E(B.h);
|
|
if (E4 != null && (E = webTabBarAdapter2.E(webTabItem2.h)) != null) {
|
|
E4.e = E.e;
|
|
E4.f = E.f;
|
|
E4.g = E.g;
|
|
B.n = true;
|
|
B2.q.add(B);
|
|
}
|
|
}
|
|
}
|
|
webTabBarAdapter2.M(false);
|
|
if (myRecyclerView2 != null) {
|
|
myRecyclerView2.post(new Runnable() { // from class: com.mycompany.app.web.WebTabBarAdapter.10
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebTabBarAdapter webTabBarAdapter3 = WebTabBarAdapter.this;
|
|
if (webTabBarAdapter3.d == null) {
|
|
return;
|
|
}
|
|
webTabBarAdapter3.g();
|
|
}
|
|
});
|
|
}
|
|
} else {
|
|
webTabBarAdapter2.i.remove(B2);
|
|
webTabBarAdapter2.i.remove(B);
|
|
WebTabAdapter.WebTabItem E5 = webTabBarAdapter2.E(B2.h);
|
|
if (E5 != null) {
|
|
E5.e = currentTimeMillis;
|
|
B2.n = true;
|
|
List list2 = B.q;
|
|
if (list2 != null && (webTabItem = (WebTabAdapter.WebTabItem) list2.get(0)) != null) {
|
|
WebTabAdapter.WebTabItem E6 = webTabBarAdapter2.E(webTabItem.h);
|
|
if (E6 != null) {
|
|
E5.f = E6.f;
|
|
E5.g = E6.g;
|
|
}
|
|
}
|
|
ArrayList arrayList2 = new ArrayList();
|
|
arrayList2.add(B2);
|
|
List<WebTabAdapter.WebTabItem> list3 = B.q;
|
|
if (list3 != null) {
|
|
for (WebTabAdapter.WebTabItem webTabItem4 : list3) {
|
|
WebTabAdapter.WebTabItem E7 = webTabBarAdapter2.E(webTabItem4.h);
|
|
if (E7 != null) {
|
|
E7.e = currentTimeMillis;
|
|
webTabItem4.n = true;
|
|
arrayList2.add(webTabItem4);
|
|
}
|
|
}
|
|
} else {
|
|
WebTabAdapter.WebTabItem E8 = webTabBarAdapter2.E(B.h);
|
|
if (E8 != null) {
|
|
E8.e = currentTimeMillis;
|
|
B.n = true;
|
|
arrayList2.add(B);
|
|
}
|
|
}
|
|
if (i3 < i4) {
|
|
i4--;
|
|
}
|
|
?? obj = new Object();
|
|
obj.q = arrayList2;
|
|
webTabBarAdapter2.i.add(i4, obj);
|
|
webTabBarAdapter2.M(false);
|
|
if (myRecyclerView2 != null) {
|
|
myRecyclerView2.post(new Runnable() { // from class: com.mycompany.app.web.WebTabBarAdapter.11
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebTabBarAdapter webTabBarAdapter3 = WebTabBarAdapter.this;
|
|
if (webTabBarAdapter3.d == null) {
|
|
return;
|
|
}
|
|
webTabBarAdapter3.g();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
webViewActivity.g3 = false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.TabDragHelper.TabDragListener
|
|
public final void d(int i3) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.j3) {
|
|
webViewActivity.j3 = false;
|
|
WebTabBarAdapter webTabBarAdapter2 = webViewActivity.b3;
|
|
if (webTabBarAdapter2 != null) {
|
|
int i4 = webViewActivity.oa;
|
|
int i5 = -1;
|
|
if (i4 != -1) {
|
|
WebViewActivity.E1(webViewActivity, i4, i3);
|
|
return;
|
|
}
|
|
WebTabAdapter.WebTabItem B = webTabBarAdapter2.B(i3);
|
|
if (B != null) {
|
|
if (B.q != null) {
|
|
i5 = WebTabBarAdapter.D(B) + 10000;
|
|
} else {
|
|
i5 = B.h;
|
|
}
|
|
}
|
|
WebViewActivity.E1(webViewActivity, i5, i3);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.TabDragHelper.TabDragListener
|
|
public final void e(int i3) {
|
|
WebViewActivity.this.k3 = i3;
|
|
}
|
|
});
|
|
this.e3 = tabDragHelper;
|
|
ItemTouchHelper itemTouchHelper = new ItemTouchHelper(tabDragHelper);
|
|
this.f3 = itemTouchHelper;
|
|
itemTouchHelper.i(this.Y2);
|
|
q8(i, i2, false);
|
|
if (this.P2 > 2) {
|
|
this.Y2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.172
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int C;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabBarAdapter webTabBarAdapter2 = webViewActivity.b3;
|
|
if (webTabBarAdapter2 == null || (C = webTabBarAdapter2.C(webViewActivity.P2)) == -1) {
|
|
return;
|
|
}
|
|
webViewActivity.Y2.i0(C);
|
|
}
|
|
}, 100L);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x0051 */
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x004c A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x0047 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.util.ArrayList U2(java.lang.String r7) {
|
|
/*
|
|
r6 = this;
|
|
r0 = 0
|
|
android.content.Context r1 = r6.i1 // Catch: java.lang.Throwable -> L42
|
|
java.net.HttpURLConnection r7 = com.mycompany.app.main.MainUtil.m1(r1, r7) // Catch: java.lang.Throwable -> L42
|
|
if (r7 != 0) goto La
|
|
return r0
|
|
La:
|
|
r1 = 1
|
|
r7.setDoInput(r1) // Catch: java.lang.Throwable -> L3f
|
|
r7.connect() // Catch: java.lang.Throwable -> L3f
|
|
java.io.InputStream r1 = r7.getInputStream() // Catch: java.lang.Throwable -> L3f
|
|
java.io.BufferedReader r2 = new java.io.BufferedReader // Catch: java.lang.Throwable -> L3d
|
|
java.io.InputStreamReader r3 = new java.io.InputStreamReader // Catch: java.lang.Throwable -> L3d
|
|
java.nio.charset.Charset r4 = java.nio.charset.StandardCharsets.UTF_8 // Catch: java.lang.Throwable -> L3d
|
|
r3.<init>(r1, r4) // Catch: java.lang.Throwable -> L3d
|
|
r2.<init>(r3) // Catch: java.lang.Throwable -> L3d
|
|
java.util.ArrayList r3 = new java.util.ArrayList // Catch: java.lang.Throwable -> L45
|
|
r3.<init>() // Catch: java.lang.Throwable -> L45
|
|
L26:
|
|
java.lang.String r4 = r2.readLine() // Catch: java.lang.Throwable -> L45
|
|
if (r4 == 0) goto L3b
|
|
java.lang.String r4 = r4.trim() // Catch: java.lang.Throwable -> L45
|
|
boolean r5 = android.text.TextUtils.isEmpty(r4) // Catch: java.lang.Throwable -> L45
|
|
if (r5 == 0) goto L37
|
|
goto L26
|
|
L37:
|
|
r3.add(r4) // Catch: java.lang.Throwable -> L45
|
|
goto L26
|
|
L3b:
|
|
r0 = r3
|
|
goto L45
|
|
L3d:
|
|
r2 = r0
|
|
goto L45
|
|
L3f:
|
|
r1 = r0
|
|
L40:
|
|
r2 = r1
|
|
goto L45
|
|
L42:
|
|
r7 = r0
|
|
r1 = r7
|
|
goto L40
|
|
L45:
|
|
if (r2 == 0) goto L4a
|
|
r2.close() // Catch: java.lang.Exception -> L4a
|
|
L4a:
|
|
if (r1 == 0) goto L4f
|
|
r1.close() // Catch: java.lang.Exception -> L4f
|
|
L4f:
|
|
if (r7 == 0) goto L54
|
|
r7.disconnect()
|
|
L54:
|
|
return r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.U2(java.lang.String):java.util.ArrayList");
|
|
}
|
|
|
|
public final void U3() {
|
|
DialogDownUrl dialogDownUrl = this.p6;
|
|
if (dialogDownUrl != null) {
|
|
dialogDownUrl.dismiss();
|
|
this.p6 = null;
|
|
if (this.R5 != null) {
|
|
this.nb = false;
|
|
MainUtil.K7(this, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void U4() {
|
|
WebTabBarSubView webTabBarSubView = this.d3;
|
|
if (webTabBarSubView != null) {
|
|
MyTabFrame myTabFrame = webTabBarSubView.q;
|
|
if (myTabFrame == null) {
|
|
webTabBarSubView.e();
|
|
} else {
|
|
myTabFrame.j(webTabBarSubView.h, webTabBarSubView.i, false, new WebTabBarSubView.AnonymousClass6());
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean U5() {
|
|
int i;
|
|
if (!this.fa && !this.L3 && (i = this.ha) != 1 && i != 2) {
|
|
if (this.T3 != null || this.b4 != null || this.bb != null || this.cb != null || this.db != null || this.Nb != null || this.lb != null || this.T6 != null || this.ab != null) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void U6(float f, boolean z) {
|
|
boolean z2 = false;
|
|
if (z) {
|
|
S7(4, false);
|
|
return;
|
|
}
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null && this.I2 != null) {
|
|
boolean z3 = true;
|
|
try {
|
|
WebNestFrame.PageItem y = this.H2.y(webNestFrame.getPageIndex() + 1);
|
|
if (y != null) {
|
|
WebNestView webNestView = y.i;
|
|
if (webNestView == null) {
|
|
if (this.n3 == null && this.j1) {
|
|
f = 0.0f;
|
|
}
|
|
WebNestFrame webNestFrame2 = this.H2;
|
|
this.n3 = webNestFrame2;
|
|
webNestFrame2.O(f, true);
|
|
return;
|
|
}
|
|
if (webNestView.getVisibility() != 0) {
|
|
if (this.j1) {
|
|
webNestView.setPageX(0.0f);
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
if (!TextUtils.isEmpty(webNestView.C0)) {
|
|
webNestView.setBackgroundColor(0);
|
|
}
|
|
webNestView.setVisibility(0);
|
|
i2(webNestView);
|
|
z2 = z3;
|
|
}
|
|
this.m3 = webNestView;
|
|
if (!z2) {
|
|
webNestView.setPageX(f);
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void U8(boolean z, boolean z2, boolean z3) {
|
|
if (!z3 && this.w9 == z && this.x9 == z2) {
|
|
l2();
|
|
return;
|
|
}
|
|
if (this.e2 != null) {
|
|
this.Kc = true;
|
|
this.w9 = z;
|
|
this.x9 = z2;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass162());
|
|
}
|
|
}
|
|
|
|
public final void U9(boolean z) {
|
|
WebNestView webNestView;
|
|
QuickView quickView;
|
|
WebUpView webUpView = this.P3;
|
|
if (webUpView != null && (webNestView = this.I2) != null) {
|
|
if (z && PrefZone.y != 0 && !this.Q3 && !this.j9 && !this.L3 && this.l3 == null && this.s3 == null && this.t3 == null && this.u3 == null && !PrefSync.j) {
|
|
if (!this.U1 ? webNestView.getScrollY() > this.e2.getRectBottom() : !((quickView = webNestView.Z0) == null || !quickView.g || quickView.Q <= quickView.getHeight() * 2)) {
|
|
F8();
|
|
return;
|
|
} else {
|
|
this.P3.d();
|
|
return;
|
|
}
|
|
}
|
|
webUpView.d();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:110:0x0179 A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:112:0x010e */
|
|
/* JADX WARN: Removed duplicated region for block: B:113:0x0105 */
|
|
/* JADX WARN: Removed duplicated region for block: B:120:0x00b6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:123:0x00be */
|
|
/* JADX WARN: Removed duplicated region for block: B:23:0x006d A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0075 */
|
|
/* JADX WARN: Removed duplicated region for block: B:34:0x009c */
|
|
/* JADX WARN: Removed duplicated region for block: B:38:0x00a9 A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x00c9 A[ADDED_TO_REGION] */
|
|
/* JADX WARN: Removed duplicated region for block: B:45:0x00d1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:58:0x00fd A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:60:0x0108 A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:63:0x0117 A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:68:0x012a A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:71:0x014e A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:74:0x0160 A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:78:0x0173 A[Catch: all -> 0x0017, Exception -> 0x01de, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:81:0x0188 A[Catch: all -> 0x0017, DONT_GENERATE, TRY_ENTER, TRY_LEAVE, TryCatch #2 {all -> 0x0017, blocks: (B:4:0x0009, B:6:0x000d, B:9:0x0024, B:12:0x0033, B:14:0x0039, B:16:0x0042, B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:81:0x0188, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:108:0x01dc, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064, B:131:0x01de), top: B:3:0x0009 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:84:0x018a A[Catch: all -> 0x0017, Exception -> 0x01de, TRY_ENTER, TryCatch #0 {Exception -> 0x01de, blocks: (B:19:0x0047, B:21:0x004d, B:23:0x006d, B:24:0x006f, B:27:0x0077, B:29:0x007d, B:31:0x0085, B:32:0x0094, B:36:0x00a0, B:38:0x00a9, B:48:0x00d7, B:50:0x00df, B:52:0x00e9, B:115:0x00f0, B:56:0x00f5, B:58:0x00fd, B:60:0x0108, B:61:0x010f, B:63:0x0117, B:66:0x0123, B:68:0x012a, B:69:0x0130, B:71:0x014e, B:72:0x0153, B:74:0x0160, B:76:0x0168, B:78:0x0173, B:79:0x017e, B:84:0x018a, B:86:0x0199, B:90:0x01cc, B:91:0x01a4, B:94:0x01ad, B:97:0x01b7, B:98:0x01bc, B:104:0x01d1, B:106:0x01d7, B:110:0x0179, B:124:0x0054, B:126:0x005c, B:128:0x0064), top: B:18:0x0047 }] */
|
|
/* JADX WARN: Type inference failed for: r13v0 */
|
|
/* JADX WARN: Type inference failed for: r13v1, types: [int] */
|
|
/* JADX WARN: Type inference failed for: r13v4 */
|
|
/* JADX WARN: Type inference failed for: r8v7, types: [java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r9v9, types: [java.lang.Object, com.mycompany.app.web.WebTabAdapter$WebTabItem] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final int V1(int r20, java.lang.String r21, com.mycompany.app.web.WebNestFrame r22, boolean r23, boolean r24) {
|
|
/*
|
|
Method dump skipped, instructions count: 482
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.V1(int, java.lang.String, com.mycompany.app.web.WebNestFrame, boolean, boolean):int");
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0039 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:12:0x003a A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:45:0x00c3 A[Catch: all -> 0x00e6, TRY_ENTER, TRY_LEAVE, TryCatch #4 {all -> 0x00e6, blocks: (B:45:0x00c3, B:53:0x00d9, B:54:0x00de), top: B:43:0x00c1 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:48:0x00cc A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:0x00d9 A[Catch: all -> 0x00e6, TRY_ENTER, TryCatch #4 {all -> 0x00e6, blocks: (B:45:0x00c3, B:53:0x00d9, B:54:0x00de), top: B:43:0x00c1 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:61:0x00ba A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:65:0x00b5 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Type inference failed for: r5v0 */
|
|
/* JADX WARN: Type inference failed for: r5v1 */
|
|
/* JADX WARN: Type inference failed for: r5v3 */
|
|
/* JADX WARN: Type inference failed for: r5v4, types: [java.io.BufferedWriter, java.io.Writer] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.String V2(boolean r11) {
|
|
/*
|
|
Method dump skipped, instructions count: 232
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.V2(boolean):java.lang.String");
|
|
}
|
|
|
|
public final void V3() {
|
|
DialogGuideArea dialogGuideArea = this.q7;
|
|
if (dialogGuideArea != null) {
|
|
dialogGuideArea.dismiss();
|
|
this.q7 = null;
|
|
}
|
|
}
|
|
|
|
public final void V4() {
|
|
if (this.a6 != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.a6.a();
|
|
this.a6 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean V5() {
|
|
if (this.aa != 0) {
|
|
return false;
|
|
}
|
|
if (this.j1) {
|
|
if (!PrefZtwo.E || d2()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
if (!PrefZtwo.E || c2()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void V6(float f, boolean z) {
|
|
List list;
|
|
boolean z2;
|
|
boolean z3 = false;
|
|
if (z) {
|
|
p8(4, false);
|
|
return;
|
|
}
|
|
int i = this.P2 + 1;
|
|
if (PrefZtwo.s) {
|
|
List list2 = this.O2;
|
|
if (list2 != null) {
|
|
if (i >= list2.size()) {
|
|
if (this.P2 != 0) {
|
|
i = 0;
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
if (this.H2 != null && (list = this.O2) != null && i >= 0 && i < list.size()) {
|
|
try {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) this.O2.get(i);
|
|
if (webTabItem != null) {
|
|
WebNestFrame webNestFrame = webTabItem.p;
|
|
if (webNestFrame == null) {
|
|
if (this.R2 == null && this.j1) {
|
|
f = 0.0f;
|
|
}
|
|
WebNestFrame webNestFrame2 = this.H2;
|
|
this.R2 = webNestFrame2;
|
|
webNestFrame2.O(f, false);
|
|
return;
|
|
}
|
|
WebNestView pageValid = webNestFrame.getPageValid();
|
|
if (pageValid != null && pageValid.z0) {
|
|
pageValid.T(t3(), u3());
|
|
}
|
|
if (webTabItem.p.getVisibility() != 0) {
|
|
if (this.j1) {
|
|
webTabItem.p.setTabX(0.0f);
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
int indexOfChild = this.i2.indexOfChild(webTabItem.p);
|
|
int indexOfChild2 = this.i2.indexOfChild(this.H2);
|
|
if (indexOfChild == -1) {
|
|
this.i2.a(webTabItem.p, indexOfChild2 + 1);
|
|
} else if (indexOfChild < indexOfChild2) {
|
|
this.i2.a(webTabItem.p, indexOfChild2);
|
|
}
|
|
webTabItem.p.setVisibility(0);
|
|
z3 = z2;
|
|
}
|
|
WebNestFrame webNestFrame3 = webTabItem.p;
|
|
this.Q2 = webNestFrame3;
|
|
if (!z3) {
|
|
webNestFrame3.setTabX(f);
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean V7(boolean z, boolean z2) {
|
|
int i;
|
|
AppBarLayout appBarLayout;
|
|
int i2;
|
|
AppBarLayout appBarLayout2;
|
|
AppBarLayout appBarLayout3;
|
|
AppBarLayout appBarLayout4;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null && this.R5 == null) {
|
|
if (webNestView.y()) {
|
|
if (PrefZtwo.J && this.U1) {
|
|
QuickView quickView = this.I2.Z0;
|
|
if (quickView != null) {
|
|
quickView.D(z, z2);
|
|
}
|
|
if (z) {
|
|
if (z2 && (appBarLayout4 = this.g2) != null) {
|
|
appBarLayout4.setExpanded(true);
|
|
return true;
|
|
}
|
|
} else {
|
|
AppBarLayout appBarLayout5 = this.g2;
|
|
if (appBarLayout5 != null) {
|
|
appBarLayout5.setExpanded(false);
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
} else if (PrefZtwo.D) {
|
|
if (z) {
|
|
this.I2.pageUp(z2);
|
|
if (z2 && (appBarLayout3 = this.g2) != null) {
|
|
appBarLayout3.setExpanded(true);
|
|
return true;
|
|
}
|
|
} else {
|
|
this.I2.pageDown(z2);
|
|
AppBarLayout appBarLayout6 = this.g2;
|
|
if (appBarLayout6 != null) {
|
|
appBarLayout6.setExpanded(false);
|
|
return true;
|
|
}
|
|
}
|
|
} else if (z2) {
|
|
if (z) {
|
|
if (this.I2.getScrollY() > 0) {
|
|
this.I2.scrollTo(0, 0);
|
|
}
|
|
if (z2 && (appBarLayout2 = this.g2) != null) {
|
|
appBarLayout2.setExpanded(true);
|
|
return true;
|
|
}
|
|
} else {
|
|
int computeVerticalScrollRange = this.I2.computeVerticalScrollRange() - w3();
|
|
if (computeVerticalScrollRange > this.I2.getScrollY()) {
|
|
this.I2.scrollTo(0, computeVerticalScrollRange);
|
|
}
|
|
AppBarLayout appBarLayout7 = this.g2;
|
|
if (appBarLayout7 != null) {
|
|
appBarLayout7.setExpanded(false);
|
|
return true;
|
|
}
|
|
}
|
|
} else if (z) {
|
|
int scrollY = this.I2.getScrollY();
|
|
int w3 = w3();
|
|
if (this.K9 == 0 && w3 > (i2 = MainApp.F1 * 15)) {
|
|
w3 -= i2;
|
|
}
|
|
int i3 = scrollY - w3;
|
|
if (i3 < 0) {
|
|
i3 = 0;
|
|
}
|
|
if (i3 < scrollY) {
|
|
this.I2.scrollTo(0, i3);
|
|
}
|
|
if (z2 && (appBarLayout = this.g2) != null) {
|
|
appBarLayout.setExpanded(true);
|
|
return true;
|
|
}
|
|
} else {
|
|
int scrollY2 = this.I2.getScrollY();
|
|
int w32 = w3();
|
|
if (this.K9 == 0 && w32 > (i = MainApp.F1 * 15)) {
|
|
w32 -= i;
|
|
}
|
|
int i4 = scrollY2 + w32;
|
|
int computeVerticalScrollRange2 = this.I2.computeVerticalScrollRange() - w32;
|
|
if (i4 > computeVerticalScrollRange2) {
|
|
i4 = computeVerticalScrollRange2;
|
|
}
|
|
if (i4 > scrollY2) {
|
|
this.I2.scrollTo(0, i4);
|
|
}
|
|
AppBarLayout appBarLayout8 = this.g2;
|
|
if (appBarLayout8 != null) {
|
|
appBarLayout8.setExpanded(false);
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void V8() {
|
|
if (!this.h9) {
|
|
this.h9 = true;
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.66
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i = webViewActivity.e9;
|
|
if (i != 1234) {
|
|
try {
|
|
webViewActivity.getWindow().setBackgroundDrawable(new ColorDrawable(i));
|
|
webViewActivity.f9 = 3;
|
|
webViewActivity.g9 = i;
|
|
} catch (Exception unused) {
|
|
webViewActivity.f9 = 0;
|
|
webViewActivity.g9 = 1234;
|
|
}
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 != null) {
|
|
handler2.postDelayed(new AnonymousClass68(), 100L);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.setBackgroundColor(0);
|
|
}
|
|
boolean h0 = webViewActivity.h0();
|
|
Bitmap l4 = MainUtil.l4(webViewActivity.i1, h0);
|
|
if (MainUtil.f6(l4)) {
|
|
webViewActivity.p7(l4, h0);
|
|
} else {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.67
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
boolean h02 = webViewActivity2.h0();
|
|
webViewActivity2.fc = h02;
|
|
webViewActivity2.gc = MainUtil.m4(webViewActivity2.i1, h02);
|
|
MyWebCoord myWebCoord = webViewActivity2.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.67.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z = webViewActivity3.fc;
|
|
Bitmap bitmap = webViewActivity3.gc;
|
|
webViewActivity3.gc = null;
|
|
webViewActivity3.p7(bitmap, z);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void V9() {
|
|
if (this.R5 == null) {
|
|
this.Mc = false;
|
|
return;
|
|
}
|
|
int i = this.Q5;
|
|
boolean z = true;
|
|
if (i == 4) {
|
|
z = true ^ MainUtil.K5(this.A8);
|
|
this.W3 = z;
|
|
} else if (!this.W3 || i == 2) {
|
|
z = false;
|
|
}
|
|
this.R5.a(v3(this.I2, this.A8), z, new AnonymousClass270());
|
|
this.Mc = false;
|
|
}
|
|
|
|
public final void W1() {
|
|
boolean z = this.re;
|
|
boolean z2 = this.se;
|
|
TabAddListener tabAddListener = this.te;
|
|
boolean z3 = this.ue;
|
|
this.te = null;
|
|
boolean z4 = true;
|
|
if (z3) {
|
|
w2(true);
|
|
}
|
|
this.Kb = false;
|
|
if (tabAddListener != null) {
|
|
if (!z || z2) {
|
|
z4 = false;
|
|
}
|
|
tabAddListener.a(z4);
|
|
}
|
|
this.tc = false;
|
|
}
|
|
|
|
public final void W3() {
|
|
DialogConfirm dialogConfirm = this.g8;
|
|
if (dialogConfirm != null) {
|
|
dialogConfirm.dismiss();
|
|
this.g8 = null;
|
|
}
|
|
}
|
|
|
|
public final void W4() {
|
|
TabLongPressGate.cancel();
|
|
if (this.aA != null) {
|
|
this.Z0 = null;
|
|
this.aA.a();
|
|
this.aA = null;
|
|
}
|
|
if (this.bA != null) {
|
|
this.bA.dismiss();
|
|
this.bA = null;
|
|
}
|
|
if (this.Y5 != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.Y5.a();
|
|
this.Y5 = null;
|
|
}
|
|
}
|
|
|
|
/** Prepends the cog (Edit) entry; visibility/order filtering is done by D1(). */
|
|
public static void D1filter(ArrayList arrayList) {
|
|
if (arrayList == null) {
|
|
return;
|
|
}
|
|
int i = MainApp.K1 ? R.drawable.outline_settings_dark_24 : R.drawable.outline_settings_black_24;
|
|
arrayList.add(0, new MyPopupAdapter.PopMenuItem(100, i, ""));
|
|
}
|
|
|
|
/** Builds a DialogUrlLink-style header: favicon, title, customization button. */
|
|
public static View D1header(final WebViewActivity webViewActivity, int i, final View view) {
|
|
WebTabAdapter.WebTabItem E;
|
|
WebTabAdapter.WebTabItem webTabItem;
|
|
List list;
|
|
if (webViewActivity == null) {
|
|
return null;
|
|
}
|
|
boolean dark = MainUtil.k5(webViewActivity.U1);
|
|
FrameLayout frameLayout = new FrameLayout(webViewActivity);
|
|
MyRoundImage myRoundImage = new MyRoundImage(webViewActivity);
|
|
myRoundImage.setScaleType(ImageView.ScaleType.CENTER_CROP);
|
|
myRoundImage.setCircleRadius(MainApp.f1 / 2.0f);
|
|
int i2 = MainApp.f1;
|
|
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(i2, i2);
|
|
layoutParams.setMarginStart(MainApp.E1);
|
|
layoutParams.gravity = 8388627;
|
|
frameLayout.addView(myRoundImage, layoutParams);
|
|
AppCompatTextView appCompatTextView = new AppCompatTextView(webViewActivity, null);
|
|
appCompatTextView.setMaxLines(2);
|
|
appCompatTextView.setEllipsize(TextUtils.TruncateAt.END);
|
|
appCompatTextView.setTextSize(1, 16.0f);
|
|
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-1, -2);
|
|
layoutParams2.setMarginStart((int) MainUtil.G(webViewActivity, 72.0f));
|
|
layoutParams2.setMarginEnd(MainApp.h1);
|
|
layoutParams2.gravity = 8388627;
|
|
frameLayout.addView(appCompatTextView, layoutParams2);
|
|
MyButtonImage myButtonImage = new MyButtonImage(webViewActivity);
|
|
myButtonImage.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
|
int i3 = MainApp.g1;
|
|
FrameLayout.LayoutParams layoutParams3 = new FrameLayout.LayoutParams(i3, i3);
|
|
layoutParams3.setMarginEnd(MainApp.F1);
|
|
layoutParams3.gravity = 8388629;
|
|
frameLayout.addView(myButtonImage, layoutParams3);
|
|
if (dark) {
|
|
appCompatTextView.setTextColor(-328966);
|
|
myButtonImage.setImageResource(R.drawable.outline_settings_dark_20);
|
|
myButtonImage.setBgPreColor(-12632257);
|
|
} else {
|
|
appCompatTextView.setTextColor(-16777216);
|
|
myButtonImage.setImageResource(R.drawable.outline_settings_black_20);
|
|
myButtonImage.setBgPreColor(-2039584);
|
|
}
|
|
myButtonImage.setAlpha(1.0f);
|
|
myButtonImage.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.904
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view2) {
|
|
D1edit(webViewActivity, view != null ? view : view2);
|
|
}
|
|
});
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity.b3;
|
|
String str = null;
|
|
if (webTabBarAdapter == null) {
|
|
E = null;
|
|
} else {
|
|
E = webTabBarAdapter.E(i);
|
|
}
|
|
String q3 = q3(webViewActivity, E);
|
|
if (TextUtils.isEmpty(q3)) {
|
|
q3 = webViewActivity.getString(R.string.no_title);
|
|
}
|
|
appCompatTextView.setText(q3);
|
|
String str2 = null;
|
|
long j = 0;
|
|
if (E != null && (list = E.q) != null && !list.isEmpty() && (webTabItem = (WebTabAdapter.WebTabItem) E.q.get(0)) != null) {
|
|
str2 = webTabItem.j;
|
|
j = webTabItem.f19520c;
|
|
} else if (E != null) {
|
|
str2 = E.j;
|
|
j = E.f19520c;
|
|
}
|
|
int placeholder;
|
|
if (TextUtils.isEmpty(str2)) {
|
|
placeholder = dark ? R.drawable.outline_public_dark_24 : R.drawable.outline_public_black_24;
|
|
myRoundImage.setImageResource(placeholder);
|
|
} else if ("file:///android_asset/shortcut.html".equals(str2)) {
|
|
placeholder = dark ? R.drawable.outline_home_dark_24 : R.drawable.outline_home_black_24;
|
|
myRoundImage.setImageResource(placeholder);
|
|
} else if (str2.startsWith("file:///") || str2.startsWith("/data/")) {
|
|
placeholder = dark ? R.drawable.outline_offline_pin_dark_24 : R.drawable.outline_offline_pin_black_24;
|
|
myRoundImage.setImageResource(placeholder);
|
|
} else {
|
|
MainItem.ChildItem childItem = new MainItem.ChildItem();
|
|
childItem.f16550a = 40;
|
|
childItem.f16551c = 11;
|
|
childItem.y = j;
|
|
childItem.g = str2;
|
|
Bitmap b = MainListLoader.b(childItem);
|
|
if (MainUtil.f6(b)) {
|
|
myRoundImage.setImageBitmap(b);
|
|
} else {
|
|
placeholder = dark ? R.drawable.outline_public_dark_24 : R.drawable.outline_public_black_24;
|
|
myRoundImage.setImageResource(placeholder);
|
|
}
|
|
}
|
|
myRoundImage.setVisibility(0);
|
|
frameLayout.setTag(q3);
|
|
return frameLayout;
|
|
}
|
|
|
|
/** Opens DialogSetPopup (mode 2) to toggle/drag-reorder tab-bar long-press items. */
|
|
public static void D1edit(WebViewActivity webViewActivity, View view) {
|
|
if (webViewActivity == null || webViewActivity.bA != null) {
|
|
return;
|
|
}
|
|
webViewActivity.W4();
|
|
final DialogSetPopup dialogSetPopup = new DialogSetPopup(webViewActivity);
|
|
dialogSetPopup.a0 = webViewActivity;
|
|
dialogSetPopup.b0 = dialogSetPopup.getContext();
|
|
dialogSetPopup.c0 = new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.900
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
}
|
|
};
|
|
dialogSetPopup.d0 = 2;
|
|
dialogSetPopup.l0 = PrefWeb.a0;
|
|
dialogSetPopup.m0 = PrefWeb.e0;
|
|
dialogSetPopup.n0 = dialogSetPopup.C(false);
|
|
dialogSetPopup.G();
|
|
webViewActivity.bA = dialogSetPopup;
|
|
dialogSetPopup.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.901
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.bA != null) {
|
|
webViewActivity2.bA.dismiss();
|
|
webViewActivity2.bA = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
/** Builds the URL-bar long-press menu from order + bitmask prefs. */
|
|
public static ArrayList U5build(WebViewActivity webViewActivity) {
|
|
ArrayList arrayList = new ArrayList();
|
|
if (webViewActivity == null) {
|
|
return arrayList;
|
|
}
|
|
int[] labels = {R.string.copy_url, R.string.share_url, R.string.paste_url, R.string.open_copied_url, R.string.open_new_tab, R.string.open_with, R.string.delete_cookie, R.string.view_certi};
|
|
boolean allowCookie = false;
|
|
boolean allowCert = false;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
String url = null;
|
|
if (webNestView != null) {
|
|
url = webNestView.getUrl();
|
|
if (!TextUtils.isEmpty(url) && !"file:///android_asset/shortcut.html".equals(url) && !"about:blank".equals(url)) {
|
|
allowCookie = true;
|
|
if (Build.VERSION.SDK_INT >= 29 && url.startsWith("https://")) {
|
|
allowCert = true;
|
|
}
|
|
}
|
|
}
|
|
boolean[] allow = {true, true, true, true, true, true, allowCookie, allowCert};
|
|
int mask = PrefWeb.f0;
|
|
for (int id : MainUtil.g3(3, false)) {
|
|
if (allow[id] && (mask & (1 << id)) != 0) {
|
|
if (id == 6) {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(6, webViewActivity.getString(R.string.delete_cookie) + " (" + MainUtil.G1(webViewActivity.B8) + ")"));
|
|
} else {
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(id, labels[id]));
|
|
}
|
|
}
|
|
}
|
|
D1filter(arrayList);
|
|
return arrayList;
|
|
}
|
|
|
|
/** Opens DialogSetPopup (mode 3) to toggle/drag-reorder URL-bar long-press items. */
|
|
public static void U5edit(WebViewActivity webViewActivity, View view) {
|
|
if (webViewActivity == null || webViewActivity.cA != null) {
|
|
return;
|
|
}
|
|
webViewActivity.a5();
|
|
final DialogSetPopup dialogSetPopup = new DialogSetPopup(webViewActivity);
|
|
dialogSetPopup.a0 = webViewActivity;
|
|
dialogSetPopup.b0 = dialogSetPopup.getContext();
|
|
dialogSetPopup.c0 = new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.902
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
}
|
|
};
|
|
dialogSetPopup.d0 = 3;
|
|
dialogSetPopup.l0 = PrefWeb.f0;
|
|
dialogSetPopup.m0 = PrefWeb.g0;
|
|
dialogSetPopup.n0 = dialogSetPopup.C(false);
|
|
dialogSetPopup.G();
|
|
webViewActivity.cA = dialogSetPopup;
|
|
dialogSetPopup.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.903
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.cA != null) {
|
|
webViewActivity2.cA.dismiss();
|
|
webViewActivity2.cA = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
/** Tab homepage: navigate when set; first click or long-press confirms set. */
|
|
public static void D1home(WebViewActivity webViewActivity, int i, boolean z) {
|
|
TabHomepage.a(webViewActivity, i, z);
|
|
}
|
|
|
|
public final boolean W5() {
|
|
if (this.aa != 0) {
|
|
return false;
|
|
}
|
|
if (this.j1) {
|
|
if (!PrefZtwo.E || c2()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
if (!PrefZtwo.E || d2()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void W6(float f, boolean z) {
|
|
if (z) {
|
|
S7(4, true);
|
|
return;
|
|
}
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null && this.I2 != null) {
|
|
try {
|
|
WebNestFrame.PageItem y = this.H2.y(webNestFrame.getPageIndex() - 1);
|
|
if (y != null) {
|
|
WebNestView webNestView = y.i;
|
|
WebNestView webNestView2 = this.I2;
|
|
this.m3 = webNestView2;
|
|
webNestView2.setPageX(f);
|
|
if (webNestView != null && webNestView.getVisibility() != 0) {
|
|
if (!TextUtils.isEmpty(webNestView.C0)) {
|
|
webNestView.setBackgroundColor(0);
|
|
}
|
|
webNestView.setVisibility(0);
|
|
i2(webNestView);
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void W7() {
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
this.K1 = true;
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.25
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.K1 = false;
|
|
}
|
|
}, 800L);
|
|
}
|
|
|
|
public final void W8(int i, int i2) {
|
|
int i3;
|
|
WebNestFrame webNestFrame;
|
|
WebNestFrame webNestFrame2;
|
|
if (!this.L2 && this.f2 != null) {
|
|
int i4 = 1234;
|
|
if (a6()) {
|
|
i3 = 1234;
|
|
} else if (MainApp.K1) {
|
|
i3 = -16777216;
|
|
} else {
|
|
i3 = -1;
|
|
}
|
|
int i5 = this.e9;
|
|
if (i5 != 1234 || i3 == 1234 || (webNestFrame2 = this.H2) == null || (!webNestFrame2.u && webNestFrame2.v == null)) {
|
|
i4 = i3;
|
|
}
|
|
if (i5 != i4) {
|
|
this.e9 = i4;
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead != null) {
|
|
int i6 = this.c9;
|
|
int i7 = this.d9;
|
|
dialogViewRead.m1 = i6;
|
|
dialogViewRead.n1 = i7;
|
|
dialogViewRead.o1 = i4;
|
|
dialogViewRead.p1 = i6;
|
|
dialogViewRead.q1 = i7;
|
|
dialogViewRead.r1 = i4;
|
|
}
|
|
V8();
|
|
z8(i);
|
|
i7(i, i2);
|
|
q8(i, i2, true);
|
|
}
|
|
if (!this.J2 && !this.K2 && (webNestFrame = this.H2) != null) {
|
|
webNestFrame.setDarkMode(this.U1);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void W9(boolean z) {
|
|
if (z && this.H8 && !P5() && !PrefSync.j) {
|
|
WebDownView webDownView = this.b4;
|
|
if (webDownView != null) {
|
|
if (PrefZone.r == 3) {
|
|
webDownView.r();
|
|
} else {
|
|
webDownView.i(false);
|
|
}
|
|
}
|
|
g9(true);
|
|
return;
|
|
}
|
|
WebDownView webDownView2 = this.b4;
|
|
if (webDownView2 != null) {
|
|
webDownView2.i(false);
|
|
}
|
|
g9(false);
|
|
}
|
|
|
|
public final void X1(WebNestFrame webNestFrame, String str, boolean z, boolean z2, boolean z3, TabAddListener tabAddListener) {
|
|
if (!this.tc) {
|
|
this.tc = true;
|
|
this.Lb = false;
|
|
boolean z4 = this.N1;
|
|
boolean z5 = this.O1;
|
|
this.N1 = false;
|
|
this.O1 = false;
|
|
if (this.f2 == null) {
|
|
if (tabAddListener != null) {
|
|
tabAddListener.a(false);
|
|
}
|
|
this.tc = false;
|
|
return;
|
|
}
|
|
if (this.R5 != null) {
|
|
b5();
|
|
}
|
|
r6();
|
|
I3(true);
|
|
K3();
|
|
this.Mb = false;
|
|
if (z5 && !z4 && !TextUtils.isEmpty(this.A8) && this.A8.equals(str)) {
|
|
if (tabAddListener != null) {
|
|
tabAddListener.a(false);
|
|
}
|
|
P4();
|
|
this.tc = false;
|
|
return;
|
|
}
|
|
if (webNestFrame == null && t2(str)) {
|
|
if (tabAddListener != null) {
|
|
tabAddListener.a(false);
|
|
}
|
|
P4();
|
|
this.tc = false;
|
|
return;
|
|
}
|
|
AppBarLayout appBarLayout = this.g2;
|
|
if (appBarLayout != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
X4(true);
|
|
t6(false);
|
|
H2();
|
|
this.Rc = webNestFrame;
|
|
this.Sc = str;
|
|
this.Tc = z2;
|
|
this.Uc = z3;
|
|
this.Vc = z5;
|
|
this.Wc = z;
|
|
this.Xc = tabAddListener;
|
|
this.Yc = z4;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.93
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z6;
|
|
boolean z7;
|
|
int i;
|
|
int i2;
|
|
QuickView quickView;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestFrame webNestFrame2 = webViewActivity.Rc;
|
|
String str2 = webViewActivity.Sc;
|
|
boolean z8 = webViewActivity.Tc;
|
|
boolean z9 = webViewActivity.Uc;
|
|
boolean z10 = webViewActivity.Vc;
|
|
boolean z11 = webViewActivity.Wc;
|
|
TabAddListener tabAddListener2 = webViewActivity.Xc;
|
|
boolean z12 = webViewActivity.Yc;
|
|
webViewActivity.Rc = null;
|
|
webViewActivity.Sc = null;
|
|
webViewActivity.Xc = null;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
boolean z13 = webNestView.C;
|
|
i = webViewActivity.t3();
|
|
i2 = webViewActivity.u3();
|
|
if (webViewActivity.U1 && (quickView = webViewActivity.I2.Z0) != null) {
|
|
quickView.M = true;
|
|
}
|
|
webViewActivity.I2.setWebViewClient(null);
|
|
webViewActivity.I2.setWebChromeClient(null);
|
|
webViewActivity.I2.setDownloadListener(null);
|
|
if (z11 && PrefAlbum.O) {
|
|
webViewActivity.K2 = true;
|
|
z6 = true;
|
|
z7 = z13;
|
|
} else {
|
|
webViewActivity.K2 = true;
|
|
webViewActivity.L2 = webViewActivity.U1;
|
|
z7 = z13;
|
|
z6 = false;
|
|
}
|
|
} else {
|
|
z6 = false;
|
|
z7 = false;
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
webViewActivity.Zc = webNestFrame2;
|
|
webViewActivity.ad = str2;
|
|
webViewActivity.bd = z8;
|
|
webViewActivity.cd = z9;
|
|
webViewActivity.dd = z10;
|
|
webViewActivity.ed = z11;
|
|
webViewActivity.fd = z7;
|
|
webViewActivity.gd = i;
|
|
webViewActivity.hd = i2;
|
|
webViewActivity.id = z6;
|
|
webViewActivity.jd = tabAddListener2;
|
|
webViewActivity.kd = z12;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.94
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame3 = webViewActivity2.Zc;
|
|
String str3 = webViewActivity2.ad;
|
|
boolean z14 = webViewActivity2.bd;
|
|
boolean z15 = webViewActivity2.cd;
|
|
boolean z16 = webViewActivity2.dd;
|
|
boolean z17 = webViewActivity2.ed;
|
|
boolean z18 = webViewActivity2.fd;
|
|
int i3 = webViewActivity2.gd;
|
|
int i4 = webViewActivity2.hd;
|
|
boolean z19 = webViewActivity2.id;
|
|
TabAddListener tabAddListener3 = webViewActivity2.jd;
|
|
boolean z20 = webViewActivity2.kd;
|
|
webViewActivity2.Zc = null;
|
|
webViewActivity2.ad = null;
|
|
webViewActivity2.jd = null;
|
|
WebViewActivity.T7(webViewActivity2.I2);
|
|
webViewActivity2.ld = webNestFrame3;
|
|
webViewActivity2.md = str3;
|
|
webViewActivity2.nd = z14;
|
|
webViewActivity2.od = z15;
|
|
webViewActivity2.pd = z16;
|
|
webViewActivity2.qd = z17;
|
|
webViewActivity2.rd = z18;
|
|
webViewActivity2.sd = i3;
|
|
webViewActivity2.td = i4;
|
|
webViewActivity2.ud = z19;
|
|
webViewActivity2.vd = tabAddListener3;
|
|
webViewActivity2.wd = z20;
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.95
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
boolean z21;
|
|
boolean z22;
|
|
boolean z23;
|
|
boolean z24;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame4 = webViewActivity3.ld;
|
|
String str4 = webViewActivity3.md;
|
|
boolean z25 = webViewActivity3.nd;
|
|
boolean z26 = webViewActivity3.od;
|
|
boolean z27 = webViewActivity3.pd;
|
|
boolean z28 = webViewActivity3.qd;
|
|
boolean z29 = webViewActivity3.rd;
|
|
int i5 = webViewActivity3.sd;
|
|
int i6 = webViewActivity3.td;
|
|
boolean z30 = webViewActivity3.ud;
|
|
TabAddListener tabAddListener4 = webViewActivity3.vd;
|
|
boolean z31 = webViewActivity3.wd;
|
|
webViewActivity3.ld = null;
|
|
webViewActivity3.md = null;
|
|
webViewActivity3.vd = null;
|
|
if (webNestFrame4 != null) {
|
|
MainUtil.V6(webNestFrame4);
|
|
webNestView2 = webNestFrame4.getPageCreate();
|
|
if (webNestView2 == null) {
|
|
webNestFrame4.t(null);
|
|
webNestFrame4 = null;
|
|
}
|
|
} else {
|
|
webNestView2 = null;
|
|
}
|
|
boolean z32 = false;
|
|
if (webNestFrame4 != null && webNestView2 != null) {
|
|
webViewActivity3.H2 = webNestFrame4;
|
|
webViewActivity3.I2 = webNestView2;
|
|
if (z30) {
|
|
z23 = false;
|
|
z24 = true;
|
|
} else {
|
|
webViewActivity3.K2 = false;
|
|
z23 = false;
|
|
z24 = false;
|
|
}
|
|
} else {
|
|
boolean equals = "file:///android_asset/shortcut.html".equals(str4);
|
|
WebNestView webNestView3 = webViewActivity3.Gb;
|
|
if (webNestView3 != null) {
|
|
MyWebBody myWebBody = webViewActivity3.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeViewInLayout(webNestView3);
|
|
}
|
|
WebNestView webNestView4 = webViewActivity3.Gb;
|
|
webViewActivity3.I2 = webNestView4;
|
|
webViewActivity3.Gb = null;
|
|
webNestView4.setVisibility(0);
|
|
z21 = false;
|
|
z22 = true;
|
|
} else {
|
|
z21 = false;
|
|
webViewActivity3.i6();
|
|
WebNestView webNestView5 = new WebNestView(webViewActivity3);
|
|
webViewActivity3.I2 = webNestView5;
|
|
webViewActivity3.K8(webNestView5);
|
|
webViewActivity3.I2.a1 = equals;
|
|
z22 = false;
|
|
}
|
|
z32 = z22;
|
|
z23 = true;
|
|
z24 = z21;
|
|
}
|
|
webViewActivity3.xd = webNestFrame4;
|
|
webViewActivity3.yd = str4;
|
|
webViewActivity3.zd = z25;
|
|
webViewActivity3.Ad = z26;
|
|
webViewActivity3.Bd = z27;
|
|
webViewActivity3.Cd = z28;
|
|
webViewActivity3.Dd = z29;
|
|
webViewActivity3.Ed = i5;
|
|
webViewActivity3.Fd = i6;
|
|
webViewActivity3.Gd = z30;
|
|
webViewActivity3.Hd = z24;
|
|
webViewActivity3.Id = tabAddListener4;
|
|
webViewActivity3.Jd = z31;
|
|
webViewActivity3.Kd = z32;
|
|
webViewActivity3.Ld = z23;
|
|
MyWebCoord myWebCoord4 = webViewActivity3.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.96
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z33;
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame5 = webViewActivity4.xd;
|
|
String str5 = webViewActivity4.yd;
|
|
boolean z34 = webViewActivity4.zd;
|
|
boolean z35 = webViewActivity4.Ad;
|
|
boolean z36 = webViewActivity4.Bd;
|
|
boolean z37 = webViewActivity4.Cd;
|
|
boolean z38 = webViewActivity4.Dd;
|
|
int i7 = webViewActivity4.Ed;
|
|
int i8 = webViewActivity4.Fd;
|
|
boolean z39 = webViewActivity4.Gd;
|
|
boolean z40 = webViewActivity4.Hd;
|
|
TabAddListener tabAddListener5 = webViewActivity4.Id;
|
|
boolean z41 = webViewActivity4.Jd;
|
|
boolean z42 = webViewActivity4.Kd;
|
|
boolean z43 = webViewActivity4.Ld;
|
|
webViewActivity4.xd = null;
|
|
webViewActivity4.yd = null;
|
|
webViewActivity4.Id = null;
|
|
if (z43 && webViewActivity4.I2 != null) {
|
|
boolean equals2 = "file:///android_asset/shortcut.html".equals(str5);
|
|
z33 = z42;
|
|
webViewActivity4.I2.setDeskMode(z38);
|
|
webViewActivity4.I2.T(i7, i8);
|
|
WebNestFrame webNestFrame6 = new WebNestFrame(webViewActivity4);
|
|
webViewActivity4.H2 = webNestFrame6;
|
|
webNestFrame6.E(equals2);
|
|
WebNestFrame webNestFrame7 = webViewActivity4.H2;
|
|
WebNestView webNestView6 = webViewActivity4.I2;
|
|
if (webNestFrame7 != null) {
|
|
webNestFrame7.k(webNestView6, 0, 0);
|
|
}
|
|
} else {
|
|
z33 = z42;
|
|
}
|
|
webViewActivity4.w6();
|
|
WebNestFrame webNestFrame8 = webViewActivity4.H2;
|
|
if (webNestFrame8 != null) {
|
|
webNestFrame8.setAddNeed(z39);
|
|
}
|
|
webViewActivity4.j8();
|
|
webViewActivity4.Md = webNestFrame5;
|
|
webViewActivity4.Nd = str5;
|
|
webViewActivity4.Od = z34;
|
|
webViewActivity4.Pd = z35;
|
|
webViewActivity4.Qd = z36;
|
|
webViewActivity4.Rd = z37;
|
|
webViewActivity4.Sd = z40;
|
|
webViewActivity4.Td = tabAddListener5;
|
|
webViewActivity4.Ud = z41;
|
|
webViewActivity4.Vd = z33;
|
|
MyWebCoord myWebCoord5 = webViewActivity4.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.97
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame9 = webViewActivity5.Md;
|
|
String str6 = webViewActivity5.Nd;
|
|
boolean z44 = webViewActivity5.Od;
|
|
boolean z45 = webViewActivity5.Pd;
|
|
boolean z46 = webViewActivity5.Qd;
|
|
boolean z47 = webViewActivity5.Rd;
|
|
boolean z48 = webViewActivity5.Sd;
|
|
TabAddListener tabAddListener6 = webViewActivity5.Td;
|
|
boolean z49 = webViewActivity5.Ud;
|
|
boolean z50 = webViewActivity5.Vd;
|
|
webViewActivity5.Md = null;
|
|
webViewActivity5.Nd = null;
|
|
webViewActivity5.Td = null;
|
|
webViewActivity5.N8(webViewActivity5.I2, 0);
|
|
webViewActivity5.Wd = webNestFrame9;
|
|
webViewActivity5.Xd = str6;
|
|
webViewActivity5.Yd = z44;
|
|
webViewActivity5.Zd = z45;
|
|
webViewActivity5.ae = z46;
|
|
webViewActivity5.be = z47;
|
|
webViewActivity5.ce = z48;
|
|
webViewActivity5.de = tabAddListener6;
|
|
webViewActivity5.ee = z49;
|
|
webViewActivity5.fe = z50;
|
|
MyWebCoord myWebCoord6 = webViewActivity5.f2;
|
|
if (myWebCoord6 == null) {
|
|
return;
|
|
}
|
|
myWebCoord6.post(new AnonymousClass98());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void X3() {
|
|
DialogConfirm dialogConfirm = this.o6;
|
|
if (dialogConfirm != null) {
|
|
dialogConfirm.dismiss();
|
|
this.o6 = null;
|
|
if (this.R5 != null) {
|
|
this.nb = false;
|
|
MainUtil.K7(this, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void X4(boolean z) {
|
|
MySnackbar mySnackbar = this.l3;
|
|
if (mySnackbar != null) {
|
|
mySnackbar.i(z);
|
|
this.l3 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean X5() {
|
|
if (!Y5()) {
|
|
return false;
|
|
}
|
|
return !PrefAlbum.w;
|
|
}
|
|
|
|
public final void X6(float f, int i, boolean z) {
|
|
List list;
|
|
if (z) {
|
|
p8(i, true);
|
|
return;
|
|
}
|
|
int i2 = this.P2 - 1;
|
|
if (PrefZtwo.s) {
|
|
List list2 = this.O2;
|
|
if (list2 != null) {
|
|
if (i2 < 0 && (i2 = list2.size() - 1) == this.P2) {
|
|
return;
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
if (this.H2 != null && (list = this.O2) != null && i2 >= 0 && i2 < list.size()) {
|
|
try {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) this.O2.get(i2);
|
|
if (webTabItem != null) {
|
|
WebNestFrame webNestFrame = webTabItem.p;
|
|
if (webNestFrame != null) {
|
|
WebNestView pageValid = webNestFrame.getPageValid();
|
|
if (pageValid != null && pageValid.z0) {
|
|
pageValid.T(t3(), u3());
|
|
}
|
|
if (webTabItem.p.getVisibility() != 0) {
|
|
int indexOfChild = this.i2.indexOfChild(webTabItem.p);
|
|
int indexOfChild2 = this.i2.indexOfChild(this.H2);
|
|
if (indexOfChild == -1) {
|
|
this.i2.a(webTabItem.p, indexOfChild2);
|
|
} else if (indexOfChild > indexOfChild2) {
|
|
this.i2.a(webTabItem.p, indexOfChild2);
|
|
}
|
|
webTabItem.p.setVisibility(0);
|
|
}
|
|
}
|
|
WebNestFrame webNestFrame2 = this.H2;
|
|
this.Q2 = webNestFrame2;
|
|
webNestFrame2.setTabX(f);
|
|
if (this.Aa) {
|
|
this.f2.F(f, this.j1);
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void X7(boolean z, PrevBackListener prevBackListener, PrevPageListener prevPageListener) {
|
|
boolean z2 = this.ig;
|
|
this.ig = false;
|
|
this.Ha = null;
|
|
this.Ia = null;
|
|
this.Ja = null;
|
|
this.Ka = null;
|
|
P6(true, true);
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView == null) {
|
|
if (prevPageListener != null) {
|
|
prevPageListener.a();
|
|
}
|
|
if (prevBackListener != null) {
|
|
prevBackListener.a(false);
|
|
}
|
|
this.qc = false;
|
|
return;
|
|
}
|
|
this.jg = z2;
|
|
this.kg = webNestView.canGoBack();
|
|
this.lg = z;
|
|
this.mg = prevBackListener;
|
|
this.ng = prevPageListener;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.151
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
boolean z3;
|
|
boolean z4;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
boolean z5 = webViewActivity.jg;
|
|
webViewActivity.jg = false;
|
|
boolean z6 = webViewActivity.kg;
|
|
boolean z7 = webViewActivity.lg;
|
|
PrevBackListener prevBackListener2 = webViewActivity.mg;
|
|
PrevPageListener prevPageListener2 = webViewActivity.ng;
|
|
webViewActivity.mg = null;
|
|
webViewActivity.ng = null;
|
|
WebNestFrame webNestFrame = webViewActivity.H2;
|
|
if (webNestFrame != null && (webNestView2 = webViewActivity.I2) != null) {
|
|
if (PrefZtwo.E && !z6) {
|
|
List list = webNestFrame.o;
|
|
if (list != null && list.size() >= 2 && webNestFrame.p > 0) {
|
|
webViewActivity.i9 = false;
|
|
webViewActivity.k6(4, true, prevPageListener2);
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
} else if (z6) {
|
|
webViewActivity.i9 = false;
|
|
webNestView2.goBack();
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(true);
|
|
}
|
|
webViewActivity.qc = false;
|
|
return;
|
|
}
|
|
if (PrefMain.n && !webViewActivity.i9) {
|
|
if (PrefMain.m) {
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity.n3(webViewActivity.P2);
|
|
if (n3 == null) {
|
|
z4 = false;
|
|
} else {
|
|
z4 = n3.o;
|
|
}
|
|
if (z4) {
|
|
webViewActivity.P1 = true;
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(false);
|
|
}
|
|
webViewActivity.qc = false;
|
|
return;
|
|
}
|
|
if (webViewActivity.g3(webViewActivity.P2) == null) {
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(false);
|
|
}
|
|
webViewActivity.qc = false;
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.i9 = true;
|
|
MainUtil.e8(webViewActivity, R.string.last_page_noti);
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(true);
|
|
}
|
|
webViewActivity.qc = false;
|
|
return;
|
|
}
|
|
WebTabAdapter.WebTabItem n32 = webViewActivity.n3(webViewActivity.P2);
|
|
if (n32 == null) {
|
|
z3 = false;
|
|
} else {
|
|
z3 = n32.o;
|
|
}
|
|
if (z3) {
|
|
webViewActivity.P1 = true;
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(false);
|
|
}
|
|
webViewActivity.qc = false;
|
|
return;
|
|
}
|
|
if (PrefTts.E) {
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(false);
|
|
}
|
|
webViewActivity.qc = false;
|
|
return;
|
|
}
|
|
WebTabAdapter.WebTabItem g3 = webViewActivity.g3(webViewActivity.P2);
|
|
if (g3 == null) {
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(false);
|
|
}
|
|
webViewActivity.qc = false;
|
|
return;
|
|
}
|
|
if (webViewActivity.I2 == null) {
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
webViewActivity.qc = false;
|
|
} else if (z5 && !webViewActivity.e2()) {
|
|
if (PrefMain.n) {
|
|
MainUtil.e8(webViewActivity, R.string.last_page_noti);
|
|
}
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
webViewActivity.qc = false;
|
|
} else {
|
|
webViewActivity.P4();
|
|
webViewActivity.t6(true);
|
|
if (z7 && PrefAlbum.O) {
|
|
if (webViewActivity.T2 != 0) {
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
webViewActivity.qc = false;
|
|
} else {
|
|
float f = 0.5f;
|
|
if (webViewActivity.j1) {
|
|
f = webViewActivity.I2.getWidth() - 0.5f;
|
|
}
|
|
webViewActivity.X6(f, 2, false);
|
|
webViewActivity.og = g3;
|
|
webViewActivity.pg = prevPageListener2;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.152
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem = webViewActivity2.og;
|
|
PrevPageListener prevPageListener3 = webViewActivity2.pg;
|
|
webViewActivity2.og = null;
|
|
webViewActivity2.pg = null;
|
|
webViewActivity2.p8(2, true);
|
|
if (webViewActivity2.T2 != 0) {
|
|
WebNestView webNestView3 = webViewActivity2.I2;
|
|
webNestView3.k = true;
|
|
MainUtil.I(webNestView3, "window.close();", false);
|
|
if (prevPageListener3 != null) {
|
|
prevPageListener3.a();
|
|
}
|
|
webViewActivity2.qc = false;
|
|
return;
|
|
}
|
|
webViewActivity2.h8(webTabItem, prevPageListener3);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
webViewActivity.h8(g3, prevPageListener2);
|
|
}
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
if (prevBackListener2 != null) {
|
|
prevBackListener2.a(false);
|
|
}
|
|
webViewActivity.qc = false;
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void X8(int i, int i2) {
|
|
MyIconView myIconView = this.Z3;
|
|
if (myIconView != null || this.a4 != null) {
|
|
if (PrefPdf.z) {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
boolean z = this.U1;
|
|
if (myIconView == null) {
|
|
i = 0;
|
|
}
|
|
int s0 = MainUtil.s0(i, z);
|
|
if (this.c4 != s0) {
|
|
this.c4 = s0;
|
|
int t4 = MainUtil.t4(s0, false);
|
|
MyIconView myIconView2 = this.Z3;
|
|
if (myIconView2 != null) {
|
|
myIconView2.setImageResource(t4);
|
|
this.Z3.setAlpha(MyIconView.i(s0));
|
|
this.Z3.setBgPreColor(MainUtil.P1(s0, i2));
|
|
}
|
|
MyIconView myIconView3 = this.a4;
|
|
if (myIconView3 != null) {
|
|
myIconView3.setImageResource(t4);
|
|
this.a4.setAlpha(MyIconView.i(s0));
|
|
this.a4.setBgPreColor(MainUtil.P1(s0, i2));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void X9(boolean z) {
|
|
if (this.ab == null) {
|
|
return;
|
|
}
|
|
if (z && PrefZtri.k && !P5() && !PrefSync.j) {
|
|
this.ab.w(false);
|
|
} else {
|
|
this.ab.m(false);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v6, types: [android.widget.LinearLayout, com.mycompany.app.view.MyBarView] */
|
|
public final void Y1(String str, int i, int i2, String str2, int i3) {
|
|
int i4;
|
|
int i5;
|
|
int[] a2 = MainUtil.a2(PrefMain.D);
|
|
boolean X5 = X5();
|
|
if (!PrefPdf.z) {
|
|
i4 = t3();
|
|
i5 = u3();
|
|
} else {
|
|
i4 = 0;
|
|
i5 = 0;
|
|
}
|
|
int s0 = MainUtil.s0(i4, this.U1);
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
myBarView.a(this, a2, str, str2, i, X5, this.P2, i2, this.U1, s0, i5, i3, 1);
|
|
return;
|
|
}
|
|
if (a2 != null && a2.length != 0) {
|
|
?? linearLayout = new LinearLayout(this);
|
|
this.o2 = linearLayout;
|
|
linearLayout.a(this, a2, str, str2, i, X5, this.P2, i2, this.U1, s0, i5, i3, 1);
|
|
if (PrefPdf.z) {
|
|
this.k2.a(this.o2, 0);
|
|
} else {
|
|
this.j2.a(this.o2, 0);
|
|
}
|
|
this.o2.setListener(new MyBarView.BarListener() { // from class: com.mycompany.app.web.WebViewActivity.73
|
|
@Override // com.mycompany.app.view.MyBarView.BarListener
|
|
public final void a(int i6, View view, boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.U0(webViewActivity, webViewActivity.o2, view, i6);
|
|
}
|
|
});
|
|
if (PrefZone.n == 1) {
|
|
J1();
|
|
}
|
|
if (PrefZone.r == 1) {
|
|
a2();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final String Y2(String str, String str2) {
|
|
String R2 = R2(str);
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
StringBuilder sb = new StringBuilder();
|
|
if (!TextUtils.isEmpty(R2)) {
|
|
sb.append(R2);
|
|
}
|
|
return android.support.v4.media.a.p(sb, "ⓜ", str2);
|
|
}
|
|
if (!TextUtils.isEmpty(R2)) {
|
|
return R2;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final void Y3() {
|
|
DialogConfirm dialogConfirm = this.v8;
|
|
if (dialogConfirm != null) {
|
|
dialogConfirm.dismiss();
|
|
this.v8 = null;
|
|
}
|
|
}
|
|
|
|
public final void Y4() {
|
|
WebTransControl webTransControl = this.V6;
|
|
if (webTransControl != null) {
|
|
webTransControl.g(false);
|
|
}
|
|
}
|
|
|
|
public final boolean Y5() {
|
|
boolean z;
|
|
if (PrefAlbum.v) {
|
|
z = this.U1;
|
|
} else {
|
|
if (!this.I6 && !this.J6) {
|
|
return false;
|
|
}
|
|
z = this.U1;
|
|
}
|
|
return !z;
|
|
}
|
|
|
|
public final void Y6(int i) {
|
|
boolean z;
|
|
if (i != 0) {
|
|
if (this.m3 == null && this.n3 == null) {
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (this.j1) {
|
|
if (z) {
|
|
if (f3() > x3() / 2) {
|
|
S7(4, false);
|
|
return;
|
|
}
|
|
} else if (f3() < x3() / 2) {
|
|
S7(4, true);
|
|
return;
|
|
}
|
|
z = !z;
|
|
} else if (z) {
|
|
if (f3() > x3() / 2) {
|
|
S7(4, true);
|
|
return;
|
|
}
|
|
} else if (f3() < x3() / 2) {
|
|
S7(4, false);
|
|
return;
|
|
}
|
|
S7(3, z);
|
|
}
|
|
}
|
|
|
|
public final void Y7(PrevBackListener prevBackListener) {
|
|
boolean z = this.gg;
|
|
this.gg = false;
|
|
if (this.qc) {
|
|
if (prevBackListener != null) {
|
|
prevBackListener.a(true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
this.qc = true;
|
|
o5();
|
|
this.ig = z;
|
|
this.hg = prevBackListener;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.150
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
PrevBackListener prevBackListener2 = webViewActivity.hg;
|
|
webViewActivity.hg = null;
|
|
webViewActivity.X7(true, prevBackListener2, null);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void Y8() {
|
|
int i;
|
|
if (!PrefPdf.z) {
|
|
i = t3();
|
|
} else {
|
|
i = 0;
|
|
}
|
|
boolean z = this.U1;
|
|
if (this.Z3 == null) {
|
|
i = 0;
|
|
}
|
|
int t4 = MainUtil.t4(MainUtil.s0(i, z), false);
|
|
MyIconView myIconView = this.Z3;
|
|
if (myIconView != null) {
|
|
myIconView.setImageResource(t4);
|
|
return;
|
|
}
|
|
MyIconView myIconView2 = this.a4;
|
|
if (myIconView2 != null) {
|
|
myIconView2.setImageResource(t4);
|
|
}
|
|
}
|
|
|
|
public final boolean Y9() {
|
|
if (this.H8 && !this.J8) {
|
|
if (I5()) {
|
|
Handler handler = this.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.234
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
webNestView.evaluateJavascript("window.yspd", new ValueCallback<String>() { // from class: com.mycompany.app.web.WebViewActivity.234.1
|
|
@Override // android.webkit.ValueCallback
|
|
public final void onReceiveValue(String str) {
|
|
if ("true".equals(str)) {
|
|
return;
|
|
}
|
|
WebViewActivity.this.M8 = null;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
} else {
|
|
if (MainUtil.m8() && PrefZtwo.V) {
|
|
return false;
|
|
}
|
|
if (Float.compare(PrefZtwo.W, 1.0f) != 0) {
|
|
PrefZtwo.W = 1.0f;
|
|
PrefSet.e(this.i1, 1.0f);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void Z1() {
|
|
int i;
|
|
int i2;
|
|
if (this.f2 != null) {
|
|
int i3 = PrefZone.y;
|
|
int i4 = 0;
|
|
if (i3 == 1) {
|
|
i2 = 51;
|
|
i4 = MainApp.G1;
|
|
i = 0;
|
|
} else if (i3 == 2) {
|
|
i2 = 49;
|
|
i = 0;
|
|
} else if (i3 == 3) {
|
|
i = MainApp.G1;
|
|
i2 = 53;
|
|
} else {
|
|
return;
|
|
}
|
|
WebUpView webUpView = this.P3;
|
|
if (webUpView != null) {
|
|
CoordinatorLayout.LayoutParams layoutParams = (CoordinatorLayout.LayoutParams) webUpView.getLayoutParams();
|
|
if (layoutParams != null) {
|
|
if (layoutParams.d != i2 || layoutParams.f611c != i2 || ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin != i4 || ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin != i) {
|
|
layoutParams.d = i2;
|
|
layoutParams.f611c = i2;
|
|
((ViewGroup.MarginLayoutParams) layoutParams).leftMargin = i4;
|
|
((ViewGroup.MarginLayoutParams) layoutParams).rightMargin = i;
|
|
this.P3.requestLayout();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
int i5 = MainApp.g1;
|
|
CoordinatorLayout.LayoutParams layoutParams2 = new CoordinatorLayout.LayoutParams(i5, i5);
|
|
int i6 = R.id.web_bot_view;
|
|
layoutParams2.l = null;
|
|
layoutParams2.k = null;
|
|
layoutParams2.f = i6;
|
|
((ViewGroup.MarginLayoutParams) layoutParams2).bottomMargin = MainApp.F1;
|
|
layoutParams2.d = i2;
|
|
layoutParams2.f611c = i2;
|
|
((ViewGroup.MarginLayoutParams) layoutParams2).leftMargin = i4;
|
|
((ViewGroup.MarginLayoutParams) layoutParams2).rightMargin = i;
|
|
try {
|
|
WebUpView webUpView2 = new WebUpView(this);
|
|
this.P3 = webUpView2;
|
|
webUpView2.setVisibility(8);
|
|
this.P3.setBgColors(this.U1);
|
|
WebUpView webUpView3 = this.P3;
|
|
WebUpView.UpViewListener upViewListener = new WebUpView.UpViewListener() { // from class: com.mycompany.app.web.WebViewActivity.179
|
|
@Override // com.mycompany.app.wview.WebUpView.UpViewListener
|
|
public final void a() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.V7(true, true);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebUpView.UpViewListener
|
|
public final void b() {
|
|
int r;
|
|
int i7;
|
|
int i8;
|
|
int round;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
WebUpView webUpView4 = webViewActivity.P3;
|
|
boolean z = webViewActivity.U1;
|
|
myWebCoord.getClass();
|
|
boolean z2 = false;
|
|
if (webUpView4 != null) {
|
|
if (MainUtil.k5(z)) {
|
|
r = PrefEditor.r(-16777216, PrefEditor.J);
|
|
i7 = R.drawable.outline_arrow_upward_dark_24;
|
|
i8 = -1066044043;
|
|
} else {
|
|
r = PrefEditor.r(-1, PrefEditor.J);
|
|
i7 = R.drawable.outline_arrow_upward_black_24;
|
|
i8 = -2139785867;
|
|
}
|
|
Drawable S = MainUtil.S(myWebCoord.getContext(), i7);
|
|
myWebCoord.Q = S;
|
|
if (S != null) {
|
|
Paint paint = new Paint();
|
|
myWebCoord.O = paint;
|
|
paint.setAntiAlias(true);
|
|
myWebCoord.O.setStyle(Paint.Style.FILL);
|
|
myWebCoord.O.setColor(r);
|
|
Paint paint2 = new Paint();
|
|
myWebCoord.P = paint2;
|
|
paint2.setAntiAlias(true);
|
|
myWebCoord.P.setStyle(Paint.Style.STROKE);
|
|
myWebCoord.P.setStrokeWidth(MainApp.n1);
|
|
myWebCoord.P.setColor(i8);
|
|
myWebCoord.a0 = myWebCoord.getWidth();
|
|
myWebCoord.b0 = myWebCoord.getHeight();
|
|
int i9 = MainApp.g1;
|
|
myWebCoord.V = i9;
|
|
myWebCoord.W = i9;
|
|
myWebCoord.M = i9 / 2;
|
|
myWebCoord.N = MainApp.j1;
|
|
int i10 = PrefZone.y;
|
|
if (i10 == 1) {
|
|
round = MainApp.G1;
|
|
} else if (i10 == 3) {
|
|
round = (myWebCoord.a0 - i9) - MainApp.G1;
|
|
} else {
|
|
round = Math.round((myWebCoord.a0 - i9) / 2.0f);
|
|
}
|
|
int i11 = (myWebCoord.b0 - myWebCoord.W) - MainApp.G1;
|
|
myWebCoord.g0 = ((int) webUpView4.getX()) - round;
|
|
myWebCoord.h0 = ((int) webUpView4.getY()) - i11;
|
|
myWebCoord.T = round - myWebCoord.R;
|
|
myWebCoord.U = i11 - myWebCoord.S;
|
|
myWebCoord.E(round, i11);
|
|
z2 = true;
|
|
}
|
|
}
|
|
webViewActivity.Q3 = z2;
|
|
}
|
|
};
|
|
webUpView3.h = true;
|
|
webUpView3.g = upViewListener;
|
|
this.f2.setMoveListener(new DialogSeekAudio.DialogSeekListener() { // from class: com.mycompany.app.web.WebViewActivity.180
|
|
@Override // com.mycompany.app.dialog.DialogSeekAudio.DialogSeekListener
|
|
public final void a(int i7) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Q3 = false;
|
|
if (webViewActivity.P3 == null) {
|
|
return;
|
|
}
|
|
if (PrefZone.y != i7) {
|
|
PrefZone.y = i7;
|
|
PrefSet.f(webViewActivity.i1, 15, i7, "mShowUpPos");
|
|
webViewActivity.Z1();
|
|
webViewActivity.C8();
|
|
}
|
|
webViewActivity.F8();
|
|
}
|
|
});
|
|
this.f2.addView(this.P3, layoutParams2);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final String Z2(String str) {
|
|
if (MainUtil.t5(str)) {
|
|
return str;
|
|
}
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView == null) {
|
|
return this.A8;
|
|
}
|
|
String p = webNestView.p(webNestView.n(str));
|
|
if (!TextUtils.isEmpty(p)) {
|
|
return p;
|
|
}
|
|
return this.A8;
|
|
}
|
|
|
|
public final void Z3() {
|
|
DialogConfirm dialogConfirm = this.h6;
|
|
if (dialogConfirm != null) {
|
|
dialogConfirm.dismiss();
|
|
this.h6 = null;
|
|
}
|
|
}
|
|
|
|
public final void Z4() {
|
|
if (this.X6 != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.X6.a();
|
|
this.X6 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean Z5(boolean z) {
|
|
boolean z2;
|
|
ArrayList arrayList;
|
|
if ((PrefAlbum.u != 0 || this.Q6) && !this.U1 && this.H6 != 2) {
|
|
if (z) {
|
|
String str = this.A8;
|
|
String str2 = this.B8;
|
|
if ((TextUtils.isEmpty(str2) || (!str2.equals("x.com") && !str2.endsWith("onlyfans.com"))) && !MainUtil.c6(str)) {
|
|
int i = PrefAlbum.u;
|
|
if ((i == 1 || i == 2) && !this.Q6) {
|
|
DataBookTrans l = DataBookTrans.l(this.i1);
|
|
l.getClass();
|
|
try {
|
|
arrayList = l.f12916c;
|
|
} catch (Exception unused) {
|
|
}
|
|
if (arrayList != null && !arrayList.isEmpty()) {
|
|
String S6 = MainUtil.S6(str);
|
|
if (!TextUtils.isEmpty(S6)) {
|
|
if (l.f12916c.contains(S6)) {
|
|
z2 = true;
|
|
} else if (!TextUtils.isEmpty(str2)) {
|
|
z2 = l.f12916c.contains(str2);
|
|
}
|
|
if (!z2) {
|
|
}
|
|
}
|
|
}
|
|
z2 = false;
|
|
if (!z2) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void Z6(int i) {
|
|
WebNestFrame webNestFrame;
|
|
boolean z;
|
|
if (i == 0 || (webNestFrame = this.Q2) == null) {
|
|
return;
|
|
}
|
|
if (i == 3) {
|
|
float tabY = webNestFrame.getTabY();
|
|
if (tabY > (this.e2.getRectBottom() / 2) - MainApp.Y0) {
|
|
T6(tabY, true);
|
|
return;
|
|
}
|
|
if (this.Q2.M(3)) {
|
|
this.T2 = 3;
|
|
this.U2 = this.Q2;
|
|
this.W2 = false;
|
|
}
|
|
this.Q2 = null;
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (this.j1) {
|
|
if (z) {
|
|
if (p3() > x3() / 2) {
|
|
p8(4, false);
|
|
return;
|
|
}
|
|
} else if (p3() < x3() / 2) {
|
|
if (this.Aa) {
|
|
p8(2, true);
|
|
return;
|
|
} else {
|
|
p8(4, true);
|
|
return;
|
|
}
|
|
}
|
|
z = !z;
|
|
} else if (z) {
|
|
if (p3() > x3() / 2) {
|
|
if (this.Aa) {
|
|
p8(2, true);
|
|
return;
|
|
} else {
|
|
p8(4, true);
|
|
return;
|
|
}
|
|
}
|
|
} else if (p3() < x3() / 2) {
|
|
p8(4, false);
|
|
return;
|
|
}
|
|
p8(3, z);
|
|
}
|
|
|
|
public final void Z7(boolean z) {
|
|
this.E4 = z;
|
|
this.F4 = MainApp.L1;
|
|
this.G4 = PrefWeb.M;
|
|
this.H4 = PrefWeb.N;
|
|
this.x5 = t3();
|
|
}
|
|
|
|
public final boolean Z8() {
|
|
if (!Y9()) {
|
|
this.M8 = null;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return false;
|
|
}
|
|
myWebCoord.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.236
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
boolean z = webViewActivity.li;
|
|
Runnable runnable = webViewActivity.mi;
|
|
if (!webViewActivity.Y9()) {
|
|
webViewActivity.M8 = null;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.removeCallbacks(runnable);
|
|
if (!webViewActivity.T9 && !webViewActivity.x5()) {
|
|
webViewActivity.f2.post(runnable);
|
|
} else {
|
|
webViewActivity.f2.postDelayed(runnable, 800L);
|
|
}
|
|
}
|
|
}
|
|
if (z) {
|
|
webViewActivity.R6();
|
|
}
|
|
}
|
|
}, 1000L);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void Z9() {
|
|
this.v0 = true;
|
|
G3();
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.C();
|
|
}
|
|
}
|
|
|
|
public final void a2() {
|
|
Handler handler;
|
|
Handler handler2;
|
|
Handler handler3;
|
|
WebDownView webDownView;
|
|
MyIconView myIconView;
|
|
MyIconView myIconView2;
|
|
if (PrefZone.r != 1 && (myIconView2 = this.Z3) != null) {
|
|
MainUtil.W6(myIconView2);
|
|
this.Z3.m();
|
|
this.Z3 = null;
|
|
}
|
|
if (PrefZone.r != 2 && (myIconView = this.a4) != null) {
|
|
MainUtil.W6(myIconView);
|
|
this.a4.m();
|
|
this.a4 = null;
|
|
}
|
|
if (PrefZone.r != 3 && (webDownView = this.b4) != null) {
|
|
MainUtil.W6(webDownView);
|
|
this.b4.j();
|
|
this.b4 = null;
|
|
}
|
|
int i = PrefZone.r;
|
|
if (i == 1) {
|
|
if (this.o2 != null && (handler3 = this.O0) != null) {
|
|
if (this.Z3 != null) {
|
|
Y8();
|
|
return;
|
|
} else {
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.190
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.o2 != null && webViewActivity.O0 != null) {
|
|
if (webViewActivity.Z3 != null) {
|
|
webViewActivity.Y8();
|
|
return;
|
|
}
|
|
webViewActivity.c4 = 1234;
|
|
try {
|
|
MyIconView myIconView3 = new MyIconView(webViewActivity);
|
|
webViewActivity.Z3 = myIconView3;
|
|
myIconView3.setYouIcon(true);
|
|
webViewActivity.Z3.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
|
webViewActivity.Z3.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.190.1
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Z3 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.q1(webViewActivity2, view);
|
|
}
|
|
});
|
|
webViewActivity.X8(webViewActivity.t3(), webViewActivity.u3());
|
|
webViewActivity.W9(true);
|
|
WebCastView castView = webViewActivity.o2.getCastView();
|
|
if (castView != null) {
|
|
webViewActivity.o2.removeView(castView);
|
|
}
|
|
webViewActivity.o2.addView(webViewActivity.Z3, MainApp.g1, -1);
|
|
if (castView != null) {
|
|
webViewActivity.o2.addView(castView, MainApp.g1, -1);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
if (this.p2 != null && (handler2 = this.O0) != null) {
|
|
if (this.a4 != null) {
|
|
Y8();
|
|
return;
|
|
} else {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.191
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.p2 != null && webViewActivity.O0 != null) {
|
|
if (webViewActivity.a4 != null) {
|
|
webViewActivity.Y8();
|
|
return;
|
|
}
|
|
webViewActivity.c4 = 1234;
|
|
try {
|
|
MyIconView myIconView3 = new MyIconView(webViewActivity);
|
|
webViewActivity.a4 = myIconView3;
|
|
myIconView3.setYouIcon(true);
|
|
webViewActivity.a4.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
|
webViewActivity.a4.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.191.1
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.a4 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.q1(webViewActivity2, view);
|
|
}
|
|
});
|
|
webViewActivity.X8(webViewActivity.t3(), webViewActivity.u3());
|
|
webViewActivity.W9(true);
|
|
webViewActivity.p2.addView(webViewActivity.a4, MainApp.g1, -1);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (i == 3 && this.e2 != null && (handler = this.O0) != null) {
|
|
WebDownView webDownView2 = this.b4;
|
|
if (webDownView2 != null) {
|
|
webDownView2.m();
|
|
} else {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.192
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.e2 != null && webViewActivity.O0 != null) {
|
|
WebDownView webDownView3 = webViewActivity.b4;
|
|
if (webDownView3 != null) {
|
|
webDownView3.m();
|
|
return;
|
|
}
|
|
webViewActivity.c4 = 1234;
|
|
try {
|
|
WebDownView webDownView4 = new WebDownView(webViewActivity, true);
|
|
webViewActivity.b4 = webDownView4;
|
|
webDownView4.l();
|
|
webViewActivity.b4.setVisibility(8);
|
|
webViewActivity.b4.setListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.192.1
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i2) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.b4 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.q1(webViewActivity2, view);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebDownView webDownView5 = webViewActivity.b4;
|
|
int i2 = MainApp.g1;
|
|
myWebBody.addView(webDownView5, i2, i2);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a4() {
|
|
I2();
|
|
DialogListBook dialogListBook = this.k6;
|
|
if (dialogListBook != null) {
|
|
dialogListBook.dismiss();
|
|
this.k6 = null;
|
|
}
|
|
}
|
|
|
|
public final void a5() {
|
|
if (this.cA != null) {
|
|
this.cA.dismiss();
|
|
this.cA = null;
|
|
}
|
|
if (this.U5 != null) {
|
|
this.Z0 = null;
|
|
W7();
|
|
this.U5.a();
|
|
this.U5 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean a6() {
|
|
boolean h0;
|
|
if (!MainUtil.U4()) {
|
|
return false;
|
|
}
|
|
if (!this.U1) {
|
|
if (PrefTts.F == 0 && PrefTts.G == 0) {
|
|
h0 = false;
|
|
} else {
|
|
h0 = h0();
|
|
}
|
|
if (!h0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void a7(String str) {
|
|
this.k9 = false;
|
|
E7(false);
|
|
if (!TextUtils.isEmpty(str)) {
|
|
this.Ph = str;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.219
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String trim;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str2 = webViewActivity.Ph;
|
|
webViewActivity.Ph = null;
|
|
boolean z = false;
|
|
if (str2 != null && (trim = str2.trim()) != null && trim.length() >= 12) {
|
|
z = trim.startsWith("javascript:");
|
|
}
|
|
if (z) {
|
|
webViewActivity.Qh = str2;
|
|
webViewActivity.m0(new AnonymousClass221());
|
|
return;
|
|
}
|
|
String q4 = MainUtil.q4(webViewActivity.i1, str2);
|
|
if (MainUtil.A6(4)) {
|
|
webViewActivity.O1(null, q4, true, null);
|
|
} else {
|
|
webViewActivity.S5(q4, null);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void a8(int i) {
|
|
this.Ai = i;
|
|
MyProgressBar myProgressBar = this.G2;
|
|
if (myProgressBar != null) {
|
|
if (this.k7 != null) {
|
|
myProgressBar.setSkipDraw(true);
|
|
l7(false);
|
|
return;
|
|
}
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null && webNestView.n1) {
|
|
myProgressBar.setSkipDraw(true);
|
|
l7(false);
|
|
return;
|
|
}
|
|
int round = Math.round(myProgressBar.getProgress());
|
|
if (i == 100 && round == 100) {
|
|
this.G2.setSkipDraw(true);
|
|
l7(false);
|
|
return;
|
|
}
|
|
l7(true);
|
|
MyProgressBar myProgressBar2 = this.G2;
|
|
boolean z = myProgressBar2.B;
|
|
Runnable runnable = this.Bi;
|
|
if (z) {
|
|
myProgressBar2.e();
|
|
this.Ai = Math.max(i, 50);
|
|
if (runnable != null) {
|
|
this.G2.removeCallbacks(runnable);
|
|
this.G2.post(runnable);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (round < i) {
|
|
myProgressBar2.setProgress(round + 3);
|
|
if (runnable != null) {
|
|
this.G2.removeCallbacks(runnable);
|
|
this.G2.post(runnable);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a9(String str) {
|
|
int length;
|
|
int lastIndexOf;
|
|
boolean z = false;
|
|
if (this.G8) {
|
|
this.H8 = MainUtil.n6(str);
|
|
this.I8 = MainUtil.l6(str);
|
|
if (str != null && (length = str.length()) != 0 && (lastIndexOf = str.lastIndexOf(35)) > 0 && lastIndexOf < length - 1) {
|
|
z = true;
|
|
}
|
|
this.J8 = z;
|
|
String str2 = this.K8;
|
|
if (!this.H8) {
|
|
this.K8 = null;
|
|
} else if (this.I8) {
|
|
this.K8 = null;
|
|
} else {
|
|
this.K8 = MainUtil.w4(str);
|
|
}
|
|
if (!MainUtil.q5(this.K8, str2)) {
|
|
this.M8 = null;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
this.H8 = false;
|
|
this.I8 = false;
|
|
this.J8 = false;
|
|
this.K8 = null;
|
|
this.L8 = null;
|
|
this.M8 = null;
|
|
}
|
|
|
|
public final void aa() {
|
|
int e;
|
|
if (this.f2 != null && this.Rb == null && this.Sb == null && !PrefTts.H) {
|
|
PrefTts.H = true;
|
|
PrefSet.d(12, this.i1, "mHandMode", true);
|
|
J7();
|
|
M1();
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
e = 0;
|
|
} else {
|
|
e = myWebBody.e(this);
|
|
}
|
|
Io = e;
|
|
if (MainConst.d) {
|
|
MyWebBody myWebBody2 = this.e2;
|
|
t3();
|
|
myWebBody2.n = e;
|
|
myWebBody2.setTopColor(myWebBody2.f);
|
|
} else {
|
|
this.e2.setOldTheme(t3());
|
|
}
|
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.f2.getLayoutParams();
|
|
if (layoutParams != null && layoutParams.topMargin != e) {
|
|
this.wn = 0;
|
|
this.xn = false;
|
|
ValueAnimator ofInt = ValueAnimator.ofInt(0, e);
|
|
this.Rb = ofInt;
|
|
ofInt.setDuration(200L);
|
|
com.mycompany.app.dialog.a.v(this.Rb);
|
|
this.Rb.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.mycompany.app.web.WebViewActivity.598
|
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
|
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Rb != null && webViewActivity.f2 != null) {
|
|
int intValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
|
|
if (webViewActivity.Rb != null && webViewActivity.f2 != null) {
|
|
webViewActivity.wn = intValue;
|
|
if (!webViewActivity.xn) {
|
|
webViewActivity.xn = true;
|
|
MainApp.N(webViewActivity.i1, webViewActivity.yn);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
this.Rb.addListener(new Animator.AnimatorListener() { // from class: com.mycompany.app.web.WebViewActivity.599
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationCancel(Animator animator) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Rb == null) {
|
|
return;
|
|
}
|
|
webViewActivity.Rb = null;
|
|
webViewActivity.K7(PrefTts.H);
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
Handler handler;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Rb == null || (handler = webViewActivity.O0) == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.599.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Rb == null) {
|
|
return;
|
|
}
|
|
MainApp.N(webViewActivity2.i1, new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.601
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.Rb != null) {
|
|
webViewActivity3.Rb = null;
|
|
webViewActivity3.K7(PrefTts.H);
|
|
if (PrefZtri.H) {
|
|
webViewActivity3.K9(true);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationRepeat(Animator animator) {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationStart(Animator animator) {
|
|
}
|
|
});
|
|
this.Rb.start();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void b2() {
|
|
if (this.ab == null && this.e2 != null) {
|
|
try {
|
|
WebFltView webFltView = new WebFltView(this, 4);
|
|
this.ab = webFltView;
|
|
webFltView.q();
|
|
this.ab.setVisibility(8);
|
|
this.ab.setFltListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.615
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.y8();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = this.e2;
|
|
WebFltView webFltView2 = this.ab;
|
|
int i = MainApp.g1;
|
|
myWebBody.addView(webFltView2, i, i);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final int b3() {
|
|
if (this.R5 != null) {
|
|
return 0;
|
|
}
|
|
return MainUtil.l1();
|
|
}
|
|
|
|
public final void b4() {
|
|
DialogLoadEmg dialogLoadEmg = this.S7;
|
|
if (dialogLoadEmg != null) {
|
|
dialogLoadEmg.dismiss();
|
|
this.S7 = null;
|
|
}
|
|
}
|
|
|
|
public final void b5() {
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
this.R5 = null;
|
|
if (webVideoFrame != null) {
|
|
this.Nc = true;
|
|
this.Yi = webVideoFrame;
|
|
this.Zi = webVideoFrame.getVideoType();
|
|
this.aj = webVideoFrame instanceof WebVideoImage;
|
|
webVideoFrame.u();
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass274());
|
|
}
|
|
}
|
|
|
|
public final void b6(String str, String str2, String str3, long j) {
|
|
boolean z;
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
return;
|
|
}
|
|
if (str.startsWith("blob:")) {
|
|
this.kl = str;
|
|
this.ll = str2;
|
|
this.ml = str3;
|
|
this.nl = j;
|
|
m0(new AnonymousClass369());
|
|
return;
|
|
}
|
|
if (!URLUtil.isNetworkUrl(str) && !MainUtil.isDataUrlDownload(str)) {
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
return;
|
|
}
|
|
// WebView often omits Content-Disposition for data: downloads; recover download= via __sbLastDlName.
|
|
if (MainUtil.isDataUrlDownload(str) && (TextUtils.isEmpty(str2) || str2.toLowerCase(Locale.US).indexOf("filename") < 0)) {
|
|
this.kl = str;
|
|
this.ll = str2;
|
|
this.ml = str3;
|
|
this.nl = j;
|
|
m0(new AnonymousClass683());
|
|
return;
|
|
}
|
|
if ("application/octet-stream".equals(str3) && !TextUtils.isEmpty(str) && str.contains("/index.php?")) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
this.kk = z;
|
|
l9(str, str2, str3, j, 0, null);
|
|
}
|
|
|
|
public final void b7(final int i, boolean z) {
|
|
List list;
|
|
t8();
|
|
if (this.I2 != null && this.Y2 != null && this.b3 != null && this.O2 != null) {
|
|
final int i2 = this.P2;
|
|
int t3 = t3();
|
|
int u3 = u3();
|
|
this.b3.L(this.O2, i2, this.U1, t3, u3, z);
|
|
r8(t3, u3);
|
|
int i3 = 0;
|
|
if (i != 0 && (list = this.O2) != null) {
|
|
i3 = list.size();
|
|
}
|
|
if (i3 > 2) {
|
|
this.Y2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.174
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int C;
|
|
int i4;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabBarAdapter webTabBarAdapter = webViewActivity.b3;
|
|
if (webTabBarAdapter == null || (C = webTabBarAdapter.C(i2)) == -1) {
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
List list2 = webViewActivity.O2;
|
|
if (list2 != null) {
|
|
i4 = list2.size();
|
|
} else {
|
|
i4 = 0;
|
|
}
|
|
int i5 = webViewActivity.ac;
|
|
if ((i5 == 0 && webViewActivity.P2 == i4 - 1) || (webViewActivity.P2 == 0 && i5 == i4 - 1)) {
|
|
webViewActivity.Y2.i0(C);
|
|
return;
|
|
} else {
|
|
webViewActivity.Y2.l0(C);
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.Y2.i0(C);
|
|
}
|
|
}, 100L);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void b8(int i) {
|
|
if (this.G2 == null) {
|
|
return;
|
|
}
|
|
if (MainUtil.C5(this.U1)) {
|
|
this.G2.g(-922746881, 0);
|
|
return;
|
|
}
|
|
if (PrefWeb.O != 0 && i != 0) {
|
|
if (MainApp.K1) {
|
|
this.G2.g(-922746881, i);
|
|
return;
|
|
} else {
|
|
this.G2.g(-1, i);
|
|
return;
|
|
}
|
|
}
|
|
if (MainApp.K1) {
|
|
this.G2.g(-922746881, -16777216);
|
|
} else {
|
|
this.G2.g(-13022805, -1);
|
|
}
|
|
}
|
|
|
|
public final void b9(int i) {
|
|
if (this.I2 != null) {
|
|
if (i == 3) {
|
|
if (!this.G1 && !J5()) {
|
|
DialogSetRate dialogSetRate = this.d4;
|
|
if (dialogSetRate != null) {
|
|
dialogSetRate.dismiss();
|
|
this.d4 = null;
|
|
}
|
|
this.Jg = PrefZtwo.V;
|
|
int i2 = -1;
|
|
if (MainUtil.m8() && PrefZtwo.V) {
|
|
int i3 = DialogSetRate.j0;
|
|
int i4 = 0;
|
|
while (true) {
|
|
float[] fArr = WebVideoFull.o1;
|
|
if (i4 >= 8) {
|
|
break;
|
|
}
|
|
if (Float.compare(PrefZtwo.W, fArr[i4]) == 0) {
|
|
i2 = i4;
|
|
break;
|
|
}
|
|
i4++;
|
|
}
|
|
} else {
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
} else {
|
|
myWebCoord.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.193
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.d4 == null) {
|
|
return;
|
|
}
|
|
MainUtil.I(webViewActivity.I2, "(function(){var ele=document.querySelector(\"video\");if(ele){android.onRateGet(ele.playbackRate);}})();", true);
|
|
}
|
|
}, 100L);
|
|
}
|
|
}
|
|
DialogSetRate dialogSetRate2 = new DialogSetRate(this, i2, new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.194
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
MyWebCoord myWebCoord2 = WebViewActivity.this.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.194.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
Runnable runnable = webViewActivity.ni;
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.removeCallbacks(runnable);
|
|
if (!webViewActivity.T9 && !webViewActivity.x5()) {
|
|
webViewActivity.f2.post(runnable);
|
|
} else {
|
|
webViewActivity.f2.postDelayed(runnable, 800L);
|
|
}
|
|
}
|
|
}, 500L);
|
|
}
|
|
});
|
|
this.d4 = dialogSetRate2;
|
|
dialogSetRate2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.195
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
MyWebCoord myWebCoord2;
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogSetRate dialogSetRate3 = webViewActivity.d4;
|
|
if (dialogSetRate3 != null) {
|
|
dialogSetRate3.dismiss();
|
|
webViewActivity.d4 = null;
|
|
}
|
|
boolean z = webViewActivity.Jg;
|
|
boolean z2 = PrefZtwo.V;
|
|
if (z != z2) {
|
|
webViewActivity.Jg = z2;
|
|
if (!z2 || (myWebCoord2 = webViewActivity.f2) == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.195.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.r1(WebViewActivity.this, true, false);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!MainUtil.n6(this.A8)) {
|
|
MainUtil.e8(this, R.string.not_support_video);
|
|
} else {
|
|
String str = this.A8;
|
|
D3(str, str, true);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void ba() {
|
|
int i;
|
|
if (this.f2 != null && this.Rb == null && this.Sb == null && PrefTts.H) {
|
|
PrefTts.H = false;
|
|
PrefSet.d(12, this.i1, "mHandMode", false);
|
|
J7();
|
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.f2.getLayoutParams();
|
|
if (layoutParams != null && (i = layoutParams.topMargin) != 0) {
|
|
this.zn = i;
|
|
this.An = false;
|
|
ValueAnimator ofInt = ValueAnimator.ofInt(0, -i);
|
|
this.Sb = ofInt;
|
|
ofInt.setDuration(200L);
|
|
com.mycompany.app.dialog.a.r(this.Sb);
|
|
this.Sb.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.mycompany.app.web.WebViewActivity.602
|
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
|
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Sb != null && webViewActivity.f2 != null) {
|
|
int intValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
|
|
if (webViewActivity.Sb != null && webViewActivity.f2 != null) {
|
|
webViewActivity.zn = intValue;
|
|
if (!webViewActivity.An) {
|
|
webViewActivity.An = true;
|
|
MainApp.N(webViewActivity.i1, webViewActivity.Bn);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
this.Sb.addListener(new Animator.AnimatorListener() { // from class: com.mycompany.app.web.WebViewActivity.603
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationCancel(Animator animator) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Sb == null) {
|
|
return;
|
|
}
|
|
webViewActivity.Sb = null;
|
|
webViewActivity.K7(PrefTts.H);
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
Handler handler;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Sb == null || (handler = webViewActivity.O0) == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.603.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Sb == null) {
|
|
return;
|
|
}
|
|
MainApp.N(webViewActivity2.i1, new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.605
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.Sb != null) {
|
|
webViewActivity3.Sb = null;
|
|
webViewActivity3.K7(PrefTts.H);
|
|
webViewActivity3.J6();
|
|
if (PrefZtri.H) {
|
|
webViewActivity3.K9(true);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationRepeat(Animator animator) {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationStart(Animator animator) {
|
|
}
|
|
});
|
|
this.Sb.start();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean c2() {
|
|
if (this.za == 0) {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
if (webNestView.canGoForward()) {
|
|
this.za = 1;
|
|
} else {
|
|
this.za = 2;
|
|
}
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
if (this.za == 1) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void c4() {
|
|
DialogLoadHmg dialogLoadHmg = this.T7;
|
|
if (dialogLoadHmg != null) {
|
|
dialogLoadHmg.dismiss();
|
|
this.T7 = null;
|
|
}
|
|
}
|
|
|
|
public final void c5() {
|
|
if (!MainApp.z(this.i1) && MainApp.A(this.i1)) {
|
|
if (this.b2) {
|
|
return;
|
|
}
|
|
this.b2 = true;
|
|
m0(new AnonymousClass520());
|
|
return;
|
|
}
|
|
this.b2 = false;
|
|
}
|
|
|
|
public final void c6(Uri[] uriArr) {
|
|
ValueCallback valueCallback = this.M5;
|
|
if (valueCallback != null) {
|
|
valueCallback.onReceiveValue(uriArr);
|
|
} else {
|
|
ValueCallback valueCallback2 = this.N5;
|
|
if (valueCallback2 != null) {
|
|
valueCallback2.onReceiveValue(uriArr);
|
|
} else {
|
|
ValueCallback valueCallback3 = this.O5;
|
|
if (valueCallback3 != null) {
|
|
valueCallback3.onReceiveValue(uriArr);
|
|
}
|
|
}
|
|
}
|
|
this.M5 = null;
|
|
this.N5 = null;
|
|
this.O5 = null;
|
|
this.P5 = null;
|
|
}
|
|
|
|
public final void c7(int i, boolean z) {
|
|
List list;
|
|
boolean z2;
|
|
if (this.H2 != null && this.I2 != null && (list = this.O2) != null && i >= 0 && i < list.size() && !this.Bc) {
|
|
this.Bc = true;
|
|
P4();
|
|
t6(true);
|
|
if (this.P2 != i) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
this.P2 = i;
|
|
t8();
|
|
this.Ff = z;
|
|
if (!z2) {
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new AnonymousClass125());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.L3 && !this.S2) {
|
|
K3();
|
|
}
|
|
this.I2.setWebViewClient(null);
|
|
this.I2.setWebChromeClient(null);
|
|
this.I2.setDownloadListener(null);
|
|
r6();
|
|
I3(true);
|
|
MyWebCoord myWebCoord2 = this.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.124
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebViewActivity.T7(webViewActivity.I2);
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.124.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebViewActivity.U7(webViewActivity2.I2);
|
|
MyWebCoord myWebCoord4 = webViewActivity2.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new AnonymousClass125());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void c8(boolean z) {
|
|
boolean z2 = this.U1;
|
|
this.am = z2;
|
|
this.e9 = 0;
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead != null) {
|
|
int i = this.c9;
|
|
int i2 = this.d9;
|
|
dialogViewRead.m1 = i;
|
|
dialogViewRead.n1 = i2;
|
|
dialogViewRead.o1 = 0;
|
|
dialogViewRead.p1 = i;
|
|
dialogViewRead.q1 = i2;
|
|
dialogViewRead.r1 = 0;
|
|
}
|
|
if (z2 && this.I2 != null) {
|
|
if (z) {
|
|
H8(t3(), u3(), b3());
|
|
QuickView quickView = this.I2.Z0;
|
|
if (quickView != null) {
|
|
quickView.setColor(true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
W8(t3(), u3());
|
|
}
|
|
}
|
|
|
|
public final void c9(String str, String str2, String str3) {
|
|
if (!this.dl) {
|
|
this.dl = true;
|
|
this.el = str;
|
|
this.fl = str2;
|
|
this.gl = str3;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.366
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str4 = webViewActivity.el;
|
|
String str5 = webViewActivity.fl;
|
|
String str6 = webViewActivity.gl;
|
|
webViewActivity.el = null;
|
|
webViewActivity.fl = null;
|
|
webViewActivity.gl = null;
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.u4();
|
|
if (webViewActivity.R5 != null) {
|
|
webViewActivity.nb = true;
|
|
MainApp.K1 = true;
|
|
}
|
|
webViewActivity.hl = str4;
|
|
webViewActivity.il = str5;
|
|
webViewActivity.jl = str6;
|
|
DialogSetDown dialogSetDown = new DialogSetDown(webViewActivity, str4, str6, webViewActivity.h0(), webViewActivity.U1, webViewActivity.a6(), webViewActivity.t3(), new DialogSetDown.SetDownListener() { // from class: com.mycompany.app.web.WebViewActivity.367
|
|
@Override // com.mycompany.app.dialog.DialogSetDown.SetDownListener
|
|
public final void a(String str7, String str8, String str9) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str10 = webViewActivity2.hl;
|
|
String str11 = webViewActivity2.il;
|
|
String str12 = webViewActivity2.jl;
|
|
webViewActivity2.hl = null;
|
|
webViewActivity2.il = null;
|
|
webViewActivity2.jl = null;
|
|
webViewActivity2.B9 = MainUtil.G4(webViewActivity2, str8, str9, str10, webViewActivity2.A8, str11, str12);
|
|
}
|
|
});
|
|
webViewActivity.q6 = dialogSetDown;
|
|
dialogSetDown.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.368
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.u4();
|
|
}
|
|
});
|
|
if (webViewActivity.R5 != null) {
|
|
webViewActivity.q6.E = true;
|
|
}
|
|
}
|
|
webViewActivity.dl = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void ca() {
|
|
this.Sa = true;
|
|
this.Ta = false;
|
|
this.Ua = false;
|
|
if (this.Ra == null) {
|
|
this.Sa = false;
|
|
return;
|
|
}
|
|
WebTtsView webTtsView = this.Za;
|
|
if (webTtsView != null) {
|
|
webTtsView.i();
|
|
}
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.611
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
try {
|
|
if (webViewActivity.Ra.isSpeaking()) {
|
|
webViewActivity.Ra.stop();
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
webViewActivity.Sa = false;
|
|
}
|
|
});
|
|
}
|
|
|
|
public final boolean d2() {
|
|
if (this.ya == 0) {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
if (webNestView.canGoBack()) {
|
|
this.ya = 1;
|
|
} else {
|
|
this.ya = 2;
|
|
}
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
if (this.ya == 1) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final float d3(MotionEvent motionEvent) {
|
|
if (this.R9 != null) {
|
|
try {
|
|
if (motionEvent.getPointerCount() >= 2) {
|
|
float x = motionEvent.getX(0) - this.R9[0];
|
|
if ((motionEvent.getX(1) - this.R9[1]) * x >= 0.0f) {
|
|
return x;
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
return 0.0f;
|
|
}
|
|
|
|
public final void d4() {
|
|
DialogLoadImg dialogLoadImg = this.R7;
|
|
if (dialogLoadImg != null) {
|
|
dialogLoadImg.dismiss();
|
|
this.R7 = null;
|
|
}
|
|
}
|
|
|
|
public final void d5() {
|
|
this.mc = 0L;
|
|
this.nc = false;
|
|
this.oc = false;
|
|
this.pc = false;
|
|
this.qc = false;
|
|
this.rc = false;
|
|
this.sc = false;
|
|
this.tc = false;
|
|
this.uc = false;
|
|
this.vc = false;
|
|
this.wc = false;
|
|
this.xc = false;
|
|
this.yc = false;
|
|
this.zc = false;
|
|
this.Ac = false;
|
|
this.Bc = false;
|
|
this.Cc = false;
|
|
this.Dc = false;
|
|
this.Ec = false;
|
|
this.Fc = false;
|
|
this.Gc = false;
|
|
this.Hc = false;
|
|
this.Ic = false;
|
|
this.Jc = false;
|
|
this.Kc = false;
|
|
this.Lc = false;
|
|
this.Mc = false;
|
|
this.Nc = false;
|
|
this.Oc = false;
|
|
this.Pc = false;
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame == null) {
|
|
return;
|
|
}
|
|
webVideoFrame.i();
|
|
}
|
|
|
|
public final void d6(View view, int i) {
|
|
this.Zm = i;
|
|
this.an = view;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.514
|
|
/* JADX WARN: Type inference failed for: r0v6, types: [com.mycompany.app.main.MainListView$ListViewConfig, java.lang.Object] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
PrefWeb r;
|
|
String str;
|
|
List list;
|
|
MyWebCoord myWebCoord2;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i2 = webViewActivity.Zm;
|
|
View view2 = webViewActivity.an;
|
|
webViewActivity.an = null;
|
|
boolean z2 = true;
|
|
boolean z3 = false;
|
|
switch (i2) {
|
|
case 1:
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
if (webViewActivity.Ba) {
|
|
webViewActivity.Ba = false;
|
|
return;
|
|
} else {
|
|
webViewActivity.E7(true);
|
|
return;
|
|
}
|
|
case 2:
|
|
webViewActivity.t9(view2);
|
|
return;
|
|
case 3:
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.a4();
|
|
?? obj = new Object();
|
|
obj.f16734a = 18;
|
|
obj.f = R.string.history;
|
|
webViewActivity.Z9();
|
|
DialogListBook dialogListBook = new DialogListBook(webViewActivity, obj, null, new DialogListBook.ListBookListener() { // from class: com.mycompany.app.web.WebViewActivity.335
|
|
@Override // com.mycompany.app.dialog.DialogListBook.ListBookListener
|
|
public final void a(int i3, final MainItem.ChildItem childItem, final int i4) {
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.a4();
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.335.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
MainItem.ChildItem childItem2 = childItem;
|
|
int i6 = i4;
|
|
if (i6 == 3) {
|
|
String str2 = childItem2.g;
|
|
int i7 = WebViewActivity.Fo;
|
|
webViewActivity3.O1(null, str2, true, null);
|
|
} else if (i6 == 4) {
|
|
String str3 = childItem2.g;
|
|
int i8 = WebViewActivity.Fo;
|
|
webViewActivity3.L1(str3, null);
|
|
} else if (i6 == 5) {
|
|
String str4 = childItem2.g;
|
|
int i9 = WebViewActivity.Fo;
|
|
webViewActivity3.G1(str4);
|
|
} else if (MainUtil.A6(32)) {
|
|
webViewActivity3.O1(null, childItem2.g, true, null);
|
|
} else {
|
|
webViewActivity3.S5(childItem2.g, null);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogListBook.ListBookListener
|
|
public final void b() {
|
|
}
|
|
});
|
|
webViewActivity.k6 = dialogListBook;
|
|
dialogListBook.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.336
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.a4();
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.k6.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.337
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
return;
|
|
case 4:
|
|
webViewActivity.e4();
|
|
webViewActivity.t0(new Intent(webViewActivity.i1, (Class<?>) MainListDown.class), 8);
|
|
return;
|
|
case 5:
|
|
webViewActivity.e4();
|
|
webViewActivity.O1(null, WebViewActivity.o3(), true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.515
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z4) {
|
|
WebViewActivity.l1(WebViewActivity.this, z4);
|
|
}
|
|
});
|
|
return;
|
|
case 6:
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.e4();
|
|
boolean z4 = !PrefZone.u;
|
|
PrefZone.u = z4;
|
|
PrefSet.d(15, webViewActivity.i1, "mHideImage", z4);
|
|
webViewActivity.k7(i2);
|
|
webViewActivity.I2.setHideImage(PrefZone.u);
|
|
webViewActivity.F6();
|
|
return;
|
|
}
|
|
return;
|
|
case 7:
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
String url = webNestView.getUrl();
|
|
if (!TextUtils.isEmpty(url) && !"file:///android_asset/shortcut.html".equals(url) && !"about:blank".equals(url)) {
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G5()) {
|
|
webViewActivity.r9(url, false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
return;
|
|
case 8:
|
|
WebNestView webNestView2 = webViewActivity.I2;
|
|
if (webNestView2 != null) {
|
|
String url2 = webNestView2.getUrl();
|
|
if (!TextUtils.isEmpty(url2) && !"file:///android_asset/shortcut.html".equals(url2) && !"about:blank".equals(url2)) {
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G5()) {
|
|
webViewActivity.z3(url2, false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
return;
|
|
case 9:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.N3();
|
|
MyDialogBottom myDialogBottom = new MyDialogBottom(webViewActivity);
|
|
webViewActivity.s6 = myDialogBottom;
|
|
myDialogBottom.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.373
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.N3();
|
|
}
|
|
});
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.374
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Context context;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.s6 != null && (context = webViewActivity2.i1) != null) {
|
|
MyDialogLinear q = com.google.android.gms.internal.mlkit_vision_text_common.a.q(context, 1);
|
|
MyRecyclerView u = com.google.android.gms.internal.mlkit_vision_text_common.a.u(context, true, false);
|
|
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, 0);
|
|
layoutParams.weight = 1.0f;
|
|
q.addView(u, layoutParams);
|
|
webViewActivity2.t6 = q;
|
|
webViewActivity2.u6 = u;
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.375
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.t6 != null && webViewActivity3.s6 != null) {
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(new SettingListAdapter.SettingItem(0, R.string.normal_mode, (String) null, 0));
|
|
MyManagerLinear t = com.google.android.gms.internal.mlkit_vision_text_common.a.t(arrayList, new SettingListAdapter.SettingItem(1, R.string.scroll_mode, (String) null, 0), 1);
|
|
webViewActivity3.v6 = new SettingListAdapter(arrayList, true, t, new AnonymousClass376());
|
|
webViewActivity3.u6.setLayoutManager(t);
|
|
webViewActivity3.u6.setAdapter(webViewActivity3.v6);
|
|
webViewActivity3.s6.g(webViewActivity3.t6, new MyDialogBottom.BotViewListener() { // from class: com.mycompany.app.web.WebViewActivity.377
|
|
@Override // com.mycompany.app.view.MyDialogBottom.BotViewListener
|
|
public final void a(View view3) {
|
|
MyDialogBottom myDialogBottom2;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
if (webViewActivity4.t6 != null && (myDialogBottom2 = webViewActivity4.s6) != null) {
|
|
webViewActivity4.t6 = null;
|
|
webViewActivity4.u6 = null;
|
|
myDialogBottom2.show();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 10:
|
|
webViewActivity.e4();
|
|
webViewActivity.t0(new Intent(webViewActivity.i1, (Class<?>) EditorActivity.class), 13);
|
|
return;
|
|
case 11:
|
|
webViewActivity.e4();
|
|
webViewActivity.v9();
|
|
return;
|
|
case 12:
|
|
if (webViewActivity.I2 != null) {
|
|
String s3 = webViewActivity.s3(false);
|
|
if (!TextUtils.isEmpty(s3) && !"about:blank".equals(s3)) {
|
|
webViewActivity.e4();
|
|
webViewActivity.m8(s3, webViewActivity.I2.getTitle());
|
|
return;
|
|
} else {
|
|
MainUtil.e8(webViewActivity, R.string.blank_page);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
case 13:
|
|
webViewActivity.e4();
|
|
webViewActivity.m9();
|
|
return;
|
|
case 14:
|
|
WebNestView webNestView3 = webViewActivity.I2;
|
|
if (webNestView3 != null) {
|
|
if ("file:///android_asset/shortcut.html".equals(webNestView3.getUrl())) {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
} else {
|
|
webViewActivity.e4();
|
|
webViewActivity.i5(null);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
case 15:
|
|
String s32 = webViewActivity.s3(false);
|
|
if (!TextUtils.isEmpty(s32) && !"file:///android_asset/shortcut.html".equals(s32)) {
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogDownPage dialogDownPage = webViewActivity.B6;
|
|
if (dialogDownPage != null) {
|
|
dialogDownPage.dismiss();
|
|
webViewActivity.B6 = null;
|
|
}
|
|
DialogDownPage dialogDownPage2 = new DialogDownPage(webViewActivity, s32, webViewActivity.v3(webViewActivity.I2, s32), webViewActivity.I2.getFavicon(), new DialogDownPage.DownPageListener() { // from class: com.mycompany.app.web.WebViewActivity.383
|
|
@Override // com.mycompany.app.dialog.DialogDownPage.DownPageListener
|
|
public final void a(String str2, String str3, Bitmap bitmap) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView4 = webViewActivity2.I2;
|
|
if (webNestView4 == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.ul = str2;
|
|
webViewActivity2.vl = str3;
|
|
webViewActivity2.wl = webNestView4.getFavicon();
|
|
webViewActivity2.I2.saveWebArchive(MainUtil.G0(webViewActivity2.i1, ".page") + "/" + System.currentTimeMillis() + ".mht", false, new AnonymousClass385());
|
|
}
|
|
});
|
|
webViewActivity.B6 = dialogDownPage2;
|
|
dialogDownPage2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.384
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogDownPage dialogDownPage3 = webViewActivity2.B6;
|
|
if (dialogDownPage3 != null) {
|
|
dialogDownPage3.dismiss();
|
|
webViewActivity2.B6 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
case 16:
|
|
WebNestView webNestView4 = webViewActivity.I2;
|
|
if (webNestView4 != null) {
|
|
if ("file:///android_asset/shortcut.html".equals(webNestView4.getUrl())) {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.n4();
|
|
DialogPrintPage dialogPrintPage = new DialogPrintPage(webViewActivity, webViewActivity.v3(webViewActivity.I2, webViewActivity.A8), webViewActivity.I2.getFavicon(), new DialogPrintPage.PathChangeListener() { // from class: com.mycompany.app.web.WebViewActivity.386
|
|
@Override // com.mycompany.app.dialog.DialogPrintPage.PathChangeListener
|
|
public final void a(String str2) {
|
|
boolean isEmpty = TextUtils.isEmpty(str2);
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (isEmpty) {
|
|
MainUtil.e8(webViewActivity2, R.string.input_name);
|
|
return;
|
|
}
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity2.n4();
|
|
WebViewActivity.g1(webViewActivity2, webViewActivity2.I2, str2);
|
|
}
|
|
});
|
|
webViewActivity.C6 = dialogPrintPage;
|
|
dialogPrintPage.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.387
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.n4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 17:
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.t4();
|
|
webViewActivity.Il = webViewActivity.I2.B();
|
|
DialogSetDesk dialogSetDesk = new DialogSetDesk(webViewActivity, webViewActivity.I2.C, new DialogSetDesk.SetDeskListener() { // from class: com.mycompany.app.web.WebViewActivity.417
|
|
@Override // com.mycompany.app.dialog.DialogSetDesk.SetDeskListener
|
|
public final void a(boolean z5) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.t4();
|
|
webViewActivity2.I2.setDeskMode(z5);
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity2.n3(webViewActivity2.P2);
|
|
if (n3 != null) {
|
|
String url3 = webViewActivity2.I2.getUrl();
|
|
n3.j = url3;
|
|
n3.k = webViewActivity2.v3(webViewActivity2.I2, url3);
|
|
n3.l = z5;
|
|
webViewActivity2.ga(n3);
|
|
}
|
|
if (z5) {
|
|
MainUtil.Q7(webViewActivity2.I2.getSettings(), MainUtil.F0(webViewActivity2.i1));
|
|
} else {
|
|
webViewActivity2.I2.K(webViewActivity2.i1, PrefZtwo.p, null);
|
|
}
|
|
if (webViewActivity2.Il != webViewActivity2.I2.B()) {
|
|
MainUtil.U7(webViewActivity2.I2, webViewActivity2.A8, webViewActivity2.B8);
|
|
}
|
|
webViewActivity2.F6();
|
|
}
|
|
});
|
|
webViewActivity.Y6 = dialogSetDesk;
|
|
dialogSetDesk.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.418
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.t4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 18:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSeekBright dialogSeekBright = webViewActivity.c8;
|
|
if (dialogSeekBright != null) {
|
|
dialogSeekBright.dismiss();
|
|
webViewActivity.c8 = null;
|
|
}
|
|
DialogSeekBright dialogSeekBright2 = new DialogSeekBright(webViewActivity, webViewActivity.getWindow(), 0, null);
|
|
webViewActivity.c8 = dialogSeekBright2;
|
|
dialogSeekBright2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.557
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSeekBright dialogSeekBright3 = webViewActivity2.c8;
|
|
if (dialogSeekBright3 != null) {
|
|
dialogSeekBright3.dismiss();
|
|
webViewActivity2.c8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 19:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSeekWebText dialogSeekWebText = webViewActivity.d8;
|
|
if (dialogSeekWebText != null) {
|
|
dialogSeekWebText.dismiss();
|
|
webViewActivity.d8 = null;
|
|
}
|
|
webViewActivity.X9(false);
|
|
DialogSeekWebText dialogSeekWebText2 = new DialogSeekWebText(webViewActivity, webViewActivity.I2, new DialogSetImage.ChangedListener() { // from class: com.mycompany.app.web.WebViewActivity.558
|
|
@Override // com.mycompany.app.dialog.DialogSetImage.ChangedListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.I2 != null) {
|
|
if (PrefZtri.k) {
|
|
webViewActivity2.b2();
|
|
WebFltView webFltView = webViewActivity2.ab;
|
|
if (webFltView != null) {
|
|
webFltView.q();
|
|
}
|
|
webViewActivity2.X9(true);
|
|
return;
|
|
}
|
|
WebFltView webFltView2 = webViewActivity2.ab;
|
|
if (webFltView2 != null) {
|
|
webFltView2.o();
|
|
MyWebBody myWebBody = webViewActivity2.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(webViewActivity2.ab);
|
|
}
|
|
webViewActivity2.ab = null;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.d8 = dialogSeekWebText2;
|
|
dialogSeekWebText2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.559
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSeekWebText dialogSeekWebText3 = webViewActivity2.d8;
|
|
if (dialogSeekWebText3 != null) {
|
|
dialogSeekWebText3.dismiss();
|
|
webViewActivity2.d8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 20:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetFull dialogSetFull = webViewActivity.e8;
|
|
if (dialogSetFull != null) {
|
|
dialogSetFull.dismiss();
|
|
webViewActivity.e8 = null;
|
|
}
|
|
webViewActivity.w9 = PrefWeb.t;
|
|
webViewActivity.x9 = PrefWeb.u;
|
|
webViewActivity.m4 = PrefWeb.v;
|
|
webViewActivity.n4 = PrefWeb.w;
|
|
webViewActivity.Dg = false;
|
|
DialogSetFull dialogSetFull2 = new DialogSetFull(webViewActivity, new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.560
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
boolean z5 = PrefWeb.t;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (z5 != webViewActivity2.w9 || PrefWeb.u != webViewActivity2.x9) {
|
|
if (!MainConst.d && (PrefWeb.t || PrefWeb.u)) {
|
|
webViewActivity2.Dg = true;
|
|
}
|
|
webViewActivity2.U8(PrefWeb.t, PrefWeb.u, false);
|
|
}
|
|
if (PrefWeb.v == webViewActivity2.m4 && PrefWeb.w == webViewActivity2.n4) {
|
|
return;
|
|
}
|
|
webViewActivity2.m2(webViewActivity2.t3(), webViewActivity2.u3());
|
|
}
|
|
});
|
|
webViewActivity.e8 = dialogSetFull2;
|
|
dialogSetFull2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.561
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetFull dialogSetFull3 = webViewActivity2.e8;
|
|
if (dialogSetFull3 != null) {
|
|
dialogSetFull3.dismiss();
|
|
webViewActivity2.e8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 21:
|
|
webViewActivity.e4();
|
|
if (DbBookTab.f) {
|
|
MainUtil.e8(webViewActivity, R.string.wait_retry);
|
|
return;
|
|
}
|
|
boolean z5 = PrefSync.k;
|
|
if (!z5) {
|
|
int i3 = PrefSecret.s;
|
|
if (i3 == 0) {
|
|
z = false;
|
|
} else {
|
|
z = PrefSecret.u;
|
|
}
|
|
if (z) {
|
|
if (i3 != 0) {
|
|
z3 = PrefSecret.u;
|
|
}
|
|
if (z3) {
|
|
Intent i22 = MainUtil.i2(webViewActivity.i1, i3);
|
|
i22.putExtra("EXTRA_TYPE", 2);
|
|
webViewActivity.t0(i22, 3);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
if (webViewActivity.Ec) {
|
|
MainUtil.e8(webViewActivity, R.string.wait_retry);
|
|
return;
|
|
} else {
|
|
webViewActivity.l8(!z5);
|
|
return;
|
|
}
|
|
case 22:
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.e4();
|
|
boolean z6 = PrefWeb.J;
|
|
int i4 = PrefWeb.K;
|
|
int i5 = PrefWeb.L;
|
|
boolean k5 = MainUtil.k5(webViewActivity.U1);
|
|
boolean z7 = MainApp.L1;
|
|
int b3 = webViewActivity.b3();
|
|
if (MainApp.K1 && MainApp.L1) {
|
|
PrefWeb.J = false;
|
|
PrefWeb.K = 0;
|
|
PrefWeb.L = 0;
|
|
MainApp.K1 = false;
|
|
MainApp.L1 = false;
|
|
} else {
|
|
PrefWeb.J = false;
|
|
PrefWeb.K = 1;
|
|
PrefWeb.L = 1;
|
|
MainApp.K1 = true;
|
|
MainApp.L1 = true;
|
|
}
|
|
if (z6 != PrefWeb.J || i4 != PrefWeb.K || i5 != PrefWeb.L) {
|
|
Context context = webViewActivity.i1;
|
|
if (context != null && (r = PrefWeb.r(context, false)) != null) {
|
|
r.l("mThemeSys", PrefWeb.J);
|
|
r.n(PrefWeb.K, "mThemeUi");
|
|
r.n(PrefWeb.L, "mThemeWeb");
|
|
r.a();
|
|
}
|
|
MainUtil.f7();
|
|
}
|
|
webViewActivity.k2(b3, k5, z7);
|
|
if (MainApp.M1 == 1 && PrefZtri.q0 && MainApp.L1 && !z7) {
|
|
webViewActivity.n9();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case ConnectionResult.API_DISABLED /* 23 */:
|
|
webViewActivity.e4();
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) MainListAlbum.class);
|
|
intent.putExtra("EXTRA_TYPE", PrefList.j);
|
|
webViewActivity.startActivity(intent);
|
|
webViewActivity.z9 = true;
|
|
return;
|
|
case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
|
|
webViewActivity.e4();
|
|
webViewActivity.startActivity(new Intent(webViewActivity.i1, (Class<?>) MainListCast.class));
|
|
return;
|
|
case 25:
|
|
webViewActivity.e4();
|
|
webViewActivity.finish();
|
|
return;
|
|
case 26:
|
|
if (webViewActivity.H2 != null) {
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G5()) {
|
|
webViewActivity.Y7(null);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 27:
|
|
if (webViewActivity.H2 != null) {
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G5()) {
|
|
webViewActivity.Q7();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 28:
|
|
webViewActivity.e4();
|
|
if (PrefZone.j) {
|
|
webViewActivity.x2(true);
|
|
return;
|
|
} else {
|
|
webViewActivity.S5(WebViewActivity.c3(), null);
|
|
return;
|
|
}
|
|
case 29:
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.J4();
|
|
if (PrefSync.k) {
|
|
str = PrefAlbum.N;
|
|
} else {
|
|
str = PrefAlbum.M;
|
|
}
|
|
String str2 = str;
|
|
webViewActivity.Z9();
|
|
DialogWebBookList dialogWebBookList = new DialogWebBookList(webViewActivity, str2, null, 0, new DialogWebBookList.BookListListener() { // from class: com.mycompany.app.web.WebViewActivity.331
|
|
@Override // com.mycompany.app.dialog.DialogWebBookList.BookListListener
|
|
public final void a(String str3) {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebBookList.BookListListener
|
|
public final void b(final int i6, final String str3) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.J4();
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.331.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String trim;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str4 = str3;
|
|
boolean z8 = false;
|
|
if (str4 != null && (trim = str4.trim()) != null && trim.length() >= 12) {
|
|
z8 = trim.startsWith("javascript:");
|
|
}
|
|
if (z8) {
|
|
webViewActivity3.Qh = str4;
|
|
webViewActivity3.m0(new AnonymousClass221());
|
|
return;
|
|
}
|
|
int i8 = i6;
|
|
if (i8 == 3) {
|
|
int i9 = WebViewActivity.Fo;
|
|
webViewActivity3.O1(null, str4, true, null);
|
|
return;
|
|
}
|
|
if (i8 == 4) {
|
|
int i10 = WebViewActivity.Fo;
|
|
webViewActivity3.L1(str4, null);
|
|
} else if (i8 == 5) {
|
|
int i11 = WebViewActivity.Fo;
|
|
webViewActivity3.G1(str4);
|
|
} else if (MainUtil.A6(16)) {
|
|
webViewActivity3.O1(null, str4, true, null);
|
|
} else {
|
|
webViewActivity3.S5(str4, null);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity.j6 = dialogWebBookList;
|
|
dialogWebBookList.z = new DialogWebBookList.BookInfoListener() { // from class: com.mycompany.app.web.WebViewActivity.332
|
|
@Override // com.mycompany.app.dialog.DialogWebBookList.BookInfoListener
|
|
public final Bitmap getIcon() {
|
|
WebNestView webNestView5 = WebViewActivity.this.I2;
|
|
if (webNestView5 == null) {
|
|
return null;
|
|
}
|
|
return webNestView5.getFavicon();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebBookList.BookInfoListener
|
|
public final String getTitle() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
return webViewActivity2.v3(webViewActivity2.I2, webViewActivity2.A8);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogWebBookList.BookInfoListener
|
|
public final String getUrl() {
|
|
int i6 = WebViewActivity.Fo;
|
|
return WebViewActivity.this.s3(true);
|
|
}
|
|
};
|
|
dialogWebBookList.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.333
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i6 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.J4();
|
|
WebNestView webNestView5 = webViewActivity2.I2;
|
|
if (webNestView5 != null) {
|
|
webViewActivity2.wj = webNestView5.getUrl();
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.333.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str3 = webViewActivity3.wj;
|
|
webViewActivity3.wj = null;
|
|
WebViewActivity.u0(webViewActivity3, str3);
|
|
}
|
|
});
|
|
}
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
MainUtil.l8(webViewActivity2.i1, false);
|
|
}
|
|
});
|
|
webViewActivity.j6.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.334
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
return;
|
|
case 30:
|
|
if (webViewActivity.H2 != null) {
|
|
webViewActivity.e4();
|
|
if (webViewActivity.X1 && !webViewActivity.G5()) {
|
|
if (PrefZone.D) {
|
|
webViewActivity.A9();
|
|
return;
|
|
} else {
|
|
webViewActivity.z9();
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 31:
|
|
String s33 = webViewActivity.s3(false);
|
|
if (!TextUtils.isEmpty(s33) && !"file:///android_asset/shortcut.html".equals(s33)) {
|
|
webViewActivity.e4();
|
|
int i6 = PrefZtwo.S;
|
|
if (i6 == 2) {
|
|
webViewActivity.g8(s33);
|
|
return;
|
|
}
|
|
if (i6 == 1) {
|
|
webViewActivity.E9(s33, null, false);
|
|
return;
|
|
}
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.v4();
|
|
DialogSetRead dialogSetRead = new DialogSetRead(webViewActivity, s33, new DialogSetRead.SetReadListener() { // from class: com.mycompany.app.web.WebViewActivity.576
|
|
@Override // com.mycompany.app.dialog.DialogSetRead.SetReadListener
|
|
public final void a(String str3, boolean z8) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.v4();
|
|
if (z8) {
|
|
webViewActivity2.g8(str3);
|
|
} else {
|
|
webViewActivity2.E9(str3, null, false);
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.l8 = dialogSetRead;
|
|
dialogSetRead.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.577
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.v4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
case 32:
|
|
String s34 = webViewActivity.s3(false);
|
|
if (!TextUtils.isEmpty(s34) && !"file:///android_asset/shortcut.html".equals(s34)) {
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.I2();
|
|
DialogViewSrc dialogViewSrc = webViewActivity.p8;
|
|
if (dialogViewSrc != null) {
|
|
dialogViewSrc.dismiss();
|
|
webViewActivity.p8 = null;
|
|
}
|
|
webViewActivity.Z9();
|
|
WebNestView webNestView5 = webViewActivity.I2;
|
|
DialogViewSrc dialogViewSrc2 = new DialogViewSrc(webViewActivity, webNestView5, s34, webViewActivity.v3(webNestView5, s34));
|
|
webViewActivity.p8 = dialogViewSrc2;
|
|
dialogViewSrc2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.582
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.I2();
|
|
DialogViewSrc dialogViewSrc3 = webViewActivity2.p8;
|
|
if (dialogViewSrc3 != null) {
|
|
dialogViewSrc3.dismiss();
|
|
webViewActivity2.p8 = null;
|
|
}
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.582.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.O0 == null) {
|
|
return;
|
|
}
|
|
MainUtil.g7(webViewActivity3.getWindow(), PrefPdf.o, PrefPdf.n);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity.p8.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.583
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.Bb != null) {
|
|
webViewActivity2.I1();
|
|
}
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
case 33:
|
|
webViewActivity.e4();
|
|
webViewActivity.startActivity(new Intent(webViewActivity.i1, (Class<?>) MainListMemo.class));
|
|
return;
|
|
case 34:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.Uj) {
|
|
webViewActivity.Uj = true;
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 != null) {
|
|
myWebCoord3.post(new AnonymousClass352());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 35:
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.e4();
|
|
WebNestView webNestView6 = webViewActivity.I2;
|
|
WebCrashView webCrashView = webNestView6.d1;
|
|
if (webCrashView == null) {
|
|
webViewActivity.E6();
|
|
return;
|
|
} else {
|
|
webNestView6.G(webCrashView.getCrashUrl());
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
case 36:
|
|
webViewActivity.e4();
|
|
if (webViewActivity.T2 == 0 && (list = webViewActivity.O2) != null && list.size() >= 2) {
|
|
if ((PrefZtwo.s || webViewActivity.P2 > 0) && (myWebCoord2 = webViewActivity.f2) != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.142
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.X6(0.5f, 4, false);
|
|
MyWebCoord myWebCoord4 = webViewActivity2.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.142.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i8 = WebViewActivity.Fo;
|
|
webViewActivity3.X6(0.0f, 4, true);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 37:
|
|
webViewActivity.e4();
|
|
webViewActivity.R7();
|
|
return;
|
|
case 38:
|
|
webViewActivity.e4();
|
|
webViewActivity.z2();
|
|
return;
|
|
case 39:
|
|
webViewActivity.e4();
|
|
webViewActivity.y9(0, 0, 0);
|
|
return;
|
|
case 40:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetPrivacy dialogSetPrivacy = webViewActivity.q8;
|
|
if (dialogSetPrivacy != null) {
|
|
dialogSetPrivacy.dismiss();
|
|
webViewActivity.q8 = null;
|
|
}
|
|
DialogSetPrivacy dialogSetPrivacy2 = new DialogSetPrivacy(webViewActivity, false, true, new DialogSetPrivacy.TabDeletedListener() { // from class: com.mycompany.app.web.WebViewActivity.584
|
|
@Override // com.mycompany.app.dialog.DialogSetPrivacy.TabDeletedListener
|
|
public final void a() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.x2(false);
|
|
}
|
|
});
|
|
webViewActivity.q8 = dialogSetPrivacy2;
|
|
dialogSetPrivacy2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.585
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetPrivacy dialogSetPrivacy3 = webViewActivity2.q8;
|
|
if (dialogSetPrivacy3 != null) {
|
|
dialogSetPrivacy3.dismiss();
|
|
webViewActivity2.q8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 41:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetVpn dialogSetVpn = webViewActivity.r8;
|
|
if (dialogSetVpn != null) {
|
|
dialogSetVpn.dismiss();
|
|
webViewActivity.r8 = null;
|
|
}
|
|
DialogSetVpn dialogSetVpn2 = new DialogSetVpn(webViewActivity, new DialogPrintPage.PathChangeListener() { // from class: com.mycompany.app.web.WebViewActivity.586
|
|
@Override // com.mycompany.app.dialog.DialogPrintPage.PathChangeListener
|
|
public final void a(String str3) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.F1(null, str3, true, null);
|
|
}
|
|
});
|
|
webViewActivity.r8 = dialogSetVpn2;
|
|
dialogSetVpn2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.587
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetVpn dialogSetVpn3 = webViewActivity2.r8;
|
|
if (dialogSetVpn3 != null) {
|
|
dialogSetVpn3.dismiss();
|
|
webViewActivity2.r8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 42:
|
|
webViewActivity.e4();
|
|
webViewActivity.startActivity(new Intent(webViewActivity.i1, (Class<?>) MainListAgent.class));
|
|
return;
|
|
case 43:
|
|
if (webViewActivity.I2 != null) {
|
|
String s35 = webViewActivity.s3(false);
|
|
if (TextUtils.isEmpty(s35)) {
|
|
MainUtil.e8(webViewActivity, R.string.blank_page);
|
|
return;
|
|
} else {
|
|
webViewActivity.e4();
|
|
MainUtil.s(R.string.copied_clipboard, webViewActivity, "Copied URL", s35);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
case 44:
|
|
if (webViewActivity.I2 != null) {
|
|
if (webViewActivity.Ba) {
|
|
webViewActivity.Ba = false;
|
|
return;
|
|
} else {
|
|
webViewActivity.e4();
|
|
webViewActivity.E7(true);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
case 45:
|
|
webViewActivity.e4();
|
|
webViewActivity.w9(true);
|
|
return;
|
|
case 46:
|
|
if (!webViewActivity.K5()) {
|
|
MainUtil.e8(webViewActivity, R.string.not_support_land);
|
|
return;
|
|
}
|
|
webViewActivity.e4();
|
|
if (PrefTts.H) {
|
|
webViewActivity.ba();
|
|
return;
|
|
} else {
|
|
webViewActivity.aa();
|
|
return;
|
|
}
|
|
case 47:
|
|
String s36 = webViewActivity.s3(false);
|
|
if (!TextUtils.isEmpty(s36) && !"file:///android_asset/shortcut.html".equals(s36)) {
|
|
webViewActivity.e4();
|
|
webViewActivity.y8();
|
|
return;
|
|
} else {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
case 48:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetCookie dialogSetCookie = webViewActivity.s8;
|
|
if (dialogSetCookie != null) {
|
|
dialogSetCookie.dismiss();
|
|
webViewActivity.s8 = null;
|
|
}
|
|
DialogSetCookie dialogSetCookie2 = new DialogSetCookie(webViewActivity, new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.588
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView7 = webViewActivity2.I2;
|
|
if (webNestView7 == null) {
|
|
return;
|
|
}
|
|
webNestView7.setViewCookie(webViewActivity2.i1);
|
|
}
|
|
});
|
|
webViewActivity.s8 = dialogSetCookie2;
|
|
dialogSetCookie2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.589
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetCookie dialogSetCookie3 = webViewActivity2.s8;
|
|
if (dialogSetCookie3 != null) {
|
|
dialogSetCookie3.dismiss();
|
|
webViewActivity2.s8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 49:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetJava dialogSetJava = webViewActivity.j8;
|
|
if (dialogSetJava != null) {
|
|
dialogSetJava.dismiss();
|
|
webViewActivity.j8 = null;
|
|
}
|
|
DialogSetJava dialogSetJava2 = new DialogSetJava(webViewActivity, webViewActivity.s3(false), new DialogSetAdblock.DialogAdsListener() { // from class: com.mycompany.app.web.WebViewActivity.573
|
|
@Override // com.mycompany.app.dialog.DialogSetAdblock.DialogAdsListener
|
|
public final void a(boolean z8, boolean z9, boolean z10, boolean z11, boolean z12, String str3) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView7 = webViewActivity2.I2;
|
|
if (webNestView7 != null) {
|
|
if (z8) {
|
|
webNestView7.setEnableJs(z9);
|
|
}
|
|
if (z12) {
|
|
webViewActivity2.F6();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.j8 = dialogSetJava2;
|
|
dialogSetJava2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.574
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetJava dialogSetJava3 = webViewActivity2.j8;
|
|
if (dialogSetJava3 != null) {
|
|
dialogSetJava3.dismiss();
|
|
webViewActivity2.j8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 50:
|
|
webViewActivity.e4();
|
|
webViewActivity.startActivity(new Intent(webViewActivity.i1, (Class<?>) MainTxtView.class));
|
|
return;
|
|
case 51:
|
|
webViewActivity.e4();
|
|
View view3 = webViewActivity.V5;
|
|
if (view3 != null) {
|
|
if (webViewActivity.U5 == null) {
|
|
webViewActivity.a5();
|
|
webViewActivity.N8 = null;
|
|
ArrayList arrayList = U5build(webViewActivity);
|
|
MyPopupMenu myPopupMenu = new MyPopupMenu(webViewActivity, webViewActivity.e2, view3, arrayList, MainUtil.k5(webViewActivity.U1), new MyPopupMenu.MyPopupListener() { // from class: com.mycompany.app.web.WebViewActivity.305
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.a5();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view4, int i7) {
|
|
if (i7 == 100) {
|
|
U5edit(WebViewActivity.this, view4);
|
|
return true;
|
|
}
|
|
WebViewActivity.O0(WebViewActivity.this, i7);
|
|
return true;
|
|
}
|
|
});
|
|
webViewActivity.U5 = myPopupMenu;
|
|
webViewActivity.Z0 = myPopupMenu;
|
|
MyWebCoord myWebCoord4 = webViewActivity.f2;
|
|
if (myWebCoord4 != null) {
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.306
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.U5 != null) {
|
|
WebViewActivity.f1(webViewActivity2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
webViewActivity.V5 = null;
|
|
return;
|
|
}
|
|
webViewActivity.w9(false);
|
|
return;
|
|
case 52:
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.517
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
final String r0 = MainUtil.r0(webViewActivity2.i1);
|
|
MyWebCoord myWebCoord5 = webViewActivity2.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.517.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str3 = r0;
|
|
if (TextUtils.isEmpty(str3)) {
|
|
MainUtil.e8(webViewActivity3, R.string.empty);
|
|
return;
|
|
}
|
|
int i7 = WebViewActivity.Fo;
|
|
webViewActivity3.e4();
|
|
webViewActivity3.S5(MainUtil.q4(webViewActivity3.i1, str3), null);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
case 53:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.Vj) {
|
|
webViewActivity.Vj = true;
|
|
MyWebCoord myWebCoord5 = webViewActivity.f2;
|
|
if (myWebCoord5 != null) {
|
|
myWebCoord5.post(new AnonymousClass356());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 54:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetScrFil dialogSetScrFil = webViewActivity.t8;
|
|
if (dialogSetScrFil != null) {
|
|
dialogSetScrFil.dismiss();
|
|
webViewActivity.t8 = null;
|
|
}
|
|
DialogSetScrFil dialogSetScrFil2 = new DialogSetScrFil(webViewActivity, new DialogSeekAudio.DialogSeekListener() { // from class: com.mycompany.app.web.WebViewActivity.590
|
|
@Override // com.mycompany.app.dialog.DialogSeekAudio.DialogSeekListener
|
|
public final void a(int i7) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.o8(webViewActivity2.t3(), i7);
|
|
}
|
|
});
|
|
webViewActivity.t8 = dialogSetScrFil2;
|
|
dialogSetScrFil2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.591
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetScrFil dialogSetScrFil3 = webViewActivity2.t8;
|
|
if (dialogSetScrFil3 != null) {
|
|
dialogSetScrFil3.dismiss();
|
|
webViewActivity2.t8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 55:
|
|
webViewActivity.e4();
|
|
webViewActivity.V7(true, true);
|
|
return;
|
|
case 56:
|
|
webViewActivity.e4();
|
|
webViewActivity.V7(false, true);
|
|
return;
|
|
case 57:
|
|
webViewActivity.e4();
|
|
webViewActivity.V7(true, false);
|
|
return;
|
|
case 58:
|
|
webViewActivity.e4();
|
|
webViewActivity.V7(false, false);
|
|
return;
|
|
case 59:
|
|
webViewActivity.e4();
|
|
webViewActivity.y9(0, webViewActivity.P2, 1);
|
|
return;
|
|
case 60:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetUseTts dialogSetUseTts = webViewActivity.h8;
|
|
if (dialogSetUseTts != null) {
|
|
dialogSetUseTts.dismiss();
|
|
webViewActivity.h8 = null;
|
|
}
|
|
DialogSetUseTts dialogSetUseTts2 = new DialogSetUseTts(webViewActivity, new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.567
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
boolean z8 = PrefTts.j;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (z8) {
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.567.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.m1(WebViewActivity.this);
|
|
}
|
|
});
|
|
} else {
|
|
int i7 = WebViewActivity.Fo;
|
|
webViewActivity2.A6();
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.h8 = dialogSetUseTts2;
|
|
dialogSetUseTts2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.568
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetUseTts dialogSetUseTts3 = webViewActivity2.h8;
|
|
if (dialogSetUseTts3 != null) {
|
|
dialogSetUseTts3.dismiss();
|
|
webViewActivity2.h8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 61:
|
|
webViewActivity.e4();
|
|
webViewActivity.startActivity(new Intent(webViewActivity.i1, (Class<?>) SettingGesture.class));
|
|
return;
|
|
case 62:
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetAdblock dialogSetAdblock = webViewActivity.i8;
|
|
if (dialogSetAdblock != null) {
|
|
dialogSetAdblock.dismiss();
|
|
webViewActivity.i8 = null;
|
|
}
|
|
DialogSetAdblock dialogSetAdblock2 = new DialogSetAdblock(webViewActivity, webViewActivity.s3(false), new DialogSetAdblock.DialogAdsListener() { // from class: com.mycompany.app.web.WebViewActivity.569
|
|
@Override // com.mycompany.app.dialog.DialogSetAdblock.DialogAdsListener
|
|
public final void a(boolean z8, boolean z9, boolean z10, boolean z11, boolean z12, String str3) {
|
|
WebViewActivity.T0(WebViewActivity.this, z9, z10, z11, z12);
|
|
}
|
|
});
|
|
webViewActivity.i8 = dialogSetAdblock2;
|
|
dialogSetAdblock2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.570
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetAdblock dialogSetAdblock3 = webViewActivity2.i8;
|
|
if (dialogSetAdblock3 != null) {
|
|
dialogSetAdblock3.dismiss();
|
|
webViewActivity2.i8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 63:
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.xj) {
|
|
webViewActivity.xj = true;
|
|
webViewActivity.yj = null;
|
|
if (!webViewActivity.z8) {
|
|
webViewActivity.F9();
|
|
webViewActivity.xj = false;
|
|
return;
|
|
}
|
|
String s37 = webViewActivity.s3(false);
|
|
if (TextUtils.isEmpty(s37)) {
|
|
webViewActivity.h7(false);
|
|
webViewActivity.xj = false;
|
|
MainUtil.l8(webViewActivity.i1, false);
|
|
return;
|
|
} else {
|
|
webViewActivity.yj = s37;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.338
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MyWebBody myWebBody;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
long d = DbBookWeb.d(webViewActivity2.i1, webViewActivity2.yj);
|
|
if (d > 0) {
|
|
Context context2 = webViewActivity2.i1;
|
|
MainUtil.p4(webViewActivity2.yj);
|
|
DbBookWeb.k(context2, d);
|
|
}
|
|
if (webViewActivity2.I2 == null || (myWebBody = webViewActivity2.e2) == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.338.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass338 anonymousClass338 = AnonymousClass338.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i7 = WebViewActivity.Fo;
|
|
if (MainUtil.q5(webViewActivity3.s3(false), WebViewActivity.this.yj)) {
|
|
WebViewActivity.this.h7(false);
|
|
}
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
webViewActivity4.xj = false;
|
|
webViewActivity4.yj = null;
|
|
MainUtil.l8(webViewActivity4.i1, false);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
case 64:
|
|
webViewActivity.e4();
|
|
if (PrefRead.q) {
|
|
webViewActivity.o9();
|
|
return;
|
|
} else {
|
|
webViewActivity.C7(0);
|
|
return;
|
|
}
|
|
case 65:
|
|
webViewActivity.e4();
|
|
String j3 = WebViewActivity.j3(webViewActivity.s3(false));
|
|
Intent intent2 = new Intent(webViewActivity.i1, (Class<?>) SettingMain.class);
|
|
intent2.putExtra("EXTRA_PATH", j3);
|
|
webViewActivity.t0(intent2, 1);
|
|
return;
|
|
case 66:
|
|
webViewActivity.e4();
|
|
if (!webViewActivity.G1 && !webViewActivity.J5()) {
|
|
DialogSetDark dialogSetDark = webViewActivity.f8;
|
|
if (dialogSetDark != null) {
|
|
dialogSetDark.dismiss();
|
|
webViewActivity.f8 = null;
|
|
}
|
|
webViewActivity.Z7(MainUtil.k5(webViewActivity.U1));
|
|
DialogSetDark dialogSetDark2 = new DialogSetDark(webViewActivity, new DialogSetDark.SetDarkListener() { // from class: com.mycompany.app.web.WebViewActivity.562
|
|
@Override // com.mycompany.app.dialog.DialogSetDark.SetDarkListener
|
|
public final void a(boolean z8) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.mn = z8;
|
|
MyWebCoord myWebCoord6 = webViewActivity2.f2;
|
|
if (myWebCoord6 == null) {
|
|
return;
|
|
}
|
|
myWebCoord6.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.562.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
boolean z9 = webViewActivity3.mn;
|
|
webViewActivity3.mn = false;
|
|
if (z9) {
|
|
MainUtil.f7();
|
|
}
|
|
MyWebCoord myWebCoord7 = webViewActivity3.f2;
|
|
if (myWebCoord7 == null) {
|
|
return;
|
|
}
|
|
myWebCoord7.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.564
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView8;
|
|
int i7 = WebViewActivity.Fo;
|
|
boolean z10 = MainApp.L1;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
int b32 = webViewActivity4.b3();
|
|
Resources resources = webViewActivity4.getResources();
|
|
MainApp.K1 = MainUtil.h5(resources, true);
|
|
MainApp.L1 = MainUtil.h5(resources, false);
|
|
boolean k2 = webViewActivity4.k2(b32, webViewActivity4.E4, z10);
|
|
boolean z11 = webViewActivity4.G4;
|
|
boolean z12 = PrefWeb.M;
|
|
if (z11 != z12 || webViewActivity4.H4 != PrefWeb.N) {
|
|
webViewActivity4.G4 = z12;
|
|
webViewActivity4.H4 = PrefWeb.N;
|
|
if (!k2 && (webNestView8 = webViewActivity4.I2) != null) {
|
|
webNestView8.M(webViewActivity4.A8, webViewActivity4.B8);
|
|
}
|
|
}
|
|
if (MainApp.M1 == 1 && PrefZtri.q0 && MainApp.L1 && !webViewActivity4.F4) {
|
|
webViewActivity4.n9();
|
|
}
|
|
boolean k52 = MainUtil.k5(webViewActivity4.U1);
|
|
if (webViewActivity4.E4 != k52) {
|
|
webViewActivity4.Z7(k52);
|
|
return;
|
|
}
|
|
int t3 = webViewActivity4.t3();
|
|
if (webViewActivity4.x5 != t3) {
|
|
webViewActivity4.I8(t3, webViewActivity4.u3());
|
|
}
|
|
webViewActivity4.Z7(k52);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity.f8 = dialogSetDark2;
|
|
dialogSetDark2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.563
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogSetDark dialogSetDark3 = webViewActivity2.f8;
|
|
if (dialogSetDark3 != null) {
|
|
dialogSetDark3.dismiss();
|
|
webViewActivity2.f8 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 67:
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.y3(webViewActivity.s3(false));
|
|
return;
|
|
}
|
|
return;
|
|
case 68:
|
|
default:
|
|
return;
|
|
case 69:
|
|
String s38 = webViewActivity.s3(false);
|
|
if (!TextUtils.isEmpty(s38) && !"file:///android_asset/shortcut.html".equals(s38)) {
|
|
webViewActivity.e4();
|
|
webViewActivity.E9(s38, null, true);
|
|
return;
|
|
} else {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
case 70:
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I2 != null && !webViewActivity.G1 && !webViewActivity.J5()) {
|
|
webViewActivity.C4();
|
|
int i7 = R.style.DialogExpandTheme;
|
|
if (webViewActivity.h0()) {
|
|
i7 = 0;
|
|
}
|
|
List list2 = webViewActivity.O2;
|
|
if (list2 == null || list2.size() <= 1) {
|
|
z2 = false;
|
|
}
|
|
DialogTabMenu dialogTabMenu = new DialogTabMenu(webViewActivity, i7, z2, new DialogSeekAudio.DialogSeekListener() { // from class: com.mycompany.app.web.WebViewActivity.316
|
|
@Override // com.mycompany.app.dialog.DialogSeekAudio.DialogSeekListener
|
|
public final void a(int i8) {
|
|
int i9 = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.C4();
|
|
if (i8 == 0) {
|
|
webViewActivity2.y9(0, 0, 0);
|
|
return;
|
|
}
|
|
if (i8 == 1) {
|
|
webViewActivity2.y9(0, webViewActivity2.P2, 1);
|
|
return;
|
|
}
|
|
if (i8 == 2) {
|
|
webViewActivity2.z2();
|
|
return;
|
|
}
|
|
if (i8 == 3) {
|
|
webViewActivity2.O1(null, WebViewActivity.o3(), true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.316.1
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z8) {
|
|
WebViewActivity.l1(WebViewActivity.this, z8);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (i8 == 4) {
|
|
webViewActivity2.O1(null, webViewActivity2.s3(false), true, new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.316.2
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z8) {
|
|
WebViewActivity.l1(WebViewActivity.this, z8);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (i8 == 5) {
|
|
webViewActivity2.L1(WebViewActivity.o3(), new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.316.3
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z8) {
|
|
WebViewActivity.l1(WebViewActivity.this, z8);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (i8 == 6) {
|
|
webViewActivity2.G1(WebViewActivity.o3());
|
|
return;
|
|
}
|
|
if (i8 == 7 && !webViewActivity2.G1 && !webViewActivity2.J5()) {
|
|
DialogSetTmem dialogSetTmem = webViewActivity2.k8;
|
|
if (dialogSetTmem != null) {
|
|
dialogSetTmem.dismiss();
|
|
webViewActivity2.k8 = null;
|
|
}
|
|
DialogSetTmem dialogSetTmem2 = new DialogSetTmem(webViewActivity2, webViewActivity2.s3(false));
|
|
webViewActivity2.k8 = dialogSetTmem2;
|
|
dialogSetTmem2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.575
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i10 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
DialogSetTmem dialogSetTmem3 = webViewActivity3.k8;
|
|
if (dialogSetTmem3 != null) {
|
|
dialogSetTmem3.dismiss();
|
|
webViewActivity3.k8 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.Z5 = dialogTabMenu;
|
|
dialogTabMenu.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.317
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i8 = WebViewActivity.Fo;
|
|
WebViewActivity.this.C4();
|
|
}
|
|
});
|
|
if (MainConst.e || i7 != 0) {
|
|
webViewActivity.Z5.x(webViewActivity.t3(), webViewActivity.b3(), webViewActivity.U1, webViewActivity.a6(), true);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
case 71:
|
|
webViewActivity.e4();
|
|
webViewActivity.L1(WebViewActivity.o3(), new TabAddListener() { // from class: com.mycompany.app.web.WebViewActivity.516
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabAddListener
|
|
public final void a(boolean z8) {
|
|
WebViewActivity.l1(WebViewActivity.this, z8);
|
|
}
|
|
});
|
|
return;
|
|
case 72:
|
|
webViewActivity.e4();
|
|
webViewActivity.G1(WebViewActivity.o3());
|
|
return;
|
|
case 73:
|
|
WebNestView webNestView8 = webViewActivity.I2;
|
|
if (webNestView8 != null) {
|
|
String url4 = webNestView8.getUrl();
|
|
if (!TextUtils.isEmpty(url4) && !"file:///android_asset/shortcut.html".equals(url4) && !"about:blank".equals(url4)) {
|
|
webViewActivity.e4();
|
|
webViewActivity.e9(false);
|
|
return;
|
|
} else {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void d7(MyAdNative myAdNative) {
|
|
if (myAdNative != null) {
|
|
myAdNative.setVisibility(8);
|
|
myAdNative.setDarkMode(true);
|
|
if (!this.G8 && MainApp.A(this.i1)) {
|
|
return;
|
|
}
|
|
MainApp.f(this.i1, 0);
|
|
}
|
|
}
|
|
|
|
public final void d8(int i, boolean z) {
|
|
int i2;
|
|
if (this.I2 != null) {
|
|
if (z) {
|
|
this.D3 = i;
|
|
} else {
|
|
this.D3 = 0;
|
|
}
|
|
o8(t3(), b3());
|
|
if (this.D3 != 3) {
|
|
this.j2.setDisabled(z);
|
|
}
|
|
if (!this.j9) {
|
|
MyBarFrame myBarFrame = this.k2;
|
|
if (z) {
|
|
i2 = 4;
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
myBarFrame.setVisibility(i2);
|
|
}
|
|
this.I2.setErrorView(!z);
|
|
WebFltView webFltView = this.Na;
|
|
if (webFltView != null) {
|
|
if (!z && !this.j9) {
|
|
webFltView.setVisibility(0);
|
|
} else {
|
|
webFltView.setVisibility(8);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r0v0, types: [com.mycompany.app.view.MySnackbar$SnackItem, java.lang.Object] */
|
|
public final void d9(String str, String str2) {
|
|
?? obj = new Object();
|
|
obj.f19006a = str;
|
|
obj.b = str2;
|
|
U9(false);
|
|
T4();
|
|
MySnackbar mySnackbar = new MySnackbar(this);
|
|
this.t3 = mySnackbar;
|
|
mySnackbar.setAppBarView(this.g2);
|
|
this.t3.setSnackItem(obj);
|
|
this.t3.setActivity(this);
|
|
if (TextUtils.isEmpty(str2)) {
|
|
MySnackbar mySnackbar2 = this.t3;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
int i = R.string.app_block_noti;
|
|
MySnackbar.SnackbarListener snackbarListener = new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.425
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
MySnackbar.SnackItem snackItem;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MySnackbar mySnackbar3 = webViewActivity.t3;
|
|
if (mySnackbar3 != null && (snackItem = mySnackbar3.getSnackItem()) != null) {
|
|
webViewActivity.Jl = snackItem.f19006a;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass427());
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.t3 = null;
|
|
}
|
|
};
|
|
mySnackbar2.i = 3;
|
|
mySnackbar2.m = str;
|
|
mySnackbar2.x(myWebCoord, i, 1, 0, snackbarListener);
|
|
return;
|
|
}
|
|
MySnackbar mySnackbar3 = this.t3;
|
|
MyWebCoord myWebCoord2 = this.f2;
|
|
int i2 = R.string.app_block_noti;
|
|
MySnackbar.SnackbarListener snackbarListener2 = new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.426
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
MySnackbar.SnackItem snackItem;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MySnackbar mySnackbar4 = webViewActivity.t3;
|
|
if (mySnackbar4 != null && (snackItem = mySnackbar4.getSnackItem()) != null) {
|
|
webViewActivity.Jl = snackItem.f19006a;
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass427());
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
MySnackbar.SnackItem snackItem;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MySnackbar mySnackbar4 = webViewActivity.t3;
|
|
if (mySnackbar4 == null || (snackItem = mySnackbar4.getSnackItem()) == null) {
|
|
return;
|
|
}
|
|
webViewActivity.F1(null, snackItem.b, true, null);
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.t3 = null;
|
|
}
|
|
};
|
|
mySnackbar3.i = 3;
|
|
mySnackbar3.m = str;
|
|
mySnackbar3.x(myWebCoord2, i2, 4, 1, snackbarListener2);
|
|
}
|
|
|
|
public final void da(Intent intent) {
|
|
if (intent == null) {
|
|
return;
|
|
}
|
|
this.B9 = true;
|
|
super.startActivity(intent);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:147:0x0229, code lost:
|
|
|
|
if (r14.ia == 0) goto L959;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:772:0x0a11, code lost:
|
|
|
|
if (r0 > (r2 - r11)) goto L832;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:258:0x03c9 */
|
|
/* JADX WARN: Removed duplicated region for block: B:763:0x09cf */
|
|
/* JADX WARN: Removed duplicated region for block: B:765:0x09ec */
|
|
/* JADX WARN: Removed duplicated region for block: B:767:0x09f3 */
|
|
/* JADX WARN: Removed duplicated region for block: B:779:0x0a18 */
|
|
/* JADX WARN: Removed duplicated region for block: B:790:0x0a38 */
|
|
/* JADX WARN: Removed duplicated region for block: B:896:0x09d6 */
|
|
/* JADX WARN: Type inference failed for: r0v25 */
|
|
/* JADX WARN: Type inference failed for: r0v26 */
|
|
/* JADX WARN: Type inference failed for: r0v27 */
|
|
/* JADX WARN: Type inference failed for: r0v31 */
|
|
/* JADX WARN: Type inference failed for: r0v4 */
|
|
/* JADX WARN: Type inference failed for: r0v5 */
|
|
/* JADX WARN: Type inference failed for: r12v1 */
|
|
/* JADX WARN: Type inference failed for: r12v5 */
|
|
/* JADX WARN: Type inference failed for: r12v7 */
|
|
/* JADX WARN: Type inference failed for: r12v9 */
|
|
/* JADX WARN: Type inference failed for: r13v1 */
|
|
/* JADX WARN: Type inference failed for: r13v2 */
|
|
/* JADX WARN: Type inference failed for: r13v3 */
|
|
/* JADX WARN: Type inference failed for: r5v10 */
|
|
/* JADX WARN: Type inference failed for: r5v5 */
|
|
/* JADX WARN: Type inference failed for: r5v6 */
|
|
@Override // com.mycompany.app.main.MainActivity, android.app.Activity, android.view.Window.Callback
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean dispatchTouchEvent(android.view.MotionEvent r15) {
|
|
/*
|
|
Method dump skipped, instructions count: 2959
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.dispatchTouchEvent(android.view.MotionEvent):boolean");
|
|
}
|
|
|
|
public final boolean e2() {
|
|
List list;
|
|
if (!PrefZtri.n0 || this.P2 <= 0 || (list = this.O2) == null || list.size() <= 1) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final float e3(MotionEvent motionEvent) {
|
|
if (this.S9 != null) {
|
|
try {
|
|
if (motionEvent.getPointerCount() >= 2) {
|
|
float y = motionEvent.getY(0) - this.S9[0];
|
|
if ((motionEvent.getY(1) - this.S9[1]) * y >= 0.0f) {
|
|
return y;
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
return 0.0f;
|
|
}
|
|
|
|
public final void e4() {
|
|
DialogMenuMain dialogMenuMain = this.F7;
|
|
if (dialogMenuMain != null) {
|
|
dialogMenuMain.dismiss();
|
|
this.F7 = null;
|
|
return;
|
|
}
|
|
DialogMenuList dialogMenuList = this.G7;
|
|
if (dialogMenuList != null) {
|
|
if (!this.J7) {
|
|
this.J7 = dialogMenuList.b();
|
|
}
|
|
this.G7 = null;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v3, types: [com.google.android.gms.security.ProviderInstaller$ProviderInstallListener, java.lang.Object] */
|
|
public final void e5() {
|
|
boolean z;
|
|
Window window;
|
|
View a0;
|
|
if (this.f2 != null) {
|
|
if (!this.n9) {
|
|
this.n9 = true;
|
|
b7(2, true);
|
|
}
|
|
int i = Build.VERSION.SDK_INT;
|
|
if (i < 30 && !this.o9) {
|
|
this.o9 = true;
|
|
if (getWindow() != null && (a0 = a0()) != null) {
|
|
a0.setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener() { // from class: com.mycompany.app.web.WebViewActivity.9
|
|
@Override // android.view.View.OnSystemUiVisibilityChangeListener
|
|
public final void onSystemUiVisibilityChange(int i2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.F1) {
|
|
if ((i2 & 4) == 4 && (i2 & 2) == 2) {
|
|
return;
|
|
}
|
|
webViewActivity.q2(true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (!MainConst.d && this.c2 == null && this.i1 != null && (window = getWindow()) != null) {
|
|
window.setSoftInputMode(16);
|
|
this.c2 = new KeyHelper(this.i1, this.f2, PrefWeb.t, PrefWeb.u, new KeyHelper.KeyHelperListener() { // from class: com.mycompany.app.web.WebViewActivity.11
|
|
@Override // com.mycompany.app.help.KeyHelper.KeyHelperListener
|
|
public final void a() {
|
|
MyWebCoord myWebCoord;
|
|
if (Build.VERSION.SDK_INT >= 30 || (myWebCoord = WebViewActivity.this.f2) == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.11.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity.q2(true);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.help.KeyHelper.KeyHelperListener
|
|
public final void b(boolean z2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.L3 = z2;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.11.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (!webViewActivity2.L3 || !webViewActivity2.J5()) {
|
|
if (PrefTts.H) {
|
|
webViewActivity2.K7(!webViewActivity2.L3);
|
|
}
|
|
webViewActivity2.N7();
|
|
if (webViewActivity2.L3) {
|
|
if (!webViewActivity2.j9 && !webViewActivity2.Ea) {
|
|
webViewActivity2.Ea = true;
|
|
webViewActivity2.v7();
|
|
}
|
|
webViewActivity2.H3();
|
|
} else {
|
|
webViewActivity2.C2();
|
|
}
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.12
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebViewActivity.d1(webViewActivity3);
|
|
if (!PrefWeb.u && (i2 = Build.VERSION.SDK_INT) >= 30) {
|
|
Window window2 = webViewActivity3.getWindow();
|
|
View a02 = webViewActivity3.a0();
|
|
WindowInsetsControllerCompat c0 = webViewActivity3.c0();
|
|
boolean z3 = webViewActivity3.L3;
|
|
if (i2 >= 30 && window2 != null && (c0 != null || (c0 = MainUtil.r4(window2, a02)) != null)) {
|
|
if (z3) {
|
|
c0.g(2);
|
|
} else {
|
|
c0.a(2);
|
|
}
|
|
}
|
|
}
|
|
if (!webViewActivity3.L3) {
|
|
webViewActivity3.q2(true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
if (!this.p9) {
|
|
this.p9 = true;
|
|
View a02 = a0();
|
|
if (a02 != null) {
|
|
ViewCompat.N(a02, new WindowInsetsAnimationCompat.Callback() { // from class: com.mycompany.app.web.WebViewActivity.13
|
|
@Override // androidx.core.view.WindowInsetsAnimationCompat.Callback
|
|
public final void a() {
|
|
Handler handler = WebViewActivity.this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.13.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.nc = false;
|
|
QuickSearch quickSearch = webViewActivity.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.setBusyMode(false);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsAnimationCompat.Callback
|
|
public final void b() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.nc = true;
|
|
QuickSearch quickSearch = webViewActivity.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.setBusyMode(true);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsAnimationCompat.Callback
|
|
public final WindowInsetsCompat c(WindowInsetsCompat windowInsetsCompat, List list) {
|
|
return windowInsetsCompat;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsAnimationCompat.Callback
|
|
public final WindowInsetsAnimationCompat.BoundsCompat d(WindowInsetsAnimationCompat.BoundsCompat boundsCompat) {
|
|
return boundsCompat;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
s5();
|
|
if (!this.r9) {
|
|
this.r9 = true;
|
|
boolean z2 = false;
|
|
if (PrefPath.m < i) {
|
|
PrefPath.m = i;
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (PrefPath.n) {
|
|
PrefPath.n = false;
|
|
if (TextUtils.isEmpty(PrefPath.o) && TextUtils.isEmpty(PrefPath.p) && TextUtils.isEmpty(PrefPath.q)) {
|
|
z2 = true;
|
|
} else {
|
|
PrefPath.o = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
PrefPath.p = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
PrefPath.q = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
PrefPath.u(this.i1);
|
|
if (!this.G1 && !J5()) {
|
|
Z3();
|
|
DialogConfirm dialogConfirm = new DialogConfirm(this, (String) null, (String) null, new DialogConfirm.DialogConfBtnListener() { // from class: com.mycompany.app.web.WebViewActivity.244
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfBtnListener
|
|
public final void a(boolean z3) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.Z3();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfBtnListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfBtnListener
|
|
public final void onCancel() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Z3();
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) SettingDown.class);
|
|
intent.putExtra("EXTRA_NOTI", true);
|
|
intent.putExtra("EXTRA_INDEX", 2);
|
|
webViewActivity.startActivity(intent);
|
|
}
|
|
});
|
|
this.h6 = dialogConfirm;
|
|
dialogConfirm.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.245
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.Z3();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
z2 = z;
|
|
}
|
|
if (z2) {
|
|
PrefPath.u(this.i1);
|
|
}
|
|
}
|
|
if (!this.s9) {
|
|
this.s9 = true;
|
|
ProviderInstaller.b(this.i1, new Object());
|
|
}
|
|
if (this.u9 == null) {
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.17
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.G1 || webViewActivity.u9 != null) {
|
|
return;
|
|
}
|
|
webViewActivity.u9 = new PayHelper(webViewActivity.getApplicationContext(), false, new PayHelper.PayListener() { // from class: com.mycompany.app.web.WebViewActivity.17.1
|
|
@Override // com.mycompany.app.help.PayHelper.PayListener
|
|
public final void a() {
|
|
Handler handler;
|
|
PayHelper payHelper;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (!webViewActivity2.G1 && (handler = webViewActivity2.O0) != null && (payHelper = webViewActivity2.u9) != null) {
|
|
payHelper.c(handler);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r7v4, types: [java.lang.Object, com.google.android.ump.ConsentRequestParameters] */
|
|
@Override // com.mycompany.app.help.PayHelper.PayListener
|
|
public final boolean b(int i2) {
|
|
boolean z3;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (i2 == 1) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
int i3 = WebViewActivity.Fo;
|
|
if (webViewActivity2.u9 != null) {
|
|
webViewActivity2.m0(new AnonymousClass18());
|
|
}
|
|
if (z3) {
|
|
if (webViewActivity2.B1 == null) {
|
|
try {
|
|
?? obj = new Object();
|
|
zzj b = zza.a(webViewActivity2).b();
|
|
webViewActivity2.B1 = b;
|
|
b.b(webViewActivity2, obj, new ConsentInformation.OnConsentInfoUpdateSuccessListener() { // from class: com.mycompany.app.web.WebViewActivity.54
|
|
@Override // com.google.android.ump.ConsentInformation.OnConsentInfoUpdateSuccessListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
zzj zzjVar = webViewActivity3.B1;
|
|
if (zzjVar == null) {
|
|
return;
|
|
}
|
|
if (zzjVar.a()) {
|
|
webViewActivity3.l6(true);
|
|
} else if (webViewActivity3.B1.f10027c.f9955c.get() != null) {
|
|
webViewActivity3.C1 = true;
|
|
WebViewActivity.t1(webViewActivity3);
|
|
} else {
|
|
webViewActivity3.l6(false);
|
|
}
|
|
}
|
|
}, new ConsentInformation.OnConsentInfoUpdateFailureListener() { // from class: com.mycompany.app.web.WebViewActivity.55
|
|
@Override // com.google.android.ump.ConsentInformation.OnConsentInfoUpdateFailureListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
zzj zzjVar = webViewActivity3.B1;
|
|
if (zzjVar == null) {
|
|
return;
|
|
}
|
|
webViewActivity3.l6(zzjVar.a());
|
|
}
|
|
});
|
|
zzj zzjVar = webViewActivity2.B1;
|
|
if (zzjVar != null && zzjVar.a()) {
|
|
webViewActivity2.l6(true);
|
|
}
|
|
} catch (Exception unused) {
|
|
webViewActivity2.l6(false);
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
webViewActivity2.l6(false);
|
|
return false;
|
|
}
|
|
|
|
@Override // com.mycompany.app.help.PayHelper.PayListener
|
|
public final void d() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.help.PayHelper.PayListener
|
|
public final void c(HashMap hashMap) {
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
if (this.Ca == null) {
|
|
this.Ca = new GestureDetector(this, new GestureDetector.SimpleOnGestureListener() { // from class: com.mycompany.app.web.WebViewActivity.654
|
|
public final int a() {
|
|
int i2 = WebViewActivity.this.ha;
|
|
if (i2 == 1) {
|
|
return PrefZtwo.t;
|
|
}
|
|
if (i2 == 2) {
|
|
return PrefZtwo.u;
|
|
}
|
|
if (i2 == 3) {
|
|
return PrefZtwo.v;
|
|
}
|
|
if (i2 == 4) {
|
|
return PrefZtwo.w;
|
|
}
|
|
return PrefZtwo.x;
|
|
}
|
|
|
|
public final int b() {
|
|
int a2 = a();
|
|
if (a2 == 200) {
|
|
return 10;
|
|
}
|
|
if (a2 < 100) {
|
|
float f = 10;
|
|
return Math.round(((2.1f - (a2 / 100.0f)) * (f / 2.0f) * (200 - a2)) + f);
|
|
}
|
|
float f2 = 10;
|
|
return Math.round(((f2 / 2.0f) * (HttpStatusCodes.STATUS_CODE_OK - a2)) + f2);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:136:0x01c3, code lost:
|
|
|
|
r1 = true;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:165:0x021c, code lost:
|
|
|
|
r1 = true;
|
|
*/
|
|
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean onFling(android.view.MotionEvent r14, android.view.MotionEvent r15, float r16, float r17) {
|
|
/*
|
|
Method dump skipped, instructions count: 804
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass654.onFling(android.view.MotionEvent, android.view.MotionEvent, float, float):boolean");
|
|
}
|
|
});
|
|
}
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass26());
|
|
}
|
|
}
|
|
|
|
public final boolean e6(final int i, final String str) {
|
|
if (i == 0) {
|
|
if (!F5()) {
|
|
return false;
|
|
}
|
|
T8("file:///android_asset/shortcut.html", false, true);
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.W(this.U1);
|
|
return true;
|
|
}
|
|
} else {
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.279
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String substring;
|
|
int i2;
|
|
int indexOf;
|
|
int i3;
|
|
final WebViewActivity webViewActivity = this;
|
|
if (webViewActivity.I2 != null) {
|
|
if (webViewActivity.F5()) {
|
|
webViewActivity.T8("file:///android_asset/shortcut.html", false, true);
|
|
webViewActivity.I2.W(webViewActivity.U1);
|
|
return;
|
|
}
|
|
int i4 = i;
|
|
final String str2 = str;
|
|
String str3 = null;
|
|
if (i4 == 2) {
|
|
webViewActivity.P4();
|
|
webViewActivity.I2.z(str2, null);
|
|
return;
|
|
}
|
|
if (i4 == 3) {
|
|
webViewActivity.Q1(str2, webViewActivity.A8, false);
|
|
return;
|
|
}
|
|
if (i4 == 4) {
|
|
webViewActivity.F1(null, str2, true, null);
|
|
return;
|
|
}
|
|
if (i4 == 6) {
|
|
webViewActivity.P4();
|
|
webViewActivity.l9(str2, null, "application/pdf", 0L, 2, null);
|
|
return;
|
|
}
|
|
if (i4 == 7) {
|
|
webViewActivity.P4();
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
if (str2.startsWith("abp:subscribe")) {
|
|
int indexOf2 = str2.indexOf("http");
|
|
if (indexOf2 > 0 && indexOf2 < str2.length() && (indexOf = str2.indexOf(".txt", indexOf2)) > indexOf2 && (i3 = indexOf + 4) <= str2.length()) {
|
|
str3 = str2.substring(indexOf2, i3);
|
|
}
|
|
} else if (str2.startsWith("https://subscribe.adblockplus.org/?location=http")) {
|
|
int indexOf3 = str2.indexOf(".txt", 44);
|
|
if (indexOf3 > 44 && (i2 = indexOf3 + 4) <= str2.length()) {
|
|
substring = str2.substring(44, i2);
|
|
} else {
|
|
int indexOf4 = str2.indexOf("&title=", 44);
|
|
if (indexOf4 > 44 && indexOf4 <= str2.length()) {
|
|
substring = str2.substring(44, indexOf4);
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(substring)) {
|
|
try {
|
|
str3 = URLDecoder.decode(substring, "UTF-8");
|
|
} catch (Exception unused) {
|
|
str3 = substring;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
MainUtil.s(R.string.copied_clipboard, webViewActivity, "Copied URL", str3);
|
|
return;
|
|
}
|
|
if (i4 == 8) {
|
|
webViewActivity.P4();
|
|
webViewActivity.ea(1, true);
|
|
return;
|
|
}
|
|
if (i4 == 9) {
|
|
WebNestView webNestView2 = webViewActivity.I2;
|
|
webNestView2.O1 = str2;
|
|
webNestView2.J(new WebNestView.AnonymousClass19());
|
|
return;
|
|
}
|
|
if (i4 == 11) {
|
|
webViewActivity.P4();
|
|
if (webViewActivity.y5()) {
|
|
webViewActivity.K6(new PrevPageListener() { // from class: com.mycompany.app.web.WebViewActivity.280
|
|
@Override // com.mycompany.app.web.WebViewActivity.PrevPageListener
|
|
public final void a() {
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity.this.M9(str2, null);
|
|
}
|
|
});
|
|
return;
|
|
} else {
|
|
webViewActivity.M9(str2, null);
|
|
return;
|
|
}
|
|
}
|
|
if (i4 == 13) {
|
|
webViewActivity.P4();
|
|
if (webViewActivity.y5()) {
|
|
webViewActivity.bj = str2;
|
|
}
|
|
webViewActivity.d9(str2, str2);
|
|
return;
|
|
}
|
|
if (i4 == 14) {
|
|
webViewActivity.P4();
|
|
if (webViewActivity.y5()) {
|
|
webViewActivity.bj = str2;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity.P4();
|
|
}
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void e7(boolean z) {
|
|
AppBarLayout.LayoutParams layoutParams;
|
|
int i;
|
|
View view = this.h2;
|
|
if (view != null && (layoutParams = (AppBarLayout.LayoutParams) view.getLayoutParams()) != null) {
|
|
if (z) {
|
|
i = 0;
|
|
} else {
|
|
i = 21;
|
|
}
|
|
if (layoutParams.f11644a != i) {
|
|
layoutParams.f11644a = i;
|
|
if (!z) {
|
|
this.h2.requestLayout();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void e8() {
|
|
MyWebBody myWebBody;
|
|
if (this.g2 != null) {
|
|
A8();
|
|
int t3 = t3();
|
|
W8(t3, u3());
|
|
if (MainUtil.U4() && this.ec != this.U1) {
|
|
o8(t3, b3());
|
|
}
|
|
if (this.I2 == null || (myWebBody = this.e2) == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.458
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
WebNestFrame webNestFrame;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.U1 && PrefZtwo.E && (webNestFrame = webViewActivity.H2) != null) {
|
|
webNestFrame.o();
|
|
}
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.W(webViewActivity.U1);
|
|
}
|
|
if (webViewActivity.U1 && !PrefZtwo.y) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
webViewActivity.L9(z);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void e9(boolean z) {
|
|
if (!this.G1 && this.k7 == null && this.e2 != null && this.R5 == null && !this.Xl) {
|
|
this.Xl = true;
|
|
this.l7 = z;
|
|
this.m7 = false;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.445
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.k7 == null && webViewActivity.e2 != null && webViewActivity.R5 == null) {
|
|
try {
|
|
WebAreaView webAreaView = new WebAreaView(webViewActivity);
|
|
webViewActivity.k7 = webAreaView;
|
|
webAreaView.setVisibility(4);
|
|
webViewActivity.k7.setFltListener(new WebAreaView.WebAreaListener() { // from class: com.mycompany.app.web.WebViewActivity.446
|
|
@Override // com.mycompany.app.wview.WebAreaView.WebAreaListener
|
|
public final void a() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.I3(true);
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebAreaView.WebAreaListener
|
|
public final void b() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.k7 == null || (webNestView = webViewActivity2.I2) == null) {
|
|
return;
|
|
}
|
|
webNestView.evaluateJavascript("(function(){if(!window.sbcmd)return null;var cmd=window.sbcmd;var eles=window.sbattr;if(eles){eles.forEach((ele)=>{if(!ele)ele='null';cmd+='!@!'+ele;});}return cmd;})();", new ValueCallback<String>() { // from class: com.mycompany.app.web.WebViewActivity.452
|
|
@Override // android.webkit.ValueCallback
|
|
public final void onReceiveValue(String str) {
|
|
String str2 = str;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.k7 != null) {
|
|
webViewActivity3.Zl = str2;
|
|
MyWebCoord myWebCoord2 = webViewActivity3.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.452.1
|
|
/* JADX WARN: Removed duplicated region for block: B:12:0x0045 */
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x004b */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r8 = this;
|
|
com.mycompany.app.web.WebViewActivity$452 r0 = com.mycompany.app.web.WebViewActivity.AnonymousClass452.this
|
|
com.mycompany.app.web.WebViewActivity r2 = com.mycompany.app.web.WebViewActivity.this
|
|
java.lang.String r0 = r2.Zl
|
|
r1 = 0
|
|
r2.Zl = r1
|
|
boolean r3 = r2.G1
|
|
if (r3 == 0) goto Le
|
|
goto L14
|
|
Le:
|
|
boolean r3 = r2.J5()
|
|
if (r3 == 0) goto L15
|
|
L14:
|
|
return
|
|
L15:
|
|
boolean r3 = android.text.TextUtils.isEmpty(r0)
|
|
if (r3 == 0) goto L1d
|
|
L1b:
|
|
r5 = r1
|
|
goto L3f
|
|
L1d:
|
|
java.lang.String r0 = com.mycompany.app.main.MainUtil.X6(r0)
|
|
java.lang.String r0 = com.mycompany.app.main.MainUtil.k8(r0)
|
|
boolean r3 = android.text.TextUtils.isEmpty(r0)
|
|
if (r3 == 0) goto L2c
|
|
goto L1b
|
|
L2c:
|
|
java.lang.String r3 = "null"
|
|
boolean r3 = r3.equals(r0)
|
|
if (r3 == 0) goto L35
|
|
goto L1b
|
|
L35:
|
|
java.lang.String r3 = "undefined"
|
|
boolean r3 = r3.equals(r0)
|
|
if (r3 == 0) goto L3e
|
|
goto L1b
|
|
L3e:
|
|
r5 = r0
|
|
L3f:
|
|
boolean r0 = android.text.TextUtils.isEmpty(r5)
|
|
if (r0 == 0) goto L4b
|
|
int r0 = com.mycompany.app.soulbrowser.R.string.backup_target
|
|
com.mycompany.app.main.MainUtil.e8(r2, r0)
|
|
return
|
|
L4b:
|
|
com.mycompany.app.dialog.DialogEditArea r0 = r2.s7
|
|
if (r0 == 0) goto L54
|
|
r0.dismiss()
|
|
r2.s7 = r1
|
|
L54:
|
|
int r0 = r2.H6
|
|
r1 = 3
|
|
if (r0 != r1) goto L60
|
|
boolean r0 = r2.L6
|
|
if (r0 == 0) goto L60
|
|
r0 = 1
|
|
L5e:
|
|
r6 = r0
|
|
goto L62
|
|
L60:
|
|
r0 = 0
|
|
goto L5e
|
|
L62:
|
|
com.mycompany.app.dialog.DialogEditArea r1 = new com.mycompany.app.dialog.DialogEditArea
|
|
java.lang.String r3 = r2.A8
|
|
java.lang.String r4 = r2.B8
|
|
com.mycompany.app.web.WebViewActivity$456 r7 = new com.mycompany.app.web.WebViewActivity$456
|
|
r7.<init>()
|
|
r1.<init>(r2, r3, r4, r5, r6, r7)
|
|
r2.s7 = r1
|
|
com.mycompany.app.web.WebViewActivity$457 r0 = new com.mycompany.app.web.WebViewActivity$457
|
|
r0.<init>()
|
|
r1.setOnDismissListener(r0)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass452.AnonymousClass1.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebAreaView.WebAreaListener
|
|
public final void c() {
|
|
String str;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.k7 != null) {
|
|
if (TextUtils.isEmpty(webViewActivity2.o7)) {
|
|
String B2 = MainUtil.B2(0);
|
|
webViewActivity2.o7 = B2;
|
|
if (TextUtils.isEmpty(B2)) {
|
|
return;
|
|
}
|
|
}
|
|
if (TextUtils.isEmpty(webViewActivity2.p7)) {
|
|
String B22 = MainUtil.B2(1);
|
|
webViewActivity2.p7 = B22;
|
|
if (TextUtils.isEmpty(B22)) {
|
|
return;
|
|
}
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(webViewActivity2.o7);
|
|
if (PrefRead.O) {
|
|
str = "true;";
|
|
} else {
|
|
str = "false;";
|
|
}
|
|
sb.append(str);
|
|
sb.append(webViewActivity2.p7);
|
|
MainUtil.I(webViewActivity2.I2, sb.toString(), true);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebAreaView.WebAreaListener
|
|
public final void d() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.G1 || webViewActivity2.J5()) {
|
|
return;
|
|
}
|
|
webViewActivity2.V3();
|
|
DialogGuideArea dialogGuideArea = new DialogGuideArea(webViewActivity2, 0, new DialogGuideArea.DialogAreaListener() { // from class: com.mycompany.app.web.WebViewActivity.453
|
|
@Override // com.mycompany.app.dialog.DialogGuideArea.DialogAreaListener
|
|
public final void b() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.V3();
|
|
String j3 = WebViewActivity.j3(webViewActivity3.s3(false));
|
|
Intent intent = new Intent(webViewActivity3.i1, (Class<?>) SettingClean.class);
|
|
intent.putExtra("EXTRA_NOTI", true);
|
|
intent.putExtra("EXTRA_INDEX", 3);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
webViewActivity3.t0(intent, 32);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogGuideArea.DialogAreaListener
|
|
public final void c() {
|
|
DialogGuideArea dialogGuideArea2;
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.G1 || (dialogGuideArea2 = webViewActivity3.r7) != null) {
|
|
return;
|
|
}
|
|
if (dialogGuideArea2 != null) {
|
|
dialogGuideArea2.dismiss();
|
|
webViewActivity3.r7 = null;
|
|
}
|
|
DialogGuideArea dialogGuideArea3 = new DialogGuideArea(webViewActivity3, 1, null);
|
|
webViewActivity3.r7 = dialogGuideArea3;
|
|
dialogGuideArea3.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.455
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
DialogGuideArea dialogGuideArea4 = webViewActivity4.r7;
|
|
if (dialogGuideArea4 != null) {
|
|
dialogGuideArea4.dismiss();
|
|
webViewActivity4.r7 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity2.q7 = dialogGuideArea;
|
|
dialogGuideArea.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.454
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.V3();
|
|
}
|
|
});
|
|
webViewActivity2.q7.d0 = true;
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebAreaView webAreaView2 = webViewActivity.k7;
|
|
myWebBody.addView(webAreaView2, webAreaView2.getViewWidth(), webViewActivity.k7.getViewHeight());
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.447
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
int i2;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebAreaView webAreaView3 = webViewActivity2.k7;
|
|
if (webAreaView3 != null) {
|
|
if (webViewActivity2.l7) {
|
|
i = (int) webViewActivity2.V9;
|
|
i2 = (int) webViewActivity2.W9;
|
|
} else {
|
|
i = -1234;
|
|
i2 = -1234;
|
|
}
|
|
webAreaView3.e(webViewActivity2.e2, i, i2);
|
|
webViewActivity2.k7.setVisibility(0);
|
|
}
|
|
webViewActivity2.Yl = false;
|
|
if (webViewActivity2.k7 != null) {
|
|
webViewActivity2.Yl = true;
|
|
webViewActivity2.m0(new AnonymousClass449());
|
|
}
|
|
webViewActivity2.Xl = false;
|
|
}
|
|
});
|
|
return;
|
|
} catch (Exception unused) {
|
|
webViewActivity.Xl = false;
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.Xl = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void ea(int i, boolean z) {
|
|
WebNestView webNestView;
|
|
if ((PrefWeb.o || PrefWeb.q != 0) && (webNestView = this.I2) != null) {
|
|
if (z) {
|
|
webNestView.t0 += i;
|
|
} else {
|
|
webNestView.s0 += i;
|
|
}
|
|
int i2 = webNestView.s0 + webNestView.t0;
|
|
DialogMenuMain dialogMenuMain = this.F7;
|
|
if (dialogMenuMain != null) {
|
|
dialogMenuMain.D(i2);
|
|
return;
|
|
}
|
|
DialogMenuList dialogMenuList = this.G7;
|
|
if (dialogMenuList != null) {
|
|
dialogMenuList.f(i2);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void f2() {
|
|
MyEditAuto myEditAuto;
|
|
SearchTask searchTask = this.E2;
|
|
if (searchTask != null) {
|
|
searchTask.f12839c = true;
|
|
}
|
|
this.E2 = null;
|
|
WebSearchAdapter webSearchAdapter = this.D2;
|
|
if (webSearchAdapter != null) {
|
|
webSearchAdapter.x = webSearchAdapter.d();
|
|
webSearchAdapter.B(false);
|
|
MainListLoader mainListLoader = webSearchAdapter.n;
|
|
if (mainListLoader != null) {
|
|
mainListLoader.f();
|
|
webSearchAdapter.n = null;
|
|
}
|
|
webSearchAdapter.e = null;
|
|
webSearchAdapter.g = null;
|
|
webSearchAdapter.h = null;
|
|
webSearchAdapter.i = null;
|
|
webSearchAdapter.k = null;
|
|
webSearchAdapter.l = null;
|
|
MainUtil.R6(webSearchAdapter.t);
|
|
webSearchAdapter.t = null;
|
|
webSearchAdapter.u = null;
|
|
webSearchAdapter.v = null;
|
|
webSearchAdapter.w = null;
|
|
this.D2 = null;
|
|
}
|
|
if (PrefZtwo.B && (myEditAuto = this.x2) != null) {
|
|
myEditAuto.e();
|
|
}
|
|
}
|
|
|
|
public final float f3() {
|
|
WebNestView webNestView = this.m3;
|
|
if (webNestView != null) {
|
|
return webNestView.getPageX();
|
|
}
|
|
WebNestFrame webNestFrame = this.n3;
|
|
if (webNestFrame != null) {
|
|
return webNestFrame.getFakeX();
|
|
}
|
|
return 0.0f;
|
|
}
|
|
|
|
public final void f4() {
|
|
DialogNewsLocale dialogNewsLocale = this.e6;
|
|
if (dialogNewsLocale != null) {
|
|
dialogNewsLocale.dismiss();
|
|
this.e6 = null;
|
|
}
|
|
}
|
|
|
|
public final void f5() {
|
|
MyTouchFrame myTouchFrame = this.X2;
|
|
if (myTouchFrame != null) {
|
|
myTouchFrame.f19040c = false;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
myBarView.A = false;
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
myBarView2.A = false;
|
|
}
|
|
}
|
|
|
|
public final void f6(String str, int i, int i2, String str2, boolean z, String str3) {
|
|
boolean z2 = true;
|
|
switch (i) {
|
|
case 1:
|
|
if (z) {
|
|
u9(str, str3, true);
|
|
return;
|
|
}
|
|
if (!TextUtils.isEmpty(str) && str.startsWith("blob:")) {
|
|
u9(str, "blob:", true);
|
|
return;
|
|
}
|
|
if (this.G1 || this.a8 != null) {
|
|
return;
|
|
}
|
|
l4();
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
return;
|
|
}
|
|
this.ln = str2;
|
|
DialogPreImage dialogPreImage = new DialogPreImage(this, str, this.A8, new DialogPreview.PreviewListener() { // from class: com.mycompany.app.web.WebViewActivity.555
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void a(String str4) {
|
|
MainUtil.s(R.string.copied_clipboard, WebViewActivity.this, "Copied URL", str4);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void b(String str4, long j, boolean z3) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.l4();
|
|
webViewActivity.G4();
|
|
webViewActivity.B3(str4, null, false);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void c(String str4, String str5) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str6 = webViewActivity.ln;
|
|
webViewActivity.l4();
|
|
webViewActivity.G4();
|
|
webViewActivity.c9(str4, str6, str5);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void d(String str4) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str5 = webViewActivity.ln;
|
|
webViewActivity.l4();
|
|
webViewActivity.G4();
|
|
webViewActivity.m8(str4, str5);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void e(String str4, String str5) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.l4();
|
|
DialogUrlLink dialogUrlLink = webViewActivity.m6;
|
|
if (dialogUrlLink != null) {
|
|
dialogUrlLink.G(true);
|
|
}
|
|
}
|
|
});
|
|
this.a8 = dialogPreImage;
|
|
dialogPreImage.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.556
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.l4();
|
|
}
|
|
});
|
|
return;
|
|
case 2:
|
|
G4();
|
|
if (z) {
|
|
D3(str, str, false);
|
|
return;
|
|
} else {
|
|
B3(str, null, false);
|
|
return;
|
|
}
|
|
case 3:
|
|
G4();
|
|
F1(null, str, true, null);
|
|
return;
|
|
case 4:
|
|
G4();
|
|
if (z) {
|
|
l9(str, null, str3, 0L, 5, null);
|
|
return;
|
|
} else {
|
|
l9(str, null, str3, 0L, 4, null);
|
|
return;
|
|
}
|
|
case 5:
|
|
if (this.U1) {
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
G4();
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
z3(webNestView.getUrl(), false);
|
|
return;
|
|
}
|
|
return;
|
|
case 6:
|
|
G4();
|
|
String H2 = MainUtil.H2(i2, str);
|
|
if (TextUtils.isEmpty(H2)) {
|
|
MainUtil.e8(this, R.string.fail);
|
|
return;
|
|
} else {
|
|
F1(null, H2, true, null);
|
|
return;
|
|
}
|
|
case 7:
|
|
G4();
|
|
MainUtil.s(R.string.copied_clipboard, this, "Copied URL", str);
|
|
return;
|
|
case 8:
|
|
G4();
|
|
m8(str, str2);
|
|
return;
|
|
case 9:
|
|
default:
|
|
return;
|
|
case 10:
|
|
G4();
|
|
if (i2 != 0) {
|
|
z2 = false;
|
|
}
|
|
String j3 = j3(str);
|
|
if (z2) {
|
|
Intent intent = new Intent(this.i1, (Class<?>) MainImageQuick.class);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
intent.putExtra("EXTRA_REFERER", this.A8);
|
|
t0(intent, 12);
|
|
return;
|
|
}
|
|
Intent intent2 = new Intent(this.i1, (Class<?>) MainImageWallpaper.class);
|
|
intent2.putExtra("EXTRA_PATH", j3);
|
|
intent2.putExtra("EXTRA_REFERER", this.A8);
|
|
startActivity(intent2);
|
|
return;
|
|
case 11:
|
|
if (this.U1) {
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
G4();
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
DialogBlockImage dialogBlockImage = this.g7;
|
|
if (dialogBlockImage != null) {
|
|
dialogBlockImage.dismiss();
|
|
this.g7 = null;
|
|
}
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
return;
|
|
}
|
|
DialogBlockImage dialogBlockImage2 = new DialogBlockImage(this, this.A8, str, new DialogSetAdblock.DialogAdsListener() { // from class: com.mycompany.app.web.WebViewActivity.436
|
|
@Override // com.mycompany.app.dialog.DialogSetAdblock.DialogAdsListener
|
|
public final void a(boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, String str4) {
|
|
boolean isEmpty = TextUtils.isEmpty(str4);
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!isEmpty) {
|
|
webViewActivity.Ml = str4;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.436.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str5 = webViewActivity2.Ml;
|
|
webViewActivity2.Ml = null;
|
|
WebClean.z0(webViewActivity2.I2, str5);
|
|
}
|
|
});
|
|
}
|
|
WebViewActivity.T0(webViewActivity, z4, z5, z6, z7);
|
|
}
|
|
});
|
|
this.g7 = dialogBlockImage2;
|
|
dialogBlockImage2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.437
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogBlockImage dialogBlockImage3 = webViewActivity.g7;
|
|
if (dialogBlockImage3 != null) {
|
|
dialogBlockImage3.dismiss();
|
|
webViewActivity.g7 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
case 12:
|
|
if (this.U1) {
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
} else {
|
|
G4();
|
|
e9(true);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void f7() {
|
|
ViewGroup.LayoutParams layoutParams;
|
|
AppBarLayout appBarLayout = this.g2;
|
|
if (appBarLayout != null && (layoutParams = appBarLayout.getLayoutParams()) != null) {
|
|
int max = Math.max(MainUtil.H3(), MainUtil.j0());
|
|
if (max == 0) {
|
|
max = MainApp.Y0;
|
|
} else if (PrefWeb.v) {
|
|
max += MainApp.Y0;
|
|
}
|
|
if (layoutParams.height != max) {
|
|
layoutParams.height = max;
|
|
this.g2.requestLayout();
|
|
}
|
|
WebNestLayout webNestLayout = this.i2;
|
|
if (webNestLayout == null) {
|
|
return;
|
|
}
|
|
if (PrefWeb.v) {
|
|
webNestLayout.setTranslationY(0.0f);
|
|
} else {
|
|
webNestLayout.setTranslationY(MainUtil.H3());
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void f8() {
|
|
WebNestView webNestView;
|
|
QuickView quickView;
|
|
Handler handler;
|
|
Handler handler2;
|
|
final WebNestView webNestView2 = this.I2;
|
|
if (webNestView2 != null && MainUtil.U4() && ((webNestView2.G0 || webNestView2.n1) && webNestView2.getHeight() - PrefMain.u <= webNestView2.getWidth() && (handler2 = webNestView2.f) != null)) {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebNestView.35
|
|
public AnonymousClass35() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView3 = WebNestView.this;
|
|
if (!webNestView3.G0 && !webNestView3.n1) {
|
|
return;
|
|
}
|
|
webNestView3.G0 = false;
|
|
webNestView3.n1 = false;
|
|
webNestView3.E();
|
|
webNestView3.invalidate();
|
|
}
|
|
});
|
|
}
|
|
final WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null && MainUtil.U4() && webNestFrame.I && webNestFrame.getHeight() - PrefMain.u <= webNestFrame.getWidth() && (handler = webNestFrame.f) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebNestFrame.32
|
|
public AnonymousClass32() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame webNestFrame2 = WebNestFrame.this;
|
|
if (!webNestFrame2.I) {
|
|
return;
|
|
}
|
|
webNestFrame2.I = false;
|
|
webNestFrame2.G();
|
|
webNestFrame2.invalidate();
|
|
}
|
|
});
|
|
}
|
|
if (this.U1 && (webNestView = this.I2) != null && (quickView = webNestView.Z0) != null) {
|
|
quickView.B = false;
|
|
if (quickView.C) {
|
|
quickView.C = false;
|
|
quickView.v(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void f9(boolean z) {
|
|
MyIconView myIconView = this.R3;
|
|
if (myIconView != null) {
|
|
if (z && PrefZone.n == 1) {
|
|
myIconView.setVisibility(0);
|
|
} else {
|
|
myIconView.setVisibility(8);
|
|
}
|
|
}
|
|
MyIconView myIconView2 = this.S3;
|
|
if (myIconView2 != null) {
|
|
if (z && PrefZone.n == 2) {
|
|
myIconView2.setVisibility(0);
|
|
} else {
|
|
myIconView2.setVisibility(8);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void fa(String str, String str2, Bitmap bitmap, boolean z, boolean z2) {
|
|
this.Qi = str;
|
|
this.Ri = str2;
|
|
this.Si = bitmap;
|
|
this.Ti = z;
|
|
this.Ui = z2;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.266
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x008e */
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x0105 */
|
|
/* JADX WARN: Removed duplicated region for block: B:47:? A[RETURN, SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 274
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass266.run():void");
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void finish() {
|
|
int i;
|
|
int i2;
|
|
if (!this.g1) {
|
|
this.g1 = true;
|
|
this.Do = false;
|
|
if (PrefWeb.I) {
|
|
String P0 = SettingPrivacy.P0(this);
|
|
if (!TextUtils.isEmpty(P0)) {
|
|
int i3 = PrefWeb.s;
|
|
if (i3 == 126) {
|
|
i2 = R.string.exit_noti_2;
|
|
} else {
|
|
int i4 = R.string.exit_noti_1;
|
|
if ((i3 & 4) == 4) {
|
|
i = R.string.exit_noti_2;
|
|
} else {
|
|
i = i4;
|
|
}
|
|
if ((i3 & 8) != 8 && (i3 & 16) != 16) {
|
|
i4 = i;
|
|
}
|
|
if ((i3 & 32) != 32 && (i3 & 64) != 64) {
|
|
i2 = i4;
|
|
} else {
|
|
i2 = R.string.exit_noti_2;
|
|
}
|
|
}
|
|
MainUtil.f8(this, String.format(Locale.US, getString(i2), P0));
|
|
}
|
|
}
|
|
MainFilterSvc mainFilterSvc = this.Tb;
|
|
if (mainFilterSvc != null) {
|
|
mainFilterSvc.d();
|
|
this.Tb = null;
|
|
}
|
|
MainScriptSvc mainScriptSvc = this.Ub;
|
|
if (mainScriptSvc != null) {
|
|
mainScriptSvc.d();
|
|
this.Ub = null;
|
|
}
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.664
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i5 = PrefWeb.s & 4;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i5 == 4) {
|
|
MainUtil.k(webViewActivity.i1);
|
|
} else {
|
|
int i6 = WebViewActivity.Fo;
|
|
}
|
|
int i7 = PrefWeb.s;
|
|
if ((i7 & 8) != 8) {
|
|
if ((i7 & 16) != 16) {
|
|
Handler handler2 = webViewActivity.O0;
|
|
if (handler2 != null) {
|
|
handler2.post(new AnonymousClass667());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
Handler handler3 = webViewActivity.O0;
|
|
if (handler3 == null) {
|
|
return;
|
|
}
|
|
handler3.post(new AnonymousClass666());
|
|
return;
|
|
}
|
|
MainUtil.B(webViewActivity.O0, new AnonymousClass665());
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void g2(Window window, int i, int i2) {
|
|
boolean z = MainConst.d;
|
|
if (z) {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
if (this.c9 == 1234) {
|
|
this.c9 = myWebBody.getTopColor();
|
|
}
|
|
if (this.d9 == 1234) {
|
|
this.d9 = this.e2.getBotColor();
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
} else if (window != null) {
|
|
if (this.c9 == 1234) {
|
|
this.c9 = MainUtil.x3(window);
|
|
}
|
|
if (this.d9 == 1234) {
|
|
this.d9 = MainUtil.O2(window);
|
|
}
|
|
} else {
|
|
return;
|
|
}
|
|
if (this.c9 != i) {
|
|
this.c9 = i;
|
|
if (z) {
|
|
this.e2.setTopColor(i);
|
|
} else {
|
|
MainUtil.D7(window, i);
|
|
}
|
|
}
|
|
if (this.d9 != i2) {
|
|
this.d9 = i2;
|
|
if (z) {
|
|
this.e2.setBotColor(i2);
|
|
} else {
|
|
MainUtil.t7(window, i2);
|
|
}
|
|
}
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead != null) {
|
|
int i3 = this.c9;
|
|
int i4 = this.d9;
|
|
int i5 = this.e9;
|
|
dialogViewRead.m1 = i3;
|
|
dialogViewRead.n1 = i4;
|
|
dialogViewRead.o1 = i5;
|
|
dialogViewRead.p1 = i3;
|
|
dialogViewRead.q1 = i4;
|
|
dialogViewRead.r1 = i5;
|
|
}
|
|
}
|
|
|
|
public final WebTabAdapter.WebTabItem g3(int i) {
|
|
try {
|
|
List list = this.O2;
|
|
if (list != null && list.size() >= 2 && i > 0 && i < this.O2.size()) {
|
|
return (WebTabAdapter.WebTabItem) this.O2.get(i);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final void g4() {
|
|
DialogNewsMenu dialogNewsMenu = this.c6;
|
|
if (dialogNewsMenu != null) {
|
|
if (!this.d6) {
|
|
this.d6 = dialogNewsMenu.b();
|
|
}
|
|
this.c6 = null;
|
|
}
|
|
WebFltView webFltView = this.lb;
|
|
if (webFltView == null || this.bm != null) {
|
|
return;
|
|
}
|
|
webFltView.setHideBlocked(false);
|
|
}
|
|
|
|
public final void g5() {
|
|
Handler handler;
|
|
if (this.s2 != null && !this.y2) {
|
|
this.y2 = true;
|
|
this.t2.v(false, true);
|
|
this.u2.v(false, true);
|
|
this.v2.v(false, true);
|
|
this.w2.v(false, true);
|
|
this.s2.a(MainUtil.a2(PrefMain.H));
|
|
this.s2.setListener(new MyBarView.BarListener() { // from class: com.mycompany.app.web.WebViewActivity.76
|
|
@Override // com.mycompany.app.view.MyBarView.BarListener
|
|
public final void a(int i, View view, boolean z) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i != 0) {
|
|
if (i != 1) {
|
|
int i2 = WebViewActivity.Fo;
|
|
if (i == 2 && !webViewActivity.Vj) {
|
|
webViewActivity.Vj = true;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new AnonymousClass356());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
if (!webViewActivity.Uj) {
|
|
webViewActivity.Uj = true;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new AnonymousClass352());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webViewActivity.H2 != null && !webViewActivity.G5() && !webViewActivity.J5() && webViewActivity.X5 == null) {
|
|
webViewActivity.S4();
|
|
if (view != null) {
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(0, "https://"));
|
|
arrayList.add(new MyPopupAdapter.PopMenuItem(1, "www."));
|
|
MyPopupMenu myPopupMenu = new MyPopupMenu(webViewActivity, webViewActivity.e2, view, arrayList, MainUtil.k5(webViewActivity.U1), new MyPopupMenu.MyPopupListener() { // from class: com.mycompany.app.web.WebViewActivity.312
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final void a() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.S4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyPopupMenu.MyPopupListener
|
|
public final boolean b(View view2, int i3) {
|
|
MyEditAuto myEditAuto = WebViewActivity.this.x2;
|
|
if (myEditAuto == null) {
|
|
return true;
|
|
}
|
|
if (i3 == 0) {
|
|
myEditAuto.i(8, "https://");
|
|
return true;
|
|
}
|
|
myEditAuto.i(4, "www.");
|
|
return true;
|
|
}
|
|
});
|
|
webViewActivity.X5 = myPopupMenu;
|
|
webViewActivity.Z0 = myPopupMenu;
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.313
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.X5 != null) {
|
|
WebViewActivity.f1(webViewActivity2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
this.t2.w();
|
|
this.t2.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.77
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
int i = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.J5() && webViewActivity.W5 == null) {
|
|
webViewActivity.L4();
|
|
if (view != null) {
|
|
MyEngineMenu myEngineMenu = new MyEngineMenu(webViewActivity, webViewActivity.e2, view, MainUtil.k5(webViewActivity.U1), new MyEngineMenu.MyEngineListener() { // from class: com.mycompany.app.web.WebViewActivity.310
|
|
@Override // com.mycompany.app.view.MyEngineMenu.MyEngineListener
|
|
public final void a() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.L4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyEngineMenu.MyEngineListener
|
|
public final void b(int i2, int i3, String str) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.t2 == null || PrefZtwo.j == i2) {
|
|
return;
|
|
}
|
|
PrefZtwo.j = i2;
|
|
PrefZtwo.k = str;
|
|
PrefZtwo.m = i3;
|
|
PrefZtwo.v(webViewActivity2.i1);
|
|
webViewActivity2.t2.w();
|
|
}
|
|
});
|
|
webViewActivity.W5 = myEngineMenu;
|
|
webViewActivity.Z0 = myEngineMenu;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.311
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.W5 != null) {
|
|
WebViewActivity.f1(webViewActivity2);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
this.u2.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.78
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.x2 == null || webViewActivity.J5()) {
|
|
return;
|
|
}
|
|
webViewActivity.x2.i(-1, null);
|
|
MainUtil.b7(webViewActivity.x2);
|
|
}
|
|
});
|
|
this.v2.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.79
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.x2 == null || webViewActivity.J5()) {
|
|
return;
|
|
}
|
|
final String autoText = webViewActivity.x2.getAutoText();
|
|
if (TextUtils.isEmpty(autoText)) {
|
|
MainUtil.e8(webViewActivity, R.string.empty);
|
|
} else {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.79.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = R.string.copied_clipboard;
|
|
String str = autoText;
|
|
MainUtil.v(i, webViewActivity2, "Copied URL", str);
|
|
QuickSearch quickSearch = webViewActivity2.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.setLoadClip(str);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
this.w2.setOnClickListener(new View.OnClickListener() { // from class: com.mycompany.app.web.WebViewActivity.80
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.f2 == null || webViewActivity.J5()) {
|
|
return;
|
|
}
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
webViewActivity.f2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.80.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.G1 || webViewActivity2.J5()) {
|
|
return;
|
|
}
|
|
webViewActivity2.r4();
|
|
DialogSetMsg dialogSetMsg = new DialogSetMsg(webViewActivity2, true, R.string.recent_delete, R.string.delete, 0, new AnonymousClass251());
|
|
webViewActivity2.F2 = dialogSetMsg;
|
|
dialogSetMsg.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.252
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.r4();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
this.x2.setInputType(17);
|
|
this.x2.setOldKeyListener(this.lc);
|
|
this.x2.setEditAutoListener(new MyEditAuto.EditAutoListener() { // from class: com.mycompany.app.web.WebViewActivity.81
|
|
@Override // com.mycompany.app.view.MyEditAuto.EditAutoListener
|
|
public final boolean a(String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MyEditAuto myEditAuto = webViewActivity.x2;
|
|
boolean z = false;
|
|
if (myEditAuto == null || !webViewActivity.j9) {
|
|
return false;
|
|
}
|
|
// Keep a keystroke-fresh copy for Find in page. Suggestion Filter
|
|
// rows and focus handoff can otherwise still see only an early prefix.
|
|
webViewActivity.findQueryCandidate = str;
|
|
if (PrefZtwo.B) {
|
|
z = myEditAuto.h(str);
|
|
}
|
|
webViewActivity.G7(TextUtils.isEmpty(str));
|
|
webViewActivity.R4();
|
|
return z;
|
|
}
|
|
});
|
|
this.x2.setOnEditorActionListener(new TextView.OnEditorActionListener() { // from class: com.mycompany.app.web.WebViewActivity.82
|
|
@Override // android.widget.TextView.OnEditorActionListener
|
|
public final boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
|
|
MyEditAuto myEditAuto = WebViewActivity.this.x2;
|
|
if (myEditAuto == null) {
|
|
return true;
|
|
}
|
|
myEditAuto.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.82.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MyEditAuto myEditAuto2 = webViewActivity.x2;
|
|
if (myEditAuto2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.a7(myEditAuto2.getAutoText());
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
});
|
|
F7();
|
|
if (this.U8 || (handler = this.O0) == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.83
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.V1) {
|
|
webViewActivity.H8(webViewActivity.q2, webViewActivity.r2, webViewActivity.b3());
|
|
}
|
|
if (webViewActivity.U1) {
|
|
webViewActivity.e8();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void g6(int i, String str, String str2) {
|
|
switch (i) {
|
|
case 1:
|
|
G4();
|
|
if (this.c7 != null) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
this.d7 = str;
|
|
this.c7.i0 = str;
|
|
if (this.c7.A0 != null) {
|
|
this.c7.A0.setText(str);
|
|
}
|
|
if (this.c7.F0 != null) {
|
|
this.c7.F0.setText(str);
|
|
}
|
|
if (this.c7.J0 != null) {
|
|
this.c7.P();
|
|
String normalized = MainUtil.q4(null, str);
|
|
if (!TextUtils.isEmpty(normalized)) {
|
|
this.c7.J0.z(normalized, null);
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
G9(str, 0, null, false);
|
|
return;
|
|
case 2:
|
|
G4();
|
|
S5(str, this.A8);
|
|
return;
|
|
case 3:
|
|
G4();
|
|
O1(null, str, true, null);
|
|
return;
|
|
case 4:
|
|
G4();
|
|
L1(str, null);
|
|
return;
|
|
case 5:
|
|
G4();
|
|
G1(str);
|
|
return;
|
|
case 6:
|
|
G4();
|
|
this.Ij = str;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.345
|
|
/* JADX WARN: Type inference failed for: r6v0, types: [java.lang.Object, com.mycompany.app.web.WebTabAdapter$WebTabItem] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2;
|
|
boolean z;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str3 = webViewActivity.Ij;
|
|
webViewActivity.Ij = null;
|
|
boolean z2 = !PrefSync.k;
|
|
ArrayList d = DbBookTab.d(webViewActivity.i1, z2);
|
|
boolean z3 = false;
|
|
if (d != null) {
|
|
i2 = d.size();
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
?? obj = new Object();
|
|
obj.f19520c = DbBookTab.f(d);
|
|
obj.d = DbBookTab.j(i2, d);
|
|
obj.h = i2;
|
|
obj.j = str3;
|
|
obj.k = WebViewActivity.q3(webViewActivity.i1, obj);
|
|
obj.l = PrefWeb.j;
|
|
DbBookTab.o(webViewActivity.i1, obj, z2);
|
|
boolean z4 = PrefSync.k;
|
|
if (z4) {
|
|
PrefSync.l = i2;
|
|
} else {
|
|
PrefSync.m = i2;
|
|
}
|
|
if (!z4) {
|
|
if (PrefSecret.s == 0) {
|
|
z = false;
|
|
} else {
|
|
z = PrefSecret.u;
|
|
}
|
|
if (z) {
|
|
PrefSync.v(webViewActivity.i1);
|
|
int i3 = PrefSecret.s;
|
|
if (i3 != 0) {
|
|
z3 = PrefSecret.u;
|
|
}
|
|
if (!z3) {
|
|
return;
|
|
}
|
|
Intent i22 = MainUtil.i2(webViewActivity.i1, i3);
|
|
i22.putExtra("EXTRA_TYPE", 2);
|
|
webViewActivity.t0(i22, 3);
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.l8(z2);
|
|
}
|
|
});
|
|
return;
|
|
case 7:
|
|
G4();
|
|
MainUtil.s(R.string.copied_clipboard, this, "Copied URL", str);
|
|
return;
|
|
case 8:
|
|
G4();
|
|
m8(str, str2);
|
|
return;
|
|
case 9:
|
|
if (TextUtils.isEmpty(str2)) {
|
|
MainUtil.e8(this, R.string.save_empty);
|
|
return;
|
|
} else {
|
|
G4();
|
|
MainUtil.s(R.string.copied_clipboard, this, "Copied Title", str2);
|
|
return;
|
|
}
|
|
case 10:
|
|
y3(str);
|
|
return;
|
|
case 11:
|
|
if (this.U1) {
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
G4();
|
|
int i2 = PrefSecret.B;
|
|
if (i2 == 0) {
|
|
i9(str);
|
|
return;
|
|
}
|
|
this.Ll = str;
|
|
Intent i22 = MainUtil.i2(this.i1, i2);
|
|
i22.putExtra("EXTRA_PASS", 2);
|
|
i22.putExtra("EXTRA_TYPE", 2);
|
|
t0(i22, 2);
|
|
return;
|
|
case 12:
|
|
if (this.U1) {
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
} else {
|
|
G4();
|
|
e9(true);
|
|
return;
|
|
}
|
|
case 13:
|
|
G4();
|
|
// 40 = force download dialog (skip in-app PDF preview for .pdf links).
|
|
l9(str, null, null, 0L, 40, null);
|
|
return;
|
|
default:
|
|
return;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x0046 */
|
|
/* JADX WARN: Removed duplicated region for block: B:23:? A[RETURN, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void g7(java.lang.String r10) {
|
|
/*
|
|
r9 = this;
|
|
java.lang.String r5 = r9.M2()
|
|
int r1 = r9.L2(r10)
|
|
boolean r6 = r9.X5()
|
|
boolean r0 = com.mycompany.app.pref.PrefPdf.z
|
|
r7 = 0
|
|
if (r0 != 0) goto L1b
|
|
int r0 = r9.t3()
|
|
int r2 = r9.u3()
|
|
r8 = r2
|
|
goto L1d
|
|
L1b:
|
|
r0 = r7
|
|
r8 = r0
|
|
L1d:
|
|
com.mycompany.app.view.MyBarView r2 = r9.o2
|
|
if (r2 == 0) goto L40
|
|
boolean r3 = r9.U1
|
|
int r0 = com.mycompany.app.main.MainUtil.s0(r0, r3)
|
|
com.mycompany.app.view.MyIconView r2 = r2.k
|
|
if (r2 != 0) goto L2c
|
|
goto L40
|
|
L2c:
|
|
r3 = r2
|
|
r2 = r0
|
|
r0 = r3
|
|
r3 = r9
|
|
r4 = r10
|
|
r0.s(r1, r2, r3, r4, r5, r6)
|
|
if (r6 == 0) goto L3b
|
|
int r10 = com.mycompany.app.main.MainUtil.P1(r2, r8)
|
|
goto L3c
|
|
L3b:
|
|
r10 = r7
|
|
L3c:
|
|
r0.setTrnsPreColor(r10)
|
|
goto L42
|
|
L40:
|
|
r3 = r9
|
|
r4 = r10
|
|
L42:
|
|
com.mycompany.app.view.MyBarView r10 = r3.p2
|
|
if (r10 == 0) goto L5d
|
|
boolean r0 = r3.U1
|
|
int r2 = com.mycompany.app.main.MainUtil.s0(r7, r0)
|
|
com.mycompany.app.view.MyIconView r0 = r10.k
|
|
if (r0 != 0) goto L51
|
|
goto L5d
|
|
L51:
|
|
r0.s(r1, r2, r3, r4, r5, r6)
|
|
if (r6 == 0) goto L5a
|
|
int r7 = com.mycompany.app.main.MainUtil.P1(r2, r7)
|
|
L5a:
|
|
r0.setTrnsPreColor(r7)
|
|
L5d:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.g7(java.lang.String):void");
|
|
}
|
|
|
|
public final void g8(String str) {
|
|
boolean z;
|
|
if (this.I2 != null) {
|
|
if (this.o8 != null) {
|
|
MainUtil.e8(this, R.string.loading);
|
|
return;
|
|
}
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
WebReadTask webReadTask = new WebReadTask(this, this.i1, false, false, false, new WebReadTask.WebReadListener() { // from class: com.mycompany.app.web.WebViewActivity.580
|
|
@Override // com.mycompany.app.web.WebReadTask.WebReadListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebReadTask webReadTask2 = webViewActivity.o8;
|
|
if (webReadTask2 != null) {
|
|
webReadTask2.z();
|
|
webViewActivity.o8 = null;
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebReadTask.WebReadListener
|
|
public final void b(String str2, String str3, String str4, ArrayList arrayList) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
if (PrefZtwo.E) {
|
|
webViewActivity.Q1(str2, str4, true);
|
|
} else {
|
|
MainUtil.r6(webNestView, str2, str4);
|
|
}
|
|
}
|
|
WebReadTask webReadTask2 = webViewActivity.o8;
|
|
if (webReadTask2 != null) {
|
|
webReadTask2.z();
|
|
webViewActivity.o8 = null;
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebReadTask.WebReadListener
|
|
public final void c() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebReadTask.WebReadListener
|
|
public final void d(String str2) {
|
|
}
|
|
});
|
|
this.o8 = webReadTask;
|
|
String v3 = v3(this.I2, str);
|
|
webReadTask.g = str;
|
|
webReadTask.h = MainUtil.I1(str, true);
|
|
webReadTask.i = v3;
|
|
webReadTask.j = null;
|
|
ca();
|
|
MyProgressBar myProgressBar = this.G2;
|
|
if (myProgressBar == null) {
|
|
z = false;
|
|
} else {
|
|
z = !myProgressBar.B;
|
|
}
|
|
if (!z) {
|
|
a8(0);
|
|
}
|
|
if (MainUtil.D5(str)) {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
webNestView.evaluateJavascript("document.documentElement.innerHTML", new ValueCallback<String>() { // from class: com.mycompany.app.web.WebViewActivity.581
|
|
@Override // android.webkit.ValueCallback
|
|
public final void onReceiveValue(String str2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.tn = str2;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.581.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass581 anonymousClass581 = AnonymousClass581.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.tn;
|
|
webViewActivity2.tn = null;
|
|
if (webViewActivity2.I2 != null) {
|
|
String k8 = MainUtil.k8(MainUtil.X6(str3));
|
|
WebReadTask webReadTask2 = WebViewActivity.this.o8;
|
|
if (webReadTask2 != null) {
|
|
webReadTask2.j(k8);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
MainUtil.I(this.I2, "(function(){android.onReadHtml(document.documentElement.innerHTML);})();", true);
|
|
}
|
|
}
|
|
|
|
public final void g9(boolean z) {
|
|
MyIconView myIconView = this.Z3;
|
|
if (myIconView != null) {
|
|
if (z && PrefZone.r == 1) {
|
|
myIconView.setVisibility(0);
|
|
} else {
|
|
myIconView.setVisibility(8);
|
|
}
|
|
}
|
|
MyIconView myIconView2 = this.a4;
|
|
if (myIconView2 != null) {
|
|
if (z && PrefZone.r == 2) {
|
|
myIconView2.setVisibility(0);
|
|
} else {
|
|
myIconView2.setVisibility(8);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void ga(WebTabAdapter.WebTabItem webTabItem) {
|
|
this.Vi = webTabItem;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.267
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem2 = webViewActivity.Vi;
|
|
webViewActivity.Vi = null;
|
|
if (webTabItem2 != null) {
|
|
Context context = webViewActivity.i1;
|
|
long j = webTabItem2.f19520c;
|
|
String str = webTabItem2.j;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
str = webNestView.q(str);
|
|
}
|
|
String str2 = webTabItem2.k;
|
|
boolean z = webTabItem2.l;
|
|
boolean z2 = PrefSync.k;
|
|
DbBookTab dbBookTab = DbBookTab.f12956c;
|
|
if (context != null && j > 0) {
|
|
String Z2 = MainUtil.Z2(context, str);
|
|
if (!TextUtils.isEmpty(Z2)) {
|
|
if (TextUtils.isEmpty(str2)) {
|
|
if ("file:///android_asset/shortcut.html".equals(Z2)) {
|
|
str2 = "Soul";
|
|
} else {
|
|
str2 = MainUtil.H1(Z2, false);
|
|
}
|
|
if (TextUtils.isEmpty(str2)) {
|
|
return;
|
|
}
|
|
}
|
|
ContentValues contentValues = new ContentValues();
|
|
contentValues.put("_secret", Integer.valueOf(z2 ? 1 : 0));
|
|
contentValues.put("_path", Z2);
|
|
contentValues.put("_title", str2);
|
|
contentValues.put("_desk", Integer.valueOf(z ? 1 : 0));
|
|
DbUtil.h(DbBookTab.b(context).getWritableDatabase(), "DbBookTab3_table", contentValues, "_uid=?", new String[]{Long.toString(j)});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
public final boolean h2() {
|
|
if (this.R5 != null || !MainApp.A(this.i1) || this.f2 == null) {
|
|
return false;
|
|
}
|
|
if (!MainApp.z(this.i1)) {
|
|
c5();
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final int h3(String str, String str2) {
|
|
int length;
|
|
int c2;
|
|
if (this.S8 <= 10 && str != null && !str.startsWith("manatoki") && !str.startsWith("newtoki") && (length = str2.length()) >= 10 && (c2 = MainUrl.c(str2)) >= 10 && c2 < length) {
|
|
return c2;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final void h4() {
|
|
DialogNewsSearch dialogNewsSearch = this.f6;
|
|
if (dialogNewsSearch != null) {
|
|
dialogNewsSearch.dismiss();
|
|
this.f6 = null;
|
|
}
|
|
}
|
|
|
|
public final void h5() {
|
|
if (this.s2 != null) {
|
|
return;
|
|
}
|
|
int i = R.id.edit_text;
|
|
MyAddrView myAddrView = new MyAddrView(this);
|
|
myAddrView.setGravity(16);
|
|
myAddrView.setBaselineAligned(false);
|
|
myAddrView.setOrientation(0);
|
|
myAddrView.setVisibility(8);
|
|
MyIconView myIconView = new MyIconView(this);
|
|
ImageView.ScaleType scaleType = ImageView.ScaleType.CENTER_INSIDE;
|
|
myIconView.setScaleType(scaleType);
|
|
myAddrView.addView(myIconView, MainApp.g1, MainApp.Y0);
|
|
MyEditAuto myEditAuto = new MyEditAuto(this);
|
|
myEditAuto.setId(i);
|
|
myEditAuto.setGravity(16);
|
|
myEditAuto.setFocusable(true);
|
|
myEditAuto.setFocusableInTouchMode(true);
|
|
myEditAuto.setSingleLine(true);
|
|
myEditAuto.setTextDirection(3);
|
|
myEditAuto.setTextSize(1, 16.0f);
|
|
if (Build.VERSION.SDK_INT >= 29) {
|
|
myEditAuto.setTextCursorDrawable(R.drawable.edit_cursor);
|
|
}
|
|
myEditAuto.setHint(R.string.web_edit_hint);
|
|
myEditAuto.setImeOptions(268435459);
|
|
myEditAuto.setSelectAllOnFocus(true);
|
|
myEditAuto.setBackground(null);
|
|
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(0, MainApp.Y0);
|
|
layoutParams.weight = 1.0f;
|
|
myAddrView.addView(myEditAuto, layoutParams);
|
|
MyIconView myIconView2 = new MyIconView(this);
|
|
myIconView2.setScaleType(scaleType);
|
|
myIconView2.setVisibility(8);
|
|
myAddrView.addView(myIconView2, MainApp.g1, MainApp.Y0);
|
|
MyIconView myIconView3 = new MyIconView(this);
|
|
myIconView3.setScaleType(scaleType);
|
|
myIconView3.setVisibility(8);
|
|
myAddrView.addView(myIconView3, MainApp.g1, MainApp.Y0);
|
|
MyIconView myIconView4 = new MyIconView(this);
|
|
myIconView4.setScaleType(scaleType);
|
|
myIconView4.setVisibility(8);
|
|
myAddrView.addView(myIconView4, MainApp.g1, MainApp.Y0);
|
|
this.s2 = myAddrView;
|
|
this.t2 = myIconView;
|
|
this.u2 = myIconView2;
|
|
this.v2 = myIconView3;
|
|
this.w2 = myIconView4;
|
|
this.x2 = myEditAuto;
|
|
this.y2 = false;
|
|
this.z2 = 0;
|
|
this.A2 = 1234;
|
|
}
|
|
|
|
public final void h6(boolean z, boolean z2) {
|
|
WebNestView webNestView;
|
|
if (this.C9) {
|
|
B6(z);
|
|
if (this.F1 && (webNestView = this.I2) != null) {
|
|
if (z2) {
|
|
webNestView.reload();
|
|
}
|
|
this.I2.setBackPlay(false);
|
|
this.I2.C();
|
|
MainApp.F(this.i1, this.I2);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void h7(boolean z) {
|
|
int i;
|
|
this.z8 = z;
|
|
if (!PrefPdf.z) {
|
|
i = t3();
|
|
} else {
|
|
i = 0;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
myBarView.f(MainUtil.s0(i, this.U1), z);
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
myBarView2.f(MainUtil.s0(0, this.U1), z);
|
|
}
|
|
}
|
|
|
|
public final void h8(WebTabAdapter.WebTabItem webTabItem, PrevPageListener prevPageListener) {
|
|
if (webTabItem != null && this.I2 != null) {
|
|
this.qg = webTabItem;
|
|
this.rg = prevPageListener;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.153
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem2 = webViewActivity.qg;
|
|
PrevPageListener prevPageListener2 = webViewActivity.rg;
|
|
webViewActivity.qg = null;
|
|
webViewActivity.rg = null;
|
|
if (webTabItem2 != null && (webNestView = webViewActivity.I2) != null) {
|
|
webNestView.k = true;
|
|
MainUtil.I(webNestView, "window.close();", false);
|
|
webViewActivity.r6();
|
|
webViewActivity.I3(true);
|
|
webViewActivity.sg = webTabItem2;
|
|
webViewActivity.tg = prevPageListener2;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.154
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem3 = webViewActivity2.sg;
|
|
PrevPageListener prevPageListener3 = webViewActivity2.tg;
|
|
webViewActivity2.sg = null;
|
|
webViewActivity2.tg = null;
|
|
if (webTabItem3 != null && webViewActivity2.H2 != null) {
|
|
WebViewActivity.T7(webViewActivity2.I2);
|
|
webViewActivity2.ug = webTabItem3;
|
|
webViewActivity2.vg = prevPageListener3;
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.155
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem4 = webViewActivity3.ug;
|
|
PrevPageListener prevPageListener4 = webViewActivity3.vg;
|
|
webViewActivity3.ug = null;
|
|
webViewActivity3.vg = null;
|
|
if (webTabItem4 != null && webViewActivity3.H2 != null) {
|
|
WebViewActivity.U7(webViewActivity3.I2);
|
|
webViewActivity3.wg = webTabItem4;
|
|
webViewActivity3.xg = prevPageListener4;
|
|
MyWebCoord myWebCoord4 = webViewActivity3.f2;
|
|
if (myWebCoord4 == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.156
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame webNestFrame;
|
|
final WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem5 = webViewActivity4.wg;
|
|
PrevPageListener prevPageListener5 = webViewActivity4.xg;
|
|
WebNestFrame webNestFrame2 = null;
|
|
webViewActivity4.wg = null;
|
|
webViewActivity4.xg = null;
|
|
if (webTabItem5 != null && (webNestFrame = webViewActivity4.H2) != null) {
|
|
MainUtil.V6(webNestFrame);
|
|
if (PrefWeb.A) {
|
|
webNestFrame2 = webViewActivity4.H2;
|
|
webNestFrame2.setBackItem(webTabItem5);
|
|
} else {
|
|
webViewActivity4.H2.t(null);
|
|
}
|
|
webViewActivity4.yg = prevPageListener5;
|
|
webViewActivity4.zg = webNestFrame2;
|
|
MyWebCoord myWebCoord5 = webViewActivity4.f2;
|
|
if (myWebCoord5 == null) {
|
|
return;
|
|
}
|
|
myWebCoord5.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.157
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.157.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
PrevPageListener prevPageListener6 = webViewActivity5.yg;
|
|
WebNestFrame webNestFrame3 = webViewActivity5.zg;
|
|
webViewActivity5.yg = null;
|
|
webViewActivity5.zg = null;
|
|
webViewActivity5.v8(webViewActivity5.P2);
|
|
webViewActivity5.Ag = prevPageListener6;
|
|
webViewActivity5.Bg = webNestFrame3;
|
|
MyWebCoord myWebCoord6 = webViewActivity5.f2;
|
|
if (myWebCoord6 == null) {
|
|
return;
|
|
}
|
|
myWebCoord6.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.158
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity6 = WebViewActivity.this;
|
|
webViewActivity6.x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.159
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity7 = WebViewActivity.this;
|
|
PrevPageListener prevPageListener7 = webViewActivity7.Ag;
|
|
WebNestFrame webNestFrame4 = webViewActivity7.Bg;
|
|
webViewActivity7.Ag = null;
|
|
webViewActivity7.Bg = null;
|
|
if (webNestFrame4 != null) {
|
|
webViewActivity7.P9(webNestFrame4);
|
|
}
|
|
webViewActivity7.b7(1, true);
|
|
if (prevPageListener7 != null) {
|
|
prevPageListener7.a();
|
|
}
|
|
}
|
|
});
|
|
webViewActivity6.qc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (prevPageListener5 != null) {
|
|
prevPageListener5.a();
|
|
}
|
|
webViewActivity4.qc = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (prevPageListener4 != null) {
|
|
prevPageListener4.a();
|
|
}
|
|
webViewActivity3.qc = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (prevPageListener3 != null) {
|
|
prevPageListener3.a();
|
|
}
|
|
webViewActivity2.qc = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (prevPageListener2 != null) {
|
|
prevPageListener2.a();
|
|
}
|
|
webViewActivity.qc = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (prevPageListener != null) {
|
|
prevPageListener.a();
|
|
}
|
|
this.qc = false;
|
|
}
|
|
|
|
public final void h9() {
|
|
Handler handler;
|
|
zzbk zzbkVar = this.Eb;
|
|
if (zzbkVar != null) {
|
|
zzbkVar.a();
|
|
this.Eb = null;
|
|
}
|
|
if (this.Bb == null || (handler = this.O0) == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.34
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
MediaRouteButton mediaRouteButton = webViewActivity.Bb;
|
|
if (mediaRouteButton != null && mediaRouteButton.getWidth() != 0 && webViewActivity.Bb.getHeight() != 0) {
|
|
try {
|
|
IntroductoryOverlay.Builder builder = new IntroductoryOverlay.Builder(webViewActivity, webViewActivity.Bb);
|
|
builder.d = webViewActivity.getString(R.string.introducing_cast);
|
|
builder.f3473c = builder.f3472a.getResources().getColor(R.color.cast_overlay);
|
|
builder.f = true;
|
|
builder.e = new IntroductoryOverlay.OnOverlayDismissedListener() { // from class: com.mycompany.app.web.WebViewActivity.34.1
|
|
@Override // com.google.android.gms.cast.framework.IntroductoryOverlay.OnOverlayDismissedListener
|
|
public final void a() {
|
|
WebViewActivity.this.Eb = null;
|
|
}
|
|
};
|
|
zzr.a(zzpm.INSTRUCTIONS_VIEW);
|
|
zzbk zzbkVar2 = new zzbk(builder);
|
|
webViewActivity.Eb = zzbkVar2;
|
|
zzbkVar2.b();
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void i2(WebNestView webNestView) {
|
|
if (webNestView != null) {
|
|
webNestView.g();
|
|
if (webNestView.w != null) {
|
|
return;
|
|
}
|
|
webNestView.setAnimListener(new WebNestView.WebAnimListener() { // from class: com.mycompany.app.web.WebViewActivity.199
|
|
@Override // com.mycompany.app.web.WebNestView.WebAnimListener
|
|
public final void a(int i, boolean z) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.k6(i, z, null);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final String i3(String str, WebResourceRequest webResourceRequest) {
|
|
String str2 = null;
|
|
try {
|
|
Map<String, String> requestHeaders = webResourceRequest.getRequestHeaders();
|
|
if (requestHeaders == null) {
|
|
return null;
|
|
}
|
|
String str3 = requestHeaders.get("Referer");
|
|
try {
|
|
String M0 = MainUtil.M0(str);
|
|
if (!TextUtils.isEmpty(M0)) {
|
|
String str4 = requestHeaders.get("Origin");
|
|
if (!TextUtils.isEmpty(str4)) {
|
|
MainApp p = MainApp.p(this.i1);
|
|
if (p != null) {
|
|
try {
|
|
if (p.H == null) {
|
|
p.H = new LruCache(40);
|
|
}
|
|
p.H.put(M0, str4);
|
|
p.H.put(MainUtil.I1(M0, false), str4);
|
|
return str3;
|
|
} catch (Exception unused) {
|
|
return str3;
|
|
}
|
|
}
|
|
return str3;
|
|
}
|
|
}
|
|
return str3;
|
|
} catch (Exception unused2) {
|
|
str2 = str3;
|
|
return str2;
|
|
}
|
|
} catch (Exception unused3) {
|
|
}
|
|
}
|
|
|
|
public final void i4() {
|
|
DialogPassInfo dialogPassInfo = this.D7;
|
|
if (dialogPassInfo != null) {
|
|
dialogPassInfo.dismiss();
|
|
this.D7 = null;
|
|
}
|
|
}
|
|
|
|
public final void i5(String str) {
|
|
ViewGroup.LayoutParams layoutParams;
|
|
if (this.C2 == null) {
|
|
MyFindView myFindView = new MyFindView(this);
|
|
this.C2 = myFindView;
|
|
WebNestView webNestView = this.I2;
|
|
boolean O5 = O5();
|
|
DialogSetFull.DialogApplyListener dialogApplyListener = new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.85
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.t6(true);
|
|
}
|
|
};
|
|
myFindView.h = webNestView;
|
|
myFindView.i = str;
|
|
myFindView.g = O5;
|
|
myFindView.f = dialogApplyListener;
|
|
MyFindView myFindView2 = this.C2;
|
|
if (myFindView2 != null) {
|
|
if (myFindView2.g) {
|
|
this.j2.a(myFindView2, 3);
|
|
this.j2.setVisibility(0);
|
|
this.k2.setVisibility(8);
|
|
int G3 = MainUtil.G3();
|
|
int i = MainApp.Y0;
|
|
if (G3 < i) {
|
|
G3 = i;
|
|
}
|
|
AppBarLayout appBarLayout = this.g2;
|
|
if (appBarLayout != null && (layoutParams = appBarLayout.getLayoutParams()) != null) {
|
|
if (layoutParams.height != G3) {
|
|
layoutParams.height = G3;
|
|
this.g2.requestLayout();
|
|
}
|
|
WebNestLayout webNestLayout = this.i2;
|
|
if (webNestLayout != null) {
|
|
if (PrefWeb.v) {
|
|
webNestLayout.setTranslationY(G3 - MainUtil.H3());
|
|
} else {
|
|
webNestLayout.setTranslationY(G3);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
this.k2.a(myFindView2, 3);
|
|
this.j2.setVisibility(0);
|
|
this.k2.setVisibility(0);
|
|
int i0 = MainUtil.i0();
|
|
int i2 = MainApp.Y0;
|
|
if (i0 < i2) {
|
|
i0 = i2;
|
|
}
|
|
if (PrefWeb.w) {
|
|
if (i0 != 0) {
|
|
this.Ng = i0;
|
|
M8(i0);
|
|
} else {
|
|
M8(this.Ng);
|
|
this.Ng = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.86
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.C2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.C2.b(webViewActivity.t3(), webViewActivity.u3(), webViewActivity.U1);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void i6() {
|
|
MainWebDestroy mainWebDestroy = this.d2;
|
|
if (mainWebDestroy != null) {
|
|
mainWebDestroy.i = true;
|
|
}
|
|
}
|
|
|
|
public final void i7(int i, int i2) {
|
|
int i3;
|
|
int i4;
|
|
WebViewActivity webViewActivity;
|
|
String K2 = K2();
|
|
String M2 = M2();
|
|
int L2 = L2(K2);
|
|
boolean X5 = X5();
|
|
List list = this.O2;
|
|
if (list != null) {
|
|
i3 = list.size();
|
|
} else {
|
|
i3 = 0;
|
|
}
|
|
if (PrefPdf.z) {
|
|
i = 0;
|
|
i4 = 0;
|
|
} else {
|
|
i4 = i2;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
int i5 = this.P2;
|
|
boolean z = this.U1;
|
|
webViewActivity = this;
|
|
myBarView.g(webViewActivity, K2, M2, L2, X5, i5, i3, z, MainUtil.s0(i, z), i4);
|
|
} else {
|
|
webViewActivity = this;
|
|
}
|
|
int i6 = i4;
|
|
MyBarView myBarView2 = webViewActivity.p2;
|
|
if (myBarView2 != null) {
|
|
int i7 = webViewActivity.P2;
|
|
boolean z2 = webViewActivity.U1;
|
|
myBarView2.g(webViewActivity, K2, M2, L2, X5, i7, i3, z2, MainUtil.s0(0, z2), 0);
|
|
}
|
|
A7(i, i6);
|
|
X8(i, i6);
|
|
s7(i);
|
|
}
|
|
|
|
public final void i8() {
|
|
if (this.Eo) {
|
|
return;
|
|
}
|
|
this.Eo = true;
|
|
new Thread(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.677
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainDownSvc mainDownSvc;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
PrefSync.v(webViewActivity.i1);
|
|
MainUtil.j8(webViewActivity.i1, false);
|
|
MainApp p = MainApp.p(webViewActivity.getApplicationContext());
|
|
if (p != null && p.u && (mainDownSvc = p.v) != null) {
|
|
mainDownSvc.Q(false, false);
|
|
}
|
|
MainUtil.c7(webViewActivity, "web_restart_url", webViewActivity.U1);
|
|
}
|
|
}).start();
|
|
}
|
|
|
|
public final void i9(String str) {
|
|
if (this.I2 == null || this.G1 || J5()) {
|
|
return;
|
|
}
|
|
DialogBlockLink dialogBlockLink = this.f7;
|
|
if (dialogBlockLink != null) {
|
|
dialogBlockLink.dismiss();
|
|
this.f7 = null;
|
|
}
|
|
if (!TextUtils.isEmpty(str) && !"file:///android_asset/shortcut.html".equals(str) && !"about:blank".equals(str)) {
|
|
DialogBlockLink dialogBlockLink2 = new DialogBlockLink(this, this.A8, str, new DialogSetAdblock.DialogAdsListener() { // from class: com.mycompany.app.web.WebViewActivity.434
|
|
@Override // com.mycompany.app.dialog.DialogSetAdblock.DialogAdsListener
|
|
public final void a(boolean z, boolean z2, boolean z3, boolean z4, boolean z5, String str2) {
|
|
WebViewActivity.T0(WebViewActivity.this, z2, z3, z4, z5);
|
|
}
|
|
});
|
|
this.f7 = dialogBlockLink2;
|
|
dialogBlockLink2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.435
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogBlockLink dialogBlockLink3 = webViewActivity.f7;
|
|
if (dialogBlockLink3 != null) {
|
|
dialogBlockLink3.dismiss();
|
|
webViewActivity.f7 = null;
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
}
|
|
|
|
public final void j2() {
|
|
List list;
|
|
List list2;
|
|
final long longValue;
|
|
MyWebCoord myWebCoord;
|
|
if (PrefZtwo.G >= 3 && (list = this.O2) != null && list.size() > PrefZtwo.G) {
|
|
try {
|
|
list2 = this.N2;
|
|
} catch (Exception unused) {
|
|
}
|
|
if (list2 != null && !list2.isEmpty()) {
|
|
longValue = ((Long) this.N2.get(0)).longValue();
|
|
if (longValue != 0 || (myWebCoord = this.f2) == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.92
|
|
/* JADX WARN: Removed duplicated region for block: B:18:0x003a */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x006e */
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x006f */
|
|
/* JADX WARN: Removed duplicated region for block: B:55:0x00b7 A[SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r16 = this;
|
|
r0 = r16
|
|
r1 = 0
|
|
long r3 = r2
|
|
int r1 = (r3 > r1 ? 1 : (r3 == r1 ? 0 : -1))
|
|
if (r1 != 0) goto Ld
|
|
int r1 = com.mycompany.app.web.WebViewActivity.Fo
|
|
return
|
|
Ld:
|
|
com.mycompany.app.web.WebViewActivity r1 = com.mycompany.app.web.WebViewActivity.this
|
|
java.util.List r2 = r1.O2
|
|
if (r2 != 0) goto L15
|
|
goto Lbc
|
|
L15:
|
|
android.content.Context r5 = r1.i1
|
|
com.mycompany.app.data.book.DataBookTmem r5 = com.mycompany.app.data.book.DataBookTmem.l(r5)
|
|
r5.getClass()
|
|
r6 = 1
|
|
r7 = 0
|
|
java.util.ArrayList r5 = r5.f12915c // Catch: java.lang.Exception -> L2c
|
|
if (r5 == 0) goto L2c
|
|
boolean r5 = r5.isEmpty() // Catch: java.lang.Exception -> L2c
|
|
if (r5 != 0) goto L2c
|
|
r5 = r6
|
|
goto L2d
|
|
L2c:
|
|
r5 = r7
|
|
L2d:
|
|
int r8 = r1.P2 // Catch: java.lang.Exception -> Lbc
|
|
int r9 = r8 + (-2)
|
|
int r8 = r8 + 2
|
|
int r10 = r2.size() // Catch: java.lang.Exception -> Lbc
|
|
r11 = r7
|
|
L38:
|
|
if (r11 >= r10) goto Lbc
|
|
if (r11 <= r9) goto L40
|
|
if (r11 >= r8) goto L40
|
|
goto Lb7
|
|
L40:
|
|
java.lang.Object r12 = r2.get(r11) // Catch: java.lang.Exception -> Lbc
|
|
com.mycompany.app.web.WebTabAdapter$WebTabItem r12 = (com.mycompany.app.web.WebTabAdapter.WebTabItem) r12 // Catch: java.lang.Exception -> Lbc
|
|
if (r12 != 0) goto L4a
|
|
goto Lb7
|
|
L4a:
|
|
long r13 = r12.b // Catch: java.lang.Exception -> Lbc
|
|
int r13 = (r13 > r3 ? 1 : (r13 == r3 ? 0 : -1))
|
|
if (r13 < 0) goto L52
|
|
goto Lb7
|
|
L52:
|
|
com.mycompany.app.web.WebNestFrame r13 = r12.p // Catch: java.lang.Exception -> Lbc
|
|
if (r13 != 0) goto L58
|
|
goto Lb7
|
|
L58:
|
|
int r14 = r13.getChildCount() // Catch: java.lang.Exception -> Lbc
|
|
if (r14 != 0) goto L60
|
|
L5e:
|
|
r13 = r6
|
|
goto L6c
|
|
L60:
|
|
java.util.List r13 = r13.o // Catch: java.lang.Exception -> Lbc
|
|
if (r13 == 0) goto L5e
|
|
boolean r13 = r13.isEmpty() // Catch: java.lang.Exception -> Lbc
|
|
if (r13 == 0) goto L6b
|
|
goto L5e
|
|
L6b:
|
|
r13 = r7
|
|
L6c:
|
|
if (r13 == 0) goto L6f
|
|
goto Lb7
|
|
L6f:
|
|
if (r5 == 0) goto Lb2
|
|
java.lang.String r13 = r12.j // Catch: java.lang.Exception -> Lbc
|
|
java.lang.String r13 = com.mycompany.app.main.MainUtil.I1(r13, r6) // Catch: java.lang.Exception -> Lbc
|
|
android.content.Context r14 = r1.i1 // Catch: java.lang.Exception -> Lbc
|
|
com.mycompany.app.data.book.DataBookTmem r14 = com.mycompany.app.data.book.DataBookTmem.l(r14) // Catch: java.lang.Exception -> Lbc
|
|
java.lang.String r15 = r12.j // Catch: java.lang.Exception -> Lbc
|
|
r14.getClass() // Catch: java.lang.Exception -> Lbc
|
|
java.util.ArrayList r6 = r14.f12915c // Catch: java.lang.Exception -> La7
|
|
if (r6 == 0) goto La7
|
|
boolean r6 = r6.isEmpty() // Catch: java.lang.Exception -> La7
|
|
if (r6 == 0) goto L8d
|
|
goto La7
|
|
L8d:
|
|
boolean r6 = android.text.TextUtils.isEmpty(r13) // Catch: java.lang.Exception -> La7
|
|
if (r6 != 0) goto L9d
|
|
java.util.ArrayList r6 = r14.f12915c // Catch: java.lang.Exception -> La7
|
|
boolean r6 = r6.contains(r13) // Catch: java.lang.Exception -> La7
|
|
if (r6 == 0) goto L9d
|
|
r6 = 1
|
|
goto Laf
|
|
L9d:
|
|
java.lang.String r6 = com.mycompany.app.main.MainUtil.S6(r15) // Catch: java.lang.Exception -> La7
|
|
boolean r13 = android.text.TextUtils.isEmpty(r6) // Catch: java.lang.Exception -> La7
|
|
if (r13 == 0) goto La9
|
|
La7:
|
|
r6 = r7
|
|
goto Laf
|
|
La9:
|
|
java.util.ArrayList r13 = r14.f12915c // Catch: java.lang.Exception -> La7
|
|
boolean r6 = r13.contains(r6) // Catch: java.lang.Exception -> La7
|
|
Laf:
|
|
if (r6 == 0) goto Lb2
|
|
goto Lb7
|
|
Lb2:
|
|
com.mycompany.app.web.WebNestFrame r6 = r12.p // Catch: java.lang.Exception -> Lbc
|
|
r6.setBlankView(r7) // Catch: java.lang.Exception -> Lbc
|
|
Lb7:
|
|
int r11 = r11 + 1
|
|
r6 = 1
|
|
goto L38
|
|
Lbc:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass92.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
longValue = 0;
|
|
if (longValue != 0) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.92
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
/* JADX ERROR: Method code generation error
|
|
java.lang.NullPointerException: Cannot invoke "jadx.core.dex.nodes.IContainer.get(jadx.api.plugins.input.data.attributes.IJadxAttrType)" because "cont" is null
|
|
at jadx.core.codegen.RegionGen.declareVars(RegionGen.java:70)
|
|
at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:65)
|
|
at jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:297)
|
|
at jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:276)
|
|
at jadx.core.codegen.ClassGen.addMethodCode(ClassGen.java:406)
|
|
at jadx.core.codegen.ClassGen.addMethod(ClassGen.java:335)
|
|
at jadx.core.codegen.ClassGen.lambda$addInnerClsAndMethods$3(ClassGen.java:301)
|
|
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395)
|
|
at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:261)
|
|
*/
|
|
/*
|
|
this = this;
|
|
r0 = r16
|
|
r1 = 0
|
|
long r3 = r2
|
|
int r1 = (r3 > r1 ? 1 : (r3 == r1 ? 0 : -1))
|
|
if (r1 != 0) goto Ld
|
|
int r1 = com.mycompany.app.web.WebViewActivity.Fo
|
|
return
|
|
Ld:
|
|
com.mycompany.app.web.WebViewActivity r1 = com.mycompany.app.web.WebViewActivity.this
|
|
java.util.List r2 = r1.O2
|
|
if (r2 != 0) goto L15
|
|
goto Lbc
|
|
L15:
|
|
android.content.Context r5 = r1.i1
|
|
com.mycompany.app.data.book.DataBookTmem r5 = com.mycompany.app.data.book.DataBookTmem.l(r5)
|
|
r5.getClass()
|
|
r6 = 1
|
|
r7 = 0
|
|
java.util.ArrayList r5 = r5.f12915c // Catch: java.lang.Exception -> L2c
|
|
if (r5 == 0) goto L2c
|
|
boolean r5 = r5.isEmpty() // Catch: java.lang.Exception -> L2c
|
|
if (r5 != 0) goto L2c
|
|
r5 = r6
|
|
goto L2d
|
|
L2c:
|
|
r5 = r7
|
|
L2d:
|
|
int r8 = r1.P2 // Catch: java.lang.Exception -> Lbc
|
|
int r9 = r8 + (-2)
|
|
int r8 = r8 + 2
|
|
int r10 = r2.size() // Catch: java.lang.Exception -> Lbc
|
|
r11 = r7
|
|
L38:
|
|
if (r11 >= r10) goto Lbc
|
|
if (r11 <= r9) goto L40
|
|
if (r11 >= r8) goto L40
|
|
goto Lb7
|
|
L40:
|
|
java.lang.Object r12 = r2.get(r11) // Catch: java.lang.Exception -> Lbc
|
|
com.mycompany.app.web.WebTabAdapter$WebTabItem r12 = (com.mycompany.app.web.WebTabAdapter.WebTabItem) r12 // Catch: java.lang.Exception -> Lbc
|
|
if (r12 != 0) goto L4a
|
|
goto Lb7
|
|
L4a:
|
|
long r13 = r12.b // Catch: java.lang.Exception -> Lbc
|
|
int r13 = (r13 > r3 ? 1 : (r13 == r3 ? 0 : -1))
|
|
if (r13 < 0) goto L52
|
|
goto Lb7
|
|
L52:
|
|
com.mycompany.app.web.WebNestFrame r13 = r12.p // Catch: java.lang.Exception -> Lbc
|
|
if (r13 != 0) goto L58
|
|
goto Lb7
|
|
L58:
|
|
int r14 = r13.getChildCount() // Catch: java.lang.Exception -> Lbc
|
|
if (r14 != 0) goto L60
|
|
L5e:
|
|
r13 = r6
|
|
goto L6c
|
|
L60:
|
|
java.util.List r13 = r13.o // Catch: java.lang.Exception -> Lbc
|
|
if (r13 == 0) goto L5e
|
|
boolean r13 = r13.isEmpty() // Catch: java.lang.Exception -> Lbc
|
|
if (r13 == 0) goto L6b
|
|
goto L5e
|
|
L6b:
|
|
r13 = r7
|
|
L6c:
|
|
if (r13 == 0) goto L6f
|
|
goto Lb7
|
|
L6f:
|
|
if (r5 == 0) goto Lb2
|
|
java.lang.String r13 = r12.j // Catch: java.lang.Exception -> Lbc
|
|
java.lang.String r13 = com.mycompany.app.main.MainUtil.I1(r13, r6) // Catch: java.lang.Exception -> Lbc
|
|
android.content.Context r14 = r1.i1 // Catch: java.lang.Exception -> Lbc
|
|
com.mycompany.app.data.book.DataBookTmem r14 = com.mycompany.app.data.book.DataBookTmem.l(r14) // Catch: java.lang.Exception -> Lbc
|
|
java.lang.String r15 = r12.j // Catch: java.lang.Exception -> Lbc
|
|
r14.getClass() // Catch: java.lang.Exception -> Lbc
|
|
java.util.ArrayList r6 = r14.f12915c // Catch: java.lang.Exception -> La7
|
|
if (r6 == 0) goto La7
|
|
boolean r6 = r6.isEmpty() // Catch: java.lang.Exception -> La7
|
|
if (r6 == 0) goto L8d
|
|
goto La7
|
|
L8d:
|
|
boolean r6 = android.text.TextUtils.isEmpty(r13) // Catch: java.lang.Exception -> La7
|
|
if (r6 != 0) goto L9d
|
|
java.util.ArrayList r6 = r14.f12915c // Catch: java.lang.Exception -> La7
|
|
boolean r6 = r6.contains(r13) // Catch: java.lang.Exception -> La7
|
|
if (r6 == 0) goto L9d
|
|
r6 = 1
|
|
goto Laf
|
|
L9d:
|
|
java.lang.String r6 = com.mycompany.app.main.MainUtil.S6(r15) // Catch: java.lang.Exception -> La7
|
|
boolean r13 = android.text.TextUtils.isEmpty(r6) // Catch: java.lang.Exception -> La7
|
|
if (r13 == 0) goto La9
|
|
La7:
|
|
r6 = r7
|
|
goto Laf
|
|
La9:
|
|
java.util.ArrayList r13 = r14.f12915c // Catch: java.lang.Exception -> La7
|
|
boolean r6 = r13.contains(r6) // Catch: java.lang.Exception -> La7
|
|
Laf:
|
|
if (r6 == 0) goto Lb2
|
|
goto Lb7
|
|
Lb2:
|
|
com.mycompany.app.web.WebNestFrame r6 = r12.p // Catch: java.lang.Exception -> Lbc
|
|
r6.setBlankView(r7) // Catch: java.lang.Exception -> Lbc
|
|
Lb7:
|
|
int r11 = r11 + 1
|
|
r6 = 1
|
|
goto L38
|
|
Lbc:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass92.run():void");
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void j4() {
|
|
DialogPermission dialogPermission = this.x7;
|
|
if (dialogPermission != null) {
|
|
dialogPermission.dismiss();
|
|
this.x7 = null;
|
|
}
|
|
}
|
|
|
|
public final void j5() {
|
|
WebMoveText webMoveText = this.h7;
|
|
if (webMoveText != null) {
|
|
webMoveText.z = false;
|
|
}
|
|
WebAreaText webAreaText = this.i7;
|
|
if (webAreaText != null) {
|
|
webAreaText.A = false;
|
|
}
|
|
WebAreaMenu webAreaMenu = this.j7;
|
|
if (webAreaMenu != null) {
|
|
webAreaMenu.y = false;
|
|
}
|
|
WebAreaView webAreaView = this.k7;
|
|
if (webAreaView != null) {
|
|
webAreaView.p = false;
|
|
}
|
|
MySnackbar mySnackbar = this.l3;
|
|
if (mySnackbar != null) {
|
|
mySnackbar.W = false;
|
|
}
|
|
MySnackbar mySnackbar2 = this.s3;
|
|
if (mySnackbar2 != null) {
|
|
mySnackbar2.W = false;
|
|
}
|
|
MySnackbar mySnackbar3 = this.t3;
|
|
if (mySnackbar3 != null) {
|
|
mySnackbar3.W = false;
|
|
}
|
|
MySnackbar mySnackbar4 = this.u3;
|
|
if (mySnackbar4 != null) {
|
|
mySnackbar4.W = false;
|
|
}
|
|
WebFltView webFltView = this.Na;
|
|
if (webFltView != null) {
|
|
webFltView.H = false;
|
|
}
|
|
WebTtsView webTtsView = this.Za;
|
|
if (webTtsView != null) {
|
|
webTtsView.E = false;
|
|
}
|
|
WebUpView webUpView = this.P3;
|
|
if (webUpView != null) {
|
|
webUpView.z = false;
|
|
}
|
|
WebDownView webDownView = this.T3;
|
|
if (webDownView != null) {
|
|
webDownView.H = false;
|
|
}
|
|
WebDownView webDownView2 = this.b4;
|
|
if (webDownView2 != null) {
|
|
webDownView2.H = false;
|
|
}
|
|
WebFltView webFltView2 = this.bb;
|
|
if (webFltView2 != null) {
|
|
webFltView2.H = false;
|
|
}
|
|
WebFltView webFltView3 = this.cb;
|
|
if (webFltView3 != null) {
|
|
webFltView3.H = false;
|
|
}
|
|
WebFltView webFltView4 = this.db;
|
|
if (webFltView4 != null) {
|
|
webFltView4.H = false;
|
|
}
|
|
WebFltView webFltView5 = this.Nb;
|
|
if (webFltView5 != null) {
|
|
webFltView5.H = false;
|
|
}
|
|
WebFltView webFltView6 = this.lb;
|
|
if (webFltView6 != null) {
|
|
webFltView6.H = false;
|
|
}
|
|
WebFltView webFltView7 = this.T6;
|
|
if (webFltView7 != null) {
|
|
webFltView7.H = false;
|
|
}
|
|
WebFltView webFltView8 = this.ab;
|
|
if (webFltView8 != null) {
|
|
webFltView8.H = false;
|
|
}
|
|
WebCastView webCastView = this.Ab;
|
|
if (webCastView != null) {
|
|
webCastView.j = false;
|
|
}
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead != null) {
|
|
dialogViewRead.I1 = false;
|
|
}
|
|
}
|
|
|
|
public final void j6(long j, String str) {
|
|
WebNestView webNestView;
|
|
int i;
|
|
int indexOf;
|
|
CastSession castSession = this.tb;
|
|
if (castSession != null && (webNestView = this.I2) != null && this.dc == null) {
|
|
this.dc = new CastUtil(this.i1, castSession, this.O0, new CastUtil.CastSendListener() { // from class: com.mycompany.app.web.WebViewActivity.36
|
|
@Override // com.mycompany.app.cast.CastUtil.CastSendListener
|
|
public final void a(boolean z) {
|
|
int i2 = WebViewActivity.Fo;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!z) {
|
|
MainUtil.e8(webViewActivity, R.string.play_error);
|
|
CastUtil castUtil = webViewActivity.dc;
|
|
if (castUtil != null) {
|
|
castUtil.b();
|
|
webViewActivity.dc = null;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity.U3();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.37
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.H4();
|
|
MyWebCoord myWebCoord2 = webViewActivity2.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.37.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass37 anonymousClass37 = AnonymousClass37.this;
|
|
WebViewActivity.this.E9 = true;
|
|
WebViewActivity.this.startActivity(new Intent(WebViewActivity.this.i1, (Class<?>) ExpandedControlsActivity.class));
|
|
CastUtil castUtil2 = WebViewActivity.this.dc;
|
|
if (castUtil2 != null) {
|
|
castUtil2.b();
|
|
WebViewActivity.this.dc = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
List<String> downList = webNestView.getDownList();
|
|
List<String> downPoster = this.I2.getDownPoster();
|
|
if (downList == null || downList.isEmpty() || (indexOf = downList.indexOf(str)) < 0) {
|
|
i = 0;
|
|
} else {
|
|
i = indexOf;
|
|
}
|
|
this.dc.d(this.B8, downList, downPoster, i, j);
|
|
}
|
|
}
|
|
|
|
public final void j7(boolean z) {
|
|
int i;
|
|
Handler handler;
|
|
int k2;
|
|
int k22;
|
|
if (!PrefPdf.z) {
|
|
i = t3();
|
|
} else {
|
|
i = 0;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
int s0 = MainUtil.s0(i, this.U1);
|
|
myBarView.t = z;
|
|
MyIconView myIconView = myBarView.q;
|
|
if (myIconView != null) {
|
|
if (z) {
|
|
k22 = R.drawable.outline_download_for_offline_red_24;
|
|
} else {
|
|
k22 = MainUtil.k2(64, s0);
|
|
}
|
|
myIconView.setImageResource(k22);
|
|
myBarView.e(myBarView.q, 64, s0);
|
|
}
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
int s02 = MainUtil.s0(0, this.U1);
|
|
myBarView2.t = z;
|
|
MyIconView myIconView2 = myBarView2.q;
|
|
if (myIconView2 != null) {
|
|
if (z) {
|
|
k2 = R.drawable.outline_download_for_offline_red_24;
|
|
} else {
|
|
k2 = MainUtil.k2(64, s02);
|
|
}
|
|
myIconView2.setImageResource(k2);
|
|
myBarView2.e(myBarView2.q, 64, s02);
|
|
}
|
|
}
|
|
if (z && p6() && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.181
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.p6()) {
|
|
return;
|
|
}
|
|
webViewActivity.J1();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void j8() {
|
|
CoordinatorLayout.LayoutParams layoutParams;
|
|
MyScrollBar myScrollBar = this.v3;
|
|
if (myScrollBar != null) {
|
|
if (PrefZone.x != 0) {
|
|
myScrollBar.setVisibility(4);
|
|
} else {
|
|
myScrollBar.setVisibility(8);
|
|
}
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.setScrollPos(PrefZone.x);
|
|
}
|
|
int i = this.w3;
|
|
int i2 = PrefZone.x;
|
|
if (i != i2) {
|
|
this.w3 = i2;
|
|
if (i2 == 0 || (layoutParams = (CoordinatorLayout.LayoutParams) this.v3.getLayoutParams()) == null) {
|
|
return;
|
|
}
|
|
if (this.w3 == 1) {
|
|
layoutParams.f611c = 3;
|
|
this.v3.setPosLeft(true);
|
|
} else {
|
|
layoutParams.f611c = 5;
|
|
this.v3.setPosLeft(false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void j9(boolean z) {
|
|
DialogConfirm dialogConfirm;
|
|
if (this.G1 || (dialogConfirm = this.kb) != null) {
|
|
return;
|
|
}
|
|
if (dialogConfirm != null) {
|
|
dialogConfirm.dismiss();
|
|
this.kb = null;
|
|
}
|
|
StringBuilder sb = new StringBuilder("국가/VPN(🔒) 표시는 IP 앞 두 자리 기반의 추정값으로,\n실제와 다를 수 있습니다.");
|
|
if (z) {
|
|
sb.append("\n\n본문과 댓글의 국기 아이콘을 누르면\n더 많은 기능을 사용하실 수 있습니다.");
|
|
}
|
|
DialogConfirm dialogConfirm2 = new DialogConfirm(this, sb.toString(), z, new DialogConfirm.DialogConfListener() { // from class: com.mycompany.app.web.WebViewActivity.632
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfListener
|
|
public final void a(boolean z2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z2) {
|
|
PrefZtri.s0 = false;
|
|
PrefSet.d(17, webViewActivity.i1, "mGuideFlag", false);
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.632.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
DialogConfirm dialogConfirm3 = webViewActivity2.kb;
|
|
if (dialogConfirm3 != null) {
|
|
dialogConfirm3.dismiss();
|
|
webViewActivity2.kb = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
this.kb = dialogConfirm2;
|
|
dialogConfirm2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.633
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogConfirm dialogConfirm3 = webViewActivity.kb;
|
|
if (dialogConfirm3 != null) {
|
|
dialogConfirm3.dismiss();
|
|
webViewActivity.kb = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:291:0x0381 */
|
|
/* JADX WARN: Removed duplicated region for block: B:350:0x045d */
|
|
/* JADX WARN: Removed duplicated region for block: B:353:0x0479 */
|
|
/* JADX WARN: Removed duplicated region for block: B:358:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:359:0x045f */
|
|
/* JADX WARN: Removed duplicated region for block: B:497:0x05da */
|
|
@Override // com.mycompany.app.main.MainActivity
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void k0(int r18, int r19, android.content.Intent r20) {
|
|
/*
|
|
Method dump skipped, instructions count: 1592
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.k0(int, int, android.content.Intent):void");
|
|
}
|
|
|
|
public final boolean k2(int i, boolean z, boolean z2) {
|
|
MyProgressDrawable myProgressDrawable;
|
|
int i2;
|
|
WebNestFrame webNestFrame;
|
|
if (this.I2 != null) {
|
|
if (z != MainUtil.k5(this.U1)) {
|
|
w7();
|
|
} else if (i != b3()) {
|
|
o8(t3(), b3());
|
|
}
|
|
if (z2 != MainApp.L1) {
|
|
if (!this.J2 && !this.K2 && (webNestFrame = this.H2) != null) {
|
|
webNestFrame.setDarkMode(this.U1);
|
|
}
|
|
this.I2.setDarkWeb(MainApp.L1);
|
|
WebFltView webFltView = this.Na;
|
|
if (webFltView != null) {
|
|
webFltView.i(true);
|
|
}
|
|
WebTtsView webTtsView = this.Za;
|
|
if (webTtsView != null && (myProgressDrawable = webTtsView.y) != null) {
|
|
if (PrefEditor.p > 0.9d && MainApp.L1) {
|
|
i2 = 176;
|
|
} else {
|
|
i2 = KotlinVersion.MAX_COMPONENT_VALUE;
|
|
}
|
|
if (webTtsView.x != i2) {
|
|
webTtsView.x = i2;
|
|
myProgressDrawable.c(i2);
|
|
webTtsView.invalidate();
|
|
}
|
|
}
|
|
WebFltView webFltView2 = this.bb;
|
|
if (webFltView2 != null) {
|
|
webFltView2.j();
|
|
}
|
|
WebFltView webFltView3 = this.cb;
|
|
if (webFltView3 != null) {
|
|
webFltView3.j();
|
|
}
|
|
WebFltView webFltView4 = this.db;
|
|
if (webFltView4 != null) {
|
|
webFltView4.j();
|
|
}
|
|
WebFltView webFltView5 = this.Nb;
|
|
if (webFltView5 != null) {
|
|
webFltView5.i(true);
|
|
}
|
|
WebFltView webFltView6 = this.lb;
|
|
if (webFltView6 != null) {
|
|
webFltView6.i(true);
|
|
}
|
|
WebFltView webFltView7 = this.T6;
|
|
if (webFltView7 != null) {
|
|
webFltView7.i(true);
|
|
}
|
|
WebFltView webFltView8 = this.ab;
|
|
if (webFltView8 != null) {
|
|
webFltView8.i(true);
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final int k3() {
|
|
if (MainUtil.V5(this)) {
|
|
return MainApp.F1;
|
|
}
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
return MainApp.F1;
|
|
}
|
|
int rectWidth = myWebBody.getRectWidth();
|
|
int rectHeight = this.e2.getRectHeight();
|
|
if (rectWidth != 0 && rectHeight != 0) {
|
|
if (((int) (Math.max(rectWidth, rectHeight) * 0.65f)) >= rectWidth) {
|
|
return MainApp.F1;
|
|
}
|
|
int i = (int) ((rectWidth - r1) / 2.0f);
|
|
int i2 = MainApp.F1;
|
|
if (i < i2) {
|
|
return i2;
|
|
}
|
|
return i;
|
|
}
|
|
return MainApp.F1;
|
|
}
|
|
|
|
public final void k4() {
|
|
DialogPopupMenu dialogPopupMenu = this.b7;
|
|
if (dialogPopupMenu != null) {
|
|
dialogPopupMenu.dismiss();
|
|
this.b7 = null;
|
|
}
|
|
}
|
|
|
|
public final void k5() {
|
|
if (this.f2 != null) {
|
|
try {
|
|
if (this.e4 == null) {
|
|
MyScrollNavi myScrollNavi = new MyScrollNavi(this);
|
|
this.e4 = myScrollNavi;
|
|
myScrollNavi.d(this.j1, true);
|
|
this.e4.setVisibility(4);
|
|
int i = MainApp.i1;
|
|
CoordinatorLayout.LayoutParams layoutParams = new CoordinatorLayout.LayoutParams(i, i);
|
|
layoutParams.f611c = 19;
|
|
this.f2.addView(this.e4, layoutParams);
|
|
}
|
|
if (this.f4 == null) {
|
|
MyScrollNavi myScrollNavi2 = new MyScrollNavi(this);
|
|
this.f4 = myScrollNavi2;
|
|
myScrollNavi2.d(this.j1, false);
|
|
this.f4.setVisibility(4);
|
|
int i2 = MainApp.i1;
|
|
CoordinatorLayout.LayoutParams layoutParams2 = new CoordinatorLayout.LayoutParams(i2, i2);
|
|
layoutParams2.f611c = 21;
|
|
this.f2.addView(this.f4, layoutParams2);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void k6(int i, boolean z, PrevPageListener prevPageListener) {
|
|
D2(i, z);
|
|
if (this.ag == null) {
|
|
f8();
|
|
if (prevPageListener != null) {
|
|
prevPageListener.a();
|
|
}
|
|
this.qc = false;
|
|
return;
|
|
}
|
|
this.Xf = prevPageListener;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass145());
|
|
}
|
|
|
|
public final void k7(int i) {
|
|
int i2;
|
|
if (!PrefPdf.z) {
|
|
i2 = t3();
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
myBarView.h(i, MainUtil.s0(i2, this.U1));
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
myBarView2.h(i, MainUtil.s0(0, this.U1));
|
|
}
|
|
WebFltView webFltView = this.bb;
|
|
if (webFltView != null) {
|
|
webFltView.k(i, true);
|
|
}
|
|
WebFltView webFltView2 = this.cb;
|
|
if (webFltView2 != null) {
|
|
webFltView2.k(i, true);
|
|
}
|
|
WebFltView webFltView3 = this.db;
|
|
if (webFltView3 != null) {
|
|
webFltView3.k(i, true);
|
|
}
|
|
}
|
|
|
|
public final void k8() {
|
|
WebNestView webNestView;
|
|
if (!this.Ym) {
|
|
this.Ym = true;
|
|
if (this.f2 == null) {
|
|
return;
|
|
}
|
|
if (this.C9) {
|
|
B6(true);
|
|
if (this.F1 && (webNestView = this.I2) != null) {
|
|
webNestView.setBackPlay(false);
|
|
U7(this.I2);
|
|
}
|
|
}
|
|
if (PrefSync.k) {
|
|
m0(new AnonymousClass511());
|
|
return;
|
|
}
|
|
MainUtil.k(this.i1);
|
|
if (PrefSecret.o) {
|
|
m0(new AnonymousClass511());
|
|
} else {
|
|
MainUtil.B(this.O0, new AnonymousClass510());
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void k9(String str, String str2) {
|
|
String str3;
|
|
if (this.I2 == null || this.G1) {
|
|
return;
|
|
}
|
|
String U3 = MainUtil.U3(str, false);
|
|
if (TextUtils.isEmpty(str2)) {
|
|
str3 = MainUtil.t2(U3);
|
|
} else {
|
|
str3 = str2;
|
|
}
|
|
if (!TextUtils.isEmpty(str3)) {
|
|
if (str3.startsWith("video")) {
|
|
l9(str, null, str3, 0L, 5, str);
|
|
return;
|
|
} else if (str3.startsWith("audio")) {
|
|
l9(str, null, str3, 0L, 6, str);
|
|
return;
|
|
} else if (str3.startsWith("image")) {
|
|
l9(str, null, str3, 0L, 4, str);
|
|
return;
|
|
}
|
|
}
|
|
if (Compress.H(U3)) {
|
|
l9(str, null, str3, 0L, 7, str);
|
|
} else {
|
|
l9(str, null, "video/*", 0L, 5, str);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:95:? A[RETURN, SYNTHETIC] */
|
|
@Override // com.mycompany.app.main.MainActivity
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void l0() {
|
|
/*
|
|
Method dump skipped, instructions count: 311
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.l0():void");
|
|
}
|
|
|
|
public final void l2() {
|
|
if (!MainConst.d) {
|
|
if (!this.Eg) {
|
|
this.Eg = true;
|
|
this.D0 = new MainActivity.MainHeightListener() { // from class: com.mycompany.app.web.WebViewActivity.167
|
|
@Override // com.mycompany.app.main.MainActivity.MainHeightListener
|
|
public final void a() {
|
|
Handler handler;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 != null || (handler = webViewActivity.O0) == null) {
|
|
return;
|
|
}
|
|
handler.post(new AnonymousClass168());
|
|
}
|
|
};
|
|
}
|
|
if (this.Dg) {
|
|
this.Dg = false;
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.166
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.166.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler2;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (PrefWeb.t) {
|
|
PrefMain.v = false;
|
|
}
|
|
if (PrefWeb.u) {
|
|
PrefMain.x = false;
|
|
PrefMain.w = 0;
|
|
}
|
|
MainUtil.h(webViewActivity.i1, webViewActivity.getWindow(), webViewActivity.a0());
|
|
if (webViewActivity.R5 != null || (handler2 = webViewActivity.O0) == null) {
|
|
return;
|
|
}
|
|
handler2.post(new AnonymousClass168());
|
|
}
|
|
});
|
|
}
|
|
}, 800L);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final int l3() {
|
|
int i = this.oa;
|
|
if (i != -1) {
|
|
return i;
|
|
}
|
|
WebTabBarAdapter webTabBarAdapter = this.b3;
|
|
if (webTabBarAdapter != null) {
|
|
int i2 = (int) this.V9;
|
|
int i3 = (int) this.W9;
|
|
MyManagerLinear myManagerLinear = webTabBarAdapter.f;
|
|
if (myManagerLinear != null) {
|
|
int U0 = myManagerLinear.U0();
|
|
int V0 = myManagerLinear.V0() + 1;
|
|
while (true) {
|
|
if (U0 >= V0) {
|
|
break;
|
|
}
|
|
View s = myManagerLinear.s(U0);
|
|
if (s == null || !MainUtil.J5(i2, i3, 0, s)) {
|
|
U0++;
|
|
} else {
|
|
WebTabAdapter.WebTabItem B = webTabBarAdapter.B(U0);
|
|
if (B != null) {
|
|
if (B.q != null) {
|
|
return WebTabBarAdapter.D(B) + 10000;
|
|
}
|
|
return B.h;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public final void l4() {
|
|
DialogPreImage dialogPreImage = this.a8;
|
|
if (dialogPreImage != null) {
|
|
dialogPreImage.dismiss();
|
|
this.a8 = null;
|
|
}
|
|
this.ln = null;
|
|
}
|
|
|
|
public final void l5() {
|
|
if (this.f2 != null) {
|
|
if (PrefZone.n == 3 && this.T3 == null) {
|
|
J1();
|
|
}
|
|
if (PrefZone.r == 3 && this.b4 == null) {
|
|
a2();
|
|
}
|
|
if (F3()) {
|
|
k5();
|
|
}
|
|
if (PrefZone.y != 0) {
|
|
Z1();
|
|
}
|
|
if (PrefZtri.H) {
|
|
N1();
|
|
}
|
|
if (PrefZtri.k) {
|
|
b2();
|
|
}
|
|
I7(6);
|
|
I7(7);
|
|
I7(8);
|
|
if (PrefZtwo.J && PrefZtri.C && !QuickView.s()) {
|
|
P1();
|
|
}
|
|
if (T5()) {
|
|
K1();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void l6(boolean z) {
|
|
this.B1 = null;
|
|
this.C1 = false;
|
|
MainApp p = MainApp.p(this.i1);
|
|
if (p != null) {
|
|
p.g = z;
|
|
}
|
|
if (MainApp.A(this.i1)) {
|
|
c5();
|
|
}
|
|
m6();
|
|
}
|
|
|
|
public final void l7(boolean z) {
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
myBarView.setIconLoad(z);
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
myBarView2.setIconLoad(z);
|
|
}
|
|
}
|
|
|
|
public final void l8(boolean z) {
|
|
if (this.Ec) {
|
|
return;
|
|
}
|
|
this.Ec = true;
|
|
this.Ym = false;
|
|
PrefSync.k = z;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.507
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainDownSvc mainDownSvc;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
PrefSync r = PrefSync.r(webViewActivity.i1, false);
|
|
if (r != null) {
|
|
int i = PrefSync.n;
|
|
int i2 = PrefSync.l;
|
|
if (i != i2) {
|
|
PrefSync.n = i2;
|
|
r.n(i2, "mNormalIndex");
|
|
}
|
|
int i3 = PrefSync.o;
|
|
int i4 = PrefSync.m;
|
|
if (i3 != i4) {
|
|
PrefSync.o = i4;
|
|
r.n(i4, "mSecretIndex");
|
|
}
|
|
r.l("mSecretMode", PrefSync.k);
|
|
}
|
|
if (!PrefSync.k && !PrefSecret.n) {
|
|
DbBookTab.n(webViewActivity.i1, true);
|
|
if (PrefSync.m != 0) {
|
|
PrefSync.m = 0;
|
|
if (r != null) {
|
|
int i5 = PrefSync.n;
|
|
int i6 = PrefSync.l;
|
|
if (i5 != i6) {
|
|
PrefSync.n = i6;
|
|
r.n(i6, "mNormalIndex");
|
|
}
|
|
int i7 = PrefSync.o;
|
|
int i8 = PrefSync.m;
|
|
if (i7 != i8) {
|
|
PrefSync.o = i8;
|
|
r.n(i8, "mSecretIndex");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (r != null) {
|
|
r.c();
|
|
}
|
|
if (MainUtil.z6() && !PrefSecret.w) {
|
|
PrefSecret.w = true;
|
|
PrefSet.g(9, webViewActivity.i1, "mLockSkip", true);
|
|
}
|
|
if (PrefTts.w && !PrefTts.x) {
|
|
PrefTts.x = true;
|
|
PrefSet.g(12, webViewActivity.i1, "mSkipKeypad", true);
|
|
}
|
|
MainApp p = MainApp.p(webViewActivity.getApplicationContext());
|
|
if (p != null && p.u && (mainDownSvc = p.v) != null) {
|
|
mainDownSvc.Q(false, false);
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.507.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.f2 != null) {
|
|
WebVideoFrame webVideoFrame = webViewActivity2.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.e();
|
|
webViewActivity2.b5();
|
|
}
|
|
webViewActivity2.r6();
|
|
webViewActivity2.I3(true);
|
|
webViewActivity2.K3();
|
|
webViewActivity2.X4(false);
|
|
webViewActivity2.t6(false);
|
|
if (!PrefSync.k && !PrefSecret.n) {
|
|
webViewActivity2.k8();
|
|
return;
|
|
}
|
|
if (!webViewActivity2.Q1 && (webNestView = webViewActivity2.I2) != null && !webNestView.z0) {
|
|
WebTabAdapter.WebTabItem n3 = webViewActivity2.n3(webViewActivity2.P2);
|
|
if (n3 == null) {
|
|
webViewActivity2.k8();
|
|
return;
|
|
}
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.508
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i9 = WebViewActivity.Fo;
|
|
WebViewActivity.this.k8();
|
|
}
|
|
}, 1000L);
|
|
webViewActivity2.I2.V(webViewActivity2.H2, n3.f19520c, n3.j, new WebNestView.WebBundleListener() { // from class: com.mycompany.app.web.WebViewActivity.509
|
|
@Override // com.mycompany.app.web.WebNestView.WebBundleListener
|
|
public final void a() {
|
|
Handler handler3 = WebViewActivity.this.O0;
|
|
if (handler3 == null) {
|
|
return;
|
|
}
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.509.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i9 = WebViewActivity.Fo;
|
|
webViewActivity3.k8();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
webViewActivity2.k8();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void l9(String str, String str2, String str3, long j, int i, String str4) {
|
|
int i2;
|
|
boolean z = this.bk;
|
|
String str5 = this.ck;
|
|
boolean z2 = this.dk;
|
|
String str6 = this.ek;
|
|
boolean z3 = this.fk;
|
|
List list = this.gk;
|
|
int i3 = this.hk;
|
|
ArrayList arrayList = this.ik;
|
|
boolean z4 = this.jk;
|
|
this.bk = false;
|
|
this.ck = null;
|
|
this.dk = false;
|
|
this.ek = null;
|
|
this.fk = false;
|
|
this.gk = null;
|
|
this.ik = null;
|
|
this.lk = this.kk;
|
|
this.kk = false;
|
|
if (this.I2 != null && !this.G1) {
|
|
if (!z2 && !TextUtils.isEmpty(str) && str.startsWith("blob:")) {
|
|
this.kl = str;
|
|
this.ll = str2;
|
|
this.ml = str3;
|
|
this.nl = j;
|
|
m0(new AnonymousClass369());
|
|
return;
|
|
}
|
|
String str7 = str3;
|
|
if (MainUtil.r5(str)) {
|
|
str7 = "video/*";
|
|
i2 = 5;
|
|
} else {
|
|
i2 = i;
|
|
}
|
|
this.nk = z;
|
|
this.ok = str;
|
|
this.pk = str2;
|
|
this.qk = str7;
|
|
this.rk = j;
|
|
this.sk = i2;
|
|
this.tk = str4;
|
|
this.uk = str5;
|
|
this.vk = str6;
|
|
this.wk = z3;
|
|
this.xk = list;
|
|
this.yk = i3;
|
|
this.zk = arrayList;
|
|
this.Ak = z4;
|
|
this.Bk = this.I2.getUrl();
|
|
this.Ck = this.I2.getTitle();
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.358
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.358.1
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:114:0x012e */
|
|
/* JADX WARN: Removed duplicated region for block: B:23:0x012c */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x015a */
|
|
/* JADX WARN: Removed duplicated region for block: B:29:0x0268 */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x0289 */
|
|
/* JADX WARN: Removed duplicated region for block: B:43:0x0295 */
|
|
/* JADX WARN: Removed duplicated region for block: B:48:0x02a1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:51:0x02ac */
|
|
/* JADX WARN: Removed duplicated region for block: B:54:0x02b7 */
|
|
/* JADX WARN: Removed duplicated region for block: B:57:0x02e3 A[ORIG_RETURN, RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:58:0x02e4 */
|
|
/* JADX WARN: Removed duplicated region for block: B:60:0x02bc */
|
|
/* JADX WARN: Removed duplicated region for block: B:61:0x02b1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:63:0x0162 */
|
|
/* JADX WARN: Type inference failed for: r12v1, types: [int] */
|
|
/* JADX WARN: Type inference failed for: r12v11 */
|
|
/* JADX WARN: Type inference failed for: r12v3 */
|
|
/* JADX WARN: Type inference failed for: r12v6 */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 749
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass358.AnonymousClass1.run():void");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:133:0x00a0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:152:0x00df */
|
|
/* JADX WARN: Removed duplicated region for block: B:155:0x00ed */
|
|
/* JADX WARN: Removed duplicated region for block: B:158:0x00fb */
|
|
/* JADX WARN: Removed duplicated region for block: B:161:0x0102 */
|
|
/* JADX WARN: Removed duplicated region for block: B:171:0x0122 */
|
|
/* JADX WARN: Removed duplicated region for block: B:178:0x00a5 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void m2(int r17, int r18) {
|
|
/*
|
|
Method dump skipped, instructions count: 706
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.m2(int, int):void");
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r7v4, types: [java.lang.Object, com.mycompany.app.web.WebTabAdapter$WebTabItem] */
|
|
public final ArrayList m3() {
|
|
boolean z;
|
|
List<WebTabAdapter.WebTabItem> list = this.O2;
|
|
ArrayList arrayList = null;
|
|
if (list != null && !list.isEmpty()) {
|
|
try {
|
|
long j = -1;
|
|
int i = 0;
|
|
for (WebTabAdapter.WebTabItem webTabItem : list) {
|
|
if (webTabItem != null) {
|
|
if (webTabItem.d != j) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
webTabItem.d = j;
|
|
webTabItem.h = i;
|
|
j = webTabItem.f19520c;
|
|
i++;
|
|
if (z) {
|
|
if (arrayList == null) {
|
|
arrayList = new ArrayList();
|
|
}
|
|
?? obj = new Object();
|
|
obj.f19520c = webTabItem.f19520c;
|
|
obj.d = webTabItem.d;
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
public final void m4() {
|
|
DialogPreview dialogPreview = this.Z7;
|
|
if (dialogPreview != null) {
|
|
dialogPreview.dismiss();
|
|
this.Z7 = null;
|
|
}
|
|
this.hn = null;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v2, types: [android.widget.FrameLayout, com.mycompany.app.quick.QuickSearch, android.view.View] */
|
|
public final void m5() {
|
|
if (this.A3 == null && this.f2 != null) {
|
|
?? frameLayout = new FrameLayout(this);
|
|
frameLayout.f = this;
|
|
frameLayout.O = true;
|
|
this.A3 = frameLayout;
|
|
frameLayout.setVisibility(8);
|
|
QuickSearch quickSearch = this.A3;
|
|
boolean z = this.U1;
|
|
boolean O5 = true ^ O5();
|
|
QuickSearch.QuickSearchListener quickSearchListener = new QuickSearch.QuickSearchListener() { // from class: com.mycompany.app.web.WebViewActivity.459
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final MyWebBody f() {
|
|
return WebViewActivity.this.e2;
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void g(int i, String str) {
|
|
MyEditAuto myEditAuto = WebViewActivity.this.x2;
|
|
if (myEditAuto == null) {
|
|
return;
|
|
}
|
|
myEditAuto.i(i, str);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void h(WebSearchAdapter.SearchItem searchItem) {
|
|
WebViewActivity.i1(WebViewActivity.this, searchItem);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void i(String str) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.a7(str);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void j(String str) {
|
|
MyEditAuto myEditAuto;
|
|
if (TextUtils.isEmpty(str) || (myEditAuto = WebViewActivity.this.x2) == null) {
|
|
return;
|
|
}
|
|
myEditAuto.i(str.length(), str);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void k() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void l(int i, String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null) {
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
if (i == 0) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
if (MainUtil.A6(8)) {
|
|
webViewActivity.O1(null, str, true, null);
|
|
return;
|
|
} else {
|
|
webViewActivity.S5(str, null);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) QuickAdd.class);
|
|
if (!webViewActivity.U1) {
|
|
String j3 = WebViewActivity.j3(webViewActivity.s3(false));
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
intent.putExtra("EXTRA_NAME", webViewActivity.v3(webViewActivity.I2, j3));
|
|
}
|
|
webViewActivity.t0(intent, 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void m(int i) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.B1(webViewActivity, true, i);
|
|
webViewActivity.k9 = false;
|
|
webViewActivity.E7(false);
|
|
}
|
|
|
|
@Override // com.mycompany.app.quick.QuickSearch.QuickSearchListener
|
|
public final void n(int i, int i2, int i3, String str, int i4) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.C1(webViewActivity, i, i2, i3, i4, str);
|
|
}
|
|
};
|
|
quickSearch.f17438c = this;
|
|
quickSearch.f = this;
|
|
quickSearch.s = quickSearchListener;
|
|
int h = QuickSearch.h(quickSearch.k());
|
|
quickSearch.i = z;
|
|
quickSearch.j = MainUtil.U4();
|
|
quickSearch.k = PrefWeb.U;
|
|
quickSearch.l = MainApp.K1;
|
|
quickSearch.m = O5;
|
|
quickSearch.n = h;
|
|
quickSearch.o = PrefPdf.G;
|
|
quickSearch.p = PrefZtri.k0;
|
|
quickSearch.q = quickSearch.g;
|
|
this.f2.addView(this.A3, -1, -1);
|
|
this.f2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.460
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
QuickSearch quickSearch2 = WebViewActivity.this.A3;
|
|
if (quickSearch2 != null) {
|
|
quickSearch2.j();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void m6() {
|
|
MyWebBody myWebBody;
|
|
final boolean z;
|
|
if (!PrefSync.j && !this.C1 && this.B1 == null) {
|
|
int i = this.t9;
|
|
if (i != 0) {
|
|
if (i == 2) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
this.t9 = 0;
|
|
MyWebBody myWebBody2 = this.e2;
|
|
if (myWebBody2 != null) {
|
|
myWebBody2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.49
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2 = WebViewActivity.Fo;
|
|
if (Build.VERSION.SDK_INT >= 33 && !PrefSync.j && PrefZtri.o0) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!MainUtil.T5(webViewActivity.i1, 5) || webViewActivity.G1 || webViewActivity.J5()) {
|
|
return;
|
|
}
|
|
DialogGuideNoti dialogGuideNoti = webViewActivity.n6;
|
|
if (dialogGuideNoti != null) {
|
|
dialogGuideNoti.dismiss();
|
|
webViewActivity.n6 = null;
|
|
}
|
|
if (z) {
|
|
PrefZtri.o0 = false;
|
|
PrefSet.d(17, webViewActivity.i1, "mGuideNoti", false);
|
|
}
|
|
DialogGuideNoti dialogGuideNoti2 = new DialogGuideNoti(webViewActivity);
|
|
webViewActivity.n6 = dialogGuideNoti2;
|
|
dialogGuideNoti2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.346
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogGuideNoti dialogGuideNoti3 = webViewActivity2.n6;
|
|
if (dialogGuideNoti3 != null) {
|
|
dialogGuideNoti3.dismiss();
|
|
webViewActivity2.n6 = null;
|
|
}
|
|
if (MainUtil.T5(webViewActivity2.i1, 5)) {
|
|
webViewActivity2.B9 = MainUtil.N4(webViewActivity2, 5);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!PrefZtwo.y && (myWebBody = this.e2) != null) {
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.50
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.L9(true);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0037, code lost:
|
|
|
|
r0 = true;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:55:0x0044, code lost:
|
|
|
|
if (r6.P2 <= 0) goto L32;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:16:0x004c */
|
|
/* JADX WARN: Removed duplicated region for block: B:22:0x0079 */
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x008b */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:47:0x006f */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void m7() {
|
|
/*
|
|
r6 = this;
|
|
com.mycompany.app.web.WebNestView r0 = r6.I2
|
|
if (r0 != 0) goto L6
|
|
goto L99
|
|
L6:
|
|
java.util.List r0 = r6.O2
|
|
r1 = 2
|
|
r2 = 1
|
|
r3 = 0
|
|
if (r0 == 0) goto L47
|
|
int r0 = r0.size()
|
|
if (r0 != 0) goto L14
|
|
goto L47
|
|
L14:
|
|
boolean r0 = com.mycompany.app.pref.PrefZtwo.E
|
|
if (r0 == 0) goto L39
|
|
com.mycompany.app.web.WebNestFrame r0 = r6.H2
|
|
com.mycompany.app.web.WebNestView r4 = r0.getPageValid()
|
|
if (r4 == 0) goto L27
|
|
boolean r4 = r4.canGoBack()
|
|
if (r4 == 0) goto L27
|
|
goto L37
|
|
L27:
|
|
java.util.List r4 = r0.o
|
|
if (r4 != 0) goto L2c
|
|
goto L42
|
|
L2c:
|
|
int r4 = r4.size()
|
|
if (r4 >= r1) goto L33
|
|
goto L42
|
|
L33:
|
|
int r0 = r0.p
|
|
if (r0 <= 0) goto L42
|
|
L37:
|
|
r0 = r2
|
|
goto L48
|
|
L39:
|
|
com.mycompany.app.web.WebNestView r0 = r6.I2
|
|
boolean r0 = r0.canGoBack()
|
|
if (r0 == 0) goto L42
|
|
goto L37
|
|
L42:
|
|
int r0 = r6.P2
|
|
if (r0 <= 0) goto L47
|
|
goto L37
|
|
L47:
|
|
r0 = r3
|
|
L48:
|
|
boolean r4 = com.mycompany.app.pref.PrefZtwo.E
|
|
if (r4 == 0) goto L6f
|
|
com.mycompany.app.web.WebNestFrame r4 = r6.H2
|
|
com.mycompany.app.web.WebNestView r5 = r4.getPageValid()
|
|
if (r5 == 0) goto L5b
|
|
boolean r5 = r5.canGoForward()
|
|
if (r5 == 0) goto L5b
|
|
goto L75
|
|
L5b:
|
|
java.util.List r5 = r4.o
|
|
if (r5 != 0) goto L60
|
|
goto L6d
|
|
L60:
|
|
int r5 = r5.size()
|
|
if (r5 >= r1) goto L67
|
|
goto L6d
|
|
L67:
|
|
int r1 = r4.p
|
|
int r5 = r5 - r2
|
|
if (r1 >= r5) goto L6d
|
|
goto L75
|
|
L6d:
|
|
r2 = r3
|
|
goto L75
|
|
L6f:
|
|
com.mycompany.app.web.WebNestView r1 = r6.I2
|
|
boolean r2 = r1.canGoForward()
|
|
L75:
|
|
com.mycompany.app.view.MyBarView r1 = r6.o2
|
|
if (r1 == 0) goto L87
|
|
com.mycompany.app.view.MyIconView r3 = r1.l
|
|
if (r3 == 0) goto L80
|
|
r3.setClickEnabled(r0)
|
|
L80:
|
|
com.mycompany.app.view.MyIconView r1 = r1.m
|
|
if (r1 == 0) goto L87
|
|
r1.setClickEnabled(r2)
|
|
L87:
|
|
com.mycompany.app.view.MyBarView r1 = r6.p2
|
|
if (r1 == 0) goto L99
|
|
com.mycompany.app.view.MyIconView r3 = r1.l
|
|
if (r3 == 0) goto L92
|
|
r3.setClickEnabled(r0)
|
|
L92:
|
|
com.mycompany.app.view.MyIconView r0 = r1.m
|
|
if (r0 == 0) goto L99
|
|
r0.setClickEnabled(r2)
|
|
L99:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.m7():void");
|
|
}
|
|
|
|
public final void m8(String str, String str2) {
|
|
if (!this.ol) {
|
|
this.ol = true;
|
|
this.pl = str;
|
|
this.ql = str2;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.372
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str3 = webViewActivity.pl;
|
|
String str4 = webViewActivity.ql;
|
|
webViewActivity.pl = null;
|
|
webViewActivity.ql = null;
|
|
webViewActivity.B9 = MainUtil.a8(webViewActivity, str3, str4);
|
|
webViewActivity.ol = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void m9() {
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
DialogEditShort dialogEditShort = this.l6;
|
|
if (dialogEditShort != null) {
|
|
dialogEditShort.dismiss();
|
|
this.l6 = null;
|
|
}
|
|
String s3 = s3(true);
|
|
if (TextUtils.isEmpty(s3)) {
|
|
return;
|
|
}
|
|
DialogEditShort dialogEditShort2 = new DialogEditShort(this, s3, v3(this.I2, s3), 0, new DialogEditShort.EditShortListener() { // from class: com.mycompany.app.web.WebViewActivity.340
|
|
@Override // com.mycompany.app.dialog.DialogEditShort.EditShortListener
|
|
public final void a() {
|
|
WebViewActivity.this.B9 = true;
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogEditShort.EditShortListener
|
|
public final Bitmap getIcon() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return null;
|
|
}
|
|
return webNestView.getFavicon();
|
|
}
|
|
});
|
|
this.l6 = dialogEditShort2;
|
|
dialogEditShort2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.341
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
DialogEditShort dialogEditShort3 = webViewActivity.l6;
|
|
if (dialogEditShort3 != null) {
|
|
dialogEditShort3.dismiss();
|
|
webViewActivity.l6 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:65:0x00f1, code lost:
|
|
|
|
if (android.webkit.URLUtil.isNetworkUrl(r13) != false) goto L63;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x005e */
|
|
/* JADX WARN: Type inference failed for: r0v8, types: [java.lang.Object, java.util.Comparator] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean n2(java.lang.String r13) {
|
|
/*
|
|
Method dump skipped, instructions count: 257
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.n2(java.lang.String):boolean");
|
|
}
|
|
|
|
public final WebTabAdapter.WebTabItem n3(int i) {
|
|
try {
|
|
List list = this.O2;
|
|
if (list != null && i >= 0 && i < list.size()) {
|
|
return (WebTabAdapter.WebTabItem) this.O2.get(i);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final void n4() {
|
|
DialogPrintPage dialogPrintPage = this.C6;
|
|
if (dialogPrintPage != null) {
|
|
dialogPrintPage.dismiss();
|
|
this.C6 = null;
|
|
}
|
|
}
|
|
|
|
public final void n5() {
|
|
WebNestView webNestView;
|
|
if (this.f2 == null) {
|
|
return;
|
|
}
|
|
m5();
|
|
h5();
|
|
g5();
|
|
if (this.M2 == null && this.f2 != null && PrefWeb.x != 0) {
|
|
int i = this.q2;
|
|
int i2 = this.r2;
|
|
T1(i, i2);
|
|
U1(i, i2);
|
|
this.f2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.87
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AppBarLayout appBarLayout = WebViewActivity.this.g2;
|
|
if (appBarLayout != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
v5();
|
|
if (this.M2 == null && this.f2 != null && (webNestView = this.I2) != null) {
|
|
WebNestFrame webNestFrame = this.H2;
|
|
N8(webNestView, 0);
|
|
O8(webNestView);
|
|
P8(webNestView);
|
|
Q8(webNestFrame, webNestView, 0);
|
|
}
|
|
t5();
|
|
u5();
|
|
l5();
|
|
e5();
|
|
}
|
|
|
|
public final void n6() {
|
|
MyWebBody myWebBody;
|
|
if (this.I2 == null || (myWebBody = this.e2) == null) {
|
|
return;
|
|
}
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.406
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.D8(false);
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void n7() {
|
|
int i;
|
|
int i2;
|
|
List list = this.O2;
|
|
if (list != null) {
|
|
i = list.size();
|
|
} else {
|
|
i = 0;
|
|
}
|
|
if (!PrefPdf.z) {
|
|
i2 = t3();
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
int i3 = this.P2;
|
|
int s0 = MainUtil.s0(i2, this.U1);
|
|
MyIconView myIconView = myBarView.n;
|
|
if (myIconView != null) {
|
|
myIconView.y(i3, i, s0);
|
|
}
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
int i4 = this.P2;
|
|
int s02 = MainUtil.s0(0, this.U1);
|
|
MyIconView myIconView2 = myBarView2.n;
|
|
if (myIconView2 != null) {
|
|
myIconView2.y(i4, i, s02);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void n8(int i) {
|
|
MyFadeRelative myFadeRelative = this.l1;
|
|
if (myFadeRelative != null && this.u1 != null) {
|
|
if (myFadeRelative.getHeight() < (MainApp.g1 * 4) + this.z1) {
|
|
this.q1.setVisibility(8);
|
|
this.r1.setVisibility(8);
|
|
return;
|
|
}
|
|
if (i == 0) {
|
|
this.u1.setAlpha(0.8f);
|
|
this.v1.setAlpha(0.2f);
|
|
this.w1.setAlpha(0.2f);
|
|
this.x1.setAlpha(0.2f);
|
|
this.s1.setText(R.string.intro_text_1);
|
|
this.q1.setVisibility(8);
|
|
this.r1.setVisibility(0);
|
|
return;
|
|
}
|
|
if (i == 1) {
|
|
this.u1.setAlpha(0.2f);
|
|
this.v1.setAlpha(0.8f);
|
|
this.w1.setAlpha(0.2f);
|
|
this.x1.setAlpha(0.2f);
|
|
this.s1.setText(R.string.intro_text_2);
|
|
this.q1.setVisibility(0);
|
|
this.r1.setVisibility(0);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
this.u1.setAlpha(0.2f);
|
|
this.v1.setAlpha(0.2f);
|
|
this.w1.setAlpha(0.8f);
|
|
this.x1.setAlpha(0.2f);
|
|
this.s1.setText(R.string.intro_text_3);
|
|
this.q1.setVisibility(0);
|
|
this.r1.setVisibility(0);
|
|
return;
|
|
}
|
|
this.u1.setAlpha(0.2f);
|
|
this.v1.setAlpha(0.2f);
|
|
this.w1.setAlpha(0.2f);
|
|
this.x1.setAlpha(0.8f);
|
|
this.s1.setText(R.string.intro_text_4);
|
|
this.q1.setVisibility(0);
|
|
this.r1.setVisibility(8);
|
|
}
|
|
}
|
|
|
|
public final void n9() {
|
|
if (PrefZtri.q0 && !this.G1) {
|
|
if (this.f8 == null && J5()) {
|
|
return;
|
|
}
|
|
W3();
|
|
DialogConfirm dialogConfirm = new DialogConfirm((Activity) this, true, new DialogConfirm.DialogConfBtnListener() { // from class: com.mycompany.app.web.WebViewActivity.565
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfBtnListener
|
|
public final void a(boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z) {
|
|
PrefZtri.q0 = false;
|
|
PrefSet.d(17, webViewActivity.i1, "mGuideDark", false);
|
|
}
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.W3();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfBtnListener
|
|
public final void b() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.W3();
|
|
MainUtil.Q4(webViewActivity, "com.google.android.webview");
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfBtnListener
|
|
public final void onCancel() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.W3();
|
|
}
|
|
});
|
|
this.g8 = dialogConfirm;
|
|
dialogConfirm.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.566
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.W3();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final int o2(float f) {
|
|
if (this.e2 != null && i0()) {
|
|
if (f < MainApp.D1) {
|
|
return 1;
|
|
}
|
|
if (f > this.e2.getWidth() - MainApp.D1) {
|
|
return 2;
|
|
}
|
|
return 0;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final void o4() {
|
|
DialogPrompt dialogPrompt = this.v7;
|
|
if (dialogPrompt != null) {
|
|
dialogPrompt.dismiss();
|
|
this.v7 = null;
|
|
}
|
|
}
|
|
|
|
public final void o5() {
|
|
this.aa = 0;
|
|
this.ba = 0;
|
|
this.ca = false;
|
|
}
|
|
|
|
public final void o6() {
|
|
int i;
|
|
int i2;
|
|
String str;
|
|
this.h4 = PrefZtwo.F;
|
|
this.i4 = PrefMain.D;
|
|
this.j4 = PrefMain.E;
|
|
this.k4 = PrefMain.F;
|
|
this.l4 = PrefPdf.z;
|
|
this.m4 = PrefWeb.v;
|
|
this.n4 = PrefWeb.w;
|
|
this.o4 = MainUtil.G3();
|
|
this.p4 = MainUtil.i0();
|
|
int i3 = PrefWeb.x;
|
|
this.q4 = i3;
|
|
this.r4 = PrefWeb.y;
|
|
this.s4 = PrefWeb.z;
|
|
this.t4 = PrefPdf.D;
|
|
this.u4 = PrefPdf.E;
|
|
boolean z = false;
|
|
if (i3 != 1 && i3 != 2) {
|
|
i = 0;
|
|
} else {
|
|
i = PrefPdf.F;
|
|
}
|
|
this.v4 = i;
|
|
if (MainUtil.S4()) {
|
|
i2 = PrefPdf.F;
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
this.w4 = i2;
|
|
this.x4 = PrefMain.G;
|
|
this.y4 = PrefMain.H;
|
|
this.z4 = PrefMain.B;
|
|
this.A4 = PrefMain.C;
|
|
this.B4 = PrefMain.l;
|
|
this.C4 = F3();
|
|
this.D4 = T5();
|
|
this.E4 = MainUtil.k5(this.U1);
|
|
this.F4 = MainApp.L1;
|
|
this.G4 = PrefWeb.M;
|
|
this.H4 = PrefWeb.N;
|
|
this.I4 = PrefWeb.U;
|
|
this.J4 = b3();
|
|
this.K4 = PrefWeb.t;
|
|
this.L4 = PrefWeb.u;
|
|
this.M4 = PrefPdf.H;
|
|
this.N4 = PrefZone.x;
|
|
this.O4 = PrefEditor.I;
|
|
this.P4 = PrefEditor.J;
|
|
this.Q4 = PrefZone.y;
|
|
this.R4 = PrefZtwo.E;
|
|
this.S4 = PrefZone.u;
|
|
this.T4 = PrefZone.n;
|
|
this.U4 = PrefZone.o;
|
|
this.V4 = PrefZone.p;
|
|
this.W4 = PrefZone.q;
|
|
this.X4 = PrefEditor.m;
|
|
this.Y4 = PrefZone.r;
|
|
this.Z4 = PrefZone.s;
|
|
this.a5 = PrefZone.t;
|
|
this.b5 = PrefEditor.y;
|
|
this.c5 = PrefPdf.s;
|
|
this.d5 = PrefEditor.q;
|
|
this.e5 = PrefZone.O;
|
|
this.f5 = PrefTts.F;
|
|
this.g5 = PrefTts.G;
|
|
this.h5 = PrefTts.J;
|
|
this.i5 = PrefZtri.H;
|
|
this.j5 = PrefEditor.R;
|
|
this.k5 = PrefAlbum.u;
|
|
this.l5 = PrefAlbum.w;
|
|
this.m5 = this.M6;
|
|
this.n5 = PrefEditor.Z;
|
|
this.o5 = PrefZtri.k;
|
|
this.p5 = PrefEditor.u;
|
|
this.q5 = PrefFloat.j;
|
|
this.r5 = PrefFloat.k;
|
|
this.s5 = PrefFloat.l;
|
|
this.t5 = PrefFloat.s;
|
|
this.u5 = PrefFloat.w;
|
|
this.v5 = PrefFloat.A;
|
|
this.w5 = PrefWeb.O;
|
|
this.x5 = t3();
|
|
boolean z2 = PrefZtwo.J;
|
|
this.y5 = z2;
|
|
this.z5 = PrefZtwo.L;
|
|
this.A5 = PrefZtwo.N;
|
|
if (z2 && PrefZtwo.O) {
|
|
z = true;
|
|
}
|
|
this.B5 = z;
|
|
if (z) {
|
|
str = PrefZtwo.P;
|
|
} else {
|
|
str = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
this.C5 = str;
|
|
this.D5 = PrefZtri.C;
|
|
this.E5 = PrefEditor.N;
|
|
this.F5 = PrefZtwo.r;
|
|
this.G5 = MainUtil.W5();
|
|
this.H5 = PrefZtwo.Z;
|
|
this.I5 = PrefZtwo.a0;
|
|
this.J5 = PrefSecret.x;
|
|
this.K5 = PrefZtwo.U;
|
|
}
|
|
|
|
public final void o7(int i) {
|
|
WebTabAdapter.WebTabItem n3 = n3(i);
|
|
if (n3 == null) {
|
|
this.N2 = null;
|
|
return;
|
|
}
|
|
try {
|
|
if (PrefZtwo.G < 3) {
|
|
n3.b = System.currentTimeMillis();
|
|
this.N2 = null;
|
|
return;
|
|
}
|
|
List list = this.N2;
|
|
if (list == null) {
|
|
this.N2 = new ArrayList();
|
|
} else {
|
|
long j = n3.b;
|
|
if (j != 0) {
|
|
list.remove(Long.valueOf(j));
|
|
}
|
|
}
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
n3.b = currentTimeMillis;
|
|
this.N2.add(Long.valueOf(currentTimeMillis));
|
|
int min = Math.min(PrefZtwo.G, this.O2.size());
|
|
int size = this.N2.size();
|
|
if (size > min) {
|
|
this.N2 = this.N2.subList(size - min, size);
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x008d, code lost:
|
|
|
|
if (r7 != false) goto L61;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:51:0x0091, code lost:
|
|
|
|
r13 = -460552;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:53:0x0095, code lost:
|
|
|
|
if (r7 != false) goto L61;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x006c */
|
|
/* JADX WARN: Removed duplicated region for block: B:27:0x008d */
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x00b2 */
|
|
/* JADX WARN: Removed duplicated region for block: B:44:0x00cd */
|
|
/* JADX WARN: Removed duplicated region for block: B:47:0x00e0 A[ORIG_RETURN, RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:49:0x00e1 */
|
|
/* JADX WARN: Removed duplicated region for block: B:52:0x0093 */
|
|
/* JADX WARN: Removed duplicated region for block: B:64:0x0084 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void o8(int r13, int r14) {
|
|
/*
|
|
Method dump skipped, instructions count: 234
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.o8(int, int):void");
|
|
}
|
|
|
|
public final void o9() {
|
|
if (PrefRead.q && !this.G1 && !J5()) {
|
|
X3();
|
|
if (this.R5 != null) {
|
|
this.nb = true;
|
|
MainApp.K1 = true;
|
|
}
|
|
DialogConfirm dialogConfirm = new DialogConfirm(this, new DialogConfirm.DialogConfListener() { // from class: com.mycompany.app.web.WebViewActivity.347
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfListener
|
|
public final void a(boolean z) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z) {
|
|
PrefRead.q = false;
|
|
PrefSet.d(8, webViewActivity.i1, "mGuideDown", false);
|
|
}
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity.X3();
|
|
}
|
|
});
|
|
this.o6 = dialogConfirm;
|
|
dialogConfirm.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.348
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.X3();
|
|
webViewActivity.C7(0);
|
|
}
|
|
});
|
|
if (this.R5 != null) {
|
|
this.o6.E = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity, android.view.Window.Callback
|
|
public final void onActionModeFinished(ActionMode actionMode) {
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead != null) {
|
|
dialogViewRead.W0 = null;
|
|
}
|
|
this.l9 = null;
|
|
super.onActionModeFinished(actionMode);
|
|
}
|
|
|
|
@Override // android.app.Activity, android.view.Window.Callback
|
|
public final void onActionModeStarted(ActionMode actionMode) {
|
|
if (z5()) {
|
|
this.m8.setActionMode(actionMode);
|
|
super.onActionModeStarted(actionMode);
|
|
return;
|
|
}
|
|
this.l9 = null;
|
|
if (!this.j9 && actionMode != null) {
|
|
TextSelectMenu.apply(this, actionMode);
|
|
}
|
|
super.onActionModeStarted(actionMode);
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainActivity, androidx.activity.ComponentActivity, android.app.Activity
|
|
public final void onBackPressed() {
|
|
if (Y()) {
|
|
return;
|
|
}
|
|
l0();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.mycompany.app.main.MainActivity, androidx.appcompat.app.AppCompatActivity, androidx.activity.ComponentActivity, android.app.Activity, android.content.ComponentCallbacks
|
|
public final void onConfigurationChanged(Configuration configuration) {
|
|
Object[] objArr;
|
|
String str;
|
|
boolean z;
|
|
MyWebCoord myWebCoord;
|
|
QuickView quickView;
|
|
QuickView quickView2;
|
|
super.onConfigurationChanged(configuration);
|
|
I4();
|
|
C4();
|
|
g4();
|
|
G4();
|
|
x4();
|
|
DialogOpenType dialogOpenType = this.a7;
|
|
if (dialogOpenType != null) {
|
|
dialogOpenType.dismiss();
|
|
this.a7 = null;
|
|
}
|
|
k4();
|
|
DialogWebSelect dialogWebSelect = this.E7;
|
|
if (dialogWebSelect != null) {
|
|
dialogWebSelect.dismiss();
|
|
this.E7 = null;
|
|
}
|
|
e4();
|
|
z6();
|
|
L6();
|
|
I3(true);
|
|
boolean z2 = false;
|
|
int i = 0;
|
|
if (this.F1) {
|
|
MainApp.K1 = MainUtil.i5(true, configuration);
|
|
MainApp.L1 = MainUtil.i5(false, configuration);
|
|
} else {
|
|
boolean k5 = MainUtil.k5(this.U1);
|
|
boolean z3 = MainApp.L1;
|
|
int b3 = b3();
|
|
MainApp.K1 = MainUtil.i5(true, configuration);
|
|
MainApp.L1 = MainUtil.i5(false, configuration);
|
|
k2(b3, k5, z3);
|
|
}
|
|
if (this.R5 == null) {
|
|
r7(PrefWeb.t, PrefWeb.u);
|
|
MyWebCoord myWebCoord2 = this.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.653
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.R5 == null) {
|
|
WebViewActivity.V0(webViewActivity, PrefWeb.t);
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.653.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass653 anonymousClass653 = AnonymousClass653.this;
|
|
if (WebViewActivity.this.R5 == null && MainUtil.U4()) {
|
|
if (PrefTts.F != 0 || PrefTts.G != 0) {
|
|
int t3 = WebViewActivity.this.t3();
|
|
WebViewActivity.this.W8(t3, WebViewActivity.this.u3());
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.o8(t3, webViewActivity2.b3());
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
boolean h0 = h0();
|
|
if (this.qb != h0) {
|
|
objArr = true;
|
|
} else {
|
|
objArr = false;
|
|
}
|
|
this.qb = h0;
|
|
O7(h0);
|
|
K9(false);
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null && !this.F1) {
|
|
webVideoFrame.o();
|
|
}
|
|
if (this.G3 != null) {
|
|
p4();
|
|
q4();
|
|
R4();
|
|
} else {
|
|
DialogCapture dialogCapture = this.A6;
|
|
if (dialogCapture != null) {
|
|
dialogCapture.q(h0);
|
|
} else {
|
|
DialogSetTrans dialogSetTrans = this.D6;
|
|
if (dialogSetTrans != null) {
|
|
DialogListBook dialogListBook = dialogSetTrans.o0;
|
|
if (dialogListBook != null) {
|
|
dialogListBook.q(configuration);
|
|
}
|
|
} else {
|
|
DialogTabMain dialogTabMain = this.N7;
|
|
if (dialogTabMain != null) {
|
|
dialogTabMain.H();
|
|
} else {
|
|
DialogTabMini dialogTabMini = this.O7;
|
|
if (dialogTabMini != null) {
|
|
dialogTabMini.T();
|
|
} else {
|
|
DialogDownUrl dialogDownUrl = this.p6;
|
|
if (dialogDownUrl != null) {
|
|
dialogDownUrl.S(h0);
|
|
} else {
|
|
DialogAllowPopup dialogAllowPopup = this.e7;
|
|
if (dialogAllowPopup != null) {
|
|
DialogListBook dialogListBook2 = dialogAllowPopup.l0;
|
|
if (dialogListBook2 != null) {
|
|
dialogListBook2.q(configuration);
|
|
}
|
|
} else {
|
|
DialogBlockLink dialogBlockLink = this.f7;
|
|
if (dialogBlockLink != null) {
|
|
DialogListBook dialogListBook3 = dialogBlockLink.n0;
|
|
if (dialogListBook3 != null) {
|
|
dialogListBook3.q(configuration);
|
|
}
|
|
} else {
|
|
DialogBlockImage dialogBlockImage = this.g7;
|
|
if (dialogBlockImage != null) {
|
|
DialogListBook dialogListBook4 = dialogBlockImage.t0;
|
|
if (dialogListBook4 != null) {
|
|
dialogListBook4.q(configuration);
|
|
}
|
|
} else {
|
|
DialogVideoList dialogVideoList = this.X7;
|
|
if (dialogVideoList != null) {
|
|
dialogVideoList.H(h0);
|
|
} else {
|
|
DialogDownFont dialogDownFont = this.Y7;
|
|
if (dialogDownFont != null) {
|
|
dialogDownFont.G(h0);
|
|
} else {
|
|
DialogSeekWebText dialogSeekWebText = this.d8;
|
|
if (dialogSeekWebText != null) {
|
|
if (dialogSeekWebText.E0 != null) {
|
|
if (h0) {
|
|
z = dialogSeekWebText.q();
|
|
} else {
|
|
z = h0;
|
|
}
|
|
FrameLayout frameLayout = dialogSeekWebText.E0;
|
|
if (z) {
|
|
i = 8;
|
|
}
|
|
frameLayout.setVisibility(i);
|
|
}
|
|
} else {
|
|
DialogSetFull dialogSetFull = this.e8;
|
|
if (dialogSetFull != null) {
|
|
dialogSetFull.B(h0);
|
|
} else {
|
|
DialogSetAdblock dialogSetAdblock = this.i8;
|
|
if (dialogSetAdblock != null) {
|
|
DialogListBook dialogListBook5 = dialogSetAdblock.l0;
|
|
if (dialogListBook5 != null) {
|
|
dialogListBook5.q(configuration);
|
|
}
|
|
} else {
|
|
DialogSetJava dialogSetJava = this.j8;
|
|
if (dialogSetJava != null) {
|
|
DialogListBook dialogListBook6 = dialogSetJava.l0;
|
|
if (dialogListBook6 != null) {
|
|
dialogListBook6.q(configuration);
|
|
}
|
|
} else {
|
|
DialogSetTmem dialogSetTmem = this.k8;
|
|
if (dialogSetTmem != null) {
|
|
DialogListBook dialogListBook7 = dialogSetTmem.l0;
|
|
if (dialogListBook7 != null) {
|
|
dialogListBook7.q(configuration);
|
|
}
|
|
} else {
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead != null) {
|
|
DialogSetTts dialogSetTts = dialogViewRead.L0;
|
|
if (dialogSetTts != null) {
|
|
if (h0) {
|
|
MainActivity mainActivity = dialogViewRead.f;
|
|
if (mainActivity != null) {
|
|
z2 = mainActivity.B0;
|
|
}
|
|
} else {
|
|
z2 = h0;
|
|
}
|
|
dialogSetTts.E(z2);
|
|
}
|
|
boolean z4 = dialogViewRead.O0;
|
|
boolean z5 = MainApp.K1;
|
|
if (z4 != z5) {
|
|
dialogViewRead.O0 = z5;
|
|
dialogViewRead.m0();
|
|
if (dialogViewRead.y != null) {
|
|
StringBuilder sb = new StringBuilder("(function(){var els=document.querySelectorAll('p');if(els&&(els.length>0)){for(var i=0;i<els.length;i++){els[i].style.color=");
|
|
if (MainApp.K1) {
|
|
str = "'white'";
|
|
} else {
|
|
str = "'black'";
|
|
}
|
|
sb.append(str);
|
|
sb.append(";}}})();");
|
|
MainUtil.I(dialogViewRead.y, sb.toString(), true);
|
|
}
|
|
}
|
|
dialogViewRead.e0(true);
|
|
} else {
|
|
DialogViewSrc dialogViewSrc = this.p8;
|
|
if (dialogViewSrc != null) {
|
|
boolean z6 = dialogViewSrc.j0;
|
|
boolean z7 = MainApp.K1;
|
|
if (z6 != z7) {
|
|
dialogViewSrc.j0 = z7;
|
|
dialogViewSrc.r();
|
|
if (MainUtil.j5()) {
|
|
dialogViewSrc.s(MainApp.K1);
|
|
} else {
|
|
MainUtil.X7(dialogViewSrc.O.getSettings(), MainApp.K1);
|
|
}
|
|
}
|
|
dialogViewSrc.f();
|
|
} else {
|
|
DialogWebBookList dialogWebBookList = this.j6;
|
|
if (dialogWebBookList != null) {
|
|
dialogWebBookList.v(configuration);
|
|
} else {
|
|
DialogListBook dialogListBook8 = this.k6;
|
|
if (dialogListBook8 != null) {
|
|
dialogListBook8.q(configuration);
|
|
} else {
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog != null) {
|
|
webGridDialog.B();
|
|
} else {
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog != null) {
|
|
webEmgDialog.E();
|
|
} else {
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog != null) {
|
|
webHmgDialog.E();
|
|
} else {
|
|
DialogSetUseTts dialogSetUseTts = this.h8;
|
|
if (dialogSetUseTts != null) {
|
|
DialogSetTts dialogSetTts2 = dialogSetUseTts.h0;
|
|
if (dialogSetTts2 != null) {
|
|
dialogSetTts2.E(h0);
|
|
}
|
|
} else {
|
|
DialogWebView dialogWebView = this.c7;
|
|
if (dialogWebView != null) {
|
|
dialogWebView.U(h0);
|
|
} else {
|
|
DialogViewIp dialogViewIp = this.jb;
|
|
if (dialogViewIp != null) {
|
|
dialogViewIp.L(h0);
|
|
} else {
|
|
DialogListBook dialogListBook9 = this.ib;
|
|
if (dialogListBook9 != null) {
|
|
dialogListBook9.q(configuration);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
DialogPreview dialogPreview = this.Z7;
|
|
if (dialogPreview != null) {
|
|
dialogPreview.D(h0);
|
|
} else {
|
|
DialogPreImage dialogPreImage = this.a8;
|
|
if (dialogPreImage != null) {
|
|
dialogPreImage.C(h0);
|
|
}
|
|
}
|
|
QuickSchEdit quickSchEdit = this.C3;
|
|
if (quickSchEdit != null && (quickView2 = quickSchEdit.i) != null) {
|
|
quickView2.h(h0);
|
|
}
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null && (quickView = webNestView.Z0) != null) {
|
|
quickView.h(h0);
|
|
}
|
|
WebSearchAdapter webSearchAdapter = this.D2;
|
|
if (webSearchAdapter != null) {
|
|
webSearchAdapter.l = null;
|
|
ArrayList arrayList = webSearchAdapter.m;
|
|
if (arrayList != null && !arrayList.isEmpty()) {
|
|
webSearchAdapter.g();
|
|
}
|
|
}
|
|
y7(true);
|
|
if (objArr != false && MainUtil.C5(this.U1)) {
|
|
MyWebCoord myWebCoord3 = this.f2;
|
|
if (myWebCoord3 != null) {
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.651
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MyWebCoord myWebCoord4;
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.c8(true);
|
|
if (!PrefPdf.z || (myWebCoord4 = webViewActivity.f2) == null) {
|
|
return;
|
|
}
|
|
myWebCoord4.post(new AnonymousClass652());
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!PrefPdf.z || (myWebCoord = this.f2) == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass652());
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:105:0x0489 */
|
|
/* JADX WARN: Removed duplicated region for block: B:108:0x04c4 */
|
|
/* JADX WARN: Removed duplicated region for block: B:123:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:57:0x0352 */
|
|
/* JADX WARN: Removed duplicated region for block: B:60:0x037a */
|
|
/* JADX WARN: Removed duplicated region for block: B:65:0x03a4 */
|
|
/* JADX WARN: Type inference failed for: r12v2, types: [com.mycompany.app.view.MyWebBody, android.widget.RelativeLayout, android.view.View, android.view.ViewGroup] */
|
|
/* JADX WARN: Type inference failed for: r5v8, types: [android.widget.FrameLayout, android.view.View, com.mycompany.app.web.WebNestLayout] */
|
|
@Override // com.mycompany.app.main.MainActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void onCreate(android.os.Bundle r18) {
|
|
/*
|
|
Method dump skipped, instructions count: 1263
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.onCreate(android.os.Bundle):void");
|
|
}
|
|
|
|
@Override // android.app.Activity, android.view.View.OnCreateContextMenuListener
|
|
public final void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
|
|
WebNestView webNestView;
|
|
String str;
|
|
MyWebBody myWebBody;
|
|
if (!TextUtils.isEmpty(this.B8) && this.B8.startsWith("www.pinterest.")) {
|
|
if (this.I2 != null && (myWebBody = this.e2) != null) {
|
|
myWebBody.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.641
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!TextUtils.isEmpty(webViewActivity.B8) && webViewActivity.B8.startsWith("www.pinterest.") && (webNestView2 = webViewActivity.I2) != null) {
|
|
webNestView2.evaluateJavascript("document.body.style='';", null);
|
|
}
|
|
}
|
|
}, 400L);
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
if (this.k7 == null && this.R5 == null && (webNestView = this.I2) != null) {
|
|
try {
|
|
WebView.HitTestResult hitTestResult = webNestView.getHitTestResult();
|
|
if (hitTestResult != null) {
|
|
int type = hitTestResult.getType();
|
|
String str2 = null;
|
|
if (type == 5) {
|
|
str = hitTestResult.getExtra();
|
|
} else if (type == 7) {
|
|
str2 = hitTestResult.getExtra();
|
|
str = null;
|
|
} else if (type == 8) {
|
|
str = hitTestResult.getExtra();
|
|
} else {
|
|
str = null;
|
|
}
|
|
this.I2.requestFocusNodeHref(new AnchorHandler(this, str2, str).obtainMessage());
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
|
|
public final void onDestroy() {
|
|
EventReceiver eventReceiver = this.H9;
|
|
if (eventReceiver != null) {
|
|
unregisterReceiver(eventReceiver);
|
|
this.H9 = null;
|
|
}
|
|
DataTrans.a(this.i1).f12900a = null;
|
|
if (!this.G1) {
|
|
this.G1 = true;
|
|
this.I9 = false;
|
|
this.J9 = false;
|
|
M3();
|
|
M4();
|
|
MainFilterSvc mainFilterSvc = this.Tb;
|
|
if (mainFilterSvc != null) {
|
|
mainFilterSvc.d();
|
|
this.Tb = null;
|
|
}
|
|
MainScriptSvc mainScriptSvc = this.Ub;
|
|
if (mainScriptSvc != null) {
|
|
mainScriptSvc.d();
|
|
this.Ub = null;
|
|
}
|
|
A6();
|
|
}
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.u();
|
|
this.R5 = null;
|
|
}
|
|
super.onDestroy();
|
|
f2();
|
|
QuickNews quickNews = this.bm;
|
|
if (quickNews != null) {
|
|
quickNews.c();
|
|
this.bm = null;
|
|
}
|
|
this.cm = 0;
|
|
MainTransNews mainTransNews = this.dm;
|
|
if (mainTransNews != null) {
|
|
mainTransNews.b();
|
|
this.dm = null;
|
|
}
|
|
C6();
|
|
s6();
|
|
u6();
|
|
y6();
|
|
t6(true);
|
|
D6();
|
|
MainWebDestroy mainWebDestroy = this.d2;
|
|
if (mainWebDestroy != null) {
|
|
mainWebDestroy.b = null;
|
|
mainWebDestroy.f17023c = null;
|
|
mainWebDestroy.d = null;
|
|
mainWebDestroy.l = null;
|
|
this.d2 = null;
|
|
}
|
|
KeyHelper keyHelper = this.c2;
|
|
if (keyHelper != null) {
|
|
keyHelper.b = null;
|
|
keyHelper.f15717c = null;
|
|
keyHelper.d = null;
|
|
this.c2 = null;
|
|
}
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.g = null;
|
|
myWebBody.i = null;
|
|
myWebBody.k = null;
|
|
myWebBody.m = null;
|
|
myWebBody.r = null;
|
|
myWebBody.s = null;
|
|
myWebBody.t = null;
|
|
myWebBody.u = null;
|
|
myWebBody.v = null;
|
|
myWebBody.w = null;
|
|
myWebBody.x = null;
|
|
this.e2 = null;
|
|
}
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.A();
|
|
myWebCoord.L = null;
|
|
myWebCoord.C = null;
|
|
myWebCoord.D = null;
|
|
this.f2 = null;
|
|
}
|
|
MyBarFrame myBarFrame = this.j2;
|
|
if (myBarFrame != null) {
|
|
myBarFrame.h = null;
|
|
myBarFrame.n = null;
|
|
myBarFrame.o = null;
|
|
myBarFrame.p = null;
|
|
this.j2 = null;
|
|
}
|
|
MyBarFrame myBarFrame2 = this.k2;
|
|
if (myBarFrame2 != null) {
|
|
myBarFrame2.h = null;
|
|
myBarFrame2.n = null;
|
|
myBarFrame2.o = null;
|
|
myBarFrame2.p = null;
|
|
this.k2 = null;
|
|
}
|
|
MyBarView myBarView = this.o2;
|
|
if (myBarView != null) {
|
|
myBarView.d();
|
|
this.o2 = null;
|
|
}
|
|
MyBarView myBarView2 = this.p2;
|
|
if (myBarView2 != null) {
|
|
myBarView2.d();
|
|
this.p2 = null;
|
|
}
|
|
MyAddrView myAddrView = this.s2;
|
|
if (myAddrView != null) {
|
|
myAddrView.f18517c = null;
|
|
myAddrView.f = null;
|
|
myAddrView.g = null;
|
|
myAddrView.k = null;
|
|
myAddrView.l = null;
|
|
myAddrView.n = null;
|
|
this.s2 = null;
|
|
}
|
|
MyIconView myIconView = this.t2;
|
|
if (myIconView != null) {
|
|
myIconView.m();
|
|
this.t2 = null;
|
|
}
|
|
MyIconView myIconView2 = this.u2;
|
|
if (myIconView2 != null) {
|
|
myIconView2.m();
|
|
this.u2 = null;
|
|
}
|
|
MyIconView myIconView3 = this.v2;
|
|
if (myIconView3 != null) {
|
|
myIconView3.m();
|
|
this.v2 = null;
|
|
}
|
|
MyIconView myIconView4 = this.w2;
|
|
if (myIconView4 != null) {
|
|
myIconView4.m();
|
|
this.w2 = null;
|
|
}
|
|
MyEditAuto myEditAuto = this.x2;
|
|
if (myEditAuto != null) {
|
|
myEditAuto.g();
|
|
this.x2 = null;
|
|
}
|
|
MyProgressBar myProgressBar = this.G2;
|
|
if (myProgressBar != null) {
|
|
myProgressBar.f();
|
|
this.G2 = null;
|
|
}
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.v();
|
|
this.H2 = null;
|
|
}
|
|
this.I2 = null;
|
|
MyPullView myPullView = this.M2;
|
|
if (myPullView != null) {
|
|
myPullView.g = null;
|
|
myPullView.r = null;
|
|
myPullView.s = null;
|
|
myPullView.t = null;
|
|
myPullView.u = null;
|
|
myPullView.v = null;
|
|
this.M2 = null;
|
|
}
|
|
WebNestFrame webNestFrame2 = this.Q2;
|
|
if (webNestFrame2 != null) {
|
|
webNestFrame2.v();
|
|
this.Q2 = null;
|
|
}
|
|
WebNestFrame webNestFrame3 = this.U2;
|
|
if (webNestFrame3 != null) {
|
|
webNestFrame3.v();
|
|
this.U2 = null;
|
|
}
|
|
MyRecyclerView myRecyclerView = this.Y2;
|
|
if (myRecyclerView != null) {
|
|
myRecyclerView.s0();
|
|
this.Y2 = null;
|
|
}
|
|
MyButtonImage myButtonImage = this.Z2;
|
|
if (myButtonImage != null) {
|
|
myButtonImage.j();
|
|
this.Z2 = null;
|
|
}
|
|
WebTabBarAdapter webTabBarAdapter = this.b3;
|
|
if (webTabBarAdapter != null) {
|
|
webTabBarAdapter.H();
|
|
this.b3 = null;
|
|
}
|
|
TabDragHelper tabDragHelper = this.e3;
|
|
if (tabDragHelper != null) {
|
|
tabDragHelper.p();
|
|
this.e3 = null;
|
|
}
|
|
MyScrollBar myScrollBar = this.v3;
|
|
if (myScrollBar != null) {
|
|
myScrollBar.k();
|
|
this.v3 = null;
|
|
}
|
|
WebUpView webUpView = this.P3;
|
|
if (webUpView != null) {
|
|
webUpView.e();
|
|
this.P3 = null;
|
|
}
|
|
MyIconView myIconView5 = this.R3;
|
|
if (myIconView5 != null) {
|
|
myIconView5.m();
|
|
this.R3 = null;
|
|
}
|
|
MyIconView myIconView6 = this.S3;
|
|
if (myIconView6 != null) {
|
|
myIconView6.m();
|
|
this.S3 = null;
|
|
}
|
|
WebDownView webDownView = this.T3;
|
|
if (webDownView != null) {
|
|
webDownView.j();
|
|
this.T3 = null;
|
|
}
|
|
MyIconView myIconView7 = this.Z3;
|
|
if (myIconView7 != null) {
|
|
myIconView7.m();
|
|
this.Z3 = null;
|
|
}
|
|
MyIconView myIconView8 = this.a4;
|
|
if (myIconView8 != null) {
|
|
myIconView8.m();
|
|
this.a4 = null;
|
|
}
|
|
WebDownView webDownView2 = this.b4;
|
|
if (webDownView2 != null) {
|
|
webDownView2.j();
|
|
this.b4 = null;
|
|
}
|
|
MyScrollNavi myScrollNavi = this.e4;
|
|
if (myScrollNavi != null) {
|
|
myScrollNavi.g();
|
|
this.e4 = null;
|
|
}
|
|
MyScrollNavi myScrollNavi2 = this.f4;
|
|
if (myScrollNavi2 != null) {
|
|
myScrollNavi2.g();
|
|
this.f4 = null;
|
|
}
|
|
MyGesNoti myGesNoti = this.g4;
|
|
if (myGesNoti != null) {
|
|
myGesNoti.f18784c = false;
|
|
ValueAnimator valueAnimator = myGesNoti.h;
|
|
if (valueAnimator != null) {
|
|
valueAnimator.cancel();
|
|
myGesNoti.h = null;
|
|
}
|
|
ValueAnimator valueAnimator2 = myGesNoti.i;
|
|
if (valueAnimator2 != null) {
|
|
valueAnimator2.cancel();
|
|
myGesNoti.i = null;
|
|
}
|
|
myGesNoti.f = null;
|
|
myGesNoti.g = null;
|
|
myGesNoti.l = null;
|
|
this.g4 = null;
|
|
}
|
|
this.B1 = null;
|
|
this.L1 = null;
|
|
this.M1 = null;
|
|
this.g2 = null;
|
|
this.h2 = null;
|
|
this.i2 = null;
|
|
this.l2 = null;
|
|
this.m2 = null;
|
|
this.n2 = null;
|
|
this.X2 = null;
|
|
this.f3 = null;
|
|
this.M6 = null;
|
|
this.N6 = null;
|
|
this.P6 = null;
|
|
this.A8 = null;
|
|
this.B8 = null;
|
|
this.C8 = null;
|
|
this.D8 = null;
|
|
this.F8 = null;
|
|
this.K8 = null;
|
|
this.L8 = null;
|
|
this.M8 = null;
|
|
this.X8 = null;
|
|
this.v9 = null;
|
|
this.Ca = null;
|
|
this.O2 = null;
|
|
this.N2 = null;
|
|
this.rb = null;
|
|
this.sb = null;
|
|
this.tb = null;
|
|
this.Ab = null;
|
|
this.Bb = null;
|
|
this.Cb = null;
|
|
this.Db = null;
|
|
this.Eb = null;
|
|
if (this.h1 && !MainApp.Q1) {
|
|
MainApp.Q1 = true;
|
|
try {
|
|
System.exit(0);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x0036, code lost:
|
|
|
|
if (r0.g(r4) == false) goto L47;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x0066, code lost:
|
|
|
|
return true;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x0053, code lost:
|
|
|
|
if (V7(false, false) == false) goto L47;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:40:0x0064, code lost:
|
|
|
|
if (V7(true, false) == false) goto L47;
|
|
*/
|
|
@Override // com.mycompany.app.main.MainActivity, androidx.appcompat.app.AppCompatActivity, android.app.Activity, android.view.KeyEvent.Callback
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean onKeyDown(int r4, android.view.KeyEvent r5) {
|
|
/*
|
|
r3 = this;
|
|
r0 = 24
|
|
r1 = 0
|
|
r2 = 1
|
|
if (r4 == r0) goto L56
|
|
r0 = 25
|
|
if (r4 == r0) goto L45
|
|
r0 = 57
|
|
r1 = 0
|
|
if (r4 == r0) goto L3f
|
|
r0 = 58
|
|
if (r4 == r0) goto L39
|
|
r0 = 79
|
|
if (r4 == r0) goto L2d
|
|
r0 = 135(0x87, float:1.89E-43)
|
|
if (r4 == r0) goto L27
|
|
r0 = 85
|
|
if (r4 == r0) goto L2d
|
|
r0 = 86
|
|
if (r4 == r0) goto L2d
|
|
switch(r4) {
|
|
case 125: goto L39;
|
|
case 126: goto L2d;
|
|
case 127: goto L2d;
|
|
default: goto L26;
|
|
}
|
|
L26:
|
|
goto L67
|
|
L27:
|
|
r0 = 35
|
|
r3.d6(r1, r0)
|
|
goto L67
|
|
L2d:
|
|
com.mycompany.app.web.WebVideoFrame r0 = r3.R5
|
|
if (r0 != 0) goto L32
|
|
goto L67
|
|
L32:
|
|
boolean r0 = r0.g(r4)
|
|
if (r0 == 0) goto L67
|
|
goto L66
|
|
L39:
|
|
r0 = 27
|
|
r3.d6(r1, r0)
|
|
goto L67
|
|
L3f:
|
|
r0 = 26
|
|
r3.d6(r1, r0)
|
|
goto L67
|
|
L45:
|
|
boolean r0 = com.mycompany.app.pref.PrefZone.B
|
|
if (r0 != 0) goto L4a
|
|
goto L67
|
|
L4a:
|
|
boolean r0 = r3.T9
|
|
if (r0 == 0) goto L4f
|
|
goto L67
|
|
L4f:
|
|
boolean r0 = r3.V7(r1, r1)
|
|
if (r0 == 0) goto L67
|
|
goto L66
|
|
L56:
|
|
boolean r0 = com.mycompany.app.pref.PrefZone.B
|
|
if (r0 != 0) goto L5b
|
|
goto L67
|
|
L5b:
|
|
boolean r0 = r3.T9
|
|
if (r0 == 0) goto L60
|
|
goto L67
|
|
L60:
|
|
boolean r0 = r3.V7(r2, r1)
|
|
if (r0 == 0) goto L67
|
|
L66:
|
|
return r2
|
|
L67:
|
|
boolean r4 = super.onKeyDown(r4, r5)
|
|
return r4
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.onKeyDown(int, android.view.KeyEvent):boolean");
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentActivity, android.app.Activity
|
|
public final void onNewIntent(Intent intent) {
|
|
String stringExtra;
|
|
boolean booleanExtra;
|
|
MyEditAuto myEditAuto;
|
|
super.onNewIntent(intent);
|
|
if (this.i1 == null) {
|
|
this.i1 = getApplicationContext();
|
|
}
|
|
if (this.O0 == null) {
|
|
this.O0 = new Handler(Looper.getMainLooper());
|
|
}
|
|
this.j1 = MainUtil.O5(this.i1);
|
|
Uri data = intent.getData();
|
|
if (data != null) {
|
|
stringExtra = data.toString();
|
|
} else {
|
|
stringExtra = intent.getStringExtra("EXTRA_PATH");
|
|
}
|
|
if (TextUtils.isEmpty(stringExtra)) {
|
|
if (PrefTts.w && (myEditAuto = this.x2) != null) {
|
|
myEditAuto.postDelayed(new AnonymousClass225(), 200L);
|
|
}
|
|
this.U8 = false;
|
|
this.V8 = false;
|
|
return;
|
|
}
|
|
MainApp.I(this.i1, this.I2);
|
|
if (this.R5 != null) {
|
|
b5();
|
|
}
|
|
r6();
|
|
I3(true);
|
|
M3();
|
|
M4();
|
|
MainApp.M(this.i1);
|
|
if (!this.m9) {
|
|
this.m9 = true;
|
|
n5();
|
|
} else {
|
|
s5();
|
|
}
|
|
this.N1 = false;
|
|
String I1 = MainUtil.I1(stringExtra, true);
|
|
if (!TextUtils.isEmpty(I1) && (I1.contains("google") || I1.contains("adclick") || I1.contains("doubleclick"))) {
|
|
booleanExtra = false;
|
|
} else {
|
|
booleanExtra = intent.getBooleanExtra("EXTRA_EXT", false);
|
|
if (this.E1 && booleanExtra) {
|
|
this.N1 = true;
|
|
}
|
|
}
|
|
this.R1 = intent.getBooleanExtra("EXTRA_LAUNCH_LOCK", false);
|
|
this.S1 = stringExtra;
|
|
if (booleanExtra && PrefWeb.q != 0 && !DataBookPop.l(this.i1).n(this.A8, this.B8)) {
|
|
if (!TextUtils.isEmpty(stringExtra)) {
|
|
this.sj = stringExtra;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.301
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebClean webClean = webViewActivity.q9;
|
|
final boolean z = false;
|
|
if (webClean != null) {
|
|
String str = webViewActivity.B8;
|
|
String str2 = webViewActivity.sj;
|
|
String I12 = MainUtil.I1(str2, true);
|
|
if (!TextUtils.isEmpty(I12)) {
|
|
z = webClean.S(null, str, str2, I12, true);
|
|
}
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.301.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass301 anonymousClass301 = AnonymousClass301.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str3 = webViewActivity2.sj;
|
|
webViewActivity2.sj = null;
|
|
if (z) {
|
|
webViewActivity2.M9(str3, null);
|
|
return;
|
|
}
|
|
webViewActivity2.O1 = true;
|
|
webViewActivity2.F1(null, str3, false, null);
|
|
WebViewActivity.this.O1 = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
} else {
|
|
this.O1 = true;
|
|
F1(null, stringExtra, false, null);
|
|
this.O1 = false;
|
|
}
|
|
this.E1 = false;
|
|
this.U8 = false;
|
|
this.V8 = false;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x0088, code lost:
|
|
|
|
if (r3.n() != false) goto L57;
|
|
*/
|
|
@Override // com.mycompany.app.main.MainActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void onPause() {
|
|
/*
|
|
Method dump skipped, instructions count: 467
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.onPause():void");
|
|
}
|
|
|
|
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
|
|
public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
|
|
DialogCreateAlbum dialogCreateAlbum;
|
|
DialogCreateAlbum dialogCreateAlbum2;
|
|
DialogCreateAlbum dialogCreateAlbum3;
|
|
super.onRequestPermissionsResult(i, strArr, iArr);
|
|
DialogQuickEdit dialogQuickEdit = this.F3;
|
|
if (dialogQuickEdit != null && i == 30) {
|
|
if (iArr != null && iArr.length > 0 && iArr[0] == 0) {
|
|
dialogQuickEdit.C0 = MainUtil.C4(9, dialogQuickEdit.a0, false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
DialogEditShort dialogEditShort = this.l6;
|
|
if (dialogEditShort != null && i == 30) {
|
|
if (iArr != null && iArr.length > 0 && iArr[0] == 0) {
|
|
dialogEditShort.r0 = MainUtil.C4(9, dialogEditShort.a0, false);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog == null || (dialogCreateAlbum3 = webGridDialog.q0) == null || !dialogCreateAlbum3.F(i, iArr)) {
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog == null || (dialogCreateAlbum2 = webEmgDialog.s0) == null || !dialogCreateAlbum2.F(i, iArr)) {
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog == null || (dialogCreateAlbum = webHmgDialog.r0) == null || !dialogCreateAlbum.F(i, iArr)) {
|
|
if (i != 28) {
|
|
if (i != 29) {
|
|
switch (i) {
|
|
case 21:
|
|
if (iArr != null && iArr.length > 1 && iArr[0] == 0 && iArr[1] == 0) {
|
|
E3(i);
|
|
MainUtil.e8(this, R.string.permission_granted);
|
|
} else {
|
|
MainUtil.e8(this, R.string.permission_denied);
|
|
}
|
|
D6();
|
|
return;
|
|
case 22:
|
|
case ConnectionResult.API_DISABLED /* 23 */:
|
|
case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
|
|
if (iArr != null && iArr.length > 0 && iArr[0] == 0) {
|
|
E3(i);
|
|
MainUtil.e8(this, R.string.permission_granted);
|
|
} else {
|
|
MainUtil.e8(this, R.string.permission_denied);
|
|
}
|
|
D6();
|
|
return;
|
|
default:
|
|
return;
|
|
}
|
|
}
|
|
if (iArr != null && iArr.length > 0 && iArr[0] == 0) {
|
|
Uri C4 = MainUtil.C4(9, this, true);
|
|
this.P5 = C4;
|
|
if (C4 != null) {
|
|
this.B9 = true;
|
|
return;
|
|
} else {
|
|
c6(null);
|
|
return;
|
|
}
|
|
}
|
|
c6(null);
|
|
return;
|
|
}
|
|
if (iArr != null && iArr.length > 0 && iArr[0] == 0) {
|
|
Uri C42 = MainUtil.C4(9, this, false);
|
|
this.P5 = C42;
|
|
if (C42 != null) {
|
|
this.B9 = true;
|
|
return;
|
|
} else {
|
|
c6(null);
|
|
return;
|
|
}
|
|
}
|
|
c6(null);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
|
|
public final void onResume() {
|
|
int i;
|
|
DialogWebView dialogWebView;
|
|
DialogWebView dialogWebView2;
|
|
this.E1 = false;
|
|
boolean z = this.R1;
|
|
this.R1 = false;
|
|
if (this.i1 == null) {
|
|
this.i1 = getApplicationContext();
|
|
}
|
|
if (ImageLoader.f().f20963a == null) {
|
|
MainApp.y(this.i1);
|
|
}
|
|
if (this.O0 == null) {
|
|
this.O0 = new Handler(Looper.getMainLooper());
|
|
}
|
|
this.j1 = MainUtil.O5(this.i1);
|
|
super.onResume();
|
|
boolean z2 = this.k1;
|
|
this.k1 = false;
|
|
this.F1 = false;
|
|
this.G1 = false;
|
|
this.g1 = false;
|
|
this.h1 = false;
|
|
this.X8 = null;
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.e();
|
|
}
|
|
WebVideoPip webVideoPip = this.S5;
|
|
if (webVideoPip != null) {
|
|
WebVideoPip.EventReceiver eventReceiver = webVideoPip.j;
|
|
if (eventReceiver != null) {
|
|
MainActivity mainActivity = webVideoPip.f19693c;
|
|
if (mainActivity != null) {
|
|
mainActivity.unregisterReceiver(eventReceiver);
|
|
}
|
|
webVideoPip.j = null;
|
|
}
|
|
ViewGroup viewGroup = webVideoPip.h;
|
|
if (viewGroup != null) {
|
|
viewGroup.removeView(webVideoPip);
|
|
webVideoPip.h = null;
|
|
}
|
|
MyCoverView myCoverView = webVideoPip.i;
|
|
if (myCoverView != null) {
|
|
myCoverView.i();
|
|
webVideoPip.i = null;
|
|
}
|
|
MyWebSafe myWebSafe = webVideoPip.m;
|
|
if (myWebSafe != null) {
|
|
if (webVideoPip.n) {
|
|
webVideoPip.n = false;
|
|
myWebSafe.stopLoading();
|
|
}
|
|
MainUtil.P6(webVideoPip.m);
|
|
webVideoPip.m = null;
|
|
}
|
|
webVideoPip.f19693c = null;
|
|
webVideoPip.f = null;
|
|
webVideoPip.k = null;
|
|
webVideoPip.p = null;
|
|
this.S5 = null;
|
|
}
|
|
boolean z3 = true;
|
|
if (this.C9 || PrefTts.s) {
|
|
B6(true);
|
|
}
|
|
this.B9 = false;
|
|
this.E9 = false;
|
|
if (this.U7 == null && this.V7 == null && this.W7 == null) {
|
|
v6();
|
|
}
|
|
if (z2) {
|
|
W8(t3(), u3());
|
|
} else {
|
|
if (!this.m9) {
|
|
this.m9 = true;
|
|
n5();
|
|
} else {
|
|
s5();
|
|
}
|
|
d5();
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
webNestView.onResume();
|
|
}
|
|
PrintJob printJob = this.v9;
|
|
if (printJob != null) {
|
|
if (this.e2 == null) {
|
|
this.v9 = null;
|
|
} else {
|
|
try {
|
|
if (printJob.isCompleted()) {
|
|
MainUtil.e8(this, R.string.print_success);
|
|
} else if (this.v9.isFailed()) {
|
|
MainUtil.e8(this, R.string.print_fail);
|
|
} else if (!this.v9.isCancelled()) {
|
|
this.v9.cancel();
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
this.v9 = null;
|
|
}
|
|
}
|
|
QuickSearch quickSearch = this.A3;
|
|
if (quickSearch != null) {
|
|
quickSearch.n();
|
|
}
|
|
DialogWebBookList dialogWebBookList = this.j6;
|
|
if (dialogWebBookList != null) {
|
|
dialogWebBookList.w(true);
|
|
}
|
|
DialogListBook dialogListBook = this.k6;
|
|
if (dialogListBook != null) {
|
|
dialogListBook.s(true);
|
|
}
|
|
DialogSetTrans dialogSetTrans = this.D6;
|
|
if (dialogSetTrans != null) {
|
|
dialogSetTrans.C(true);
|
|
}
|
|
DialogWebView dialogWebView3 = this.c7;
|
|
if (dialogWebView3 != null) {
|
|
dialogWebView3.X();
|
|
}
|
|
DialogAllowPopup dialogAllowPopup = this.e7;
|
|
if (dialogAllowPopup != null) {
|
|
dialogAllowPopup.B(true);
|
|
}
|
|
DialogBlockLink dialogBlockLink = this.f7;
|
|
if (dialogBlockLink != null) {
|
|
dialogBlockLink.C(true);
|
|
}
|
|
DialogBlockImage dialogBlockImage = this.g7;
|
|
if (dialogBlockImage != null) {
|
|
dialogBlockImage.D(true);
|
|
}
|
|
DialogEditArea dialogEditArea = this.s7;
|
|
if (dialogEditArea != null && (dialogWebView2 = dialogEditArea.m0) != null) {
|
|
dialogWebView2.X();
|
|
}
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog != null) {
|
|
webGridDialog.D();
|
|
}
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog != null) {
|
|
webEmgDialog.G();
|
|
}
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog != null) {
|
|
webHmgDialog.G();
|
|
}
|
|
DialogPreview dialogPreview = this.Z7;
|
|
if (dialogPreview != null) {
|
|
dialogPreview.H();
|
|
}
|
|
DialogSetAdblock dialogSetAdblock = this.i8;
|
|
if (dialogSetAdblock != null) {
|
|
dialogSetAdblock.B(true);
|
|
}
|
|
DialogSetJava dialogSetJava = this.j8;
|
|
if (dialogSetJava != null) {
|
|
dialogSetJava.B(true);
|
|
}
|
|
DialogSetTmem dialogSetTmem = this.k8;
|
|
if (dialogSetTmem != null) {
|
|
dialogSetTmem.E(true);
|
|
}
|
|
DialogViewRead dialogViewRead = this.m8;
|
|
if (dialogViewRead != null) {
|
|
dialogViewRead.i0();
|
|
}
|
|
DialogSetVpn dialogSetVpn = this.r8;
|
|
if (dialogSetVpn != null && (dialogWebView = dialogSetVpn.m0) != null) {
|
|
dialogWebView.X();
|
|
}
|
|
DialogListBook dialogListBook2 = this.ib;
|
|
if (dialogListBook2 != null) {
|
|
dialogListBook2.s(true);
|
|
}
|
|
WebVideoFrame webVideoFrame2 = this.R5;
|
|
if (webVideoFrame2 != null) {
|
|
webVideoFrame2.p();
|
|
} else {
|
|
AppBarLayout appBarLayout = this.g2;
|
|
if (appBarLayout != null) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
}
|
|
Context context = this.i1;
|
|
if (PrefPdf.P) {
|
|
i = 2;
|
|
} else {
|
|
MainApp p = MainApp.p(context);
|
|
if (p == null) {
|
|
i = 0;
|
|
} else {
|
|
i = p.f;
|
|
}
|
|
}
|
|
if (i != 0 && this.u9 != null) {
|
|
m0(new AnonymousClass18());
|
|
}
|
|
Handler handler = this.O0;
|
|
if (handler != null) {
|
|
handler.post(new AnonymousClass26());
|
|
}
|
|
}
|
|
if (z2) {
|
|
MainImagePreview.E2 = false;
|
|
v2(true);
|
|
if (!MainApp.R1 || MainApp.N1 || PrefWeb.Z) {
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.57
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (!MainApp.R1) {
|
|
try {
|
|
System.loadLibrary("myutil");
|
|
MainApp.R1 = true;
|
|
} catch (Exception | UnsatisfiedLinkError unused2) {
|
|
}
|
|
}
|
|
boolean z4 = MainApp.N1;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z4) {
|
|
MainApp.N1 = false;
|
|
DbBookDown.a(webViewActivity.i1);
|
|
if (!TextUtils.isEmpty(PrefMain.I)) {
|
|
MainUtil.l8(webViewActivity.i1, true);
|
|
}
|
|
Context context2 = webViewActivity.i1;
|
|
if (context2 != null) {
|
|
try {
|
|
Intent intent = new Intent(context2, (Class<?>) WidgetSearchProviderLight.class);
|
|
intent.setAction("com.mycompany.app.soulbrowser.ACTION_SRCHGET_UPDATE");
|
|
context2.sendBroadcast(intent);
|
|
Intent intent2 = new Intent(context2, (Class<?>) WidgetSearchProviderDark.class);
|
|
intent2.setAction("com.mycompany.app.soulbrowser.ACTION_SRCHGET_UPDATE");
|
|
context2.sendBroadcast(intent2);
|
|
} catch (SecurityException | Exception unused3) {
|
|
}
|
|
}
|
|
}
|
|
if (PrefWeb.Z || z4) {
|
|
WebViewActivity.W0(webViewActivity);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
} else {
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.58
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MyWebCoord myWebCoord;
|
|
if (!MainApp.R1) {
|
|
try {
|
|
System.loadLibrary("myutil");
|
|
MainApp.R1 = true;
|
|
} catch (Exception | UnsatisfiedLinkError unused2) {
|
|
}
|
|
}
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
Context context2 = webViewActivity.i1;
|
|
Resources resources = webViewActivity.getResources();
|
|
MainApp.r(context2);
|
|
MainApp.s(context2);
|
|
MainApp.t(context2, resources);
|
|
MainApp.O1 = true;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.58.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.v2(false);
|
|
}
|
|
});
|
|
if (MainImagePreview.E2) {
|
|
MainImagePreview.E2 = false;
|
|
String W = MainUtil.W(webViewActivity.i1, PrefSync.k, false);
|
|
if (!TextUtils.isEmpty(W) && new File(W).exists() && (myWebCoord = webViewActivity.f2) != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.60
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.I2 == null) {
|
|
return;
|
|
}
|
|
if (!MainUtil.U4()) {
|
|
PrefWeb.t(webViewActivity2.i1, true);
|
|
webViewActivity2.c8(true);
|
|
} else {
|
|
webViewActivity2.c8(false);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (PrefWeb.Z) {
|
|
WebViewActivity.W0(webViewActivity);
|
|
}
|
|
if (!webViewActivity.J9) {
|
|
webViewActivity.J9 = true;
|
|
webViewActivity.x7();
|
|
webViewActivity.J9 = false;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
y7(true);
|
|
if (z && MainUtil.z6()) {
|
|
Intent i2 = MainUtil.i2(this.i1, PrefSecret.s);
|
|
i2.putExtra("EXTRA_TYPE", 0);
|
|
if (!TextUtils.isEmpty(this.S1)) {
|
|
i2.putExtra("EXTRA_PATH", this.S1);
|
|
} else {
|
|
i2.putExtra("EXTRA_PATH", this.A8);
|
|
}
|
|
t0(i2, 37);
|
|
} else {
|
|
this.S1 = null;
|
|
}
|
|
if (!this.L7 || this.G8) {
|
|
z3 = false;
|
|
}
|
|
this.M7 = z3;
|
|
this.L7 = false;
|
|
Handler handler2 = this.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.20
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler handler3;
|
|
boolean z4;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.O0 != null) {
|
|
MainUtil.g7(webViewActivity.getWindow(), PrefPdf.o, PrefPdf.n);
|
|
boolean z5 = true;
|
|
if (!PrefPdf.L) {
|
|
if (webViewActivity.Vb != 0) {
|
|
z4 = true;
|
|
} else {
|
|
z4 = false;
|
|
}
|
|
webViewActivity.Vb = 0L;
|
|
ScriptCache scriptCache = webViewActivity.Xb;
|
|
if (scriptCache != null) {
|
|
ScriptCriteria[] scriptCriteriaArr = scriptCache.b;
|
|
scriptCache.b = null;
|
|
if (scriptCriteriaArr != null) {
|
|
try {
|
|
scriptCache.f17546a.clear();
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
webViewActivity.Xb = null;
|
|
}
|
|
webViewActivity.Wb = null;
|
|
if (z4) {
|
|
webViewActivity.F6();
|
|
}
|
|
} else {
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.213
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebViewActivity.G0(webViewActivity2);
|
|
if (webViewActivity2.e2 != null && webViewActivity2.Ub == null && webViewActivity2.Vb != 0 && PrefPdf.L && PrefPdf.M != 0 && PrefPdf.N != 0) {
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
if (currentTimeMillis >= (PrefPdf.N * 86400000) + PrefPdf.M) {
|
|
PrefPdf.M = currentTimeMillis;
|
|
PrefPdf r = PrefPdf.r(webViewActivity2.i1, false);
|
|
r.o(PrefPdf.M, "mScriptTime");
|
|
r.a();
|
|
webViewActivity2.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.212
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (webViewActivity3.e2 != null) {
|
|
Context context2 = webViewActivity3.i1;
|
|
DbBookScript dbBookScript = DbBookScript.f12949c;
|
|
boolean z6 = false;
|
|
if (context2 != null) {
|
|
Cursor cursor = null;
|
|
try {
|
|
cursor = DbUtil.g(DbBookScript.d(context2).getWritableDatabase(), "DbBookScript_table", new String[]{"_downurl"}, "_enabled=?", new String[]{"1"}, null);
|
|
if (cursor != null && cursor.moveToFirst()) {
|
|
int columnIndex = cursor.getColumnIndex("_downurl");
|
|
while (true) {
|
|
if (TextUtils.isEmpty(cursor.getString(columnIndex))) {
|
|
if (!cursor.moveToNext()) {
|
|
break;
|
|
}
|
|
} else {
|
|
z6 = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception unused3) {
|
|
}
|
|
if (cursor != null) {
|
|
cursor.close();
|
|
}
|
|
}
|
|
if (!z6) {
|
|
return;
|
|
}
|
|
webViewActivity3.Ub = new MainScriptSvc(webViewActivity3.i1, new DialogSetDesk.SetDeskListener() { // from class: com.mycompany.app.web.WebViewActivity.212.1
|
|
@Override // com.mycompany.app.dialog.DialogSetDesk.SetDeskListener
|
|
public final void a(boolean z7) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
int i4 = WebViewActivity.Fo;
|
|
MainScriptSvc mainScriptSvc = webViewActivity4.Ub;
|
|
if (mainScriptSvc != null) {
|
|
mainScriptSvc.d();
|
|
webViewActivity4.Ub = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
if (!webViewActivity.M7 || webViewActivity.G8) {
|
|
z5 = false;
|
|
}
|
|
webViewActivity.M7 = false;
|
|
if (!z5 || (handler3 = webViewActivity.O0) == null) {
|
|
return;
|
|
}
|
|
handler3.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.20.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.G8) {
|
|
return;
|
|
}
|
|
WebViewActivity.u1(webViewActivity2, true);
|
|
}
|
|
}, 400L);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
|
|
public final void onStart() {
|
|
super.onStart();
|
|
this.E1 = true;
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentActivity, android.app.Activity
|
|
public final void onUserLeaveHint() {
|
|
WebVideoFrame webVideoFrame;
|
|
super.onUserLeaveHint();
|
|
if (!this.B9 && (webVideoFrame = this.R5) != null) {
|
|
webVideoFrame.d(false);
|
|
}
|
|
this.B9 = false;
|
|
}
|
|
|
|
@Override // android.app.Activity, android.view.Window.Callback
|
|
public final void onWindowFocusChanged(boolean z) {
|
|
this.H1 = z;
|
|
if (z) {
|
|
this.I1 = false;
|
|
this.J1 = false;
|
|
this.K1 = false;
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null) {
|
|
webVideoFrame.v();
|
|
}
|
|
} else {
|
|
Handler handler = this.O0;
|
|
if (handler != null) {
|
|
this.I1 = true;
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.23
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainApp p;
|
|
MainDownSvc mainDownSvc;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.I1 = false;
|
|
if (!webViewActivity.H1 && (p = MainApp.p(webViewActivity.getApplicationContext())) != null && p.u && (mainDownSvc = p.v) != null) {
|
|
mainDownSvc.h(false);
|
|
}
|
|
}
|
|
}, 800L);
|
|
}
|
|
}
|
|
super.onWindowFocusChanged(z);
|
|
if (!z) {
|
|
if (this.ga == 0 && this.I2 != null) {
|
|
p5(true, false);
|
|
MyScrollNavi myScrollNavi = this.e4;
|
|
if (myScrollNavi != null) {
|
|
myScrollNavi.setVisibility(4);
|
|
}
|
|
MyScrollNavi myScrollNavi2 = this.f4;
|
|
if (myScrollNavi2 != null) {
|
|
myScrollNavi2.setVisibility(4);
|
|
}
|
|
}
|
|
MyPullView myPullView = this.M2;
|
|
if (myPullView != null) {
|
|
myPullView.e();
|
|
}
|
|
}
|
|
if (Build.VERSION.SDK_INT < 30) {
|
|
q2(false);
|
|
}
|
|
}
|
|
|
|
public final int p2(float f, float f2) {
|
|
if (this.aa == 0 || Math.abs(f - this.Y9) <= Math.abs(f2 - this.Z9)) {
|
|
return 0;
|
|
}
|
|
if (f > this.Y9) {
|
|
return 1;
|
|
}
|
|
return 2;
|
|
}
|
|
|
|
public final float p3() {
|
|
WebNestFrame webNestFrame = this.Q2;
|
|
if (webNestFrame != null) {
|
|
return webNestFrame.getTabX();
|
|
}
|
|
WebNestFrame webNestFrame2 = this.R2;
|
|
if (webNestFrame2 != null) {
|
|
return webNestFrame2.getFakeX();
|
|
}
|
|
return 0.0f;
|
|
}
|
|
|
|
public final void p4() {
|
|
DialogDeleteItem dialogDeleteItem = this.E3;
|
|
if (dialogDeleteItem != null) {
|
|
dialogDeleteItem.dismiss();
|
|
this.E3 = null;
|
|
}
|
|
}
|
|
|
|
public final void p5(boolean z, boolean z2) {
|
|
if (z) {
|
|
this.ga = 2;
|
|
this.ha = 0;
|
|
this.ia = 0;
|
|
this.la = 0;
|
|
this.ma = 0;
|
|
this.Aa = false;
|
|
}
|
|
this.ra = z2;
|
|
this.sa = false;
|
|
this.ta = 0;
|
|
this.ua = 0;
|
|
this.va = false;
|
|
this.fa = false;
|
|
}
|
|
|
|
public final boolean p6() {
|
|
MyBarView myBarView;
|
|
int i = PrefZone.n;
|
|
if (i == 1) {
|
|
MyBarView myBarView2 = this.o2;
|
|
if (myBarView2 == null || myBarView2.q != null) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
if (i != 2 || (myBarView = this.p2) == null || myBarView.q != null) {
|
|
return false;
|
|
}
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
public final void p7(Bitmap bitmap, boolean z) {
|
|
int i;
|
|
try {
|
|
if (MainUtil.f6(bitmap)) {
|
|
getWindow().setBackgroundDrawable(new BitmapDrawable(getResources(), bitmap));
|
|
} else {
|
|
getWindow().setBackgroundDrawable(new ColorDrawable(-16777216));
|
|
}
|
|
if (z) {
|
|
i = 2;
|
|
} else {
|
|
i = 1;
|
|
}
|
|
this.f9 = i;
|
|
this.g9 = 1234;
|
|
} catch (Exception unused) {
|
|
this.f9 = 0;
|
|
this.g9 = 1234;
|
|
}
|
|
Handler handler = this.O0;
|
|
if (handler != null) {
|
|
handler.postDelayed(new AnonymousClass68(), 100L);
|
|
}
|
|
}
|
|
|
|
public final void p8(int i, boolean z) {
|
|
int i2;
|
|
Object parent;
|
|
final WebNestFrame webNestFrame = this.Q2;
|
|
if (webNestFrame != null) {
|
|
if (i != 0 && webNestFrame.F == null) {
|
|
webNestFrame.l();
|
|
int width = webNestFrame.getWidth();
|
|
if (width != 0 || ((parent = webNestFrame.getParent()) != null && (width = ((View) parent).getWidth()) != 0)) {
|
|
webNestFrame.B();
|
|
if (i == 1) {
|
|
if (webNestFrame.g) {
|
|
webNestFrame.A = 0.0f;
|
|
} else {
|
|
webNestFrame.A = width;
|
|
}
|
|
webNestFrame.Q(webNestFrame.A, 1);
|
|
}
|
|
if (!webNestFrame.g ? !z ? i != 3 : i == 3 : !z ? i == 3 : i != 3) {
|
|
i2 = 0;
|
|
} else {
|
|
i2 = width;
|
|
}
|
|
float f = i2;
|
|
if (Float.compare(webNestFrame.A, f) == 0) {
|
|
webNestFrame.E = 0;
|
|
webNestFrame.r(i, z);
|
|
} else {
|
|
webNestFrame.E = i;
|
|
webNestFrame.C = f;
|
|
webNestFrame.j0 = i;
|
|
webNestFrame.k0 = z;
|
|
float f2 = webNestFrame.A;
|
|
webNestFrame.l0 = f2;
|
|
webNestFrame.m0 = false;
|
|
ValueAnimator ofFloat = ValueAnimator.ofFloat(f2, f);
|
|
webNestFrame.F = ofFloat;
|
|
ofFloat.setDuration((Math.abs(f - webNestFrame.A) / width) * 300.0f);
|
|
webNestFrame.F.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.mycompany.app.web.WebNestFrame.19
|
|
public AnonymousClass19() {
|
|
}
|
|
|
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
|
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
|
WebNestFrame webNestFrame2 = WebNestFrame.this;
|
|
if (webNestFrame2.F != null) {
|
|
float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
|
|
if (webNestFrame2.F != null) {
|
|
webNestFrame2.l0 = floatValue;
|
|
if (webNestFrame2.F() || webNestFrame2.m0) {
|
|
return;
|
|
}
|
|
webNestFrame2.m0 = true;
|
|
MainApp.N(webNestFrame2.getContext(), webNestFrame2.n0);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
webNestFrame.F.addListener(new Animator.AnimatorListener() { // from class: com.mycompany.app.web.WebNestFrame.20
|
|
public AnonymousClass20() {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationCancel(Animator animator) {
|
|
WebNestFrame webNestFrame2 = WebNestFrame.this;
|
|
if (webNestFrame2.F == null) {
|
|
return;
|
|
}
|
|
webNestFrame2.F = null;
|
|
webNestFrame2.E = 0;
|
|
webNestFrame2.r(webNestFrame2.j0, webNestFrame2.k0);
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
WebNestFrame webNestFrame2 = WebNestFrame.this;
|
|
webNestFrame2.E = 0;
|
|
if (webNestFrame2.F == null) {
|
|
return;
|
|
}
|
|
MainApp.N(webNestFrame2.getContext(), new Runnable() { // from class: com.mycompany.app.web.WebNestFrame.22
|
|
public AnonymousClass22() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestFrame webNestFrame3 = WebNestFrame.this;
|
|
if (webNestFrame3.F == null) {
|
|
return;
|
|
}
|
|
webNestFrame3.F = null;
|
|
float f3 = webNestFrame3.C;
|
|
webNestFrame3.A = f3;
|
|
webNestFrame3.Q(f3, 1);
|
|
webNestFrame3.invalidate();
|
|
webNestFrame3.r(webNestFrame3.j0, webNestFrame3.k0);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationRepeat(Animator animator) {
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationStart(Animator animator) {
|
|
}
|
|
});
|
|
webNestFrame.F.start();
|
|
this.T2 = i;
|
|
this.U2 = this.Q2;
|
|
this.W2 = z;
|
|
}
|
|
}
|
|
}
|
|
this.Q2 = null;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.B();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
WebNestFrame webNestFrame2 = this.R2;
|
|
if (webNestFrame2 != null) {
|
|
if (webNestFrame2.N(i, z)) {
|
|
this.T2 = i;
|
|
this.V2 = this.R2;
|
|
this.W2 = z;
|
|
}
|
|
this.R2 = null;
|
|
MyWebCoord myWebCoord2 = this.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.B();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r11v5, types: [com.mycompany.app.web.WebEmgLoad, java.lang.Object] */
|
|
public final void p9(String str, boolean z) {
|
|
int length;
|
|
boolean startsWith;
|
|
String str2;
|
|
boolean z2;
|
|
WebNestView webNestView;
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
b4();
|
|
if (!TextUtils.isEmpty(str) && !"file:///android_asset/shortcut.html".equals(str) && !"about:blank".equals(str)) {
|
|
if (this.y9 == 0) {
|
|
this.y9 = 3;
|
|
String J1 = MainUtil.J1(str, false);
|
|
if (J1 == null || (length = J1.length()) == 0) {
|
|
startsWith = false;
|
|
} else {
|
|
startsWith = str.startsWith("/lofi/s/", length);
|
|
}
|
|
if (startsWith) {
|
|
str2 = MainUtil.R0(str, J1);
|
|
z2 = true;
|
|
} else {
|
|
str2 = str;
|
|
z2 = false;
|
|
}
|
|
if ((z || z2) && this.y3 == null) {
|
|
MyWebCoord myWebCoord = this.f2;
|
|
?? obj = new Object();
|
|
if (myWebCoord != null) {
|
|
obj.f19140a = getApplicationContext();
|
|
obj.f19141c = myWebCoord;
|
|
obj.e = str2;
|
|
obj.f = -1;
|
|
WebNestView webNestView2 = new WebNestView(this);
|
|
obj.d = webNestView2;
|
|
webNestView2.setNoAutofill(true);
|
|
obj.d.setVisibility(4);
|
|
obj.f19141c.addView(obj.d, 0, new ViewGroup.LayoutParams(-1, -1));
|
|
obj.f19141c.post(new WebEmgLoad.AnonymousClass1());
|
|
}
|
|
this.y3 = obj;
|
|
}
|
|
WebEmgLoad webEmgLoad = this.y3;
|
|
if (webEmgLoad != null) {
|
|
webNestView = webEmgLoad.d;
|
|
} else {
|
|
webNestView = this.I2;
|
|
}
|
|
WebNestView webNestView3 = webNestView;
|
|
if (webNestView3 == null) {
|
|
return;
|
|
}
|
|
DialogLoadEmg dialogLoadEmg = new DialogLoadEmg(this, webNestView3, str2, z, new DialogLoadImg.LoadImgListener() { // from class: com.mycompany.app.web.WebViewActivity.534
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final void b(String str3) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.s6();
|
|
webViewActivity.b4();
|
|
webViewActivity.F1(null, str3, true, null);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final void c(boolean z3) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.s6();
|
|
webViewActivity.b4();
|
|
webViewActivity.z9 = true;
|
|
if (z3) {
|
|
WebViewActivity.s1(webViewActivity);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final boolean d(String str3, List list) {
|
|
return false;
|
|
}
|
|
});
|
|
this.S7 = dialogLoadEmg;
|
|
dialogLoadEmg.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.535
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.y9 = 0;
|
|
webViewActivity.s6();
|
|
webViewActivity.b4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
}
|
|
}
|
|
|
|
public final void q2(boolean z) {
|
|
Handler handler;
|
|
long j;
|
|
if (Build.VERSION.SDK_INT < 30) {
|
|
DialogCapture dialogCapture = this.A6;
|
|
if (dialogCapture != null) {
|
|
dialogCapture.r();
|
|
return;
|
|
}
|
|
if ((this.w9 && this.x9 && this.R5 == null) || (handler = this.O0) == null) {
|
|
return;
|
|
}
|
|
Runnable runnable = new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.169
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.w9 && webViewActivity.x9 && webViewActivity.R5 == null) {
|
|
return;
|
|
}
|
|
WebViewActivity.o1(webViewActivity);
|
|
}
|
|
};
|
|
if (z) {
|
|
j = 300;
|
|
} else {
|
|
j = 0;
|
|
}
|
|
handler.postDelayed(runnable, j);
|
|
}
|
|
}
|
|
|
|
public final void q4() {
|
|
DialogQuickEdit dialogQuickEdit = this.F3;
|
|
if (dialogQuickEdit != null) {
|
|
dialogQuickEdit.dismiss();
|
|
this.F3 = null;
|
|
}
|
|
}
|
|
|
|
public final void q5(boolean z) {
|
|
this.H6 = 0;
|
|
this.I6 = true;
|
|
this.K6 = false;
|
|
this.L6 = false;
|
|
this.M6 = null;
|
|
this.N6 = null;
|
|
this.Q6 = true;
|
|
if (PrefAlbum.u == 0) {
|
|
this.J6 = false;
|
|
}
|
|
D8(z);
|
|
}
|
|
|
|
public final void q6() {
|
|
int i = this.y6;
|
|
this.y6 = 0;
|
|
MyCoverView myCoverView = this.w6;
|
|
if (myCoverView != null) {
|
|
myCoverView.setBackground(null);
|
|
this.w6.i();
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(this.w6);
|
|
}
|
|
this.w6 = null;
|
|
}
|
|
this.rl = i;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.D(null, 0L, null);
|
|
this.f2.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.380
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i2 = webViewActivity.rl;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null && i2 != webNestView.getScrollY()) {
|
|
webViewActivity.I2.scrollTo(0, i2);
|
|
}
|
|
}
|
|
}, 300L);
|
|
}
|
|
|
|
public final void q7(boolean z) {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody == null) {
|
|
return;
|
|
}
|
|
if (!z) {
|
|
myWebBody.setEditColor(0);
|
|
return;
|
|
}
|
|
if (O5()) {
|
|
if (MainUtil.C5(this.U1)) {
|
|
this.e2.setEditColor(-2130706432);
|
|
return;
|
|
} else {
|
|
this.e2.setEditColor(0);
|
|
return;
|
|
}
|
|
}
|
|
if (!MainApp.K1 && !this.U1) {
|
|
this.e2.setEditColor(553648128);
|
|
} else {
|
|
this.e2.setEditColor(-2130706432);
|
|
}
|
|
}
|
|
|
|
public final void q8(int i, int i2, boolean z) {
|
|
if (this.X2 != null && this.b3 != null) {
|
|
r8(i, i2);
|
|
if (z) {
|
|
final WebTabBarAdapter webTabBarAdapter = this.b3;
|
|
int i3 = this.P2;
|
|
boolean z2 = this.U1;
|
|
webTabBarAdapter.getClass();
|
|
int i4 = 0;
|
|
if (MainUtil.j(i, z2)) {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
List list = webTabBarAdapter.g;
|
|
if (list != null && i3 >= 0 && i3 < list.size()) {
|
|
boolean k5 = MainUtil.k5(z2);
|
|
if (webTabBarAdapter.h != i3 || webTabBarAdapter.k != k5 || webTabBarAdapter.m != i) {
|
|
webTabBarAdapter.j = webTabBarAdapter.C(i3);
|
|
webTabBarAdapter.h = i3;
|
|
webTabBarAdapter.k = k5;
|
|
webTabBarAdapter.m = i;
|
|
if (i != 0) {
|
|
i4 = i2;
|
|
}
|
|
webTabBarAdapter.n = i4;
|
|
webTabBarAdapter.o = MainUtil.s0(i, z2);
|
|
webTabBarAdapter.w();
|
|
MyRecyclerView myRecyclerView = webTabBarAdapter.e;
|
|
if (myRecyclerView != null) {
|
|
myRecyclerView.post(new Runnable() { // from class: com.mycompany.app.web.WebTabBarAdapter.3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebTabBarAdapter webTabBarAdapter2 = WebTabBarAdapter.this;
|
|
if (webTabBarAdapter2.e == null) {
|
|
return;
|
|
}
|
|
webTabBarAdapter2.g();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r10v5, types: [com.mycompany.app.web.WebHmgLoad, java.lang.Object] */
|
|
public final void q9(String str, boolean z) {
|
|
String str2;
|
|
boolean z2;
|
|
WebNestView webNestView;
|
|
int length;
|
|
int lastIndexOf;
|
|
String substring;
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
c4();
|
|
if (!TextUtils.isEmpty(str) && !"file:///android_asset/shortcut.html".equals(str) && !"about:blank".equals(str)) {
|
|
if (this.y9 == 0) {
|
|
this.y9 = 5;
|
|
if (MainUtil.x5(str)) {
|
|
if (str == null || (length = str.length()) == 0 || (lastIndexOf = str.lastIndexOf(45)) <= 0 || lastIndexOf >= length) {
|
|
substring = null;
|
|
} else {
|
|
substring = str.substring(0, lastIndexOf);
|
|
}
|
|
str2 = substring;
|
|
z2 = true;
|
|
} else {
|
|
str2 = str;
|
|
z2 = false;
|
|
}
|
|
if ((z || z2) && this.z3 == null) {
|
|
MyWebCoord myWebCoord = this.f2;
|
|
?? obj = new Object();
|
|
if (myWebCoord != null) {
|
|
obj.f19255a = getApplicationContext();
|
|
obj.f19256c = myWebCoord;
|
|
obj.e = str2;
|
|
obj.f = MainUtil.C1(str2);
|
|
WebNestView webNestView2 = new WebNestView(this);
|
|
obj.d = webNestView2;
|
|
webNestView2.setNoAutofill(true);
|
|
obj.d.setVisibility(4);
|
|
obj.f19256c.addView(obj.d, 0, new ViewGroup.LayoutParams(-1, -1));
|
|
obj.f19256c.post(new WebHmgLoad.AnonymousClass1());
|
|
}
|
|
this.z3 = obj;
|
|
}
|
|
WebHmgLoad webHmgLoad = this.z3;
|
|
if (webHmgLoad != null) {
|
|
webNestView = webHmgLoad.d;
|
|
} else {
|
|
webNestView = this.I2;
|
|
}
|
|
WebNestView webNestView3 = webNestView;
|
|
if (webNestView3 == null) {
|
|
return;
|
|
}
|
|
DialogLoadHmg dialogLoadHmg = new DialogLoadHmg(this, webNestView3, str2, z, new DialogLoadImg.LoadImgListener() { // from class: com.mycompany.app.web.WebViewActivity.536
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final void b(String str3) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.u6();
|
|
webViewActivity.c4();
|
|
webViewActivity.F1(null, str3, true, null);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final void c(boolean z3) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.u6();
|
|
webViewActivity.c4();
|
|
webViewActivity.z9 = true;
|
|
if (z3) {
|
|
WebViewActivity.s1(webViewActivity);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final boolean d(String str3, List list) {
|
|
return false;
|
|
}
|
|
});
|
|
this.T7 = dialogLoadHmg;
|
|
dialogLoadHmg.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.537
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.y9 = 0;
|
|
webViewActivity.u6();
|
|
webViewActivity.c4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
}
|
|
}
|
|
|
|
public final void r2() {
|
|
MyBarFrame myBarFrame = this.j2;
|
|
if (myBarFrame != null) {
|
|
myBarFrame.b();
|
|
}
|
|
MyBarFrame myBarFrame2 = this.k2;
|
|
if (myBarFrame2 != null) {
|
|
myBarFrame2.b();
|
|
}
|
|
}
|
|
|
|
public final String r3() {
|
|
WebTabAdapter.WebTabItem n3;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView == null) {
|
|
return null;
|
|
}
|
|
String url = webNestView.getUrl();
|
|
if (TextUtils.isEmpty(url)) {
|
|
String validPageUrl = this.I2.getValidPageUrl();
|
|
if (TextUtils.isEmpty(validPageUrl) && (n3 = n3(this.P2)) != null) {
|
|
return n3.j;
|
|
}
|
|
return validPageUrl;
|
|
}
|
|
return url;
|
|
}
|
|
|
|
public final void r4() {
|
|
DialogSetMsg dialogSetMsg = this.F2;
|
|
if (dialogSetMsg != null) {
|
|
dialogSetMsg.dismiss();
|
|
this.F2 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean r5() {
|
|
Handler handler;
|
|
Handler handler2;
|
|
if (PrefTts.j && this.i1 != null) {
|
|
if (this.Ra != null) {
|
|
if (PrefTts.n) {
|
|
if (this.Za == null && (handler2 = this.O0) != null) {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.612
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Za == null && webViewActivity.e2 != null) {
|
|
try {
|
|
WebTtsView webTtsView = new WebTtsView(webViewActivity.i1);
|
|
webViewActivity.Za = webTtsView;
|
|
webTtsView.j();
|
|
webViewActivity.Za.setVisibility(8);
|
|
webViewActivity.Za.setTtsListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.612.1
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.ca();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebTtsView webTtsView2 = webViewActivity.Za;
|
|
int i = MainApp.g1;
|
|
myWebBody.addView(webTtsView2, i, i);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return false;
|
|
}
|
|
} else {
|
|
M6();
|
|
return false;
|
|
}
|
|
} else {
|
|
try {
|
|
TextToSpeech textToSpeech = new TextToSpeech(this.i1, new TextToSpeech.OnInitListener() { // from class: com.mycompany.app.web.WebViewActivity.606
|
|
@Override // android.speech.tts.TextToSpeech.OnInitListener
|
|
public final void onInit(int i) {
|
|
if (i == -1) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.A6();
|
|
}
|
|
}
|
|
});
|
|
this.Ra = textToSpeech;
|
|
textToSpeech.setOnUtteranceProgressListener(new UtteranceProgressListener() { // from class: com.mycompany.app.web.WebViewActivity.607
|
|
@Override // android.speech.tts.UtteranceProgressListener
|
|
public final void onDone(String str) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.T9(false, false);
|
|
}
|
|
|
|
@Override // android.speech.tts.UtteranceProgressListener
|
|
public final void onError(String str) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.T9(false, false);
|
|
}
|
|
|
|
@Override // android.speech.tts.UtteranceProgressListener
|
|
public final void onStart(String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Ta && !webViewActivity.F1 && webViewActivity.R5 == null) {
|
|
webViewActivity.T9(true, false);
|
|
} else {
|
|
webViewActivity.ca();
|
|
}
|
|
}
|
|
});
|
|
if (PrefTts.n) {
|
|
if (this.Za == null && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.612
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Za == null && webViewActivity.e2 != null) {
|
|
try {
|
|
WebTtsView webTtsView = new WebTtsView(webViewActivity.i1);
|
|
webViewActivity.Za = webTtsView;
|
|
webTtsView.j();
|
|
webViewActivity.Za.setVisibility(8);
|
|
webViewActivity.Za.setTtsListener(new WebFltView.FltViewListener() { // from class: com.mycompany.app.web.WebViewActivity.612.1
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void a(View view, int i) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity2.ca();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void b() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.N4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.wview.WebFltView.FltViewListener
|
|
public final void c(View view) {
|
|
WebViewActivity.A1(WebViewActivity.this, view);
|
|
}
|
|
});
|
|
MyWebBody myWebBody = webViewActivity.e2;
|
|
WebTtsView webTtsView2 = webViewActivity.Za;
|
|
int i = MainApp.g1;
|
|
myWebBody.addView(webTtsView2, i, i);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
M6();
|
|
return true;
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void r6() {
|
|
WebClean webClean = this.q9;
|
|
if (webClean != null) {
|
|
webClean.w0(true);
|
|
}
|
|
}
|
|
|
|
public final void r7(boolean z, boolean z2) {
|
|
Window window;
|
|
int i;
|
|
int i2;
|
|
if (!MainConst.d && this.e2 != null && (window = getWindow()) != null) {
|
|
if (Build.VERSION.SDK_INT < 30) {
|
|
if (z && !z2 && this.R5 == null) {
|
|
i2 = MainUtil.z3(this.i1, window, a0());
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
if (this.e2.getPaddingTop() != i2) {
|
|
this.e2.setPadding(0, i2, 0, 0);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!z && z2 && this.R5 == null && !h0()) {
|
|
i = MainUtil.P2(this.i1, window, a0());
|
|
} else {
|
|
i = 0;
|
|
}
|
|
if (this.e2.getPaddingBottom() != i) {
|
|
this.e2.setPadding(0, 0, 0, i);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void r8(int i, int i2) {
|
|
if (this.Z2 == null) {
|
|
return;
|
|
}
|
|
if (MainUtil.j(i, this.U1)) {
|
|
i = 0;
|
|
i2 = 0;
|
|
}
|
|
int s0 = MainUtil.s0(i, this.U1);
|
|
if (s0 == 0) {
|
|
this.Z2.setImageResource(R.drawable.outline_add_black_24);
|
|
} else {
|
|
this.Z2.setImageResource(R.drawable.outline_add_dark_24);
|
|
}
|
|
this.Z2.setAlpha(MyIconView.i(s0));
|
|
this.Z2.setBgPreColor(MainUtil.P1(s0, i2));
|
|
}
|
|
|
|
public final void r9(String str, boolean z) {
|
|
if (this.G1) {
|
|
return;
|
|
}
|
|
if (MainUtil.o5(str)) {
|
|
p9(str, z);
|
|
} else if (MainUtil.z5(str)) {
|
|
q9(str, z);
|
|
} else {
|
|
s9(str, z);
|
|
}
|
|
}
|
|
|
|
public final boolean s2() {
|
|
String str = this.m5;
|
|
this.m5 = null;
|
|
if (this.H6 != 3 || TextUtils.isEmpty(str) || TextUtils.isEmpty(PrefAlbum.y) || str.equals(PrefAlbum.y)) {
|
|
return false;
|
|
}
|
|
String str2 = PrefAlbum.y;
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
m0(new AnonymousClass398(str2));
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final String s3(boolean z) {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
String url = webNestView.getUrl();
|
|
if (TextUtils.isEmpty(url)) {
|
|
url = this.A8;
|
|
if (TextUtils.isEmpty(url)) {
|
|
if (z) {
|
|
MainUtil.e8(this, R.string.empty);
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
String q = this.I2.q(url);
|
|
if (TextUtils.isEmpty(q)) {
|
|
if (z) {
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
}
|
|
} else {
|
|
return q;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final void s4() {
|
|
DialogSetMsg dialogSetMsg = this.w8;
|
|
if (dialogSetMsg != null) {
|
|
dialogSetMsg.dismiss();
|
|
this.w8 = null;
|
|
}
|
|
}
|
|
|
|
public final void s5() {
|
|
if (this.q9 == null) {
|
|
WebClean v = MainApp.v(this.i1, true);
|
|
this.q9 = v;
|
|
if (v == null) {
|
|
return;
|
|
}
|
|
}
|
|
final WebClean webClean = this.q9;
|
|
final Context context = this.i1;
|
|
boolean z = webClean.b;
|
|
boolean z2 = PrefTts.t;
|
|
if (z != z2) {
|
|
webClean.x = null;
|
|
webClean.y = null;
|
|
webClean.z = null;
|
|
webClean.A = null;
|
|
webClean.B = null;
|
|
webClean.C = null;
|
|
}
|
|
webClean.f19058a = this.Mh;
|
|
webClean.b = z2;
|
|
webClean.f19059c = MainUtil.M5();
|
|
if (webClean.f19058a != null && !webClean.d) {
|
|
webClean.d = true;
|
|
webClean.N = true;
|
|
MainApp.J(context, new Runnable() { // from class: com.mycompany.app.web.WebClean.1
|
|
|
|
/* renamed from: c */
|
|
public final /* synthetic */ Context f19060c;
|
|
|
|
public AnonymousClass1(final Context context2) {
|
|
r2 = context2;
|
|
}
|
|
|
|
/* JADX WARN: Can't wrap try/catch for region: R(15:1|(2:3|(10:6|(1:8)(1:66)|(1:10)(4:26|(2:28|(2:30|(1:32)(2:33|(1:35)(2:36|(1:38)(2:39|(1:41)(2:42|(1:44)(2:45|(1:47)(2:48|(1:58)(2:52|(1:54)(2:55|(1:57)))))))))))|59|(3:61|(1:63)(1:65)|64))|11|(1:13)|14|(1:16)|17|(2:19|(1:21))|(2:23|(1:25))))|67|(2:68|69)|(3:122|123|(13:125|126|(4:127|128|(1:130)(2:144|(4:147|(3:149|(2:(1:155)|156)|157)|(1:159)|160)(1:146))|131)|(2:(1:140)|141)|(1:73)|74|75|76|(3:94|95|(7:97|98|(4:99|100|(1:102)(4:108|(2:(1:111)|112)|(1:114)|115)|103)|106|(1:80)|(1:82)|(1:92)(4:86|(1:88)|89|90)))|78|(0)|(0)|(2:84|92)(1:93)))|71|(0)|74|75|76|(0)|78|(0)|(0)|(0)(0)) */
|
|
/* JADX WARN: Code restructure failed: missing block: B:121:0x024c, code lost:
|
|
|
|
r0 = null;
|
|
r1 = null;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:73:0x01df */
|
|
/* JADX WARN: Removed duplicated region for block: B:80:0x0250 */
|
|
/* JADX WARN: Removed duplicated region for block: B:82:0x0255 */
|
|
/* JADX WARN: Removed duplicated region for block: B:84:0x025a */
|
|
/* JADX WARN: Removed duplicated region for block: B:93:0x0276 A[ADDED_TO_REGION, ORIG_RETURN, RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:94:0x020a A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 631
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebClean.AnonymousClass1.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void s6() {
|
|
WebEmgLoad webEmgLoad = this.y3;
|
|
if (webEmgLoad != null) {
|
|
webEmgLoad.b();
|
|
this.y3 = null;
|
|
}
|
|
}
|
|
|
|
public final void s7(int i) {
|
|
int k;
|
|
if (this.Bb != null) {
|
|
if (this.zb) {
|
|
k = -1;
|
|
} else {
|
|
if (PrefPdf.z) {
|
|
i = 0;
|
|
}
|
|
k = MyIconView.k(MainUtil.s0(i, this.U1), false);
|
|
}
|
|
if (this.yb != k) {
|
|
this.yb = k;
|
|
MainUtil.h7(k, this.i1, this.Bb);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void s8(int i, List list) {
|
|
if (list != null && !list.isEmpty()) {
|
|
this.O2 = list;
|
|
this.P2 = i;
|
|
x8(new TabViewListener() { // from class: com.mycompany.app.web.WebViewActivity.531
|
|
@Override // com.mycompany.app.web.WebViewActivity.TabViewListener
|
|
public final void a() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.b7(2, true);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
x2(false);
|
|
}
|
|
|
|
public final void s9(String str, boolean z) {
|
|
String str2;
|
|
int i;
|
|
boolean z2;
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
d4();
|
|
if (!TextUtils.isEmpty(str) && !"file:///android_asset/shortcut.html".equals(str) && !"about:blank".equals(str)) {
|
|
if (this.y9 != 0) {
|
|
return;
|
|
}
|
|
this.y9 = 1;
|
|
if (z) {
|
|
if (this.x3 == null) {
|
|
this.x3 = new WebLoadView(this, this.f2, str);
|
|
}
|
|
str2 = str;
|
|
z2 = false;
|
|
i = 0;
|
|
} else if (!TextUtils.isEmpty(this.I2.getFileUrl())) {
|
|
String fileUrl = this.I2.getFileUrl();
|
|
if (!"file:///android_asset/shortcut.html".equals(fileUrl) && !"about:blank".equals(fileUrl)) {
|
|
if (!URLUtil.isNetworkUrl(fileUrl)) {
|
|
this.y9 = 0;
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
return;
|
|
} else {
|
|
if (this.x3 == null) {
|
|
this.x3 = new WebLoadView(this, this.f2, fileUrl);
|
|
}
|
|
str2 = fileUrl;
|
|
z2 = true;
|
|
i = 0;
|
|
}
|
|
} else {
|
|
this.y9 = 0;
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
} else {
|
|
WebLoadTask c2 = WebLoadTask.c();
|
|
WebNestView webNestView = this.I2;
|
|
c2.f19284a = true;
|
|
c2.b = webNestView;
|
|
c2.f19285c = null;
|
|
c2.e = 0;
|
|
c2.f = false;
|
|
str2 = str;
|
|
i = 2;
|
|
z2 = false;
|
|
}
|
|
DialogLoadImg dialogLoadImg = new DialogLoadImg(this, str2, z2, z, i, new DialogLoadImg.LoadImgListener() { // from class: com.mycompany.app.web.WebViewActivity.532
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final void b(String str3) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.C6();
|
|
webViewActivity.d4();
|
|
webViewActivity.F1(null, str3, true, null);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final void c(boolean z3) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.C6();
|
|
webViewActivity.d4();
|
|
webViewActivity.z9 = true;
|
|
if (z3) {
|
|
WebViewActivity.s1(webViewActivity);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogLoadImg.LoadImgListener
|
|
public final boolean d(String str3, List list) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
CastSession castSession = webViewActivity.tb;
|
|
if (castSession == null || !castSession.c()) {
|
|
return false;
|
|
}
|
|
CastSession castSession2 = webViewActivity.tb;
|
|
if (castSession2 != null && webViewActivity.dc == null) {
|
|
CastUtil castUtil = new CastUtil(webViewActivity.i1, castSession2, webViewActivity.O0, new CastUtil.CastSendListener() { // from class: com.mycompany.app.web.WebViewActivity.38
|
|
@Override // com.mycompany.app.cast.CastUtil.CastSendListener
|
|
public final void a(boolean z3) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (!z3) {
|
|
int i2 = WebViewActivity.Fo;
|
|
MainUtil.e8(webViewActivity2, R.string.play_error);
|
|
CastUtil castUtil2 = webViewActivity2.dc;
|
|
if (castUtil2 != null) {
|
|
castUtil2.b();
|
|
webViewActivity2.dc = null;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity2.E9 = true;
|
|
webViewActivity2.startActivity(new Intent(webViewActivity2.i1, (Class<?>) ExpandedControlsActivity.class));
|
|
CastUtil castUtil3 = webViewActivity2.dc;
|
|
if (castUtil3 != null) {
|
|
castUtil3.b();
|
|
webViewActivity2.dc = null;
|
|
}
|
|
}
|
|
});
|
|
webViewActivity.dc = castUtil;
|
|
castUtil.c(0, webViewActivity.B8, str3, list);
|
|
}
|
|
webViewActivity.C6();
|
|
webViewActivity.d4();
|
|
webViewActivity.z9 = true;
|
|
return true;
|
|
}
|
|
});
|
|
this.R7 = dialogLoadImg;
|
|
dialogLoadImg.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.533
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.y9 = 0;
|
|
webViewActivity.C6();
|
|
webViewActivity.d4();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity, android.content.ContextWrapper, android.content.Context
|
|
public final void startActivity(Intent intent) {
|
|
Set<String> categories;
|
|
if (intent != null) {
|
|
if (!this.A9 && (categories = intent.getCategories()) != null) {
|
|
Iterator<String> it = categories.iterator();
|
|
while (it.hasNext()) {
|
|
if ("android.intent.category.BROWSABLE".equals(it.next())) {
|
|
if (this.f2 != null) {
|
|
Uri data = intent.getData();
|
|
boolean z = false;
|
|
if (data != null) {
|
|
String uri = data.toString();
|
|
if (!TextUtils.isEmpty(uri)) {
|
|
z = uri.startsWith("https://news.google.com");
|
|
}
|
|
}
|
|
if (z) {
|
|
return;
|
|
}
|
|
this.cc = intent;
|
|
this.f2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.19
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r2v2, types: [com.mycompany.app.view.MySnackbar$SnackItem, java.lang.Object] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
Intent intent2 = webViewActivity.cc;
|
|
webViewActivity.cc = null;
|
|
if (webViewActivity.J5() || intent2 == null) {
|
|
return;
|
|
}
|
|
?? obj = new Object();
|
|
obj.f19007c = intent2;
|
|
webViewActivity.U9(false);
|
|
webViewActivity.T4();
|
|
MySnackbar mySnackbar = new MySnackbar(webViewActivity);
|
|
webViewActivity.t3 = mySnackbar;
|
|
mySnackbar.setAppBarView(webViewActivity.g2);
|
|
webViewActivity.t3.setSnackItem(obj);
|
|
webViewActivity.t3.setActivity(webViewActivity);
|
|
webViewActivity.t3.w(webViewActivity.f2, R.string.app_block_noti, 1, new MySnackbar.SnackbarListener() { // from class: com.mycompany.app.web.WebViewActivity.429
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void a() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void b() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void c() {
|
|
MySnackbar.SnackItem snackItem;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
MySnackbar mySnackbar2 = webViewActivity2.t3;
|
|
if (mySnackbar2 != null && (snackItem = mySnackbar2.getSnackItem()) != null) {
|
|
try {
|
|
webViewActivity2.da(snackItem.f19007c);
|
|
} catch (ActivityNotFoundException unused) {
|
|
MainUtil.e8(webViewActivity2, R.string.apps_none);
|
|
} catch (Exception unused2) {
|
|
MainUtil.e8(webViewActivity2, R.string.not_supported);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MySnackbar.SnackbarListener
|
|
public final void onDismiss() {
|
|
WebViewActivity.this.t3 = null;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
da(intent);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.main.MainActivity
|
|
public final void t0(Intent intent, int i) {
|
|
this.B9 = true;
|
|
o0(intent, i);
|
|
}
|
|
|
|
public final boolean t2(String str) {
|
|
String I1 = MainUtil.I1(str, true);
|
|
if (TextUtils.isEmpty(I1)) {
|
|
return false;
|
|
}
|
|
if (I1.equals("github.com")) {
|
|
if (str.endsWith("?raw=true")) {
|
|
C3(str, v3(this.I2, str));
|
|
return true;
|
|
}
|
|
} else if (I1.equals("raw.githubusercontent.com")) {
|
|
String u2 = MainUtil.u2(str);
|
|
if (!TextUtils.isEmpty(u2) && u2.startsWith("text")) {
|
|
C3(str, v3(this.I2, str));
|
|
return true;
|
|
}
|
|
} else if (I1.contains("easylist") && str.endsWith(".txt")) {
|
|
C3(str, v3(this.I2, str));
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final int t3() {
|
|
WebNestView webNestView = this.I2;
|
|
int i = PrefWeb.O;
|
|
if (i != 0) {
|
|
if (i == 2) {
|
|
int i2 = PrefWeb.Q;
|
|
if (i2 != 0) {
|
|
return i2;
|
|
}
|
|
MainUtil.m7();
|
|
return PrefWeb.Q;
|
|
}
|
|
if (this.U1 || webNestView == null) {
|
|
return 0;
|
|
}
|
|
if (webNestView.z0) {
|
|
webNestView.T(this.q2, this.r2);
|
|
return this.q2;
|
|
}
|
|
return webNestView.getThemeColor();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final void t4() {
|
|
DialogSetDesk dialogSetDesk = this.Y6;
|
|
if (dialogSetDesk != null) {
|
|
dialogSetDesk.dismiss();
|
|
this.Y6 = null;
|
|
}
|
|
}
|
|
|
|
public final void t5() {
|
|
if (this.M2 == null && this.f2 != null && this.I2 != null) {
|
|
WebTabAdapter.WebTabItem n3 = n3(this.P2);
|
|
if (n3 != null) {
|
|
WebNestFrame webNestFrame = this.H2;
|
|
n3.p = webNestFrame;
|
|
webNestFrame.setTabUid(n3.f19520c);
|
|
}
|
|
L8();
|
|
}
|
|
}
|
|
|
|
public final void t6(boolean z) {
|
|
if (this.C2 == null) {
|
|
return;
|
|
}
|
|
if (z && this.L3) {
|
|
MainUtil.X4(this.i1, this.f2);
|
|
}
|
|
I6();
|
|
}
|
|
|
|
public final void t7(ViewGroup viewGroup) {
|
|
WebCastView webCastView;
|
|
if (viewGroup != null && (webCastView = this.Ab) != null) {
|
|
webCastView.setMovable(this.zb);
|
|
if (this.zb) {
|
|
WebCastView webCastView2 = this.Ab;
|
|
int i = MainApp.g1;
|
|
viewGroup.addView(webCastView2, i, i);
|
|
return;
|
|
}
|
|
viewGroup.addView(this.Ab, MainApp.g1, -1);
|
|
}
|
|
}
|
|
|
|
public final void t8() {
|
|
int i;
|
|
List list = this.O2;
|
|
if (list != null) {
|
|
i = list.size();
|
|
} else {
|
|
i = 0;
|
|
}
|
|
if (this.P2 >= i) {
|
|
this.P2 = i - 1;
|
|
}
|
|
if (this.P2 < 0) {
|
|
this.P2 = 0;
|
|
}
|
|
if (PrefSync.k) {
|
|
int i2 = PrefSync.m;
|
|
int i3 = this.P2;
|
|
if (i2 != i3) {
|
|
this.ac = i2;
|
|
PrefSync.m = i3;
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
int i4 = PrefSync.l;
|
|
int i5 = this.P2;
|
|
if (i4 != i5) {
|
|
this.ac = i4;
|
|
PrefSync.l = i5;
|
|
}
|
|
}
|
|
|
|
public final void t9(View view) {
|
|
boolean z;
|
|
int blockedCount;
|
|
MyBarView myBarView;
|
|
MyBarView myBarView2;
|
|
if (this.Ca != null && !this.G1 && !J5()) {
|
|
if (PrefMain.y != 0 || !this.J7) {
|
|
e4();
|
|
if (this.I2 != null) {
|
|
this.H7 = view;
|
|
this.I7 = false;
|
|
this.J7 = false;
|
|
if (PrefMain.y != 0 || (((myBarView = this.p2) != null && myBarView.v) || (((myBarView2 = this.o2) == null || !myBarView2.v) && MainUtil.R4()))) {
|
|
z = false;
|
|
} else {
|
|
z = true;
|
|
}
|
|
if (this.L1 == null) {
|
|
this.L1 = MainUtil.a2(PrefMain.B);
|
|
}
|
|
if (this.M1 == null) {
|
|
this.M1 = MainUtil.a2(PrefMain.C);
|
|
}
|
|
boolean h0 = h0();
|
|
if (!PrefWeb.o && PrefWeb.q == 0) {
|
|
blockedCount = 0;
|
|
} else {
|
|
blockedCount = this.I2.getBlockedCount();
|
|
}
|
|
int i = R.style.DialogExpandTheme;
|
|
if (PrefMain.y == 0 || h0) {
|
|
i = 0;
|
|
}
|
|
DialogMenuMain.DownMenuListener downMenuListener = new DialogMenuMain.DownMenuListener() { // from class: com.mycompany.app.web.WebViewActivity.512
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.J7 = false;
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I7) {
|
|
webViewActivity.t9(webViewActivity.H7);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void b(View view2, int i2) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.d6(view2, i2);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void c() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.e4();
|
|
String j3 = WebViewActivity.j3(webViewActivity.s3(false));
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) SettingClean.class);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
webViewActivity.t0(intent, 32);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void d() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.I7 = true;
|
|
webViewActivity.e4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void e() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.e4();
|
|
webViewActivity.startActivity(new Intent(webViewActivity.i1, (Class<?>) SettingMenu.class));
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void f() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.e4();
|
|
String j3 = WebViewActivity.j3(webViewActivity.s3(false));
|
|
Intent intent = new Intent(webViewActivity.i1, (Class<?>) SettingMain.class);
|
|
intent.putExtra("EXTRA_PATH", j3);
|
|
webViewActivity.t0(intent, 1);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void g() {
|
|
boolean z2 = PrefZtri.r0;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (z2) {
|
|
if (!z2) {
|
|
int i2 = WebViewActivity.Fo;
|
|
return;
|
|
}
|
|
if (!webViewActivity.G1 && webViewActivity.v8 == null) {
|
|
webViewActivity.Y3();
|
|
DialogConfirm dialogConfirm = new DialogConfirm((Activity) webViewActivity, webViewActivity.getString(R.string.restart_guide_1) + "\n\n" + webViewActivity.getString(R.string.restart_guide_2) + "\n\n" + webViewActivity.getString(R.string.restart_guide_3) + "\n" + webViewActivity.getString(R.string.restart_guide_4), true, new DialogConfirm.DialogConfListener() { // from class: com.mycompany.app.web.WebViewActivity.671
|
|
@Override // com.mycompany.app.dialog.DialogConfirm.DialogConfListener
|
|
public final void a(boolean z3) {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (z3) {
|
|
PrefZtri.r0 = false;
|
|
PrefSet.d(17, webViewActivity2.i1, "mGuideRest", false);
|
|
}
|
|
Handler handler = webViewActivity2.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.671.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass671 anonymousClass671 = AnonymousClass671.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
webViewActivity3.Y3();
|
|
WebViewActivity.h1(WebViewActivity.this);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity.v8 = dialogConfirm;
|
|
dialogConfirm.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.672
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.Y3();
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webViewActivity.G1 || webViewActivity.w8 != null) {
|
|
return;
|
|
}
|
|
webViewActivity.s4();
|
|
DialogSetMsg dialogSetMsg = new DialogSetMsg(webViewActivity, R.string.restart_noti, R.string.restart_title, new AnonymousClass673());
|
|
webViewActivity.w8 = dialogSetMsg;
|
|
dialogSetMsg.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.674
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i3 = WebViewActivity.Fo;
|
|
WebViewActivity.this.s4();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogMenuMain.DownMenuListener
|
|
public final void h() {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.e4();
|
|
WebViewActivity.u1(webViewActivity, false);
|
|
}
|
|
};
|
|
boolean h2 = h2();
|
|
if (PrefMain.y == 0) {
|
|
this.G7 = new DialogMenuList(this, this.i1, this.e2, this.H7, this.L1, this.M1, z, h0, this.j1, blockedCount, h2, downMenuListener);
|
|
return;
|
|
}
|
|
DialogMenuMain dialogMenuMain = new DialogMenuMain(this, i, this.L1, this.M1, h0, this.j1, blockedCount, h2, downMenuListener);
|
|
this.F7 = dialogMenuMain;
|
|
dialogMenuMain.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.513
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.e4();
|
|
if (webViewActivity.I7) {
|
|
webViewActivity.t9(webViewActivity.H7);
|
|
}
|
|
}
|
|
});
|
|
if (!MainConst.e && i == 0) {
|
|
return;
|
|
}
|
|
this.F7.x(t3(), b3(), this.U1, a6(), false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean u2(String str) {
|
|
if (!MainUtil.e6(str)) {
|
|
return false;
|
|
}
|
|
if (this.Yb != null || this.Zb != null || !TextUtils.isEmpty(this.Nh)) {
|
|
return true;
|
|
}
|
|
WebNestView webNestView = this.I2;
|
|
// When the page is already open at this URL, verify it is a userscript file
|
|
// (not an HTML preview such as GitHub/GitLab) before showing the install popup.
|
|
if (webNestView != null && str.equals(this.A8)) {
|
|
this.Nh = str;
|
|
webNestView.evaluateJavascript("(function(){try{var b=document.body;if(!b)return false;var ct=(document.contentType||'').toLowerCase();var pre=null;if(b.children.length===1&&b.children[0].tagName==='PRE'){pre=b.children[0];}if(!pre&&ct.indexOf('html')>=0)return false;var t=pre?(pre.innerText||pre.textContent||''):(b.innerText||b.textContent||'');return t.indexOf('==UserScript==')>=0;}catch(e){return false;}})();", new ValueCallback<String>() { // from class: com.mycompany.app.web.WebViewActivity.682
|
|
@Override // android.webkit.ValueCallback
|
|
public final void onReceiveValue(String str2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!"true".equals(str2)) {
|
|
webViewActivity.Nh = null;
|
|
return;
|
|
}
|
|
if (TextUtils.isEmpty(webViewActivity.Nh)) {
|
|
return;
|
|
}
|
|
// WebViewActivity$214 — show "Do you want to install?" dialog
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.214
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
// (same install-confirm dialog flow as the download path below)
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
// Download / non-page path: keep skipping github.com HTML page URLs.
|
|
if (str.startsWith("https://github.com/")) {
|
|
return false;
|
|
}
|
|
this.Nh = str;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.214
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
Context context = webViewActivity.i1;
|
|
String str2 = webViewActivity.Nh;
|
|
boolean z = false;
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
if (DbUtil.d(DbBookScript.d(context).getWritableDatabase(), "DbBookScript_table", null, "_downurl=?", new String[]{str2}) == 1) {
|
|
z = true;
|
|
}
|
|
}
|
|
webViewActivity.Oh = z;
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.214.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i;
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.G1 || webViewActivity2.Yb != null) {
|
|
return;
|
|
}
|
|
webViewActivity2.O3();
|
|
String str3 = webViewActivity2.Nh;
|
|
boolean z2 = webViewActivity2.Oh;
|
|
String Z3 = MainUtil.Z3(webViewActivity2.i1, str3);
|
|
StringBuilder sb = new StringBuilder("< ");
|
|
sb.append(webViewActivity2.getString(R.string.user_script_title));
|
|
sb.append(" >\n");
|
|
if (!TextUtils.isEmpty(Z3)) {
|
|
sb.append(Z3);
|
|
sb.append("\n");
|
|
}
|
|
sb.append(webViewActivity2.getString(R.string.install_confirm));
|
|
if (z2) {
|
|
sb.append("\n");
|
|
sb.append(webViewActivity2.getString(R.string.already_install));
|
|
}
|
|
if (z2) {
|
|
i = R.string.update;
|
|
} else {
|
|
i = R.string.install;
|
|
}
|
|
DialogSetMsg dialogSetMsg = new DialogSetMsg(webViewActivity2, sb.toString(), i, new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.215
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
final WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str4 = webViewActivity3.Nh;
|
|
webViewActivity3.Nh = null;
|
|
webViewActivity3.O3();
|
|
if (webViewActivity3.G1 || webViewActivity3.Zb != null) {
|
|
return;
|
|
}
|
|
DialogUpdateScript dialogUpdateScript2 = new DialogUpdateScript(webViewActivity3, null, null, str4, new DialogEditUrl.EditUrlListener() { // from class: com.mycompany.app.web.WebViewActivity.217
|
|
@Override // com.mycompany.app.dialog.DialogEditUrl.EditUrlListener
|
|
public final void a(long j, String str5, String str6) {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.217.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.G0(WebViewActivity.this);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity3.Zb = dialogUpdateScript2;
|
|
dialogUpdateScript2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.218
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
DialogUpdateScript dialogUpdateScript3 = webViewActivity4.Zb;
|
|
if (dialogUpdateScript3 != null) {
|
|
dialogUpdateScript3.dismiss();
|
|
webViewActivity4.Zb = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
webViewActivity2.Yb = dialogSetMsg;
|
|
dialogSetMsg.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.216
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.O3();
|
|
webViewActivity3.Nh = null;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return true;
|
|
}
|
|
|
|
public final int u3() {
|
|
WebNestView webNestView = this.I2;
|
|
int i = PrefWeb.O;
|
|
if (i != 0) {
|
|
if (i == 2) {
|
|
int i2 = PrefWeb.R;
|
|
if (i2 != 0) {
|
|
return i2;
|
|
}
|
|
MainUtil.m7();
|
|
return PrefWeb.R;
|
|
}
|
|
if (this.U1 || webNestView == null) {
|
|
return 0;
|
|
}
|
|
if (webNestView.z0) {
|
|
webNestView.T(this.q2, this.r2);
|
|
return this.r2;
|
|
}
|
|
return webNestView.getThemeLight();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final void u4() {
|
|
DialogSetDown dialogSetDown = this.q6;
|
|
if (dialogSetDown != null) {
|
|
dialogSetDown.dismiss();
|
|
this.q6 = null;
|
|
if (this.R5 != null) {
|
|
this.nb = false;
|
|
MainUtil.K7(this, false);
|
|
}
|
|
}
|
|
this.hl = null;
|
|
this.il = null;
|
|
this.jl = null;
|
|
}
|
|
|
|
public final void u5() {
|
|
int i;
|
|
if (this.M2 == null && this.f2 != null && this.I2 != null) {
|
|
this.M2 = new MyPullView(this, this.U1);
|
|
int i2 = MainApp.f1;
|
|
CoordinatorLayout.LayoutParams layoutParams = new CoordinatorLayout.LayoutParams(i2, i2);
|
|
layoutParams.f611c = 1;
|
|
this.f2.addView(this.M2, 2, layoutParams);
|
|
int i3 = 0;
|
|
this.G2 = new MyProgressBar(this, 0);
|
|
b8(this.q2);
|
|
this.G2.setVisibility(8);
|
|
CoordinatorLayout.LayoutParams layoutParams2 = new CoordinatorLayout.LayoutParams(-1, MainApp.G1);
|
|
int i4 = R.id.web_top_view;
|
|
layoutParams2.l = null;
|
|
layoutParams2.k = null;
|
|
layoutParams2.f = i4;
|
|
layoutParams2.d = 80;
|
|
layoutParams2.f611c = 80;
|
|
if (!PrefWeb.t && MainUtil.H3() == 0) {
|
|
i3 = MainApp.G1 / 2;
|
|
}
|
|
((ViewGroup.MarginLayoutParams) layoutParams2).topMargin = i3;
|
|
this.f2.addView(this.G2, 3, layoutParams2);
|
|
MyScrollBar myScrollBar = new MyScrollBar(this);
|
|
this.v3 = myScrollBar;
|
|
if (MainApp.K1) {
|
|
i = -12632257;
|
|
} else {
|
|
i = -2434342;
|
|
}
|
|
myScrollBar.setPreColor(i);
|
|
this.w3 = PrefZone.x;
|
|
CoordinatorLayout.LayoutParams layoutParams3 = new CoordinatorLayout.LayoutParams(MainApp.E1 * 2, -1);
|
|
if (this.w3 == 1) {
|
|
layoutParams3.f611c = 3;
|
|
} else {
|
|
layoutParams3.f611c = 5;
|
|
}
|
|
this.f2.addView(this.v3, 4, layoutParams3);
|
|
if (PrefZone.x != 0) {
|
|
this.v3.setVisibility(4);
|
|
} else {
|
|
this.v3.setVisibility(8);
|
|
}
|
|
this.I2.setScrollPos(PrefZone.x);
|
|
R8();
|
|
this.M2.setListener(new MyPullView.OnRefreshListener() { // from class: com.mycompany.app.web.WebViewActivity.88
|
|
@Override // com.mycompany.app.pull.MyPullView.OnRefreshListener
|
|
public final void a() {
|
|
int i5 = WebViewActivity.Fo;
|
|
WebViewActivity.this.E6();
|
|
}
|
|
});
|
|
this.v3.setListener(new MyScrollBar.ScrollBarListener() { // from class: com.mycompany.app.web.WebViewActivity.89
|
|
@Override // com.mycompany.app.view.MyScrollBar.ScrollBarListener
|
|
public final void c(int i5) {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
webNestView.scrollTo(0, i5);
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyScrollBar.ScrollBarListener
|
|
public final int d() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return 0;
|
|
}
|
|
return webNestView.getScrollTop();
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyScrollBar.ScrollBarListener
|
|
public final void e() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyScrollBar.ScrollBarListener
|
|
public final int f() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return 0;
|
|
}
|
|
return webNestView.Y0;
|
|
}
|
|
|
|
@Override // com.mycompany.app.view.MyScrollBar.ScrollBarListener
|
|
public final int g() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return 0;
|
|
}
|
|
return webNestView.X0;
|
|
}
|
|
});
|
|
if (this.U1) {
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.90
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.W(webViewActivity.U1);
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
if (this.F1) {
|
|
this.I2.C();
|
|
} else {
|
|
this.I2.onResume();
|
|
}
|
|
this.a2 = true;
|
|
g7(K2());
|
|
if (!this.I9) {
|
|
this.I9 = true;
|
|
this.J9 = true;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.640
|
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x008b, code lost:
|
|
|
|
if (r2.isEmpty() == false) goto L64;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x00fa, code lost:
|
|
|
|
if (r2.isEmpty() == false) goto L95;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x0169, code lost:
|
|
|
|
if (r2.isEmpty() == false) goto L126;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:40:0x01d8, code lost:
|
|
|
|
if (r2.isEmpty() == false) goto L157;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:48:0x0247, code lost:
|
|
|
|
if (r2.isEmpty() == false) goto L188;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:56:0x02b5, code lost:
|
|
|
|
if (r2.isEmpty() == false) goto L217;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x001c, code lost:
|
|
|
|
if (r2.isEmpty() == false) goto L33;
|
|
*/
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
Method dump skipped, instructions count: 800
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass640.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void u6() {
|
|
WebHmgLoad webHmgLoad = this.z3;
|
|
if (webHmgLoad != null) {
|
|
webHmgLoad.b();
|
|
this.z3 = null;
|
|
}
|
|
}
|
|
|
|
public final void u7(boolean z) {
|
|
if (z) {
|
|
this.Cn = 10;
|
|
}
|
|
if (!this.Dn) {
|
|
this.Dn = true;
|
|
int i = this.Cn;
|
|
if (i <= 0) {
|
|
this.Dn = false;
|
|
return;
|
|
}
|
|
this.Cn = i - 1;
|
|
if (!this.U1 && (PrefTts.j || Z5(false))) {
|
|
Handler handler = this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.609
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.U1 && (PrefTts.j || webViewActivity.Z5(true))) {
|
|
if (webViewActivity.I2 == null) {
|
|
webViewActivity.Cn = 0;
|
|
webViewActivity.Dn = false;
|
|
return;
|
|
} else {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.609.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.I2 == null) {
|
|
return;
|
|
}
|
|
StringBuilder sb = new StringBuilder("(function(){var tag='onCheckLang';var val='0';var dce=document.documentElement;if(dce){val=dce.lang;");
|
|
if (PrefTts.j) {
|
|
sb.append("if(!window.sbtts){window.sbtts=true;function myTts(evt){var ele=evt.target||evt.srcElement;if(ele){var txt=ele.innerText;if(txt&&(txt.length<");
|
|
sb.append(TextToSpeech.getMaxSpeechInputLength());
|
|
sb.append(")){android.onTextDet(txt);}}}document.addEventListener('click',myTts);}");
|
|
}
|
|
sb.append("}if(android&&android.onJsResult){android.onJsResult(tag,val);}else{alert('sb:lang='+val);}})();");
|
|
MainUtil.I(webViewActivity2.I2, sb.toString(), true);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.Xa = null;
|
|
if (webViewActivity.J6) {
|
|
webViewActivity.J6 = false;
|
|
webViewActivity.n6();
|
|
}
|
|
webViewActivity.Cn = 0;
|
|
webViewActivity.Dn = false;
|
|
}
|
|
}, 200L);
|
|
return;
|
|
}
|
|
this.Xa = null;
|
|
if (this.J6) {
|
|
this.J6 = false;
|
|
n6();
|
|
}
|
|
this.Cn = 0;
|
|
this.Dn = false;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r4v5, types: [java.lang.Object, com.mycompany.app.web.WebTabAdapter$WebTabItem] */
|
|
public final void u8(TabLimitListener tabLimitListener) {
|
|
List list;
|
|
ArrayList arrayList;
|
|
ArrayList arrayList2;
|
|
ArrayList arrayList3;
|
|
int i;
|
|
boolean z;
|
|
if (PrefZtwo.F >= 3 && (list = this.O2) != null && list.size() > PrefZtwo.F) {
|
|
if (!this.wc) {
|
|
this.wc = true;
|
|
synchronized (this.f1) {
|
|
try {
|
|
ArrayList arrayList4 = new ArrayList();
|
|
int size = this.O2.size();
|
|
int i2 = this.P2;
|
|
int i3 = PrefZtwo.F;
|
|
int i4 = i2 - (i3 / 2);
|
|
if (i4 < 0) {
|
|
i4 = 0;
|
|
}
|
|
int i5 = (i4 + i3) - 1;
|
|
if (i5 >= size) {
|
|
i5 = size - 1;
|
|
i4 = size - i3;
|
|
}
|
|
long j = -1;
|
|
int i6 = 0;
|
|
arrayList = null;
|
|
arrayList2 = null;
|
|
int i7 = 0;
|
|
while (i6 < size) {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) this.O2.get(i6);
|
|
if (webTabItem == null) {
|
|
arrayList3 = arrayList4;
|
|
} else if (i6 < i4 || i6 > i5) {
|
|
arrayList3 = arrayList4;
|
|
i = i5;
|
|
WebNestFrame webNestFrame = webTabItem.p;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.t(null);
|
|
webTabItem.p = null;
|
|
}
|
|
if (arrayList == null) {
|
|
arrayList = new ArrayList();
|
|
}
|
|
arrayList.add(webTabItem);
|
|
i6++;
|
|
i5 = i;
|
|
arrayList4 = arrayList3;
|
|
} else {
|
|
arrayList4.add(webTabItem);
|
|
arrayList3 = arrayList4;
|
|
if (webTabItem.d != j) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
webTabItem.d = j;
|
|
webTabItem.h = i7;
|
|
j = webTabItem.f19520c;
|
|
i7++;
|
|
if (z) {
|
|
if (arrayList2 == null) {
|
|
arrayList2 = new ArrayList();
|
|
}
|
|
?? obj = new Object();
|
|
i = i5;
|
|
obj.f19520c = webTabItem.f19520c;
|
|
obj.d = webTabItem.d;
|
|
arrayList2.add(obj);
|
|
i6++;
|
|
i5 = i;
|
|
arrayList4 = arrayList3;
|
|
}
|
|
}
|
|
i = i5;
|
|
i6++;
|
|
i5 = i;
|
|
arrayList4 = arrayList3;
|
|
}
|
|
this.O2 = arrayList4;
|
|
this.P2 -= i4;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
this.Qf = arrayList;
|
|
this.Rf = arrayList2;
|
|
this.Sf = tabLimitListener;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.135
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.135.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
ArrayList arrayList5 = webViewActivity.Qf;
|
|
ArrayList arrayList6 = webViewActivity.Rf;
|
|
webViewActivity.Qf = null;
|
|
webViewActivity.Rf = null;
|
|
if ((arrayList5 != null && !arrayList5.isEmpty()) || (arrayList6 != null && !arrayList6.isEmpty())) {
|
|
DbBookTab.u(webViewActivity.i1, arrayList6);
|
|
DbBookTab.k(webViewActivity.i1, arrayList5);
|
|
}
|
|
webViewActivity.t8();
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.136
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
TabLimitListener tabLimitListener2 = webViewActivity2.Sf;
|
|
webViewActivity2.Sf = null;
|
|
if (tabLimitListener2 != null) {
|
|
tabLimitListener2.a(true);
|
|
}
|
|
webViewActivity2.wc = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
tabLimitListener.a(false);
|
|
}
|
|
|
|
public final void u9(String str, String str2, boolean z) {
|
|
if (this.G1 || this.Z7 != null) {
|
|
return;
|
|
}
|
|
m4();
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
return;
|
|
}
|
|
this.b8 = z;
|
|
this.hn = str;
|
|
DialogPreview dialogPreview = new DialogPreview(this, str, Z2(str), null, str2, new DialogPreview.PreviewListener() { // from class: com.mycompany.app.web.WebViewActivity.551
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void a(String str3) {
|
|
MainUtil.s(R.string.copied_clipboard, WebViewActivity.this, "Copied URL", str3);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void b(String str3, long j, boolean z2) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str4 = webViewActivity.hn;
|
|
webViewActivity.m4();
|
|
webViewActivity.M3();
|
|
CastSession castSession = webViewActivity.tb;
|
|
if (castSession != null && castSession.c()) {
|
|
webViewActivity.j6(j, str3);
|
|
} else if (z2) {
|
|
webViewActivity.B3(str3, null, false);
|
|
} else {
|
|
webViewActivity.D3(str3, str4, false);
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void c(String str3, String str4) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.m4();
|
|
webViewActivity.M3();
|
|
webViewActivity.c9(str3, null, str4);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void d(String str3) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.m4();
|
|
webViewActivity.M3();
|
|
webViewActivity.m8(str3, null);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPreview.PreviewListener
|
|
public final void e(String str3, String str4) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (!webViewActivity.in) {
|
|
webViewActivity.in = true;
|
|
webViewActivity.m4();
|
|
if (!webViewActivity.b8) {
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.553
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogDownUrl dialogDownUrl = webViewActivity2.p6;
|
|
if (dialogDownUrl != null) {
|
|
dialogDownUrl.G1 = 0;
|
|
MainDownAdapter.DownListItem downListItem = dialogDownUrl.L1;
|
|
if (downListItem != null) {
|
|
dialogDownUrl.L1 = null;
|
|
String str5 = downListItem.b;
|
|
dialogDownUrl.C1 = str5;
|
|
dialogDownUrl.T0 = str5;
|
|
dialogDownUrl.O1 = downListItem.i;
|
|
dialogDownUrl.n1 = downListItem.l;
|
|
dialogDownUrl.c0(downListItem.f16460c);
|
|
dialogDownUrl.Y(false);
|
|
} else {
|
|
MainDownSvc.M3u8Item m3u8Item = dialogDownUrl.M1;
|
|
if (m3u8Item != null) {
|
|
dialogDownUrl.M1 = null;
|
|
dialogDownUrl.a0(m3u8Item);
|
|
dialogDownUrl.Y(false);
|
|
} else {
|
|
FaceItem faceItem = dialogDownUrl.N1;
|
|
if (faceItem != null) {
|
|
dialogDownUrl.N1 = null;
|
|
String str6 = faceItem.f20667c;
|
|
dialogDownUrl.C1 = DialogDownUrl.O(dialogDownUrl.T0, str6);
|
|
dialogDownUrl.T0 = faceItem.f20666a;
|
|
dialogDownUrl.O1 = faceItem.b;
|
|
dialogDownUrl.n1 = faceItem.f;
|
|
dialogDownUrl.c0(str6);
|
|
dialogDownUrl.Y(false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
webViewActivity2.in = false;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
webViewActivity.jn = str3;
|
|
webViewActivity.kn = str4;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.554
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.H4();
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.554.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AnonymousClass554 anonymousClass554 = AnonymousClass554.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
String str5 = webViewActivity3.jn;
|
|
String str6 = webViewActivity3.kn;
|
|
webViewActivity3.jn = null;
|
|
webViewActivity3.kn = null;
|
|
webViewActivity3.k9(str5, str6);
|
|
WebViewActivity.this.in = false;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
this.Z7 = dialogPreview;
|
|
dialogPreview.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.552
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.m4();
|
|
webViewActivity.b8 = false;
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void v2(boolean z) {
|
|
boolean k2;
|
|
WebNestView webNestView;
|
|
Handler handler;
|
|
boolean z2;
|
|
String str;
|
|
QuickView quickView;
|
|
Handler handler2;
|
|
WebNestView webNestView2;
|
|
MyWebBody myWebBody;
|
|
int e;
|
|
WebNestView webNestView3;
|
|
WebNestView webNestView4;
|
|
MyRecyclerView myRecyclerView;
|
|
QuickView quickView2;
|
|
int k;
|
|
if (!z) {
|
|
int t3 = t3();
|
|
int u3 = u3();
|
|
if (this.f2 != null) {
|
|
m2(t3, u3);
|
|
f7();
|
|
WebNestView webNestView5 = this.I2;
|
|
if (webNestView5 != null && (quickView2 = webNestView5.Z0) != null && quickView2.t() && quickView2.l != null && quickView2.x != (k = quickView2.k(0))) {
|
|
quickView2.x = k;
|
|
quickView2.l.U(quickView2.k(quickView2.k.getHeight()), true);
|
|
}
|
|
if (!MainUtil.q5(this.z4, PrefMain.B)) {
|
|
this.L1 = MainUtil.a2(PrefMain.B);
|
|
}
|
|
this.z4 = null;
|
|
if (!MainUtil.q5(this.A4, PrefMain.C)) {
|
|
this.M1 = MainUtil.a2(PrefMain.C);
|
|
}
|
|
this.A4 = null;
|
|
int i = this.B4;
|
|
int i2 = PrefMain.l;
|
|
if (i != i2) {
|
|
this.B4 = i2;
|
|
MainUtil.w7(this);
|
|
}
|
|
boolean F3 = F3();
|
|
if (this.C4 != F3) {
|
|
this.C4 = F3;
|
|
if (F3) {
|
|
k5();
|
|
} else {
|
|
MyScrollNavi myScrollNavi = this.e4;
|
|
if (myScrollNavi != null) {
|
|
myScrollNavi.g();
|
|
this.e4 = null;
|
|
}
|
|
MyScrollNavi myScrollNavi2 = this.f4;
|
|
if (myScrollNavi2 != null) {
|
|
myScrollNavi2.g();
|
|
this.f4 = null;
|
|
}
|
|
}
|
|
}
|
|
boolean T5 = T5();
|
|
if (this.D4 != T5) {
|
|
this.D4 = T5;
|
|
if (T5) {
|
|
K1();
|
|
} else {
|
|
MyGesNoti myGesNoti = this.g4;
|
|
if (myGesNoti != null) {
|
|
myGesNoti.f18784c = false;
|
|
ValueAnimator valueAnimator = myGesNoti.h;
|
|
if (valueAnimator != null) {
|
|
valueAnimator.cancel();
|
|
myGesNoti.h = null;
|
|
}
|
|
ValueAnimator valueAnimator2 = myGesNoti.i;
|
|
if (valueAnimator2 != null) {
|
|
valueAnimator2.cancel();
|
|
myGesNoti.i = null;
|
|
}
|
|
myGesNoti.f = null;
|
|
myGesNoti.g = null;
|
|
myGesNoti.l = null;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.removeView(this.g4);
|
|
}
|
|
this.g4 = null;
|
|
}
|
|
}
|
|
}
|
|
boolean z3 = this.K4;
|
|
boolean z4 = PrefWeb.t;
|
|
if (z3 != z4 || this.L4 != PrefWeb.u) {
|
|
this.K4 = z4;
|
|
boolean z5 = PrefWeb.u;
|
|
this.L4 = z5;
|
|
U8(z4, z5, false);
|
|
}
|
|
int i3 = this.M4;
|
|
int i4 = PrefPdf.H;
|
|
if (i3 != i4) {
|
|
this.M4 = i4;
|
|
this.hc = null;
|
|
this.ic = null;
|
|
this.jc = null;
|
|
this.kc = null;
|
|
g7(K2());
|
|
}
|
|
int i5 = this.a3;
|
|
int i6 = PrefPdf.C;
|
|
if (i5 != i6) {
|
|
this.a3 = i6;
|
|
if (this.X2 != null && (myRecyclerView = this.Y2) != null) {
|
|
if (i6 == 0) {
|
|
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) myRecyclerView.getLayoutParams();
|
|
if (marginLayoutParams != null) {
|
|
marginLayoutParams.setMargins(0, 0, 0, 0);
|
|
}
|
|
this.Y2.requestLayout();
|
|
MyButtonImage myButtonImage = this.Z2;
|
|
if (myButtonImage != null) {
|
|
myButtonImage.j();
|
|
this.X2.removeView(this.Z2);
|
|
this.Z2 = null;
|
|
}
|
|
} else {
|
|
ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) myRecyclerView.getLayoutParams();
|
|
if (marginLayoutParams2 != null) {
|
|
if (PrefPdf.C == 3) {
|
|
marginLayoutParams2.setMargins(0, 0, MainApp.g1, 0);
|
|
} else {
|
|
marginLayoutParams2.setMargins(MainApp.g1, 0, 0, 0);
|
|
}
|
|
}
|
|
this.Y2.requestLayout();
|
|
S1(t3(), u3());
|
|
}
|
|
}
|
|
}
|
|
int i7 = this.N4;
|
|
int i8 = PrefZone.x;
|
|
if (i7 != i8) {
|
|
this.N4 = i8;
|
|
j8();
|
|
}
|
|
int i9 = this.O4;
|
|
int i10 = PrefEditor.I;
|
|
if (i9 != i10) {
|
|
this.O4 = i10;
|
|
z8(t3);
|
|
}
|
|
int i11 = this.P4;
|
|
int i12 = PrefEditor.J;
|
|
if (i11 != i12) {
|
|
this.P4 = i12;
|
|
WebUpView webUpView = this.P3;
|
|
if (webUpView != null) {
|
|
webUpView.setBgColors(this.U1);
|
|
}
|
|
}
|
|
int i13 = this.Q4;
|
|
int i14 = PrefZone.y;
|
|
if (i13 != i14) {
|
|
this.Q4 = i14;
|
|
if (i14 != 0) {
|
|
Z1();
|
|
U9(true);
|
|
} else {
|
|
U9(false);
|
|
}
|
|
C8();
|
|
}
|
|
int i15 = this.T4;
|
|
int i16 = PrefZone.n;
|
|
if (i15 != i16 || this.U4 != PrefZone.o || this.V4 != PrefZone.p || this.W4 != PrefZone.q || this.X4 != PrefEditor.m) {
|
|
this.T4 = i16;
|
|
this.U4 = PrefZone.o;
|
|
this.V4 = PrefZone.p;
|
|
this.W4 = PrefZone.q;
|
|
this.X4 = PrefEditor.m;
|
|
O6();
|
|
if (PrefZone.n != 0) {
|
|
J1();
|
|
}
|
|
WebDownView webDownView = this.T3;
|
|
if (webDownView != null) {
|
|
webDownView.l();
|
|
}
|
|
A7(t3(), u3());
|
|
I9(true);
|
|
}
|
|
int i17 = this.Y4;
|
|
int i18 = PrefZone.r;
|
|
if (i17 != i18 || this.Z4 != PrefZone.s || this.a5 != PrefZone.t || this.b5 != PrefEditor.y) {
|
|
this.Y4 = i18;
|
|
this.Z4 = PrefZone.s;
|
|
this.a5 = PrefZone.t;
|
|
this.b5 = PrefEditor.y;
|
|
if ((!MainUtil.m8() || !PrefZtwo.V) && Float.compare(PrefZtwo.W, 1.0f) != 0) {
|
|
PrefZtwo.W = 1.0f;
|
|
PrefSet.e(this.i1, 1.0f);
|
|
}
|
|
if (PrefZone.r != 0) {
|
|
a2();
|
|
}
|
|
WebDownView webDownView2 = this.b4;
|
|
if (webDownView2 != null) {
|
|
webDownView2.l();
|
|
}
|
|
X8(t3(), u3());
|
|
W9(true);
|
|
}
|
|
boolean z6 = this.R4;
|
|
boolean z7 = PrefZtwo.E;
|
|
if (z6 != z7) {
|
|
this.R4 = z7;
|
|
WebNestView webNestView6 = this.I2;
|
|
if (webNestView6 != null) {
|
|
webNestView6.setAddPage(z7);
|
|
}
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.setAddPage(PrefZtwo.E);
|
|
}
|
|
}
|
|
boolean z8 = this.S4;
|
|
boolean z9 = PrefZone.u;
|
|
if (z8 != z9) {
|
|
this.S4 = z9;
|
|
k7(6);
|
|
}
|
|
boolean k5 = MainUtil.k5(this.U1);
|
|
if (this.E4 == k5 && this.F4 == MainApp.L1 && this.J4 == b3()) {
|
|
k2 = false;
|
|
} else {
|
|
k2 = k2(this.J4, this.E4, this.F4);
|
|
this.E4 = k5;
|
|
this.F4 = MainApp.L1;
|
|
this.J4 = b3();
|
|
}
|
|
boolean z10 = this.G4;
|
|
boolean z11 = PrefWeb.M;
|
|
if (z10 != z11 || this.H4 != PrefWeb.N) {
|
|
this.G4 = z11;
|
|
this.H4 = PrefWeb.N;
|
|
if (!k2 && (webNestView = this.I2) != null) {
|
|
webNestView.M(this.A8, this.B8);
|
|
}
|
|
}
|
|
boolean z12 = this.c5;
|
|
boolean z13 = PrefPdf.s;
|
|
if (z12 != z13) {
|
|
this.c5 = z13;
|
|
if (z13 && (webNestView4 = this.I2) != null) {
|
|
webNestView4.I();
|
|
}
|
|
}
|
|
int i19 = this.d5;
|
|
int i20 = PrefEditor.q;
|
|
if (i19 != i20) {
|
|
this.d5 = i20;
|
|
WebTtsView webTtsView = this.Za;
|
|
if (webTtsView != null) {
|
|
webTtsView.j();
|
|
}
|
|
}
|
|
int i21 = this.e5;
|
|
int i22 = PrefZone.O;
|
|
if (i21 != i22) {
|
|
this.e5 = i22;
|
|
if (i22 != 2 && (webNestView3 = this.I2) != null) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("var elw=document.querySelectorAll(\"*[style*='translate']\");if(elw&&(elw.length>0)){for(var i=0;i<elw.length;i++){elw[i].addEventListener(\"touchstart\",function(){android.onSlideDet();});}}");
|
|
sb.insert(0, "(function(){");
|
|
sb.append("})();");
|
|
MainUtil.I(webNestView3, sb.toString(), true);
|
|
}
|
|
}
|
|
int i23 = this.f5;
|
|
int i24 = PrefTts.F;
|
|
if (i23 != i24 || this.g5 != PrefTts.G) {
|
|
this.f5 = i24;
|
|
this.g5 = PrefTts.G;
|
|
boolean h0 = h0();
|
|
O7(h0);
|
|
Z(h0);
|
|
r2();
|
|
}
|
|
int i25 = this.h5;
|
|
int i26 = PrefTts.J;
|
|
if (i25 != i26) {
|
|
this.h5 = i26;
|
|
if (PrefTts.H && !h0()) {
|
|
K7(true);
|
|
if (PrefTts.H && PrefTts.I && this.Ob != null && (myWebBody = this.e2) != null) {
|
|
if (myWebBody == null) {
|
|
e = 0;
|
|
} else {
|
|
e = myWebBody.e(this);
|
|
}
|
|
Io = e;
|
|
if (MainConst.d) {
|
|
MyWebBody myWebBody2 = this.e2;
|
|
t3();
|
|
myWebBody2.n = e;
|
|
myWebBody2.setTopColor(myWebBody2.f);
|
|
}
|
|
if (this.Ob.getHeight() != e) {
|
|
this.Ob.getLayoutParams().height = e;
|
|
this.Ob.requestLayout();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
boolean z14 = this.i5;
|
|
boolean z15 = PrefZtri.H;
|
|
if (z14 != z15) {
|
|
this.i5 = z15;
|
|
if (z15) {
|
|
N1();
|
|
K9(true);
|
|
} else {
|
|
WebFltView webFltView = this.Nb;
|
|
if (webFltView != null) {
|
|
webFltView.o();
|
|
MyWebBody myWebBody3 = this.e2;
|
|
if (myWebBody3 != null) {
|
|
myWebBody3.removeView(this.Nb);
|
|
}
|
|
this.Nb = null;
|
|
}
|
|
}
|
|
}
|
|
int i27 = this.j5;
|
|
int i28 = PrefEditor.R;
|
|
if (i27 != i28) {
|
|
this.j5 = i28;
|
|
WebFltView webFltView2 = this.Nb;
|
|
if (webFltView2 != null) {
|
|
webFltView2.q();
|
|
}
|
|
}
|
|
int i29 = this.k5;
|
|
int i30 = PrefAlbum.u;
|
|
if (i29 != i30 || this.l5 != PrefAlbum.w) {
|
|
this.k5 = i30;
|
|
this.l5 = PrefAlbum.w;
|
|
D8(false);
|
|
}
|
|
s2();
|
|
int i31 = this.n5;
|
|
int i32 = PrefEditor.Z;
|
|
if (i31 != i32) {
|
|
this.n5 = i32;
|
|
WebFltView webFltView3 = this.T6;
|
|
if (webFltView3 != null) {
|
|
webFltView3.q();
|
|
}
|
|
}
|
|
boolean z16 = this.o5;
|
|
boolean z17 = PrefZtri.k;
|
|
if (z16 != z17) {
|
|
this.o5 = z17;
|
|
if (z17) {
|
|
b2();
|
|
} else {
|
|
WebFltView webFltView4 = this.ab;
|
|
if (webFltView4 != null) {
|
|
webFltView4.o();
|
|
MyWebBody myWebBody4 = this.e2;
|
|
if (myWebBody4 != null) {
|
|
myWebBody4.removeView(this.ab);
|
|
}
|
|
this.ab = null;
|
|
}
|
|
}
|
|
}
|
|
int i33 = this.p5;
|
|
int i34 = PrefEditor.u;
|
|
if (i33 != i34) {
|
|
this.p5 = i34;
|
|
WebFltView webFltView5 = this.ab;
|
|
if (webFltView5 != null) {
|
|
webFltView5.q();
|
|
}
|
|
}
|
|
int i35 = this.q5;
|
|
int i36 = PrefFloat.j;
|
|
if (i35 != i36) {
|
|
this.q5 = i36;
|
|
I7(6);
|
|
WebFltView webFltView6 = this.bb;
|
|
if (webFltView6 != null) {
|
|
webFltView6.setIconView(PrefFloat.j);
|
|
}
|
|
}
|
|
int i37 = this.r5;
|
|
int i38 = PrefFloat.k;
|
|
if (i37 != i38) {
|
|
this.r5 = i38;
|
|
I7(7);
|
|
WebFltView webFltView7 = this.cb;
|
|
if (webFltView7 != null) {
|
|
webFltView7.setIconView(PrefFloat.k);
|
|
}
|
|
}
|
|
int i39 = this.s5;
|
|
int i40 = PrefFloat.l;
|
|
if (i39 != i40) {
|
|
this.s5 = i40;
|
|
I7(8);
|
|
WebFltView webFltView8 = this.db;
|
|
if (webFltView8 != null) {
|
|
webFltView8.setIconView(PrefFloat.l);
|
|
}
|
|
}
|
|
int i41 = this.t5;
|
|
int i42 = PrefFloat.s;
|
|
if (i41 != i42) {
|
|
this.t5 = i42;
|
|
WebFltView webFltView9 = this.bb;
|
|
if (webFltView9 != null) {
|
|
webFltView9.q();
|
|
}
|
|
}
|
|
int i43 = this.u5;
|
|
int i44 = PrefFloat.w;
|
|
if (i43 != i44) {
|
|
this.u5 = i44;
|
|
WebFltView webFltView10 = this.cb;
|
|
if (webFltView10 != null) {
|
|
webFltView10.q();
|
|
}
|
|
}
|
|
int i45 = this.v5;
|
|
int i46 = PrefFloat.A;
|
|
if (i45 != i46) {
|
|
this.v5 = i46;
|
|
WebFltView webFltView11 = this.db;
|
|
if (webFltView11 != null) {
|
|
webFltView11.q();
|
|
}
|
|
}
|
|
J9(true);
|
|
int i47 = this.w5;
|
|
int i48 = PrefWeb.O;
|
|
if (i47 != i48) {
|
|
this.w5 = i48;
|
|
this.x5 = t3;
|
|
if (i48 == 1) {
|
|
int i49 = this.P2;
|
|
WebNestView webNestView7 = this.I2;
|
|
String str2 = this.A8;
|
|
if (webNestView7 != null && i48 == 1 && i49 != -1) {
|
|
StringBuilder sb2 = new StringBuilder();
|
|
if (!MainUtil.m6(str2) && !MainUtil.c6(str2)) {
|
|
a.A(sb2, "if(document.head){var tema=document.querySelector(\"meta[name=theme-color]\");if(tema){android.onThemeDet('", i49, "',tema.content);}else{android.onThemeDet('", i49);
|
|
sb2.append("',null);}}");
|
|
} else {
|
|
sb2.append("android.onThemeDet('");
|
|
sb2.append(i49);
|
|
sb2.append("','btc');");
|
|
}
|
|
sb2.insert(0, "(function(){");
|
|
sb2.append("})();");
|
|
MainUtil.I(webNestView7, sb2.toString(), true);
|
|
}
|
|
} else {
|
|
I8(t3, u3);
|
|
}
|
|
} else if (this.x5 != t3) {
|
|
this.x5 = t3;
|
|
I8(t3, u3);
|
|
} else {
|
|
boolean z18 = this.I4;
|
|
boolean z19 = PrefWeb.U;
|
|
if (z18 != z19) {
|
|
this.I4 = z19;
|
|
if (i48 == 2 && this.U1) {
|
|
this.q2 = t3 + 1;
|
|
I8(t3, u3);
|
|
}
|
|
}
|
|
}
|
|
if (this.y5 != PrefZtwo.J || this.D5 != PrefZtri.C || !MainUtil.q5(this.z5, PrefZtwo.L)) {
|
|
boolean z20 = PrefZtri.C;
|
|
this.D5 = z20;
|
|
if (PrefZtwo.J && z20 && !QuickView.s()) {
|
|
P1();
|
|
} else if (this.lb != null && (handler = this.O0) != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.636
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebFltView webFltView12 = webViewActivity.lb;
|
|
if (webFltView12 != null) {
|
|
webFltView12.o();
|
|
MyWebBody myWebBody5 = webViewActivity.e2;
|
|
if (myWebBody5 != null) {
|
|
myWebBody5.removeView(webViewActivity.lb);
|
|
}
|
|
webViewActivity.lb = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
int i50 = this.E5;
|
|
int i51 = PrefEditor.N;
|
|
if (i50 != i51) {
|
|
this.E5 = i51;
|
|
WebFltView webFltView12 = this.lb;
|
|
if (webFltView12 != null) {
|
|
webFltView12.q();
|
|
}
|
|
}
|
|
boolean z21 = PrefZtwo.J;
|
|
if (z21 && PrefZtwo.O) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
if (z2) {
|
|
str = PrefZtwo.P;
|
|
} else {
|
|
str = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
if (this.y5 != z21 || this.A5 != PrefZtwo.N || this.B5 != z2 || !MainUtil.q5(this.C5, str) || !MainUtil.q5(this.z5, PrefZtwo.L)) {
|
|
this.y5 = PrefZtwo.J;
|
|
this.A5 = PrefZtwo.N;
|
|
this.B5 = z2;
|
|
WebNestView webNestView8 = this.I2;
|
|
if (webNestView8 != null && (quickView = webNestView8.Z0) != null) {
|
|
quickView.g(true);
|
|
}
|
|
}
|
|
this.C5 = null;
|
|
this.z5 = null;
|
|
boolean z22 = this.F5;
|
|
boolean z23 = PrefZtwo.r;
|
|
if (z22 != z23) {
|
|
this.F5 = z23;
|
|
n7();
|
|
}
|
|
boolean W5 = MainUtil.W5();
|
|
if (this.G5 != W5) {
|
|
this.G5 = W5;
|
|
MainUtil.p7(this.x2);
|
|
MyFindView myFindView = this.C2;
|
|
if (myFindView != null) {
|
|
MainUtil.p7(myFindView.n);
|
|
}
|
|
}
|
|
int i52 = this.H5;
|
|
int i53 = PrefZtwo.Z;
|
|
if (i52 != i53 || this.I5 != PrefZtwo.a0) {
|
|
this.H5 = i53;
|
|
boolean z24 = PrefZtwo.a0;
|
|
this.I5 = z24;
|
|
if (i53 != -1 || !z24) {
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.61
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i54 = PrefZtwo.Z;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (i54 == 0) {
|
|
DbBookRecent.i(webViewActivity.i1);
|
|
return;
|
|
}
|
|
DbBookRecent.a(webViewActivity.i1, false);
|
|
if (PrefZtwo.a0) {
|
|
DbBookRecent.a(webViewActivity.i1, true);
|
|
} else {
|
|
DbBookRecent.j(webViewActivity.i1, true);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
w2(false);
|
|
if (PrefSecret.x && PrefZtri.M) {
|
|
R1();
|
|
} else if (this.Na != null && (handler2 = this.O0) != null) {
|
|
handler2.post(new AnonymousClass502());
|
|
}
|
|
boolean z25 = this.J5;
|
|
boolean z26 = PrefSecret.x;
|
|
if (z25 != z26) {
|
|
this.J5 = z26;
|
|
if (z26) {
|
|
v7();
|
|
}
|
|
}
|
|
boolean z27 = this.K5;
|
|
boolean z28 = PrefZtwo.U;
|
|
if (z27 != z28) {
|
|
this.K5 = z28;
|
|
if (z28 && MainUtil.n6(this.A8) && (webNestView2 = this.I2) != null) {
|
|
MainUtil.I(webNestView2, "(function(){var ele=document.querySelector(\"button[class*='ytp-unmute']\");if(ele){ele.click();}})();", true);
|
|
}
|
|
}
|
|
}
|
|
I9(true);
|
|
if (PrefZtwo.I != 0 && !this.pc) {
|
|
this.pc = true;
|
|
MyWebCoord myWebCoord2 = this.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.91
|
|
/* JADX WARN: Removed duplicated region for block: B:33:0x0054 */
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x0055 A[Catch: Exception -> 0x005d, TRY_LEAVE, TryCatch #0 {Exception -> 0x005d, blocks: (B:11:0x001b, B:14:0x0020, B:16:0x002b, B:21:0x0030, B:25:0x0039, B:29:0x003e, B:35:0x0055, B:37:0x0046, B:39:0x004a), top: B:10:0x001b }] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r11 = this;
|
|
int r0 = com.mycompany.app.pref.PrefZtwo.I
|
|
com.mycompany.app.web.WebViewActivity r1 = com.mycompany.app.web.WebViewActivity.this
|
|
r2 = 0
|
|
if (r0 != 0) goto La
|
|
int r0 = com.mycompany.app.web.WebViewActivity.Fo
|
|
goto L5d
|
|
La:
|
|
java.util.List r0 = r1.O2
|
|
if (r0 != 0) goto Lf
|
|
goto L5d
|
|
Lf:
|
|
long r3 = java.lang.System.currentTimeMillis()
|
|
int r5 = com.mycompany.app.pref.PrefZtwo.I
|
|
long r5 = (long) r5
|
|
r7 = 86400000(0x5265c00, double:4.2687272E-316)
|
|
long r5 = r5 * r7
|
|
long r3 = r3 - r5
|
|
com.mycompany.app.web.WebNestFrame r5 = r1.H2 // Catch: java.lang.Exception -> L5d
|
|
if (r5 != 0) goto L20
|
|
goto L5d
|
|
L20:
|
|
r6 = 1
|
|
r5.L(r3, r6) // Catch: java.lang.Exception -> L5d
|
|
int r5 = r0.size() // Catch: java.lang.Exception -> L5d
|
|
r7 = r2
|
|
L29:
|
|
if (r7 >= r5) goto L5d
|
|
int r8 = r1.P2 // Catch: java.lang.Exception -> L5d
|
|
if (r7 != r8) goto L30
|
|
goto L5a
|
|
L30:
|
|
java.lang.Object r8 = r0.get(r7) // Catch: java.lang.Exception -> L5d
|
|
com.mycompany.app.web.WebTabAdapter$WebTabItem r8 = (com.mycompany.app.web.WebTabAdapter.WebTabItem) r8 // Catch: java.lang.Exception -> L5d
|
|
if (r8 != 0) goto L39
|
|
goto L5a
|
|
L39:
|
|
com.mycompany.app.web.WebNestFrame r9 = r8.p // Catch: java.lang.Exception -> L5d
|
|
if (r9 != 0) goto L3e
|
|
goto L5a
|
|
L3e:
|
|
int r10 = r9.getChildCount() // Catch: java.lang.Exception -> L5d
|
|
if (r10 != 0) goto L46
|
|
L44:
|
|
r9 = r6
|
|
goto L52
|
|
L46:
|
|
java.util.List r9 = r9.o // Catch: java.lang.Exception -> L5d
|
|
if (r9 == 0) goto L44
|
|
boolean r9 = r9.isEmpty() // Catch: java.lang.Exception -> L5d
|
|
if (r9 == 0) goto L51
|
|
goto L44
|
|
L51:
|
|
r9 = r2
|
|
L52:
|
|
if (r9 == 0) goto L55
|
|
goto L5a
|
|
L55:
|
|
com.mycompany.app.web.WebNestFrame r8 = r8.p // Catch: java.lang.Exception -> L5d
|
|
r8.L(r3, r2) // Catch: java.lang.Exception -> L5d
|
|
L5a:
|
|
int r7 = r7 + 1
|
|
goto L29
|
|
L5d:
|
|
r1.pc = r2
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass91.run():void");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
MyWebCoord myWebCoord3 = this.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.59
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i54 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.o8(webViewActivity.t3(), webViewActivity.b3());
|
|
WebViewActivity.j1(webViewActivity, false);
|
|
if (PrefSync.k) {
|
|
MainUtil.d8(webViewActivity.i1);
|
|
}
|
|
if (webViewActivity.h8 == null) {
|
|
if (PrefTts.j) {
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.59.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.m1(WebViewActivity.this);
|
|
}
|
|
});
|
|
} else {
|
|
webViewActivity.A6();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
public final String v3(WebView webView, String str) {
|
|
if (webView != null) {
|
|
String title = webView.getTitle();
|
|
if (!TextUtils.isEmpty(title)) {
|
|
String K1 = MainUtil.K1(title, false);
|
|
if (!TextUtils.isEmpty(K1)) {
|
|
return K1;
|
|
}
|
|
}
|
|
}
|
|
String r1 = MainUtil.r1(MainUtil.H1(str, true));
|
|
if (!TextUtils.isEmpty(r1)) {
|
|
return r1;
|
|
}
|
|
return getString(R.string.no_title);
|
|
}
|
|
|
|
public final void v4() {
|
|
DialogSetRead dialogSetRead = this.l8;
|
|
if (dialogSetRead != null) {
|
|
dialogSetRead.dismiss();
|
|
this.l8 = null;
|
|
}
|
|
}
|
|
|
|
public final void v5() {
|
|
if (this.M2 == null && this.f2 != null) {
|
|
i6();
|
|
WebNestView webNestView = new WebNestView(this);
|
|
this.I2 = webNestView;
|
|
K8(webNestView);
|
|
WebNestView webNestView2 = this.I2;
|
|
webNestView2.a1 = this.U1;
|
|
webNestView2.setDeskMode(this.T1);
|
|
WebNestFrame webNestFrame = new WebNestFrame(this);
|
|
this.H2 = webNestFrame;
|
|
webNestFrame.E(this.U1);
|
|
WebNestFrame webNestFrame2 = this.H2;
|
|
WebNestView webNestView3 = this.I2;
|
|
if (webNestFrame2 != null) {
|
|
webNestFrame2.k(webNestView3, 0, 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void v6() {
|
|
if (this.y9 == 0 && !this.z9) {
|
|
return;
|
|
}
|
|
this.y9 = 0;
|
|
this.z9 = false;
|
|
DataAlbum.m(this.i1).j();
|
|
DataPdf.m(this.i1).j();
|
|
DataCmp.m(this.i1).j();
|
|
DataUrl b = DataUrl.b(this.i1);
|
|
b.f12901a = null;
|
|
b.b = null;
|
|
b.f12902c = null;
|
|
}
|
|
|
|
public final void v7() {
|
|
MyWebBody myWebBody;
|
|
if (PrefSecret.x && MainApp.R1) {
|
|
String str = this.Ha;
|
|
String str2 = this.Ia;
|
|
String str3 = this.Ja;
|
|
String str4 = this.Ka;
|
|
this.Ha = null;
|
|
this.Ia = null;
|
|
this.Ja = null;
|
|
this.Ka = null;
|
|
if (!this.H8 && !TextUtils.isEmpty(this.A8) && !"file:///android_asset/shortcut.html".equals(this.A8) && !"about:blank".equals(this.A8)) {
|
|
if (!TextUtils.isEmpty(str) && !TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str3)) {
|
|
this.Qm = str;
|
|
this.Rm = str2;
|
|
this.Sm = str3;
|
|
this.Tm = str4;
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.498
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MyWebBody myWebBody2;
|
|
String str5;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
String str6 = webViewActivity.Qm;
|
|
String str7 = webViewActivity.Rm;
|
|
String str8 = webViewActivity.Sm;
|
|
String str9 = webViewActivity.Tm;
|
|
Cursor cursor = null;
|
|
webViewActivity.Qm = null;
|
|
webViewActivity.Rm = null;
|
|
webViewActivity.Sm = null;
|
|
webViewActivity.Tm = null;
|
|
if (!TextUtils.isEmpty(str6) && !TextUtils.isEmpty(str7) && !TextUtils.isEmpty(str8) && !str6.equals(webViewActivity.La)) {
|
|
Context context = webViewActivity.i1;
|
|
DbBookPass dbBookPass = DbBookPass.f12940c;
|
|
boolean z = false;
|
|
if (context != null && !TextUtils.isEmpty(str6) && !TextUtils.isEmpty(str7) && !TextUtils.isEmpty(str8)) {
|
|
if (PrefSync.k) {
|
|
str5 = "1";
|
|
} else {
|
|
str5 = "0";
|
|
}
|
|
try {
|
|
cursor = DbUtil.g(DbBookPass.d(context).getWritableDatabase(), "DbBookPass_table", null, "_secret=? AND _path=? AND _user_val=? AND _pass_val=?", new String[]{str5, str6, str7, str8}, null);
|
|
if (cursor != null) {
|
|
if (cursor.moveToFirst()) {
|
|
z = true;
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
if (cursor != null) {
|
|
cursor.close();
|
|
}
|
|
}
|
|
if (!z) {
|
|
webViewActivity.Um = str6;
|
|
webViewActivity.Vm = str7;
|
|
webViewActivity.Wm = str8;
|
|
webViewActivity.Xm = str9;
|
|
if (webViewActivity.I2 != null && (myWebBody2 = webViewActivity.e2) != null) {
|
|
myWebBody2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.498.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
String str10 = webViewActivity2.Um;
|
|
String str11 = webViewActivity2.Vm;
|
|
String str12 = webViewActivity2.Wm;
|
|
String str13 = webViewActivity2.Xm;
|
|
webViewActivity2.Um = null;
|
|
webViewActivity2.Vm = null;
|
|
webViewActivity2.Wm = null;
|
|
webViewActivity2.Xm = null;
|
|
if (!webViewActivity2.G1 && !webViewActivity2.J5()) {
|
|
webViewActivity2.i4();
|
|
if (!TextUtils.isEmpty(str10) && !TextUtils.isEmpty(str11) && !TextUtils.isEmpty(str12)) {
|
|
DialogPassInfo dialogPassInfo = new DialogPassInfo(webViewActivity2, 0L, str10, str11, str12, str13, new DialogPassInfo.PassInfoListener() { // from class: com.mycompany.app.web.WebViewActivity.499
|
|
@Override // com.mycompany.app.dialog.DialogPassInfo.PassInfoListener
|
|
public final void a(String str14, String str15) {
|
|
int i = R.string.save_success;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
MainUtil.e8(webViewActivity3, i);
|
|
webViewActivity3.i4();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPassInfo.PassInfoListener
|
|
public final void b(String str14) {
|
|
WebViewActivity.this.La = str14;
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogPassInfo.PassInfoListener
|
|
public final Bitmap getIcon() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return null;
|
|
}
|
|
return webNestView.getFavicon();
|
|
}
|
|
});
|
|
webViewActivity2.D7 = dialogPassInfo;
|
|
dialogPassInfo.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.500
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity.this.i4();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (MainUtil.Z5(this.A8, this.B8)) {
|
|
this.Ea = true;
|
|
if (PrefZtri.M) {
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.495
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.v0(WebViewActivity.this, true);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.I2 != null && (myWebBody = this.e2) != null) {
|
|
myWebBody.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.496
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView = WebViewActivity.this.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
MainUtil.I(webNestView, "(function(){var tag='onCheckPass';var val=0;var ele=document.querySelector(\"input[type='password']\");if(ele){val=1;}android.onJsResult(tag,val);})();", false);
|
|
}
|
|
}, 400L);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void v8(int i) {
|
|
synchronized (this.f1) {
|
|
try {
|
|
WebTabAdapter.WebTabItem n3 = n3(i);
|
|
if (n3 == null) {
|
|
return;
|
|
}
|
|
y2(n3);
|
|
this.O2.remove(i);
|
|
int i2 = this.P2;
|
|
if (i <= i2) {
|
|
this.P2 = i2 - 1;
|
|
}
|
|
t8();
|
|
long j = n3.f19520c;
|
|
DbBookTab.u(this.i1, m3());
|
|
DbBookTab.l(this.i1, j);
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void v9() {
|
|
if (this.I2 != null && !this.G1) {
|
|
if (!this.Al && J5()) {
|
|
return;
|
|
}
|
|
w4();
|
|
this.m5 = this.M6;
|
|
DialogSetTrans dialogSetTrans = new DialogSetTrans(this, s3(false), new DialogSetFull.DialogApplyListener() { // from class: com.mycompany.app.web.WebViewActivity.389
|
|
@Override // com.mycompany.app.dialog.DialogSetFull.DialogApplyListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView == null) {
|
|
return;
|
|
}
|
|
String url = webNestView.getUrl();
|
|
if (!TextUtils.isEmpty(url) && !"about:blank".equals(url)) {
|
|
if (url.startsWith("file:///")) {
|
|
MainUtil.e8(webViewActivity, R.string.not_supported_page);
|
|
webViewActivity.m5 = null;
|
|
return;
|
|
} else {
|
|
WebViewActivity.R0(webViewActivity, PrefAlbum.y);
|
|
webViewActivity.m5 = null;
|
|
return;
|
|
}
|
|
}
|
|
MainUtil.e8(webViewActivity, R.string.blank_page);
|
|
webViewActivity.m5 = null;
|
|
}
|
|
});
|
|
this.D6 = dialogSetTrans;
|
|
dialogSetTrans.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.390
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.w4();
|
|
if (PrefAlbum.u == 0) {
|
|
webViewActivity.J6 = false;
|
|
}
|
|
webViewActivity.D8(false);
|
|
WebFltView webFltView = webViewActivity.T6;
|
|
if (webFltView != null) {
|
|
webFltView.q();
|
|
}
|
|
webViewActivity.s2();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void w2(boolean z) {
|
|
WebNestView webNestView;
|
|
boolean z2;
|
|
boolean z3 = this.U1;
|
|
if (!z3 && (webNestView = this.I2) != null) {
|
|
if (!z) {
|
|
if (PrefWeb.o || PrefTts.u != 0) {
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.63
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView3 = webViewActivity.I2;
|
|
if (webNestView3 != null) {
|
|
if (PrefTts.u != 0) {
|
|
MainUtil.x7(webNestView3);
|
|
}
|
|
if (!webViewActivity.U1 && PrefWeb.o && (webNestView2 = webViewActivity.I2) != null) {
|
|
webNestView2.L(webViewActivity.A8, webViewActivity.B8, true);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MyProgressBar myProgressBar = this.G2;
|
|
if (myProgressBar == null) {
|
|
z2 = false;
|
|
} else {
|
|
z2 = !myProgressBar.B;
|
|
}
|
|
if (z2) {
|
|
return;
|
|
}
|
|
if (!z3 && PrefWeb.o && webNestView != null) {
|
|
webNestView.setAdsRunning(true);
|
|
}
|
|
m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.64
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null) {
|
|
WebViewActivity.p1(webViewActivity);
|
|
if (!webViewActivity.U1 && PrefWeb.o && (webNestView2 = webViewActivity.I2) != null) {
|
|
webNestView2.L(webViewActivity.A8, webViewActivity.B8, true);
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.64.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z4;
|
|
AnonymousClass64 anonymousClass64 = AnonymousClass64.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (webViewActivity2.H8 && !webViewActivity2.J8) {
|
|
MainUtil.Y7(webViewActivity2.I2);
|
|
z4 = WebViewActivity.this.Z8();
|
|
} else {
|
|
z4 = false;
|
|
}
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
webViewActivity3.li = z4;
|
|
if (!z4) {
|
|
webViewActivity3.R6();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final int w3() {
|
|
int height = (this.I2.getHeight() - MainUtil.H3()) - MainUtil.j0();
|
|
if (height < 0) {
|
|
return 0;
|
|
}
|
|
return height;
|
|
}
|
|
|
|
public final void w4() {
|
|
DialogSetTrans dialogSetTrans = this.D6;
|
|
if (dialogSetTrans != null) {
|
|
dialogSetTrans.dismiss();
|
|
this.D6 = null;
|
|
}
|
|
this.Al = false;
|
|
}
|
|
|
|
public final boolean w5() {
|
|
WebNestFrame webNestFrame = this.H2;
|
|
if (webNestFrame != null) {
|
|
if (!webNestFrame.t && webNestFrame.v == null && webNestFrame.H == null && this.T2 == 0 && this.o3 == 0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void w6() {
|
|
WebNestView webNestView = this.Gb;
|
|
if (webNestView != null) {
|
|
this.Gb = null;
|
|
P4();
|
|
i6();
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass282(webNestView));
|
|
}
|
|
}
|
|
|
|
public final void w7() {
|
|
if (this.I2 != null) {
|
|
int t3 = t3();
|
|
int u3 = u3();
|
|
this.I2.setDarkUi(MainApp.K1);
|
|
H8(t3, u3, b3());
|
|
WebAreaView webAreaView = this.k7;
|
|
if (webAreaView != null) {
|
|
webAreaView.a();
|
|
}
|
|
QuickControl quickControl = this.B3;
|
|
if (quickControl != null) {
|
|
quickControl.setColor(this.U1);
|
|
}
|
|
WebSearchAdapter webSearchAdapter = this.D2;
|
|
if (webSearchAdapter != null) {
|
|
webSearchAdapter.g();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void w8(int i) {
|
|
WebNestView webNestView;
|
|
WebTabAdapter.WebTabItem n3;
|
|
if (PrefZone.C != 2 && !this.g1 && !this.Q1 && this.H2 != null && (webNestView = this.I2) != null && !webNestView.z0 && (n3 = n3(i)) != null) {
|
|
this.qi = this.I2;
|
|
this.ri = n3;
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.241
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.241.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i2;
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebNestView webNestView2 = webViewActivity.qi;
|
|
WebTabAdapter.WebTabItem webTabItem = webViewActivity.ri;
|
|
webViewActivity.qi = null;
|
|
webViewActivity.ri = null;
|
|
if (webTabItem != null && webNestView2 != null && !webNestView2.v()) {
|
|
String a2 = MemoryCacheUtils.a(2, webTabItem.j + webTabItem.l + PrefSync.k);
|
|
if (!webNestView2.v()) {
|
|
try {
|
|
int width = webNestView2.getWidth();
|
|
int height = webNestView2.getHeight();
|
|
if (width != 0 && height != 0) {
|
|
int round = Math.round(width * 0.4f);
|
|
int round2 = Math.round(height * 0.4f);
|
|
if (round != 0 && round2 > 0) {
|
|
int scrollX = webNestView2.getScrollX();
|
|
int scrollY = webNestView2.getScrollY();
|
|
Bitmap createBitmap = Bitmap.createBitmap(round, round2, Bitmap.Config.RGB_565);
|
|
Canvas canvas = new Canvas(createBitmap);
|
|
if (MainApp.L1) {
|
|
i2 = -16777216;
|
|
} else {
|
|
i2 = -1;
|
|
}
|
|
canvas.drawColor(i2);
|
|
canvas.scale(0.4f, 0.4f);
|
|
if (scrollX != 0 || scrollY != 0) {
|
|
canvas.translate(-scrollX, -scrollY);
|
|
}
|
|
webViewActivity.si = webNestView2;
|
|
webViewActivity.ti = webTabItem.f19520c;
|
|
webViewActivity.ui = a2;
|
|
webViewActivity.vi = createBitmap;
|
|
webViewActivity.wi = canvas;
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.242
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
final WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestView webNestView3 = webViewActivity2.si;
|
|
long j = webViewActivity2.ti;
|
|
String str = webViewActivity2.ui;
|
|
Bitmap bitmap = webViewActivity2.vi;
|
|
Canvas canvas2 = webViewActivity2.wi;
|
|
webViewActivity2.si = null;
|
|
webViewActivity2.ti = 0L;
|
|
webViewActivity2.ui = null;
|
|
webViewActivity2.vi = null;
|
|
webViewActivity2.wi = null;
|
|
if (canvas2 != null && MainUtil.f6(bitmap) && webNestView3 != null && !webNestView3.v()) {
|
|
webNestView3.n1 = MainUtil.C5(webNestView3.a1);
|
|
webNestView3.D0 = 0.0f;
|
|
webNestView3.J0 = 0;
|
|
try {
|
|
webNestView3.draw(canvas2);
|
|
webViewActivity2.xi = j;
|
|
webViewActivity2.yi = str;
|
|
webViewActivity2.zi = bitmap;
|
|
MyWebCoord myWebCoord3 = webViewActivity2.f2;
|
|
if (myWebCoord3 != null) {
|
|
myWebCoord3.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.243
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.243.1
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0082 */
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0086 */
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x0039 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x008e */
|
|
/* JADX WARN: Removed duplicated region for block: B:49:0x00c2 */
|
|
/* JADX WARN: Removed duplicated region for block: B:51:? A[RETURN, SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void run() {
|
|
/*
|
|
r14 = this;
|
|
com.mycompany.app.web.WebViewActivity$243 r0 = com.mycompany.app.web.WebViewActivity.AnonymousClass243.this
|
|
com.mycompany.app.web.WebViewActivity r0 = com.mycompany.app.web.WebViewActivity.this
|
|
long r1 = r0.xi
|
|
java.lang.String r3 = r0.yi
|
|
android.graphics.Bitmap r4 = r0.zi
|
|
r5 = 0
|
|
r0.xi = r5
|
|
r7 = 0
|
|
r0.yi = r7
|
|
r0.zi = r7
|
|
android.content.Context r8 = r0.i1
|
|
com.mycompany.app.db.book.DbTabThumb r9 = com.mycompany.app.db.book.DbTabThumb.f12971c
|
|
if (r8 == 0) goto L89
|
|
int r5 = (r1 > r5 ? 1 : (r1 == r5 ? 0 : -1))
|
|
if (r5 <= 0) goto L89
|
|
boolean r5 = com.mycompany.app.main.MainUtil.f6(r4)
|
|
if (r5 != 0) goto L24
|
|
goto L89
|
|
L24:
|
|
java.io.ByteArrayOutputStream r5 = new java.io.ByteArrayOutputStream // Catch: java.lang.Exception -> L35
|
|
r5.<init>() // Catch: java.lang.Exception -> L35
|
|
android.graphics.Bitmap$CompressFormat r6 = android.graphics.Bitmap.CompressFormat.PNG // Catch: java.lang.Exception -> L36
|
|
r9 = 100
|
|
r4.compress(r6, r9, r5) // Catch: java.lang.Exception -> L36
|
|
byte[] r6 = r5.toByteArray() // Catch: java.lang.Exception -> L36
|
|
goto L37
|
|
L35:
|
|
r5 = r7
|
|
L36:
|
|
r6 = r7
|
|
L37:
|
|
if (r5 == 0) goto L3c
|
|
r5.close() // Catch: java.lang.Exception -> L3c
|
|
L3c:
|
|
if (r6 == 0) goto L89
|
|
int r5 = r6.length
|
|
if (r5 != 0) goto L42
|
|
goto L89
|
|
L42:
|
|
java.lang.String r5 = java.lang.Long.toString(r1)
|
|
java.lang.String[] r5 = new java.lang.String[]{r5}
|
|
com.mycompany.app.db.book.DbTabThumb r8 = com.mycompany.app.db.book.DbTabThumb.b(r8)
|
|
android.database.sqlite.SQLiteDatabase r8 = r8.getWritableDatabase()
|
|
java.lang.String r9 = "DbTabThumb_table"
|
|
java.lang.String r10 = "_uid=?"
|
|
int r7 = com.mycompany.app.db.DbUtil.d(r8, r9, r7, r10, r5)
|
|
if (r7 == 0) goto L89
|
|
android.content.ContentValues r11 = new android.content.ContentValues
|
|
r11.<init>()
|
|
boolean r12 = com.mycompany.app.pref.PrefSync.k
|
|
java.lang.Integer r12 = java.lang.Integer.valueOf(r12)
|
|
java.lang.String r13 = "_secret"
|
|
r11.put(r13, r12)
|
|
java.lang.String r12 = "_uid"
|
|
java.lang.Long r1 = java.lang.Long.valueOf(r1)
|
|
r11.put(r12, r1)
|
|
java.lang.String r1 = "_tkey"
|
|
r11.put(r1, r3)
|
|
java.lang.String r1 = "_thumb"
|
|
r11.put(r1, r6)
|
|
r1 = 1
|
|
if (r7 != r1) goto L86
|
|
com.mycompany.app.db.DbUtil.h(r8, r9, r11, r10, r5)
|
|
goto L89
|
|
L86:
|
|
com.mycompany.app.db.DbUtil.e(r8, r9, r11)
|
|
L89:
|
|
int r1 = com.mycompany.app.pref.PrefZone.C
|
|
r2 = 2
|
|
if (r1 == r2) goto Lbc
|
|
com.mycompany.app.dialog.DialogTabMain r1 = r0.N7
|
|
if (r1 == 0) goto La5
|
|
com.nostra13.universalimageloader.core.ImageLoader r1 = com.nostra13.universalimageloader.core.ImageLoader.f()
|
|
com.nostra13.universalimageloader.cache.memory.impl.LruMemoryCache r1 = r1.g()
|
|
r1.b(r3, r4)
|
|
com.mycompany.app.dialog.DialogTabMain r0 = r0.N7
|
|
if (r0 == 0) goto Lc5
|
|
r0.P()
|
|
goto Lc5
|
|
La5:
|
|
com.mycompany.app.dialog.DialogTabMini r1 = r0.O7
|
|
if (r1 == 0) goto Lbc
|
|
com.nostra13.universalimageloader.core.ImageLoader r1 = com.nostra13.universalimageloader.core.ImageLoader.f()
|
|
com.nostra13.universalimageloader.cache.memory.impl.LruMemoryCache r1 = r1.g()
|
|
r1.b(r3, r4)
|
|
com.mycompany.app.dialog.DialogTabMini r0 = r0.O7
|
|
if (r0 == 0) goto Lc5
|
|
r0.c0()
|
|
goto Lc5
|
|
Lbc:
|
|
boolean r0 = com.mycompany.app.main.MainUtil.f6(r4)
|
|
if (r0 == 0) goto Lc5
|
|
r4.recycle()
|
|
Lc5:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.AnonymousClass243.AnonymousClass1.run():void");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
} catch (Exception | OutOfMemoryError unused) {
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception | OutOfMemoryError unused) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:28:0x007a */
|
|
/* JADX WARN: Removed duplicated region for block: B:31:0x0097 A[ADDED_TO_REGION] */
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x007c */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void w9(final boolean r13) {
|
|
/*
|
|
r12 = this;
|
|
com.mycompany.app.web.WebNestView r0 = r12.I2
|
|
if (r0 != 0) goto L7
|
|
L4:
|
|
r4 = r12
|
|
goto L9a
|
|
L7:
|
|
boolean r0 = r12.G1
|
|
if (r0 == 0) goto Lc
|
|
goto L4
|
|
Lc:
|
|
boolean r0 = r12.J5()
|
|
if (r0 == 0) goto L13
|
|
goto L4
|
|
L13:
|
|
r12.x4()
|
|
r0 = 0
|
|
if (r13 != 0) goto L70
|
|
com.mycompany.app.web.WebNestView r1 = r12.I2
|
|
if (r1 == 0) goto L70
|
|
java.lang.String r1 = r1.getUrl()
|
|
boolean r2 = android.text.TextUtils.isEmpty(r1)
|
|
if (r2 != 0) goto L70
|
|
java.lang.String r2 = "file:///android_asset/shortcut.html"
|
|
boolean r2 = r2.equals(r1)
|
|
if (r2 != 0) goto L70
|
|
java.lang.String r2 = "about:blank"
|
|
boolean r2 = r2.equals(r1)
|
|
if (r2 != 0) goto L70
|
|
java.lang.StringBuilder r2 = new java.lang.StringBuilder
|
|
r2.<init>()
|
|
int r3 = com.mycompany.app.soulbrowser.R.string.delete_cookie
|
|
java.lang.String r3 = r12.getString(r3)
|
|
r2.append(r3)
|
|
java.lang.String r3 = " ("
|
|
r2.append(r3)
|
|
java.lang.String r3 = r12.B8
|
|
java.lang.String r3 = com.mycompany.app.main.MainUtil.G1(r3)
|
|
r2.append(r3)
|
|
java.lang.String r3 = ")"
|
|
r2.append(r3)
|
|
java.lang.String r2 = r2.toString()
|
|
int r3 = android.os.Build.VERSION.SDK_INT
|
|
r4 = 29
|
|
if (r3 < r4) goto L6e
|
|
java.lang.String r3 = "https://"
|
|
boolean r1 = r1.startsWith(r3)
|
|
if (r1 == 0) goto L6e
|
|
r1 = 1
|
|
r8 = r1
|
|
L6c:
|
|
r7 = r2
|
|
goto L72
|
|
L6e:
|
|
r8 = r0
|
|
goto L6c
|
|
L70:
|
|
r2 = 0
|
|
goto L6e
|
|
L72:
|
|
int r1 = com.mycompany.app.soulbrowser.R.style.DialogExpandTheme
|
|
boolean r2 = r12.h0()
|
|
if (r2 == 0) goto L7c
|
|
r5 = r0
|
|
goto L7d
|
|
L7c:
|
|
r5 = r1
|
|
L7d:
|
|
com.mycompany.app.dialog.DialogSetUrl r3 = new com.mycompany.app.dialog.DialogSetUrl
|
|
com.mycompany.app.web.WebViewActivity$419 r9 = new com.mycompany.app.web.WebViewActivity$419
|
|
r9.<init>()
|
|
r4 = r12
|
|
r6 = r13
|
|
r3.<init>(r4, r5, r6, r7, r8, r9)
|
|
r4.Z6 = r3
|
|
com.mycompany.app.web.WebViewActivity$420 r13 = new com.mycompany.app.web.WebViewActivity$420
|
|
r13.<init>()
|
|
r3.setOnDismissListener(r13)
|
|
boolean r13 = com.mycompany.app.main.MainConst.e
|
|
if (r13 != 0) goto L9b
|
|
if (r5 == 0) goto L9a
|
|
goto L9b
|
|
L9a:
|
|
return
|
|
L9b:
|
|
com.mycompany.app.dialog.DialogSetUrl r6 = r4.Z6
|
|
boolean r9 = r4.U1
|
|
boolean r10 = r12.a6()
|
|
int r7 = r12.t3()
|
|
int r8 = r12.b3()
|
|
r11 = 1
|
|
r6.x(r7, r8, r9, r10, r11)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.w9(boolean):void");
|
|
}
|
|
|
|
public final boolean x2(boolean z) {
|
|
List list;
|
|
WebNestFrame webNestFrame;
|
|
boolean z2 = false;
|
|
if (this.f2 == null || this.xc) {
|
|
return false;
|
|
}
|
|
this.xc = true;
|
|
if (this.I2 != null && (list = this.O2) != null && list.size() != 0) {
|
|
P4();
|
|
t6(true);
|
|
synchronized (this.f1) {
|
|
try {
|
|
for (WebTabAdapter.WebTabItem webTabItem : this.O2) {
|
|
if (webTabItem != null && (webNestFrame = webTabItem.p) != null) {
|
|
if (webNestFrame.t(this.I2)) {
|
|
this.I2 = null;
|
|
}
|
|
webTabItem.p = null;
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
m0(new AnonymousClass134(z));
|
|
z2 = true;
|
|
}
|
|
this.f2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.133
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.xc = false;
|
|
}
|
|
});
|
|
return z2;
|
|
}
|
|
|
|
public final int x3() {
|
|
WebNestLayout webNestLayout = this.i2;
|
|
if (webNestLayout != null) {
|
|
return webNestLayout.getWidth();
|
|
}
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
return myWebBody.getRectWidth();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final void x4() {
|
|
DialogSetUrl dialogSetUrl = this.Z6;
|
|
if (dialogSetUrl != null) {
|
|
dialogSetUrl.dismiss();
|
|
this.Z6 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean x5() {
|
|
if (!this.Hc && !G5()) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void x6() {
|
|
WebNestView webNestView = this.Fb;
|
|
if (webNestView != null) {
|
|
this.Fb = null;
|
|
P4();
|
|
i6();
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new AnonymousClass282(webNestView));
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r4v2, types: [com.mycompany.app.main.MainItem$ChildItem, java.lang.Object] */
|
|
public final void x7() {
|
|
if (this.J9) {
|
|
DataBookDc k = DataBookDc.k(this.i1);
|
|
k.getClass();
|
|
try {
|
|
ArrayList arrayList = k.f12906c;
|
|
if (arrayList != null) {
|
|
if (!arrayList.isEmpty()) {
|
|
return;
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
ArrayList arrayList2 = new ArrayList();
|
|
Cursor cursor = null;
|
|
try {
|
|
cursor = DbUtil.g(DbBookDc.b(this.i1).getWritableDatabase(), "DbBookDc_table", new String[]{"_path", "_text"}, null, null, null);
|
|
if (cursor != null && cursor.moveToFirst()) {
|
|
int columnIndex = cursor.getColumnIndex("_path");
|
|
int columnIndex2 = cursor.getColumnIndex("_text");
|
|
do {
|
|
String string = cursor.getString(columnIndex);
|
|
if (!TextUtils.isEmpty(string)) {
|
|
?? obj = new Object();
|
|
obj.g = string;
|
|
obj.G = cursor.getString(columnIndex2);
|
|
arrayList2.add(obj);
|
|
}
|
|
if (!this.J9) {
|
|
break;
|
|
}
|
|
} while (cursor.moveToNext());
|
|
}
|
|
} catch (Exception unused2) {
|
|
}
|
|
if (cursor != null) {
|
|
cursor.close();
|
|
}
|
|
if (!this.J9) {
|
|
return;
|
|
}
|
|
DataBookDc.k(this.i1).f12906c = arrayList2;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r8v5, types: [java.lang.Object, com.mycompany.app.web.WebTabAdapter$WebTabItem] */
|
|
public final void x8(TabViewListener tabViewListener) {
|
|
List list;
|
|
int i;
|
|
boolean z;
|
|
WebNestFrame webNestFrame;
|
|
if (!this.vc) {
|
|
this.vc = true;
|
|
ArrayList arrayList = null;
|
|
if (this.I2 != null && (list = this.O2) != null && (i = this.P2) >= 0 && i < list.size()) {
|
|
X4(true);
|
|
MyWebCoord myWebCoord = this.f2;
|
|
if (myWebCoord != null) {
|
|
myWebCoord.B();
|
|
}
|
|
this.T2 = 0;
|
|
this.U2 = null;
|
|
this.V2 = null;
|
|
this.W2 = false;
|
|
this.Q2 = null;
|
|
this.R2 = null;
|
|
t6(true);
|
|
try {
|
|
long j = -1;
|
|
int i2 = 0;
|
|
for (WebTabAdapter.WebTabItem webTabItem : this.O2) {
|
|
if (webTabItem != null) {
|
|
if (webTabItem.d != j) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
webTabItem.d = j;
|
|
webTabItem.h = i2;
|
|
j = webTabItem.f19520c;
|
|
i2++;
|
|
if (z) {
|
|
if (arrayList == null) {
|
|
arrayList = new ArrayList();
|
|
}
|
|
?? obj = new Object();
|
|
obj.f19520c = webTabItem.f19520c;
|
|
obj.d = webTabItem.d;
|
|
arrayList.add(obj);
|
|
}
|
|
if (webTabItem.h != this.P2 && (webNestFrame = webTabItem.p) != null) {
|
|
webNestFrame.u();
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
this.Tf = tabViewListener;
|
|
if (arrayList != null && !arrayList.isEmpty()) {
|
|
this.Uf = arrayList;
|
|
MyWebCoord myWebCoord2 = this.f2;
|
|
if (myWebCoord2 != null) {
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.137
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.137.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
ArrayList arrayList2 = webViewActivity.Uf;
|
|
webViewActivity.Uf = null;
|
|
DbBookTab.u(webViewActivity.i1, arrayList2);
|
|
MyWebCoord myWebCoord3 = webViewActivity.f2;
|
|
if (myWebCoord3 == null) {
|
|
return;
|
|
}
|
|
myWebCoord3.post(new AnonymousClass138());
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MyWebCoord myWebCoord3 = this.f2;
|
|
if (myWebCoord3 != null) {
|
|
myWebCoord3.post(new AnonymousClass138());
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void x9(int i) {
|
|
if (!this.G1 && !J5()) {
|
|
y4();
|
|
WebTabAdapter.WebTabItem n3 = n3(i);
|
|
if (n3 != null && n3.e != 0) {
|
|
X4(false);
|
|
this.rm = n3;
|
|
this.sm = i;
|
|
this.tm = n3.e;
|
|
DialogDeleteItem dialogDeleteItem = new DialogDeleteItem(this, new DialogDeleteItem.DelItemListener() { // from class: com.mycompany.app.web.WebViewActivity.480
|
|
@Override // com.mycompany.app.dialog.DialogDeleteItem.DelItemListener
|
|
public final void a() {
|
|
int size;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i2 = webViewActivity.sm;
|
|
long j = webViewActivity.tm;
|
|
if (webViewActivity.I3 != null) {
|
|
List list = webViewActivity.O2;
|
|
if (list != null && i2 < (size = list.size())) {
|
|
ArrayList arrayList = new ArrayList();
|
|
synchronized (webViewActivity.f1) {
|
|
for (int i3 = i2; i3 < size; i3++) {
|
|
try {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) webViewActivity.O2.get(i3);
|
|
if (webTabItem != null) {
|
|
if (webTabItem.e != j) {
|
|
break;
|
|
}
|
|
WebNestFrame webNestFrame = webTabItem.p;
|
|
if (webNestFrame != null) {
|
|
webNestFrame.t(null);
|
|
webTabItem.p = null;
|
|
}
|
|
arrayList.add(webTabItem);
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
if (!arrayList.isEmpty()) {
|
|
webViewActivity.m0(new AnonymousClass129(arrayList, i2));
|
|
return;
|
|
}
|
|
}
|
|
MyWebCoord myWebCoord = WebViewActivity.this.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.480.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogDeleteItem dialogDeleteItem2 = webViewActivity2.I3;
|
|
if (dialogDeleteItem2 == null) {
|
|
return;
|
|
}
|
|
dialogDeleteItem2.B(false);
|
|
MainUtil.e8(webViewActivity2, R.string.fail);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogDeleteItem.DelItemListener
|
|
public final void b(MyRoundImage myRoundImage, AppCompatTextView appCompatTextView) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
WebTabAdapter.WebTabItem webTabItem = webViewActivity.rm;
|
|
if (webTabItem == null || webViewActivity.I3 == null) {
|
|
return;
|
|
}
|
|
String str = webTabItem.f;
|
|
if (TextUtils.isEmpty(str)) {
|
|
str = webViewActivity.getString(R.string.group_title);
|
|
}
|
|
myRoundImage.o(0, WebTabBarAdapter.y(webTabItem.g, MainApp.K1));
|
|
appCompatTextView.setText(str);
|
|
}
|
|
});
|
|
this.I3 = dialogDeleteItem;
|
|
dialogDeleteItem.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.481
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.y4();
|
|
webViewActivity.rm = null;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void y2(WebTabAdapter.WebTabItem webTabItem) {
|
|
if (PrefZtwo.G >= 3 && webTabItem != null && webTabItem.b != 0) {
|
|
try {
|
|
List list = this.N2;
|
|
if (list != null && !list.isEmpty()) {
|
|
this.N2.remove(Long.valueOf(webTabItem.b));
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void y3(String str) {
|
|
M3();
|
|
if (TextUtils.isEmpty(str)) {
|
|
MainUtil.e8(this, R.string.empty);
|
|
return;
|
|
}
|
|
if ("file:///android_asset/shortcut.html".equals(str)) {
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
boolean I4 = MainUtil.I4(this, str);
|
|
this.B9 = I4;
|
|
if (I4) {
|
|
return;
|
|
}
|
|
c9(str, null, null);
|
|
}
|
|
|
|
public final void y4() {
|
|
DialogDeleteItem dialogDeleteItem = this.I3;
|
|
if (dialogDeleteItem != null) {
|
|
dialogDeleteItem.dismiss();
|
|
this.I3 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean y5() {
|
|
int i;
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView == null || (((i = webNestView.V1) != 0 && i != 1) || webNestView.canGoBack())) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final void y6() {
|
|
ViewPager2 viewPager2 = this.o1;
|
|
ViewPager2.OnPageChangeCallback onPageChangeCallback = this.p1;
|
|
this.o1 = null;
|
|
this.p1 = null;
|
|
if (viewPager2 != null) {
|
|
if (onPageChangeCallback != null) {
|
|
viewPager2.f(onPageChangeCallback);
|
|
}
|
|
viewPager2.setAdapter(null);
|
|
}
|
|
MyFadeRelative myFadeRelative = this.l1;
|
|
if (myFadeRelative != null) {
|
|
myFadeRelative.g();
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(this.l1);
|
|
}
|
|
this.l1 = null;
|
|
}
|
|
MyButtonImage myButtonImage = this.q1;
|
|
if (myButtonImage != null) {
|
|
myButtonImage.j();
|
|
this.q1 = null;
|
|
}
|
|
MyButtonImage myButtonImage2 = this.r1;
|
|
if (myButtonImage2 != null) {
|
|
myButtonImage2.j();
|
|
this.r1 = null;
|
|
}
|
|
this.s1 = null;
|
|
this.t1 = null;
|
|
this.u1 = null;
|
|
this.v1 = null;
|
|
this.w1 = null;
|
|
this.x1 = null;
|
|
this.A1 = null;
|
|
}
|
|
|
|
public final void y7(boolean z) {
|
|
WebVideoFrame webVideoFrame = this.R5;
|
|
if (webVideoFrame != null && (this.nb || webVideoFrame.k())) {
|
|
MainUtil.K7(this, z);
|
|
return;
|
|
}
|
|
DialogCapture dialogCapture = this.A6;
|
|
if (dialogCapture != null && dialogCapture.U) {
|
|
MainUtil.K7(this, z);
|
|
}
|
|
}
|
|
|
|
public final void y8() {
|
|
WebNestView webNestView = this.I2;
|
|
if (webNestView != null) {
|
|
int textZoom = webNestView.getSettings().getTextZoom();
|
|
if (textZoom != PrefZtri.p) {
|
|
this.O9 = false;
|
|
this.P9 = false;
|
|
this.I2.getSettings().setTextZoom(PrefZtri.p);
|
|
} else if (textZoom != PrefZone.w) {
|
|
this.O9 = false;
|
|
this.P9 = false;
|
|
this.I2.getSettings().setTextZoom(PrefZone.w);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void y9(int i, int i2, int i3) {
|
|
WebTabAdapter.WebTabItem n3;
|
|
int i4;
|
|
if (this.f2 == null || this.Dc) {
|
|
return;
|
|
}
|
|
this.Dc = true;
|
|
if (!this.G1 && (this.d3 != null || !J5())) {
|
|
z4();
|
|
List list = this.O2;
|
|
if (list != null) {
|
|
int size = list.size();
|
|
if (i3 == 1) {
|
|
size--;
|
|
} else if (i3 == 2) {
|
|
WebTabAdapter.WebTabItem n32 = n3(i2);
|
|
if (n32 != null && n32.e != 0) {
|
|
synchronized (this.f1) {
|
|
i4 = 0;
|
|
for (int i5 = 0; i5 < size; i5++) {
|
|
try {
|
|
WebTabAdapter.WebTabItem webTabItem = (WebTabAdapter.WebTabItem) this.O2.get(i5);
|
|
if (webTabItem != null && webTabItem.e != n32.e) {
|
|
i4++;
|
|
}
|
|
} finally {
|
|
}
|
|
}
|
|
}
|
|
size = i4;
|
|
}
|
|
} else if (i3 == 3) {
|
|
if (i >= 0 && (n3 = n3(i2)) != null && n3.e != 0) {
|
|
synchronized (this.f1) {
|
|
i4 = 0;
|
|
for (int i6 = i; i6 < size; i6++) {
|
|
try {
|
|
WebTabAdapter.WebTabItem webTabItem2 = (WebTabAdapter.WebTabItem) this.O2.get(i6);
|
|
if (webTabItem2 != null && webTabItem2.f19520c != n3.f19520c) {
|
|
if (webTabItem2.e != n3.e) {
|
|
break;
|
|
} else {
|
|
i4++;
|
|
}
|
|
}
|
|
} finally {
|
|
}
|
|
}
|
|
}
|
|
size = i4;
|
|
}
|
|
}
|
|
if (size > 0) {
|
|
X4(false);
|
|
this.nm = size;
|
|
this.om = i;
|
|
this.pm = i2;
|
|
this.qm = i3;
|
|
DialogDeleteItem dialogDeleteItem = new DialogDeleteItem(this, new DialogDeleteItem.DelItemListener() { // from class: com.mycompany.app.web.WebViewActivity.478
|
|
@Override // com.mycompany.app.dialog.DialogDeleteItem.DelItemListener
|
|
public final void a() {
|
|
MyWebCoord myWebCoord;
|
|
WebTabAdapter.WebTabItem n33;
|
|
WebNestFrame webNestFrame;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.H3 != null) {
|
|
int i7 = webViewActivity.qm;
|
|
boolean z = false;
|
|
if (i7 == 1) {
|
|
int i8 = webViewActivity.pm;
|
|
if (webViewActivity.I2 != null && (n33 = webViewActivity.n3(i8)) != null) {
|
|
webViewActivity.P4();
|
|
webViewActivity.t6(true);
|
|
synchronized (webViewActivity.f1) {
|
|
try {
|
|
for (WebTabAdapter.WebTabItem webTabItem3 : webViewActivity.O2) {
|
|
if (webTabItem3 != null && webTabItem3.f19520c != n33.f19520c && (webNestFrame = webTabItem3.p) != null) {
|
|
webNestFrame.t(null);
|
|
webTabItem3.p = null;
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
webViewActivity.Mf = n33;
|
|
webViewActivity.m0(new AnonymousClass130());
|
|
z = true;
|
|
}
|
|
} else {
|
|
z = i7 == 2 ? WebViewActivity.C0(webViewActivity, webViewActivity.pm) : i7 == 3 ? WebViewActivity.B0(webViewActivity, webViewActivity.om, webViewActivity.pm) : webViewActivity.x2(false);
|
|
}
|
|
if (z || (myWebCoord = WebViewActivity.this.f2) == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.478.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i9 = WebViewActivity.Fo;
|
|
webViewActivity2.z4();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogDeleteItem.DelItemListener
|
|
public final void b(MyRoundImage myRoundImage, AppCompatTextView appCompatTextView) {
|
|
int i7;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
int i8 = webViewActivity.nm;
|
|
if (webViewActivity.H3 == null) {
|
|
return;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(i8);
|
|
sb.append(" ");
|
|
Context context = webViewActivity.i1;
|
|
if (i8 > 1) {
|
|
i7 = R.string.tab_items;
|
|
} else {
|
|
i7 = R.string.tab_item;
|
|
}
|
|
sb.append(context.getString(i7));
|
|
myRoundImage.o(-460552, R.drawable.outline_public_black_24);
|
|
appCompatTextView.setText(sb.toString());
|
|
}
|
|
});
|
|
this.H3 = dialogDeleteItem;
|
|
dialogDeleteItem.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.479
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i7 = WebViewActivity.Fo;
|
|
WebViewActivity.this.z4();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
this.f2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.477
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.this.Dc = false;
|
|
}
|
|
});
|
|
}
|
|
|
|
public final void z2() {
|
|
List list;
|
|
MyWebCoord myWebCoord;
|
|
if (this.I2 != null && this.Q2 == null && this.R2 == null && (list = this.O2) != null && list.size() != 0 && (myWebCoord = this.f2) != null) {
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.144
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.T6(0.0f, false);
|
|
MyWebCoord myWebCoord2 = webViewActivity.f2;
|
|
if (myWebCoord2 == null) {
|
|
return;
|
|
}
|
|
myWebCoord2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.144.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebNestFrame webNestFrame = webViewActivity2.Q2;
|
|
if (webNestFrame == null) {
|
|
return;
|
|
}
|
|
webViewActivity2.T6(webNestFrame.getTabY(), true);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public final void z3(String str, boolean z) {
|
|
int i;
|
|
boolean z2;
|
|
String str2;
|
|
String str3;
|
|
int length;
|
|
int lastIndexOf;
|
|
String str4;
|
|
int length2;
|
|
String str5 = null;
|
|
boolean z3 = false;
|
|
if (MainUtil.o5(str)) {
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
I2();
|
|
WebEmgDialog webEmgDialog = this.V7;
|
|
if (webEmgDialog != null) {
|
|
webEmgDialog.dismiss();
|
|
this.V7 = null;
|
|
}
|
|
if (!TextUtils.isEmpty(str) && !"file:///android_asset/shortcut.html".equals(str) && !"about:blank".equals(str)) {
|
|
if (this.y9 == 0) {
|
|
this.y9 = 4;
|
|
String J1 = MainUtil.J1(str, false);
|
|
if (J1 != null && (length2 = J1.length()) != 0) {
|
|
z3 = str.startsWith("/lofi/s/", length2);
|
|
}
|
|
if (z3) {
|
|
str4 = MainUtil.R0(str, J1);
|
|
} else {
|
|
str4 = str;
|
|
}
|
|
Z9();
|
|
WebEmgDialog webEmgDialog2 = new WebEmgDialog(this, str4, new AnonymousClass541());
|
|
this.V7 = webEmgDialog2;
|
|
webEmgDialog2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.542
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$542$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.i();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r0v2, types: [java.lang.Object, java.lang.Runnable] */
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.I2();
|
|
WebEmgDialog webEmgDialog3 = webViewActivity.V7;
|
|
if (webEmgDialog3 != null) {
|
|
webEmgDialog3.dismiss();
|
|
webViewActivity.V7 = null;
|
|
}
|
|
webViewActivity.v6();
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
webViewActivity.m0(new Object());
|
|
}
|
|
});
|
|
this.V7.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.543
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (MainUtil.z5(str)) {
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
I2();
|
|
WebHmgDialog webHmgDialog = this.W7;
|
|
if (webHmgDialog != null) {
|
|
webHmgDialog.dismiss();
|
|
this.W7 = null;
|
|
}
|
|
if (!TextUtils.isEmpty(str) && !"file:///android_asset/shortcut.html".equals(str) && !"about:blank".equals(str)) {
|
|
if (this.y9 == 0) {
|
|
this.y9 = 6;
|
|
if (MainUtil.x5(str)) {
|
|
if (str != null && (length = str.length()) != 0 && (lastIndexOf = str.lastIndexOf(45)) > 0 && lastIndexOf < length) {
|
|
str5 = str.substring(0, lastIndexOf);
|
|
}
|
|
str3 = str5;
|
|
} else {
|
|
str3 = str;
|
|
}
|
|
Z9();
|
|
WebHmgDialog webHmgDialog2 = new WebHmgDialog(this, str3);
|
|
this.W7 = webHmgDialog2;
|
|
webHmgDialog2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.544
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$544$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.i();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r0v2, types: [java.lang.Object, java.lang.Runnable] */
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.I2();
|
|
WebHmgDialog webHmgDialog3 = webViewActivity.W7;
|
|
if (webHmgDialog3 != null) {
|
|
webHmgDialog3.dismiss();
|
|
webViewActivity.W7 = null;
|
|
}
|
|
webViewActivity.v6();
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
webViewActivity.m0(new Object());
|
|
}
|
|
});
|
|
this.W7.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.545
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.I2 != null && !this.G1 && !J5()) {
|
|
I2();
|
|
WebGridDialog webGridDialog = this.U7;
|
|
if (webGridDialog != null) {
|
|
webGridDialog.dismiss();
|
|
this.U7 = null;
|
|
}
|
|
if (!TextUtils.isEmpty(str) && !"file:///android_asset/shortcut.html".equals(str) && !"about:blank".equals(str)) {
|
|
if (this.y9 != 0) {
|
|
return;
|
|
}
|
|
this.y9 = 2;
|
|
if (z) {
|
|
str2 = str;
|
|
z2 = false;
|
|
i = 0;
|
|
} else if (!TextUtils.isEmpty(this.I2.getFileUrl())) {
|
|
String fileUrl = this.I2.getFileUrl();
|
|
if (!"file:///android_asset/shortcut.html".equals(fileUrl) && !"about:blank".equals(fileUrl)) {
|
|
if (!URLUtil.isNetworkUrl(fileUrl)) {
|
|
this.y9 = 0;
|
|
MainUtil.e8(this, R.string.invalid_url);
|
|
return;
|
|
} else {
|
|
str2 = fileUrl;
|
|
i = 0;
|
|
z2 = true;
|
|
}
|
|
} else {
|
|
this.y9 = 0;
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
return;
|
|
}
|
|
} else {
|
|
WebLoadTask c2 = WebLoadTask.c();
|
|
WebNestView webNestView = this.I2;
|
|
c2.f19284a = true;
|
|
c2.b = webNestView;
|
|
c2.f19285c = null;
|
|
c2.e = 0;
|
|
c2.f = false;
|
|
i = 2;
|
|
z2 = false;
|
|
str2 = str;
|
|
}
|
|
Z9();
|
|
WebGridDialog webGridDialog2 = new WebGridDialog(this, str2, z2, z, i, new AnonymousClass538());
|
|
this.U7 = webGridDialog2;
|
|
webGridDialog2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.539
|
|
|
|
/* renamed from: com.mycompany.app.web.WebViewActivity$539$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
MainUtil.i();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r0v2, types: [java.lang.Object, java.lang.Runnable] */
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.I2();
|
|
WebGridDialog webGridDialog3 = webViewActivity.U7;
|
|
if (webGridDialog3 != null) {
|
|
webGridDialog3.dismiss();
|
|
webViewActivity.U7 = null;
|
|
}
|
|
webViewActivity.v6();
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
webViewActivity.m0(new Object());
|
|
}
|
|
});
|
|
this.U7.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.540
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
MainUtil.e8(this, R.string.not_supported_page);
|
|
}
|
|
}
|
|
|
|
public final void z4() {
|
|
DialogDeleteItem dialogDeleteItem = this.H3;
|
|
if (dialogDeleteItem != null) {
|
|
dialogDeleteItem.dismiss();
|
|
this.H3 = null;
|
|
}
|
|
}
|
|
|
|
public final boolean z5() {
|
|
if (this.m8 == null) {
|
|
return false;
|
|
}
|
|
return !r0.C1;
|
|
}
|
|
|
|
public final void z6() {
|
|
WebTabBarSubView webTabBarSubView = this.d3;
|
|
if (webTabBarSubView != null) {
|
|
webTabBarSubView.e();
|
|
MyWebBody myWebBody = this.e2;
|
|
if (myWebBody != null) {
|
|
myWebBody.removeView(this.d3);
|
|
}
|
|
this.d3 = null;
|
|
}
|
|
}
|
|
|
|
public final void z7() {
|
|
if (!PrefWeb.Z) {
|
|
return;
|
|
}
|
|
PrefWeb.Z = false;
|
|
PrefSet.g(14, this.i1, "mCheckDown", false);
|
|
}
|
|
|
|
public final void z8(int i) {
|
|
boolean C5 = MainUtil.C5(this.U1);
|
|
MyBarFrame myBarFrame = this.j2;
|
|
if (myBarFrame != null) {
|
|
myBarFrame.j(i, C5, this.U1);
|
|
}
|
|
MyBarFrame myBarFrame2 = this.k2;
|
|
if (myBarFrame2 != null) {
|
|
myBarFrame2.i(C5, this.U1);
|
|
}
|
|
}
|
|
|
|
public final void z9() {
|
|
if (this.Ca == null || this.I2 == null || this.G1 || J5()) {
|
|
return;
|
|
}
|
|
B4();
|
|
boolean z = false;
|
|
X4(false);
|
|
boolean z2 = PrefZone.D;
|
|
this.P7 = z2;
|
|
if (z2 && PrefZone.C == 0) {
|
|
z = true;
|
|
}
|
|
this.Q7 = z;
|
|
w8(this.P2);
|
|
if (!this.P7) {
|
|
Z9();
|
|
}
|
|
DialogTabMain dialogTabMain = new DialogTabMain(this, this.O2, this.j1, new DialogTabMain.ListTabListener() { // from class: com.mycompany.app.web.WebViewActivity.524
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void a(int i, List list) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity.this.s8(i, list);
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final int b() {
|
|
MyWebBody myWebBody = WebViewActivity.this.e2;
|
|
if (myWebBody == null) {
|
|
return 0;
|
|
}
|
|
return myWebBody.getRectWidth();
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void c(final boolean z3, final List list, final int i, final boolean z4) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.B4();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.524.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i3 = WebViewActivity.Fo;
|
|
boolean z5 = PrefSync.k;
|
|
boolean z6 = z3;
|
|
List list2 = list;
|
|
int i4 = i;
|
|
boolean z7 = z4;
|
|
if (z5 != z7) {
|
|
if (z6) {
|
|
webViewActivity2.O2 = list2;
|
|
webViewActivity2.P2 = i4;
|
|
}
|
|
if (z7) {
|
|
PrefSync.m = i4;
|
|
} else {
|
|
PrefSync.l = i4;
|
|
}
|
|
webViewActivity2.l8(z7);
|
|
return;
|
|
}
|
|
if (z6) {
|
|
webViewActivity2.s8(i4, list2);
|
|
} else {
|
|
webViewActivity2.c7(i4, false);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void d(final boolean z3, final List list, final int i, final boolean z4) {
|
|
int i2 = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.B4();
|
|
MyWebCoord myWebCoord = webViewActivity.f2;
|
|
if (myWebCoord == null) {
|
|
return;
|
|
}
|
|
myWebCoord.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.524.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.k1(WebViewActivity.this, z3, list, i, z4);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.mycompany.app.dialog.DialogTabMain.ListTabListener
|
|
public final void e() {
|
|
WebTabBarAdapter webTabBarAdapter = WebViewActivity.this.b3;
|
|
if (webTabBarAdapter != null) {
|
|
webTabBarAdapter.g();
|
|
}
|
|
}
|
|
});
|
|
this.N7 = dialogTabMain;
|
|
dialogTabMain.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.525
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
boolean z3;
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.B4();
|
|
boolean z4 = PrefZone.D;
|
|
if (z4 && PrefZone.C == 0) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
if (z4 != webViewActivity.P7 || z3 != webViewActivity.Q7) {
|
|
if (z4) {
|
|
webViewActivity.A9();
|
|
} else {
|
|
webViewActivity.z9();
|
|
}
|
|
}
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
}
|
|
});
|
|
this.N7.o = new MyDialogBottom.UserShowListener() { // from class: com.mycompany.app.web.WebViewActivity.526
|
|
@Override // com.mycompany.app.view.MyDialogBottom.UserShowListener
|
|
public final void a() {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.Bb != null) {
|
|
webViewActivity.I1();
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class LocalWebViewClient extends WebViewClient {
|
|
public LocalWebViewClient() {
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void doUpdateVisitedHistory(WebView webView, String str, boolean z) {
|
|
boolean z2;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null) {
|
|
boolean q5 = MainUtil.q5(webViewActivity.A8, str);
|
|
if (!q5) {
|
|
String str2 = null;
|
|
if (MainUtil.m6(str) && MainUtil.n6(str) && !MainUtil.l6(str)) {
|
|
str2 = MainUtil.w4(str);
|
|
}
|
|
if (!TextUtils.isEmpty(str2) && !str2.equals(webViewActivity.K8)) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
webViewActivity.K8 = str2;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
webViewActivity.T8(str, true, false);
|
|
if (webViewActivity.G8) {
|
|
if (z2) {
|
|
webViewActivity.i6();
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
if (webNestView != null) {
|
|
webNestView.reload();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (webViewActivity.R5 == null) {
|
|
webViewActivity.Z8();
|
|
}
|
|
if (q5) {
|
|
return;
|
|
}
|
|
}
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.p1(WebViewActivity.this);
|
|
}
|
|
});
|
|
if (!webViewActivity.Da) {
|
|
webViewActivity.Da = true;
|
|
webViewActivity.v7();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onPageCommitVisible(WebView webView, String str) {
|
|
super.onPageCommitVisible(webView, str);
|
|
Handler handler = WebViewActivity.this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity.z0(WebViewActivity.this);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onPageFinished(WebView webView, String str) {
|
|
WebNestView webNestView;
|
|
WebNestView webNestView2;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 == null) {
|
|
webViewActivity.R6();
|
|
return;
|
|
}
|
|
WebViewActivity.w0(webViewActivity, webView, str);
|
|
String str2 = webViewActivity.bj;
|
|
webViewActivity.bj = null;
|
|
if (!TextUtils.isEmpty(str2) && str2.equals(str) && webViewActivity.y5()) {
|
|
webViewActivity.K6(null);
|
|
webViewActivity.R6();
|
|
return;
|
|
}
|
|
webViewActivity.i6();
|
|
if (webViewActivity.Lb && "about:blank".equals(str)) {
|
|
str = webViewActivity.A8;
|
|
int progress = webViewActivity.I2.getProgress();
|
|
if (progress > 0) {
|
|
webViewActivity.a8(Math.max(progress, 50));
|
|
}
|
|
} else {
|
|
webViewActivity.Lb = false;
|
|
}
|
|
webViewActivity.T8(str, true, false);
|
|
WebNestView webNestView3 = webViewActivity.I2;
|
|
webNestView3.getClass();
|
|
webNestView3.p1 = MainUtil.v5(str);
|
|
webNestView3.m = false;
|
|
webViewActivity.I2.f(webViewActivity.A8);
|
|
if (!webViewActivity.U1 && PrefWeb.o && (webNestView2 = webViewActivity.I2) != null) {
|
|
webNestView2.setAdsRunning(true);
|
|
}
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView4;
|
|
LocalWebViewClient localWebViewClient = LocalWebViewClient.this;
|
|
WebViewActivity.p1(WebViewActivity.this);
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
if (!webViewActivity2.U1 && PrefWeb.o && (webNestView4 = webViewActivity2.I2) != null) {
|
|
webNestView4.L(webViewActivity2.A8, webViewActivity2.B8, true);
|
|
}
|
|
MainUtil.j8(WebViewActivity.this.i1, false);
|
|
WebViewActivity.this.S6(true);
|
|
}
|
|
});
|
|
if (webViewActivity.R5 == null && PrefWeb.H) {
|
|
webViewActivity.I2.i(webViewActivity.A8, webViewActivity.B8, true);
|
|
}
|
|
DevToolsHelper.maybePreload(webViewActivity);
|
|
int i = webViewActivity.y9;
|
|
if (i == 1 || i == 2) {
|
|
WebLoadTask c2 = WebLoadTask.c();
|
|
if (c2.b != null) {
|
|
c2.e = 2;
|
|
WebLoadTask.WebLoadTaskListener webLoadTaskListener = c2.f19285c;
|
|
if (webLoadTaskListener != null) {
|
|
webLoadTaskListener.e();
|
|
}
|
|
}
|
|
}
|
|
Handler handler = webViewActivity.O0;
|
|
if (handler != null) {
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
WebViewActivity.z0(webViewActivity2);
|
|
Handler handler2 = webViewActivity2.O0;
|
|
if (handler2 == null) {
|
|
return;
|
|
}
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.3.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
LocalWebViewClient localWebViewClient = LocalWebViewClient.this;
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
int i2 = WebViewActivity.Fo;
|
|
webViewActivity3.v7();
|
|
WebViewActivity webViewActivity4 = WebViewActivity.this;
|
|
Handler handler3 = webViewActivity4.O0;
|
|
if (handler3 != null) {
|
|
handler3.post(new AnonymousClass235());
|
|
}
|
|
final WebViewActivity webViewActivity5 = WebViewActivity.this;
|
|
String str3 = webViewActivity5.A8;
|
|
if (!webViewActivity5.Ei && !TextUtils.isEmpty(str3) && !str3.equals(webViewActivity5.Fi)) {
|
|
webViewActivity5.Ei = true;
|
|
webViewActivity5.Fi = str3;
|
|
Handler handler4 = webViewActivity5.O0;
|
|
if (handler4 != null) {
|
|
handler4.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.255
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebViewActivity webViewActivity6 = WebViewActivity.this;
|
|
MainUtil.l(webViewActivity6.I2);
|
|
webViewActivity6.Ei = false;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
if (webViewActivity.a9 && (webNestView = webViewActivity.I2) != null) {
|
|
MainUtil.I(webNestView, "(function(){var tag='onCheckReddit';var val=0;var ele=document.querySelector(\"shreddit-player,shreddit-embed\");if(ele){val=1;}android.onJsResult(tag,val);})();", false);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.L8 = null;
|
|
if (webViewActivity.I2 != null) {
|
|
WebViewActivity.w0(webViewActivity, webView, str);
|
|
webViewActivity.bj = null;
|
|
webViewActivity.i6();
|
|
if (webViewActivity.Lb && "about:blank".equals(str)) {
|
|
str = webViewActivity.A8;
|
|
int progress = webViewActivity.I2.getProgress();
|
|
if (progress > 0) {
|
|
webViewActivity.a8(Math.max(progress, 50));
|
|
}
|
|
} else {
|
|
webViewActivity.Lb = false;
|
|
}
|
|
webViewActivity.T8(str, false, true);
|
|
WebNestView webNestView = webViewActivity.I2;
|
|
webNestView.p1 = false;
|
|
webNestView.m = true;
|
|
webNestView.r0 = null;
|
|
webNestView.s0 = 0;
|
|
webNestView.t0 = 0;
|
|
if (!webViewActivity.U1 && PrefWeb.o && webNestView != null) {
|
|
webNestView.setAdsRunning(true);
|
|
}
|
|
webViewActivity.m0(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2;
|
|
LocalWebViewClient localWebViewClient = LocalWebViewClient.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
int i = WebViewActivity.Fo;
|
|
webViewActivity2.r6();
|
|
WebViewActivity.p1(WebViewActivity.this);
|
|
WebViewActivity webViewActivity3 = WebViewActivity.this;
|
|
if (!webViewActivity3.U1 && PrefWeb.o && (webNestView2 = webViewActivity3.I2) != null) {
|
|
webNestView2.L(webViewActivity3.A8, webViewActivity3.B8, false);
|
|
}
|
|
MainUtil.j8(WebViewActivity.this.i1, false);
|
|
WebViewActivity.this.I3(false);
|
|
WebViewActivity.this.S6(false);
|
|
}
|
|
});
|
|
if (webViewActivity.R5 == null && PrefWeb.H) {
|
|
webViewActivity.I2.i(webViewActivity.A8, webViewActivity.B8, false);
|
|
}
|
|
int i = webViewActivity.y9;
|
|
if (i != 1 && i != 2) {
|
|
return;
|
|
}
|
|
WebLoadTask.c().h(0);
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onReceivedError(WebView webView, int i, String str, String str2) {
|
|
super.onReceivedError(webView, i, str, str2);
|
|
if (WebViewActivity.this.I2 == null) {
|
|
return;
|
|
}
|
|
WebLoadTask.c().f(i);
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onReceivedHttpAuthRequest(WebView webView, HttpAuthHandler httpAuthHandler, String str, String str2) {
|
|
final WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.G1) {
|
|
return;
|
|
}
|
|
DialogEditAuth dialogEditAuth = webViewActivity.w7;
|
|
if (dialogEditAuth != null) {
|
|
dialogEditAuth.dismiss();
|
|
webViewActivity.w7 = null;
|
|
}
|
|
DialogEditAuth dialogEditAuth2 = new DialogEditAuth(webViewActivity, httpAuthHandler);
|
|
webViewActivity.w7 = dialogEditAuth2;
|
|
dialogEditAuth2.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.mycompany.app.web.WebViewActivity.489
|
|
@Override // android.content.DialogInterface.OnDismissListener
|
|
public final void onDismiss(DialogInterface dialogInterface) {
|
|
int i = WebViewActivity.Fo;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
DialogEditAuth dialogEditAuth3 = webViewActivity2.w7;
|
|
if (dialogEditAuth3 != null) {
|
|
dialogEditAuth3.dismiss();
|
|
webViewActivity2.w7 = null;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onReceivedSslError(final WebView webView, final SslErrorHandler sslErrorHandler, final SslError sslError) {
|
|
Handler handler = WebViewActivity.this.O0;
|
|
if (handler == null) {
|
|
return;
|
|
}
|
|
handler.post(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebView webView2;
|
|
int primaryError;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
SslError sslError2 = sslError;
|
|
SslErrorHandler sslErrorHandler2 = sslErrorHandler;
|
|
if (sslErrorHandler2 != null) {
|
|
if (PrefPdf.s) {
|
|
sslErrorHandler2.cancel();
|
|
return;
|
|
}
|
|
int i = WebSslView.o;
|
|
if ((sslError2 == null || ((primaryError = sslError2.getPrimaryError()) != 0 && primaryError != 1 && primaryError != 3 && primaryError != 4 && primaryError != 5)) && (webView2 = webView) != null) {
|
|
String url = webView2.getUrl();
|
|
if (!TextUtils.isEmpty(url) && url.startsWith("https://")) {
|
|
sslErrorHandler2.cancel();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
if (webViewActivity.I2 == null) {
|
|
return;
|
|
}
|
|
webViewActivity.P4();
|
|
webViewActivity.g2.setExpanded(true);
|
|
final WebNestView webNestView = webViewActivity.I2;
|
|
webNestView.G(null);
|
|
webNestView.c1 = true;
|
|
if (webNestView.b1 != null) {
|
|
webNestView.X(sslErrorHandler2, sslError2);
|
|
} else {
|
|
webNestView.D1 = sslErrorHandler2;
|
|
webNestView.E1 = sslError2;
|
|
Handler handler2 = webNestView.f;
|
|
if (handler2 != null) {
|
|
handler2.post(new Runnable() { // from class: com.mycompany.app.web.WebNestView.9
|
|
public AnonymousClass9() {
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r3v3, types: [android.widget.RelativeLayout, com.mycompany.app.web.WebSslView] */
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView2 = WebNestView.this;
|
|
SslErrorHandler sslErrorHandler3 = webNestView2.D1;
|
|
SslError sslError3 = webNestView2.E1;
|
|
webNestView2.D1 = null;
|
|
webNestView2.E1 = null;
|
|
if (!webNestView2.c1) {
|
|
webNestView2.I();
|
|
return;
|
|
}
|
|
if (webNestView2.b1 == null) {
|
|
?? relativeLayout = new RelativeLayout(webNestView2.getContext());
|
|
webNestView2.b1 = relativeLayout;
|
|
relativeLayout.setListener(new WebSslView.SslViewListener() { // from class: com.mycompany.app.web.WebNestView.10
|
|
public AnonymousClass10() {
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSslView.SslViewListener
|
|
public final void a() {
|
|
WebNestView.this.I();
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSslView.SslViewListener
|
|
public final void b() {
|
|
WebViewListener webViewListener = WebNestView.this.u;
|
|
if (webViewListener != null) {
|
|
webViewListener.b();
|
|
}
|
|
}
|
|
|
|
@Override // com.mycompany.app.web.WebSslView.SslViewListener
|
|
public final void c() {
|
|
WebNestView.this.I();
|
|
}
|
|
});
|
|
webNestView2.F1 = sslErrorHandler3;
|
|
webNestView2.G1 = sslError3;
|
|
Handler handler3 = webNestView2.f;
|
|
if (handler3 == null) {
|
|
return;
|
|
}
|
|
handler3.post(new Runnable() { // from class: com.mycompany.app.web.WebNestView.11
|
|
public AnonymousClass11() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView3 = WebNestView.this;
|
|
SslErrorHandler sslErrorHandler4 = webNestView3.F1;
|
|
SslError sslError4 = webNestView3.G1;
|
|
webNestView3.F1 = null;
|
|
webNestView3.G1 = null;
|
|
if (!webNestView3.c1) {
|
|
webNestView3.I();
|
|
return;
|
|
}
|
|
WebSslView webSslView = webNestView3.b1;
|
|
if (webSslView != null) {
|
|
webNestView3.addView(webSslView, -1, -1);
|
|
webNestView3.H1 = sslErrorHandler4;
|
|
webNestView3.I1 = sslError4;
|
|
Handler handler4 = webNestView3.f;
|
|
if (handler4 == null) {
|
|
return;
|
|
}
|
|
handler4.post(new Runnable() { // from class: com.mycompany.app.web.WebNestView.12
|
|
public AnonymousClass12() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
WebNestView webNestView4 = WebNestView.this;
|
|
SslErrorHandler sslErrorHandler5 = webNestView4.H1;
|
|
SslError sslError5 = webNestView4.I1;
|
|
webNestView4.H1 = null;
|
|
webNestView4.I1 = null;
|
|
if (!webNestView4.c1) {
|
|
webNestView4.I();
|
|
} else {
|
|
webNestView4.X(sslErrorHandler5, sslError5);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
webViewActivity.A8();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
|
|
MainUtil.C(webView, renderProcessGoneDetail);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onScaleChanged(WebView webView, float f, float f2) {
|
|
MyWebBody myWebBody;
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
webViewActivity.Q9 = false;
|
|
if (PrefZtwo.A == 2 && !webViewActivity.L9) {
|
|
webViewActivity.M9 = f2;
|
|
if (Math.abs(f2 - webViewActivity.N9) > 0.01f && webViewActivity.I2 != null && (myWebBody = webViewActivity.e2) != null) {
|
|
webViewActivity.L9 = true;
|
|
myWebBody.postDelayed(new Runnable() { // from class: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
LocalWebViewClient localWebViewClient = LocalWebViewClient.this;
|
|
WebViewActivity webViewActivity2 = WebViewActivity.this;
|
|
webViewActivity2.N9 = webViewActivity2.M9;
|
|
MainUtil.I(webViewActivity2.I2, "document.body.style.width=(window.visualViewport!=undefined?window.visualViewport.width:window.innerWidth)+'px';", false);
|
|
WebViewActivity.this.L9 = false;
|
|
}
|
|
}, 100L);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Can't wrap try/catch for region: R(15:356|357|(12:359|360|361|(2:369|(1:372))|419|385|(1:187)|188|(6:263|264|265|(2:267|(1:269))(2:271|(2:273|(1:275)(2:276|(1:278)(1:279)))(7:280|(7:285|(1:287)|288|(5:290|291|292|293|(1:295)(7:296|297|(4:299|(2:301|(5:303|304|305|(1:307)(4:308|(1:310)(3:315|(2:328|(2:333|(1:338)(1:337))(1:332))(1:319)|(1:321)(3:322|(1:327)(1:325)|326))|311|(2:313|191)(1:314))|(2:193|(1:195))(2:196|(5:198|199|(2:216|(3:221|(2:223|(3:230|(1:234)(1:232)|233))(4:236|237|(1:261)(1:239)|(4:241|(2:243|(1:245))(1:256)|246|(2:251|(2:253|254))(1:250)))|226))|201|(4:203|204|205|(1:213))))))|341|(0))|345|305|(0)(0)|(0)(0)))|347|348|281)|350|304|305|(0)(0)|(0)(0)))|270|(0)(0))|190|191|(0)(0))(3:421|(2:423|(2:429|(0)))|433)|373|374|(2:376|(1:380)(1:415))|416|(1:384)(7:386|387|388|(1:390)(3:396|(3:398|(2:409|410)|402)|413)|391|(1:393)|394)|385|(0)|188|(0)|190|191|(0)(0)) */
|
|
/* JADX WARN: Code restructure failed: missing block: B:147:0x0203, code lost:
|
|
|
|
if (com.mycompany.app.main.MainUtil.d6(r7) == false) goto L46;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:155:0x0225, code lost:
|
|
|
|
if (com.mycompany.app.main.MainUrl.f(r7) == false) goto L46;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:164:0x0255, code lost:
|
|
|
|
if (r7.contains("/seeking.mp4") != false) goto L46;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:235:0x065f, code lost:
|
|
|
|
if (r7.startsWith("languagesindex/languages.", r1) != false) goto L456;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:255:0x06b7, code lost:
|
|
|
|
if (r7.indexOf(".php", r0 + 6) != (-1)) goto L437;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:431:0x03f3, code lost:
|
|
|
|
if (r14 <= '9') goto L304;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:167:0x0357 */
|
|
/* JADX WARN: Removed duplicated region for block: B:170:0x036b */
|
|
/* JADX WARN: Removed duplicated region for block: B:187:0x0496 */
|
|
/* JADX WARN: Removed duplicated region for block: B:193:0x05f2 */
|
|
/* JADX WARN: Removed duplicated region for block: B:196:0x0608 */
|
|
/* JADX WARN: Removed duplicated region for block: B:263:0x04c5 */
|
|
/* JADX WARN: Removed duplicated region for block: B:303:0x055f */
|
|
/* JADX WARN: Removed duplicated region for block: B:307:0x0575 A[Catch: Exception -> 0x04c2, TryCatch #8 {Exception -> 0x04c2, blocks: (B:293:0x0526, B:295:0x052f, B:297:0x0537, B:299:0x053f, B:305:0x056f, B:307:0x0575, B:308:0x0581, B:311:0x05d0, B:314:0x05d8, B:315:0x0589, B:317:0x0591, B:319:0x0595, B:322:0x05b9, B:325:0x05c3, B:326:0x05cc, B:327:0x05c8, B:328:0x059a, B:330:0x05a2, B:332:0x05a6, B:333:0x05a9, B:335:0x05af, B:339:0x0549, B:342:0x0554, B:345:0x0560, B:348:0x0569), top: B:292:0x0526 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:308:0x0581 A[Catch: Exception -> 0x04c2, TryCatch #8 {Exception -> 0x04c2, blocks: (B:293:0x0526, B:295:0x052f, B:297:0x0537, B:299:0x053f, B:305:0x056f, B:307:0x0575, B:308:0x0581, B:311:0x05d0, B:314:0x05d8, B:315:0x0589, B:317:0x0591, B:319:0x0595, B:322:0x05b9, B:325:0x05c3, B:326:0x05cc, B:327:0x05c8, B:328:0x059a, B:330:0x05a2, B:332:0x05a6, B:333:0x05a9, B:335:0x05af, B:339:0x0549, B:342:0x0554, B:345:0x0560, B:348:0x0569), top: B:292:0x0526 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:43:0x0700 */
|
|
@Override // android.webkit.WebViewClient
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebView r24, android.webkit.WebResourceRequest r25) {
|
|
/*
|
|
Method dump skipped, instructions count: 1810
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mycompany.app.web.WebViewActivity.LocalWebViewClient.shouldInterceptRequest(android.webkit.WebView, android.webkit.WebResourceRequest):android.webkit.WebResourceResponse");
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null) {
|
|
WebViewActivity.w0(webViewActivity, webView, str);
|
|
MainUtil.j8(webViewActivity.i1, true);
|
|
if (!webViewActivity.F1 && webViewActivity.y9 == 0) {
|
|
if (webViewActivity.R5 != null) {
|
|
int i = webViewActivity.Q5;
|
|
if (i == 2) {
|
|
webView.loadUrl(str);
|
|
return true;
|
|
}
|
|
if (i == 3 || i == 5) {
|
|
return WebViewActivity.N0(webViewActivity, str);
|
|
}
|
|
} else {
|
|
return WebViewActivity.N0(webViewActivity, str);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {
|
|
super.onReceivedError(webView, webResourceRequest, webResourceError);
|
|
if (WebViewActivity.this.I2 == null || webResourceError == null) {
|
|
return;
|
|
}
|
|
WebLoadTask.c().f(webResourceError.getErrorCode());
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
|
|
WebViewActivity webViewActivity = WebViewActivity.this;
|
|
if (webViewActivity.I2 != null && webResourceRequest != null && webResourceRequest.getUrl() != null) {
|
|
String uri = webResourceRequest.getUrl().toString();
|
|
WebViewActivity.w0(webViewActivity, webView, uri);
|
|
MainUtil.j8(webViewActivity.i1, true);
|
|
if (!webViewActivity.F1 && webViewActivity.y9 == 0) {
|
|
if (webViewActivity.R5 != null) {
|
|
int i = webViewActivity.Q5;
|
|
if (i == 2) {
|
|
return false;
|
|
}
|
|
if (i == 3 || i == 5) {
|
|
return WebViewActivity.N0(webViewActivity, uri);
|
|
}
|
|
} else {
|
|
return WebViewActivity.N0(webViewActivity, uri);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
}
|