正在查看: -ɛ v1.0.0 应用的 ArticleViewer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: -ɛ v1.0.0 应用的 ArticleViewer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package im.bqzflyvzam.ui;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.IntEvaluator;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.Layout;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.StaticLayout;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.style.MetricAffectingSpan;
import android.util.LongSparseArray;
import android.util.Property;
import android.util.SparseArray;
import android.view.DisplayCutout;
import android.view.GestureDetector;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.TextureView;
import android.view.VelocityTracker;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.WindowInsets;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityNodeInfo;
import android.view.animation.DecelerateInterpolator;
import android.webkit.CookieManager;
import android.webkit.WebChromeClient;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.content.FileProvider;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import com.google.android.exoplayer2.ui.AspectRatioFrameLayout;
import im.bqzflyvzam.messenger.AndroidUtilities;
import im.bqzflyvzam.messenger.ApplicationLoader;
import im.bqzflyvzam.messenger.DownloadController;
import im.bqzflyvzam.messenger.Emoji;
import im.bqzflyvzam.messenger.FileLoader;
import im.bqzflyvzam.messenger.FileLog;
import im.bqzflyvzam.messenger.ImageLoader;
import im.bqzflyvzam.messenger.ImageLocation;
import im.bqzflyvzam.messenger.ImageReceiver;
import im.bqzflyvzam.messenger.LocaleController;
import im.bqzflyvzam.messenger.MediaController;
import im.bqzflyvzam.messenger.MessageObject;
import im.bqzflyvzam.messenger.MessagesController;
import im.bqzflyvzam.messenger.MessagesStorage;
import im.bqzflyvzam.messenger.NotificationCenter;
import im.bqzflyvzam.messenger.UserConfig;
import im.bqzflyvzam.messenger.browser.Browser;
import im.bqzflyvzam.tgnet.ConnectionsManager;
import im.bqzflyvzam.tgnet.TLObject;
import im.bqzflyvzam.tgnet.TLRPC;
import im.bqzflyvzam.ui.-$;
import im.bqzflyvzam.ui.actionbar.ActionBar;
import im.bqzflyvzam.ui.actionbar.ActionBarMenu;
import im.bqzflyvzam.ui.actionbar.ActionBarMenuItem;
import im.bqzflyvzam.ui.actionbar.ActionBarPopupWindow;
import im.bqzflyvzam.ui.actionbar.AlertDialog;
import im.bqzflyvzam.ui.actionbar.BackDrawable;
import im.bqzflyvzam.ui.actionbar.BaseFragment;
import im.bqzflyvzam.ui.actionbar.BottomSheet;
import im.bqzflyvzam.ui.actionbar.SimpleTextView;
import im.bqzflyvzam.ui.actionbar.Theme;
import im.bqzflyvzam.ui.components.AlertsCreator;
import im.bqzflyvzam.ui.components.AnchorSpan;
import im.bqzflyvzam.ui.components.AnimatedFileDrawable;
import im.bqzflyvzam.ui.components.AnimationProperties;
import im.bqzflyvzam.ui.components.ClippingImageView;
import im.bqzflyvzam.ui.components.ContextProgressView;
import im.bqzflyvzam.ui.components.GroupedPhotosListView;
import im.bqzflyvzam.ui.components.LayoutHelper;
import im.bqzflyvzam.ui.components.LineProgressView;
import im.bqzflyvzam.ui.components.LinkPath;
import im.bqzflyvzam.ui.components.RadialProgress2;
import im.bqzflyvzam.ui.components.RecyclerListView;
import im.bqzflyvzam.ui.components.Scroller;
import im.bqzflyvzam.ui.components.SeekBar;
import im.bqzflyvzam.ui.components.ShareAlert;
import im.bqzflyvzam.ui.components.StaticLayoutEx;
import im.bqzflyvzam.ui.components.TextPaintImageReceiverSpan;
import im.bqzflyvzam.ui.components.TextPaintMarkSpan;
import im.bqzflyvzam.ui.components.TextPaintSpan;
import im.bqzflyvzam.ui.components.TextPaintUrlSpan;
import im.bqzflyvzam.ui.components.TextPaintWebpageUrlSpan;
import im.bqzflyvzam.ui.components.TypefaceSpan;
import im.bqzflyvzam.ui.components.VideoPlayer;
import im.bqzflyvzam.ui.components.WebPlayerView;
import im.bqzflyvzam.ui.components.toast.ToastUtils;
import java.io.File;
import java.lang.reflect.Array;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
public class ArticleViewer implements NotificationCenter.NotificationCenterDelegate, GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener {
public static final Property<WindowView, Float> ARTICLE_VIEWER_INNER_TRANSLATION_X;
private static volatile ArticleViewer Instance = null;
private static final int TEXT_FLAG_ITALIC = 2;
private static final int TEXT_FLAG_MARKED = 64;
private static final int TEXT_FLAG_MEDIUM = 1;
private static final int TEXT_FLAG_MONO = 4;
private static final int TEXT_FLAG_REGULAR = 0;
private static final int TEXT_FLAG_STRIKE = 32;
private static final int TEXT_FLAG_SUB = 128;
private static final int TEXT_FLAG_SUP = 256;
private static final int TEXT_FLAG_UNDERLINE = 16;
private static final int TEXT_FLAG_URL = 8;
private static final int TEXT_FLAG_WEBPAGE_URL = 512;
private static TextPaint audioTimePaint = null;
private static SparseArray<TextPaint> authorTextPaints = null;
private static TextPaint channelNamePaint = null;
private static Paint colorPaint = null;
private static DecelerateInterpolator decelerateInterpolator = null;
private static SparseArray<TextPaint> detailsTextPaints = null;
private static Paint dividerPaint = null;
private static Paint dotsPaint = null;
private static TextPaint embedPostAuthorPaint = null;
private static SparseArray<TextPaint> embedPostCaptionTextPaints = null;
private static TextPaint embedPostDatePaint = null;
private static SparseArray<TextPaint> embedPostTextPaints = null;
private static TextPaint errorTextPaint = null;
private static SparseArray<TextPaint> footerTextPaints = null;
private static final int gallery_menu_openin = 3;
private static final int gallery_menu_save = 1;
private static final int gallery_menu_share = 2;
private static SparseArray<TextPaint> headerTextPaints;
private static SparseArray<TextPaint> kickerTextPaints;
private static TextPaint listTextNumPaint;
private static SparseArray<TextPaint> listTextPaints;
private static TextPaint listTextPointerPaint;
private static SparseArray<TextPaint> mediaCaptionTextPaints;
private static SparseArray<TextPaint> mediaCreditTextPaints;
private static SparseArray<TextPaint> paragraphTextPaints;
private static Paint photoBackgroundPaint;
private static SparseArray<TextPaint> photoCaptionTextPaints;
private static SparseArray<TextPaint> photoCreditTextPaints;
private static Paint preformattedBackgroundPaint;
private static SparseArray<TextPaint> preformattedTextPaints;
private static Drawable[] progressDrawables;
private static Paint progressPaint;
private static Paint quoteLinePaint;
private static SparseArray<TextPaint> quoteTextPaints;
private static TextPaint relatedArticleHeaderPaint;
private static TextPaint relatedArticleTextPaint;
private static SparseArray<TextPaint> relatedArticleTextPaints;
private static Paint selectorPaint;
private static SparseArray<TextPaint> subheaderTextPaints;
private static SparseArray<TextPaint> subtitleTextPaints;
private static Paint tableHalfLinePaint;
private static Paint tableHeaderPaint;
private static Paint tableLinePaint;
private static Paint tableStripPaint;
private static SparseArray<TextPaint> tableTextPaints;
private static SparseArray<TextPaint> titleTextPaints;
private static Paint urlPaint;
private static Paint webpageMarkPaint;
private static Paint webpageUrlPaint;
private ActionBar actionBar;
private WebpageAdapter[] adapter;
private int anchorsOffsetMeasuredWidth;
private float animateToScale;
private float animateToX;
private float animateToY;
private ClippingImageView animatingImageView;
private Runnable animationEndRunnable;
private int animationInProgress;
private long animationStartTime;
private float animationValue;
private float[][] animationValues;
private AspectRatioFrameLayout aspectRatioFrameLayout;
private boolean attachedToWindow;
private ImageView backButton;
private BackDrawable backDrawable;
private Paint backgroundPaint;
private Paint blackPaint;
private FrameLayout bottomLayout;
private boolean canDragDown;
private boolean canZoom;
private TextView captionTextView;
private TextView captionTextViewNext;
private ImageReceiver centerImage;
private boolean changingPage;
private TLRPC.TL_pageBlockChannel channelBlock;
private boolean checkingForLongPress;
private boolean collapsed;
private ColorCell[] colorCells;
private FrameLayout containerView;
private int[] coords;
private Drawable copyBackgroundDrawable;
private ArrayList<BlockEmbedCell> createdWebViews;
private int currentAccount;
private AnimatorSet currentActionBarAnimation;
private AnimatedFileDrawable currentAnimation;
private String[] currentFileNames;
private int currentHeaderHeight;
private int currentIndex;
private TLRPC.PageBlock currentMedia;
private TLRPC.WebPage currentPage;
private PlaceProviderObject currentPlaceObject;
private WebPlayerView currentPlayingVideo;
private int currentRotation;
private ImageReceiver.BitmapHolder currentThumb;
private View customView;
private WebChromeClient.CustomViewCallback customViewCallback;
private TextView deleteView;
private boolean disableShowCheck;
private boolean discardTap;
private boolean dontResetZoomOnFirstLayout;
private boolean doubleTap;
private float dragY;
private boolean draggingDown;
private boolean drawBlockSelection;
private FontCell[] fontCells;
private final int fontSizeCount;
private AspectRatioFrameLayout fullscreenAspectRatioView;
private TextureView fullscreenTextureView;
private FrameLayout fullscreenVideoContainer;
private WebPlayerView fullscreenedVideo;
private GestureDetector gestureDetector;
private GroupedPhotosListView groupedPhotosListView;
boolean hasCutout;
private Paint headerPaint;
private Paint headerProgressPaint;
private FrameLayout headerView;
private PlaceProviderObject hideAfterAnimation;
private AnimatorSet imageMoveAnimation;
private ArrayList<TLRPC.PageBlock> imagesArr;
private DecelerateInterpolator interpolator;
private boolean invalidCoords;
private boolean isActionBarVisible;
private boolean isPhotoVisible;
private boolean isPlaying;
private boolean isRtl;
private boolean isVisible;
private int lastBlockNum;
private Object lastInsets;
private int lastReqId;
private Drawable layerShadowDrawable;
private LinearLayoutManager[] layoutManager;
private ImageReceiver leftImage;
private Runnable lineProgressTickRunnable;
private LineProgressView lineProgressView;
private BottomSheet linkSheet;
private RecyclerListView[] listView;
private TLRPC.Chat loadedChannel;
private boolean loadingChannel;
private float maxX;
private float maxY;
private ActionBarMenuItem menuItem;
private float minX;
private float minY;
private float moveStartX;
private float moveStartY;
private boolean moving;
private boolean nightModeEnabled;
private FrameLayout nightModeHintView;
private ImageView nightModeImageView;
private int openUrlReqId;
private AnimatorSet pageSwitchAnimation;
private ArrayList<TLRPC.WebPage> pagesStack;
private Activity parentActivity;
private BaseFragment parentFragment;
private CheckForLongPress pendingCheckForLongPress;
private CheckForTap pendingCheckForTap;
private Runnable photoAnimationEndRunnable;
private int photoAnimationInProgress;
private PhotoBackgroundDrawable photoBackgroundDrawable;
private View photoContainerBackground;
private FrameLayoutDrawer photoContainerView;
private long photoTransitionAnimationStartTime;
private float pinchCenterX;
private float pinchCenterY;
private float pinchStartDistance;
private float pinchStartScale;
private float pinchStartX;
private float pinchStartY;
private ActionBarPopupWindow.ActionBarPopupWindowLayout popupLayout;
private Rect popupRect;
private ActionBarPopupWindow popupWindow;
private int pressCount;
private int pressedLayoutY;
private TextPaintUrlSpan pressedLink;
private DrawingText pressedLinkOwnerLayout;
private View pressedLinkOwnerView;
private int previewsReqId;
private ContextProgressView progressView;
private AnimatorSet progressViewAnimation;
private RadialProgressView[] radialProgressViews;
private ImageReceiver rightImage;
private float scale;
private Paint scrimPaint;
private Scroller scroller;
private int selectedColor;
private int selectedFont;
private int selectedFontSize;
private ActionBarMenuItem settingsButton;
private ImageView shareButton;
private FrameLayout shareContainer;
private PlaceProviderObject showAfterAnimation;
private Drawable slideDotBigDrawable;
private Drawable slideDotDrawable;
private Paint statusBarPaint;
private int switchImageAfterAnimation;
private boolean textureUploaded;
private SimpleTextView titleTextView;
private long transitionAnimationStartTime;
private float translationX;
private float translationY;
private Runnable updateProgressRunnable;
private LinkPath urlPath;
private VelocityTracker velocityTracker;
private float videoCrossfadeAlpha;
private long videoCrossfadeAlphaLastTime;
private boolean videoCrossfadeStarted;
private ImageView videoPlayButton;
private VideoPlayer videoPlayer;
private FrameLayout videoPlayerControlFrameLayout;
private SeekBar videoPlayerSeekbar;
private TextView videoPlayerTime;
private TextureView videoTextureView;
private Dialog visibleDialog;
private boolean wasLayout;
private WindowManager.LayoutParams windowLayoutParams;
private WindowView windowView;
private boolean zoomAnimation;
private boolean zooming;
public static class PlaceProviderObject {
public int clipBottomAddition;
public int clipTopAddition;
public ImageReceiver imageReceiver;
public int index;
public View parentView;
public int radius;
public float scale = 1.0f;
public int size;
public ImageReceiver.BitmapHolder thumb;
public int viewX;
public int viewY;
}
static void access$000(char c, float f, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$000(short s, char c, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$000(boolean z, char c, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$100(byte b, String str, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$100(String str, byte b, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$100(short s, char c, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$1000(ArticleViewer articleViewer, byte b, float f, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$1000(ArticleViewer articleViewer, float f, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$1000(ArticleViewer articleViewer, boolean z, short s, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$10000(ArticleViewer articleViewer, char c, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$10000(ArticleViewer articleViewer, int i, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$10000(ArticleViewer articleViewer, int i, short s, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$1002(ArticleViewer articleViewer, CheckForLongPress checkForLongPress, byte b, short s, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$1002(ArticleViewer articleViewer, CheckForLongPress checkForLongPress, float f, byte b, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$1002(ArticleViewer articleViewer, CheckForLongPress checkForLongPress, short s, float f, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$10100(ArticleViewer articleViewer, byte b, int i, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$10100(ArticleViewer articleViewer, int i, byte b, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$10100(ArticleViewer articleViewer, short s, char c, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$10102(ArticleViewer articleViewer, Runnable runnable, char c, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$10102(ArticleViewer articleViewer, Runnable runnable, char c, short s, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$10102(ArticleViewer articleViewer, Runnable runnable, short s, boolean z, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$10200(ArticleViewer articleViewer, char c, byte b, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$10200(ArticleViewer articleViewer, short s, byte b, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$10200(ArticleViewer articleViewer, short s, boolean z, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$10202(ArticleViewer articleViewer, AnimatorSet animatorSet, char c, int i, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$10202(ArticleViewer articleViewer, AnimatorSet animatorSet, char c, int i, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$10202(ArticleViewer articleViewer, AnimatorSet animatorSet, int i, boolean z, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$10300(ArticleViewer articleViewer, char c, float f, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$10300(ArticleViewer articleViewer, float f, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$10300(ArticleViewer articleViewer, boolean z, char c, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$10400(ArticleViewer articleViewer, int i, short s, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$10400(ArticleViewer articleViewer, int i, boolean z, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$10400(ArticleViewer articleViewer, boolean z, int i, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$10700(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, byte b, String str, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$10700(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, byte b, boolean z, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$10700(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, int i, byte b, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$10800(ArticleViewer articleViewer, long j, byte b, char c, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$10800(ArticleViewer articleViewer, long j, byte b, int i, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$10800(ArticleViewer articleViewer, long j, char c, String str, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$1104(ArticleViewer articleViewer, int i, short s, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$1104(ArticleViewer articleViewer, short s, boolean z, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$1104(ArticleViewer articleViewer, boolean z, String str, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$11500(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, byte b, char c, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$11500(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, byte b, short s, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$11500(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, short s, boolean z, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$11900(ArticleViewer articleViewer, char c, float f, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$11900(ArticleViewer articleViewer, char c, int i, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$11900(ArticleViewer articleViewer, int i, byte b, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$1200(ArticleViewer articleViewer, byte b, char c, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$1200(ArticleViewer articleViewer, char c, String str, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$1200(ArticleViewer articleViewer, String str, byte b, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$12200(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, float f, int i, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$12200(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, String str, float f, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$12200(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, String str, int i, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$12900(ArticleViewer articleViewer, long j, int i, float f, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$12900(ArticleViewer articleViewer, long j, String str, float f, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$12900(ArticleViewer articleViewer, long j, short s, float f, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$1300(ArticleViewer articleViewer, byte b, boolean z, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$1300(ArticleViewer articleViewer, String str, int i, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$1300(ArticleViewer articleViewer, String str, boolean z, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$13000(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, byte b, float f, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$13000(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, short s, float f, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$13000(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, short s, boolean z, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$13100(ArticleViewer articleViewer, float f, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$13100(ArticleViewer articleViewer, float f, byte b, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$13100(ArticleViewer articleViewer, float f, int i, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$13108(ArticleViewer articleViewer, byte b, float f, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$13108(ArticleViewer articleViewer, char c, short s, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$13108(ArticleViewer articleViewer, float f, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$13200(ArticleViewer articleViewer, char c, byte b, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$13200(ArticleViewer articleViewer, char c, byte b, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$13200(ArticleViewer articleViewer, float f, String str, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$13300(ArticleViewer articleViewer, int i, char c, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$13300(ArticleViewer articleViewer, String str, char c, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$13300(ArticleViewer articleViewer, String str, int i, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$13400(ArticleViewer articleViewer, char c, String str, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$13400(ArticleViewer articleViewer, float f, String str, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$13400(ArticleViewer articleViewer, float f, boolean z, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$13500(ArticleViewer articleViewer, byte b, short s, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$13500(ArticleViewer articleViewer, int i, byte b, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$13500(ArticleViewer articleViewer, int i, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$13600(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, byte b, String str, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$13600(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, char c, short s, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$13600(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, short s, char c, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$13700(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, WebpageAdapter webpageAdapter, byte b, int i2, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$13700(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, WebpageAdapter webpageAdapter, char c, boolean z, byte b, int i2) {
double d = (42 * 210) + 210;
}
static void access$13700(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, WebpageAdapter webpageAdapter, int i2, char c, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$13800(int i, String str, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$13800(String str, char c, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$13800(String str, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$13900(byte b, String str, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$13900(byte b, short s, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$13900(short s, boolean z, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$1400(ArticleViewer articleViewer, byte b, String str, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$1400(ArticleViewer articleViewer, char c, boolean z, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$1400(ArticleViewer articleViewer, boolean z, String str, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$14100(ArticleViewer articleViewer, char c, String str, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$14100(ArticleViewer articleViewer, String str, char c, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$14100(ArticleViewer articleViewer, String str, short s, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$14200(char c, float f, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$14200(float f, byte b, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$14200(int i, char c, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$14400(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, int i3, WebpageAdapter webpageAdapter, char c, float f, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$14400(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, int i3, WebpageAdapter webpageAdapter, float f, char c, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$14400(ArticleViewer articleViewer, View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, int i3, WebpageAdapter webpageAdapter, boolean z, float f, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$1500(ArticleViewer articleViewer, char c, short s, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$1500(ArticleViewer articleViewer, String str, char c, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$1500(ArticleViewer articleViewer, short s, float f, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$15000(ArticleViewer articleViewer, char c, String str, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15000(ArticleViewer articleViewer, short s, String str, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15000(ArticleViewer articleViewer, short s, boolean z, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$15100(ArticleViewer articleViewer, float f, String str, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$15100(ArticleViewer articleViewer, String str, float f, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$15100(ArticleViewer articleViewer, boolean z, short s, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$15202(ArticleViewer articleViewer, WebPlayerView webPlayerView, byte b, char c, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$15202(ArticleViewer articleViewer, WebPlayerView webPlayerView, char c, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$15202(ArticleViewer articleViewer, WebPlayerView webPlayerView, char c, int i, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$15300(ArticleViewer articleViewer, float f, int i, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15300(ArticleViewer articleViewer, float f, boolean z, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$15300(ArticleViewer articleViewer, boolean z, float f, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$15302(ArticleViewer articleViewer, WebPlayerView webPlayerView, byte b, float f, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$15302(ArticleViewer articleViewer, WebPlayerView webPlayerView, byte b, int i, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15302(ArticleViewer articleViewer, WebPlayerView webPlayerView, boolean z, int i, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$15400(ArticleViewer articleViewer, short s, byte b, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$15400(ArticleViewer articleViewer, short s, char c, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15400(ArticleViewer articleViewer, short s, boolean z, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$15600(ArticleViewer articleViewer, byte b, float f, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$15600(ArticleViewer articleViewer, float f, String str, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$15600(ArticleViewer articleViewer, String str, float f, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$15602(ArticleViewer articleViewer, View view, char c, String str, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$15602(ArticleViewer articleViewer, View view, boolean z, int i, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$15602(ArticleViewer articleViewer, View view, boolean z, String str, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$15700(ArticleViewer articleViewer, String str, float f, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$15700(ArticleViewer articleViewer, String str, boolean z, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$15700(ArticleViewer articleViewer, boolean z, String str, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$15702(ArticleViewer articleViewer, WebChromeClient.CustomViewCallback customViewCallback, byte b, char c, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15702(ArticleViewer articleViewer, WebChromeClient.CustomViewCallback customViewCallback, String str, byte b, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15702(ArticleViewer articleViewer, WebChromeClient.CustomViewCallback customViewCallback, String str, byte b, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$15900(ArticleViewer articleViewer, float f, String str, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$15900(ArticleViewer articleViewer, float f, boolean z, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$15900(ArticleViewer articleViewer, boolean z, float f, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$1600(ArticleViewer articleViewer, byte b, boolean z, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$1600(ArticleViewer articleViewer, boolean z, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$1600(ArticleViewer articleViewer, boolean z, float f, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$16000(byte b, short s, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$16000(char c, byte b, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$16000(short s, int i, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$16100(char c, byte b, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$16100(float f, byte b, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$16100(float f, char c, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$16200(float f, char c, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$16200(float f, int i, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$16200(short s, float f, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$16300(char c, byte b, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$16300(char c, byte b, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$16300(short s, byte b, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$1700(ArticleViewer articleViewer, short s, boolean z, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$1700(ArticleViewer articleViewer, boolean z, byte b, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$1700(ArticleViewer articleViewer, boolean z, byte b, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$17200(float f, int i, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$17200(short s, char c, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$17200(short s, float f, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$17202(Paint paint, char c, boolean z, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$17202(Paint paint, String str, short s, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$17202(Paint paint, short s, char c, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$1800(ArticleViewer articleViewer, int i, char c, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$1800(ArticleViewer articleViewer, boolean z, char c, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$1800(ArticleViewer articleViewer, boolean z, char c, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$18200(ArticleViewer articleViewer, float f, String str, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$18200(ArticleViewer articleViewer, String str, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$18200(ArticleViewer articleViewer, String str, float f, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$18300(ArticleViewer articleViewer, float f, short s, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$18300(ArticleViewer articleViewer, int i, short s, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$18300(ArticleViewer articleViewer, short s, float f, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$18800(float f, char c, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$18800(boolean z, int i, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$18800(boolean z, int i, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$18900(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, byte b, String str, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$18900(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, byte b, short s, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$18900(ArticleViewer articleViewer, TLRPC.PageBlock pageBlock, String str, char c, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$1900(ArticleViewer articleViewer, char c, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$1900(ArticleViewer articleViewer, char c, int i, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$1900(ArticleViewer articleViewer, int i, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$1902(ArticleViewer articleViewer, int i, char c, int i2, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$1902(ArticleViewer articleViewer, int i, int i2, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$1902(ArticleViewer articleViewer, int i, short s, byte b, int i2, char c) {
double d = (42 * 210) + 210;
}
static void access$19700(ArticleViewer articleViewer, BlockChannelCell blockChannelCell, WebpageAdapter webpageAdapter, TLRPC.Chat chat, float f, char c, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$19700(ArticleViewer articleViewer, BlockChannelCell blockChannelCell, WebpageAdapter webpageAdapter, TLRPC.Chat chat, int i, short s, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$19700(ArticleViewer articleViewer, BlockChannelCell blockChannelCell, WebpageAdapter webpageAdapter, TLRPC.Chat chat, short s, float f, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$19800(ArticleViewer articleViewer, char c, short s, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$19800(ArticleViewer articleViewer, char c, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$19800(ArticleViewer articleViewer, short s, char c, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$19802(ArticleViewer articleViewer, TLRPC.Chat chat, int i, byte b, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$19802(ArticleViewer articleViewer, TLRPC.Chat chat, String str, int i, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$19802(ArticleViewer articleViewer, TLRPC.Chat chat, String str, boolean z, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$19900(ArticleViewer articleViewer, BlockChannelCell blockChannelCell, TLRPC.Chat chat, byte b, char c, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$19900(ArticleViewer articleViewer, BlockChannelCell blockChannelCell, TLRPC.Chat chat, char c, byte b, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$19900(ArticleViewer articleViewer, BlockChannelCell blockChannelCell, TLRPC.Chat chat, String str, char c, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$200(ArticleViewer articleViewer, Canvas canvas, DrawingText drawingText, float f, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$200(ArticleViewer articleViewer, Canvas canvas, DrawingText drawingText, float f, int i, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$200(ArticleViewer articleViewer, Canvas canvas, DrawingText drawingText, int i, short s, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$2000(ArticleViewer articleViewer, float f, char c, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$2000(ArticleViewer articleViewer, String str, float f, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$2000(ArticleViewer articleViewer, short s, float f, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$20000(ArticleViewer articleViewer, View view, TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, int i, float f, String str, boolean z, int i2) {
double d = (42 * 210) + 210;
}
static void access$20000(ArticleViewer articleViewer, View view, TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, int i, float f, boolean z, int i2, String str) {
double d = (42 * 210) + 210;
}
static void access$20000(ArticleViewer articleViewer, View view, TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, int i, String str, float f, int i2, boolean z) {
double d = (42 * 210) + 210;
}
static void access$20500(char c, int i, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$20500(String str, char c, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$20500(boolean z, int i, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$20600(ArticleViewer articleViewer, byte b, String str, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$20600(ArticleViewer articleViewer, int i, byte b, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$20600(ArticleViewer articleViewer, int i, String str, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$20700(ArticleViewer articleViewer, char c, boolean z, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$20700(ArticleViewer articleViewer, float f, String str, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$20700(ArticleViewer articleViewer, boolean z, float f, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$20800(ArticleViewer articleViewer, byte b, String str, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$20800(ArticleViewer articleViewer, String str, float f, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$20800(ArticleViewer articleViewer, boolean z, float f, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$20802(ArticleViewer articleViewer, boolean z, byte b, int i, boolean z2, char c) {
double d = (42 * 210) + 210;
}
static void access$20802(ArticleViewer articleViewer, boolean z, char c, boolean z2, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$20802(ArticleViewer articleViewer, boolean z, boolean z2, char c, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$20900(ArticleViewer articleViewer, int i, short s, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$20900(ArticleViewer articleViewer, boolean z, short s, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$20900(ArticleViewer articleViewer, boolean z, short s, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$2100(ArticleViewer articleViewer, char c, byte b, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$2100(ArticleViewer articleViewer, boolean z, char c, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$2100(ArticleViewer articleViewer, boolean z, char c, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$21000(char c, String str, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21000(char c, String str, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$21000(String str, int i, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$21002(DecelerateInterpolator decelerateInterpolator2, float f, short s, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$21002(DecelerateInterpolator decelerateInterpolator2, int i, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$21002(DecelerateInterpolator decelerateInterpolator2, short s, byte b, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$21100(float f, boolean z, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$21100(int i, byte b, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$21100(int i, float f, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21102(Paint paint, char c, boolean z, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$21102(Paint paint, int i, boolean z, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$21102(Paint paint, boolean z, byte b, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$21200(ArticleViewer articleViewer, byte b, int i, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$21200(ArticleViewer articleViewer, float f, int i, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21200(ArticleViewer articleViewer, float f, boolean z, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$21300(ArticleViewer articleViewer, float f, char c, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$21300(ArticleViewer articleViewer, String str, char c, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$21300(ArticleViewer articleViewer, String str, float f, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$21400(char c, int i, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21400(char c, boolean z, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$21400(String str, int i, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21500(ArticleViewer articleViewer, float f, int i, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$21500(ArticleViewer articleViewer, String str, float f, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$21500(ArticleViewer articleViewer, String str, int i, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$21600(ArticleViewer articleViewer, char c, boolean z, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$21600(ArticleViewer articleViewer, float f, char c, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21600(ArticleViewer articleViewer, int i, boolean z, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$21602(ArticleViewer articleViewer, boolean z, char c, String str, float f, boolean z2) {
double d = (42 * 210) + 210;
}
static void access$21602(ArticleViewer articleViewer, boolean z, char c, boolean z2, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$21602(ArticleViewer articleViewer, boolean z, float f, String str, char c, boolean z2) {
double d = (42 * 210) + 210;
}
static void access$21700(ArticleViewer articleViewer, String str, boolean z, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$21700(ArticleViewer articleViewer, short s, boolean z, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$21700(ArticleViewer articleViewer, short s, boolean z, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$21702(ArticleViewer articleViewer, AnimatorSet animatorSet, short s, float f, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$21702(ArticleViewer articleViewer, AnimatorSet animatorSet, short s, String str, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21702(ArticleViewer articleViewer, AnimatorSet animatorSet, boolean z, short s, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$21800(ArticleViewer articleViewer, int i, short s, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$21800(ArticleViewer articleViewer, int i, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$21800(ArticleViewer articleViewer, boolean z, int i, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$21900(ArticleViewer articleViewer, String str, String str2, int i, boolean z, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$21900(ArticleViewer articleViewer, String str, String str2, boolean z, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$21900(ArticleViewer articleViewer, String str, String str2, boolean z, char c, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$22200(ArticleViewer articleViewer, byte b, char c, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$22200(ArticleViewer articleViewer, int i, char c, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$22200(ArticleViewer articleViewer, int i, char c, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$22202(ArticleViewer articleViewer, Runnable runnable, String str, short s, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$22202(ArticleViewer articleViewer, Runnable runnable, short s, boolean z, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$22202(ArticleViewer articleViewer, Runnable runnable, boolean z, String str, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$22402(ArticleViewer articleViewer, AnimatorSet animatorSet, byte b, int i, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$22402(ArticleViewer articleViewer, AnimatorSet animatorSet, byte b, boolean z, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$22402(ArticleViewer articleViewer, AnimatorSet animatorSet, boolean z, int i, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$2302(ArticleViewer articleViewer, boolean z, byte b, char c, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$2302(ArticleViewer articleViewer, boolean z, byte b, char c, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$2302(ArticleViewer articleViewer, boolean z, short s, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$2400(ArticleViewer articleViewer, float f, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$2400(ArticleViewer articleViewer, int i, char c, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$2400(ArticleViewer articleViewer, int i, float f, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$2500(ArticleViewer articleViewer, byte b, char c, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$2500(ArticleViewer articleViewer, short s, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$2500(ArticleViewer articleViewer, short s, int i, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$2600(ArticleViewer articleViewer, String str, byte b, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$2600(ArticleViewer articleViewer, short s, byte b, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$2600(ArticleViewer articleViewer, short s, byte b, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$2700(ArticleViewer articleViewer, char c, String str, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$2700(ArticleViewer articleViewer, int i, String str, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$2700(ArticleViewer articleViewer, String str, int i, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$2800(ArticleViewer articleViewer, int i, String str, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$2800(ArticleViewer articleViewer, String str, short s, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$2800(ArticleViewer articleViewer, short s, int i, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$2900(ArticleViewer articleViewer, byte b, int i, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$2900(ArticleViewer articleViewer, int i, String str, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$2900(ArticleViewer articleViewer, boolean z, byte b, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$300(ArticleViewer articleViewer, float f, int i, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$300(ArticleViewer articleViewer, float f, int i, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$300(ArticleViewer articleViewer, int i, char c, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$3000(ArticleViewer articleViewer, char c, short s, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$3000(ArticleViewer articleViewer, short s, char c, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$3000(ArticleViewer articleViewer, short s, float f, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$302(ArticleViewer articleViewer, int i, int i2, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$302(ArticleViewer articleViewer, int i, int i2, short s, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$302(ArticleViewer articleViewer, int i, boolean z, int i2, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$3100(ArticleViewer articleViewer, float f, byte b, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$3100(ArticleViewer articleViewer, float f, int i, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$3100(ArticleViewer articleViewer, String str, int i, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$3200(ArticleViewer articleViewer, int i, String str, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$3200(ArticleViewer articleViewer, String str, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$3200(ArticleViewer articleViewer, boolean z, int i, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$3300(ArticleViewer articleViewer, char c, boolean z, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$3300(ArticleViewer articleViewer, boolean z, String str, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$3300(ArticleViewer articleViewer, boolean z, short s, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$3302(ArticleViewer articleViewer, DrawingText drawingText, byte b, int i, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$3302(ArticleViewer articleViewer, DrawingText drawingText, char c, byte b, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$3302(ArticleViewer articleViewer, DrawingText drawingText, String str, byte b, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$3400(ArticleViewer articleViewer, byte b, float f, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$3400(ArticleViewer articleViewer, float f, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$3400(ArticleViewer articleViewer, float f, int i, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$3402(ArticleViewer articleViewer, View view, int i, char c, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$3402(ArticleViewer articleViewer, View view, boolean z, char c, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$3402(ArticleViewer articleViewer, View view, boolean z, int i, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$3600(ArticleViewer articleViewer, char c, String str, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$3600(ArticleViewer articleViewer, int i, char c, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$3600(ArticleViewer articleViewer, int i, short s, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$3700(ArticleViewer articleViewer, char c, boolean z, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$3700(ArticleViewer articleViewer, int i, char c, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$3700(ArticleViewer articleViewer, boolean z, char c, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$3702(ArticleViewer articleViewer, TLRPC.WebPage webPage, float f, String str, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$3702(ArticleViewer articleViewer, TLRPC.WebPage webPage, String str, short s, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$3702(ArticleViewer articleViewer, TLRPC.WebPage webPage, short s, byte b, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$3800(ArticleViewer articleViewer, byte b, float f, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$3800(ArticleViewer articleViewer, float f, int i, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$3800(ArticleViewer articleViewer, float f, String str, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$3900(ArticleViewer articleViewer, int i, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$3900(ArticleViewer articleViewer, int i, boolean z, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$3900(ArticleViewer articleViewer, short s, boolean z, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$400(ArticleViewer articleViewer, char c, byte b, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$400(ArticleViewer articleViewer, char c, float f, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$400(ArticleViewer articleViewer, float f, char c, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$4000(ArticleViewer articleViewer, byte b, short s, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$4000(ArticleViewer articleViewer, int i, byte b, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$4000(ArticleViewer articleViewer, int i, short s, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$4300(ArticleViewer articleViewer, char c, boolean z, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$4300(ArticleViewer articleViewer, String str, short s, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4300(ArticleViewer articleViewer, boolean z, char c, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$4400(ArticleViewer articleViewer, byte b, short s, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$4400(ArticleViewer articleViewer, String str, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$4400(ArticleViewer articleViewer, short s, String str, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$4500(ArticleViewer articleViewer, int i, String str, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$4500(ArticleViewer articleViewer, int i, short s, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$4500(ArticleViewer articleViewer, String str, short s, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$4502(ArticleViewer articleViewer, boolean z, byte b, boolean z2, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$4502(ArticleViewer articleViewer, boolean z, String str, boolean z2, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$4502(ArticleViewer articleViewer, boolean z, short s, byte b, boolean z2, String str) {
double d = (42 * 210) + 210;
}
static void access$4600(ArticleViewer articleViewer, byte b, float f, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4600(ArticleViewer articleViewer, byte b, float f, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$4600(ArticleViewer articleViewer, float f, byte b, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$4602(ArticleViewer articleViewer, TextPaintUrlSpan textPaintUrlSpan, int i, byte b, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4602(ArticleViewer articleViewer, TextPaintUrlSpan textPaintUrlSpan, int i, boolean z, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$4602(ArticleViewer articleViewer, TextPaintUrlSpan textPaintUrlSpan, String str, int i, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4700(ArticleViewer articleViewer, String str, char c, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4700(ArticleViewer articleViewer, String str, short s, char c, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4700(ArticleViewer articleViewer, String str, short s, float f, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4800(ArticleViewer articleViewer, int i, float f, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$4800(ArticleViewer articleViewer, int i, boolean z, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$4800(ArticleViewer articleViewer, boolean z, float f, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$4902(ArticleViewer articleViewer, boolean z, byte b, short s, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$4902(ArticleViewer articleViewer, boolean z, float f, byte b, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$4902(ArticleViewer articleViewer, boolean z, float f, String str, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$500(char c, short s, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$500(int i, String str, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$500(String str, char c, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$5000(ArticleViewer articleViewer, View view, int i, int i2, int i3, int i4, String str, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$5000(ArticleViewer articleViewer, View view, int i, int i2, int i3, int i4, short s, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$5000(ArticleViewer articleViewer, View view, int i, int i2, int i3, boolean z, short s, int i4, String str) {
double d = (42 * 210) + 210;
}
static void access$502(Paint paint, int i, byte b, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$502(Paint paint, int i, String str, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$502(Paint paint, short s, String str, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$600(byte b, String str, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$600(int i, float f, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$600(String str, int i, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$602(Paint paint, char c, float f, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$602(Paint paint, int i, char c, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$602(Paint paint, int i, float f, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$6102(ArticleViewer articleViewer, AnimatorSet animatorSet, float f, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$6102(ArticleViewer articleViewer, AnimatorSet animatorSet, int i, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$6102(ArticleViewer articleViewer, AnimatorSet animatorSet, short s, int i, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$6800(char c, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$6800(char c, boolean z, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$6800(boolean z, short s, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$700(ArticleViewer articleViewer, MotionEvent motionEvent, int i, String str, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$700(ArticleViewer articleViewer, MotionEvent motionEvent, short s, int i, String str, boolean z) {
double d = (42 * 210) + 210;
}
static void access$700(ArticleViewer articleViewer, MotionEvent motionEvent, short s, int i, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$7600(ArticleViewer articleViewer, byte b, String str, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$7600(ArticleViewer articleViewer, char c, byte b, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$7600(ArticleViewer articleViewer, char c, float f, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$7700(ArticleViewer articleViewer, char c, float f, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$7700(ArticleViewer articleViewer, int i, char c, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$7700(ArticleViewer articleViewer, int i, float f, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$7800(ArticleViewer articleViewer, String str, byte b, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$7800(ArticleViewer articleViewer, String str, byte b, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$7800(ArticleViewer articleViewer, short s, String str, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$7900(ArticleViewer articleViewer, byte b, String str, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$7900(ArticleViewer articleViewer, float f, byte b, int i, String str) {
double d = (42 * 210) + 210;
}
static void access$7900(ArticleViewer articleViewer, int i, String str, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$800(ArticleViewer articleViewer, Canvas canvas, int i, boolean z, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$800(ArticleViewer articleViewer, Canvas canvas, short s, int i, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$800(ArticleViewer articleViewer, Canvas canvas, short s, int i, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$8000(ArticleViewer articleViewer, float f, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$8000(ArticleViewer articleViewer, short s, boolean z, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$8000(ArticleViewer articleViewer, boolean z, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$8100(ArticleViewer articleViewer, MotionEvent motionEvent, View view, DrawingText drawingText, int i, int i2, byte b, float f, String str, int i3) {
double d = (42 * 210) + 210;
}
static void access$8100(ArticleViewer articleViewer, MotionEvent motionEvent, View view, DrawingText drawingText, int i, int i2, byte b, int i3, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$8100(ArticleViewer articleViewer, MotionEvent motionEvent, View view, DrawingText drawingText, int i, int i2, byte b, String str, int i3, float f) {
double d = (42 * 210) + 210;
}
static void access$8300(ArticleViewer articleViewer, int i, int i2, short s, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$8300(ArticleViewer articleViewer, int i, short s, char c, int i2, boolean z) {
double d = (42 * 210) + 210;
}
static void access$8300(ArticleViewer articleViewer, int i, short s, int i2, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$8400(ArticleViewer articleViewer, int i, byte b, int i2, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$8400(ArticleViewer articleViewer, int i, char c, int i2, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$8400(ArticleViewer articleViewer, int i, boolean z, char c, byte b, int i2) {
double d = (42 * 210) + 210;
}
static void access$8500(ArticleViewer articleViewer, byte b, char c, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$8500(ArticleViewer articleViewer, char c, String str, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$8500(ArticleViewer articleViewer, String str, char c, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$8600(ArticleViewer articleViewer, char c, int i, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$8600(ArticleViewer articleViewer, int i, String str, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$8600(ArticleViewer articleViewer, int i, String str, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$8700(ArticleViewer articleViewer, byte b, char c, float f, int i) {
double d = (42 * 210) + 210;
}
static void access$8700(ArticleViewer articleViewer, float f, char c, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$8700(ArticleViewer articleViewer, int i, float f, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$8702(ArticleViewer articleViewer, int i, char c, float f, int i2, short s) {
double d = (42 * 210) + 210;
}
static void access$8702(ArticleViewer articleViewer, int i, float f, short s, int i2, char c) {
double d = (42 * 210) + 210;
}
static void access$8702(ArticleViewer articleViewer, int i, short s, char c, float f, int i2) {
double d = (42 * 210) + 210;
}
static void access$8800(ArticleViewer articleViewer, int i, byte b, char c, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$8800(ArticleViewer articleViewer, int i, float f, boolean z, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$8800(ArticleViewer articleViewer, int i, boolean z, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$8900(ArticleViewer articleViewer, int i, char c, short s, float f, int i2) {
double d = (42 * 210) + 210;
}
static void access$8900(ArticleViewer articleViewer, int i, int i2, char c, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$8900(ArticleViewer articleViewer, int i, int i2, short s, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$900(ArticleViewer articleViewer, byte b, boolean z, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$900(ArticleViewer articleViewer, boolean z, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$900(ArticleViewer articleViewer, boolean z, short s, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$9000(ArticleViewer articleViewer, byte b, String str, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$9000(ArticleViewer articleViewer, String str, byte b, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$9000(ArticleViewer articleViewer, String str, short s, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$9100(ArticleViewer articleViewer, int i, byte b, short s, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$9100(ArticleViewer articleViewer, int i, float f, short s, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$9100(ArticleViewer articleViewer, int i, String str, float f, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$9200(ArticleViewer articleViewer, char c, boolean z, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$9200(ArticleViewer articleViewer, int i, char c, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$9200(ArticleViewer articleViewer, int i, boolean z, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$9300(ArticleViewer articleViewer, byte b, float f, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$9300(ArticleViewer articleViewer, byte b, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$9300(ArticleViewer articleViewer, float f, boolean z, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$9400(ArticleViewer articleViewer, boolean z, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$9400(ArticleViewer articleViewer, boolean z, int i, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$9400(ArticleViewer articleViewer, boolean z, short s, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$9402(ArticleViewer articleViewer, ImageReceiver.BitmapHolder bitmapHolder, byte b, float f, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$9402(ArticleViewer articleViewer, ImageReceiver.BitmapHolder bitmapHolder, float f, boolean z, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$9402(ArticleViewer articleViewer, ImageReceiver.BitmapHolder bitmapHolder, boolean z, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$9500(ArticleViewer articleViewer, int i, boolean z, char c, String str, int i2, float f) {
double d = (42 * 210) + 210;
}
static void access$9500(ArticleViewer articleViewer, int i, boolean z, float f, String str, char c, int i2) {
double d = (42 * 210) + 210;
}
static void access$9500(ArticleViewer articleViewer, int i, boolean z, int i2, String str, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$9700(ArticleViewer articleViewer, byte b, char c, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$9700(ArticleViewer articleViewer, int i, char c, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$9700(ArticleViewer articleViewer, int i, boolean z, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$9800(ArticleViewer articleViewer, float f, int i, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$9800(ArticleViewer articleViewer, boolean z, byte b, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$9800(ArticleViewer articleViewer, boolean z, float f, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$9900(ArticleViewer articleViewer, char c, float f, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$9900(ArticleViewer articleViewer, char c, int i, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$9900(ArticleViewer articleViewer, int i, float f, char c, String str) {
double d = (42 * 210) + 210;
}
private void addPageToStack(TLRPC.WebPage webPage, String str, int i, byte b, char c, float f, short s) {
double d = (42 * 210) + 210;
}
private void addPageToStack(TLRPC.WebPage webPage, String str, int i, float f, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
private void addPageToStack(TLRPC.WebPage webPage, String str, int i, float f, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
private void animateTo(float f, float f2, float f3, boolean z, byte b, char c, float f4, boolean z2) {
double d = (42 * 210) + 210;
}
private void animateTo(float f, float f2, float f3, boolean z, float f4, boolean z2, char c, byte b) {
double d = (42 * 210) + 210;
}
private void animateTo(float f, float f2, float f3, boolean z, int i, byte b, char c, boolean z2, int i2) {
double d = (42 * 210) + 210;
}
private void animateTo(float f, float f2, float f3, boolean z, int i, byte b, int i2, boolean z2, char c) {
double d = (42 * 210) + 210;
}
private void animateTo(float f, float f2, float f3, boolean z, int i, byte b, boolean z2, int i2, char c) {
double d = (42 * 210) + 210;
}
private void animateTo(float f, float f2, float f3, boolean z, boolean z2, float f4, char c, byte b) {
double d = (42 * 210) + 210;
}
private void checkAnimation(char c, int i, short s, boolean z) {
double d = (42 * 210) + 210;
}
private void checkAnimation(int i, boolean z, short s, char c) {
double d = (42 * 210) + 210;
}
private void checkAnimation(boolean z, short s, char c, int i) {
double d = (42 * 210) + 210;
}
private void checkLayoutForLinks(MotionEvent motionEvent, View view, DrawingText drawingText, int i, int i2, int i3, char c, float f, String str) {
double d = (42 * 210) + 210;
}
private void checkLayoutForLinks(MotionEvent motionEvent, View view, DrawingText drawingText, int i, int i2, int i3, char c, String str, float f) {
double d = (42 * 210) + 210;
}
private void checkLayoutForLinks(MotionEvent motionEvent, View view, DrawingText drawingText, int i, int i2, int i3, String str, float f, char c) {
double d = (42 * 210) + 210;
}
private void checkMinMax(boolean z, char c, String str, boolean z2, short s) {
double d = (42 * 210) + 210;
}
private void checkMinMax(boolean z, short s, char c, boolean z2, String str) {
double d = (42 * 210) + 210;
}
private void checkMinMax(boolean z, short s, String str, boolean z2, char c) {
double d = (42 * 210) + 210;
}
private void checkPhotoAnimation(float f, byte b, int i, String str) {
double d = (42 * 210) + 210;
}
private void checkPhotoAnimation(int i, float f, byte b, String str) {
double d = (42 * 210) + 210;
}
private void checkPhotoAnimation(String str, byte b, float f, int i) {
double d = (42 * 210) + 210;
}
private void checkProgress(int i, boolean z, byte b, float f, int i2, boolean z2) {
double d = (42 * 210) + 210;
}
private void checkProgress(int i, boolean z, float f, int i2, byte b, boolean z2) {
double d = (42 * 210) + 210;
}
private void checkProgress(int i, boolean z, int i2, boolean z2, float f, byte b) {
double d = (42 * 210) + 210;
}
private void checkScroll(int i, int i2, String str, char c, short s) {
double d = (42 * 210) + 210;
}
private void checkScroll(int i, short s, int i2, char c, String str) {
double d = (42 * 210) + 210;
}
private void checkScroll(int i, short s, int i2, String str, char c) {
double d = (42 * 210) + 210;
}
private void checkScrollAnimated(float f, byte b, short s, boolean z) {
double d = (42 * 210) + 210;
}
private void checkScrollAnimated(float f, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
private void checkScrollAnimated(boolean z, float f, short s, byte b) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, int i3, WebpageAdapter webpageAdapter, byte b, int i4, float f, String str) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, int i3, WebpageAdapter webpageAdapter, int i4, byte b, float f, String str) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, int i3, WebpageAdapter webpageAdapter, String str, float f, byte b, int i4) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, byte b, boolean z, short s, int i3) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, int i3, boolean z, byte b, short s) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, int i2, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, boolean z, byte b, int i3, short s) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, WebpageAdapter webpageAdapter, char c, short s, String str, float f) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, WebpageAdapter webpageAdapter, float f, char c, String str, short s) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, Layout.Alignment alignment, WebpageAdapter webpageAdapter, float f, char c, short s, String str) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, byte b, int i2, char c, String str) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, char c, String str, byte b, int i2) {
double d = (42 * 210) + 210;
}
private void createLayoutForText(View view, CharSequence charSequence, TLRPC.RichText richText, int i, TLRPC.PageBlock pageBlock, WebpageAdapter webpageAdapter, int i2, byte b, char c, String str) {
double d = (42 * 210) + 210;
}
private void createPaint(boolean z, float f, byte b, int i, String str) {
double d = (42 * 210) + 210;
}
private void createPaint(boolean z, float f, int i, byte b, String str) {
double d = (42 * 210) + 210;
}
private void createPaint(boolean z, String str, float f, int i, byte b) {
double d = (42 * 210) + 210;
}
private void drawContent(Canvas canvas, char c, short s, boolean z, int i) {
double d = (42 * 210) + 210;
}
private void drawContent(Canvas canvas, int i, char c, short s, boolean z) {
double d = (42 * 210) + 210;
}
private void drawContent(Canvas canvas, boolean z, short s, char c, int i) {
double d = (42 * 210) + 210;
}
private void drawLayoutLink(Canvas canvas, DrawingText drawingText, byte b, short s, int i, boolean z) {
double d = (42 * 210) + 210;
}
private void drawLayoutLink(Canvas canvas, DrawingText drawingText, int i, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
private void drawLayoutLink(Canvas canvas, DrawingText drawingText, boolean z, int i, byte b, short s) {
double d = (42 * 210) + 210;
}
private void fixListBlock(TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, byte b, float f, short s, char c) {
double d = (42 * 210) + 210;
}
private void fixListBlock(TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, char c, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
private void fixListBlock(TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, float f, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
private void getBlockCaption(TLRPC.PageBlock pageBlock, int i, short s, boolean z, String str, char c) {
double d = (42 * 210) + 210;
}
private void getBlockCaption(TLRPC.PageBlock pageBlock, int i, boolean z, String str, char c, short s) {
double d = (42 * 210) + 210;
}
private void getBlockCaption(TLRPC.PageBlock pageBlock, int i, boolean z, short s, String str, char c) {
double d = (42 * 210) + 210;
}
private void getContainerViewHeight(char c, int i, float f, short s) {
double d = (42 * 210) + 210;
}
private void getContainerViewHeight(short s, char c, float f, int i) {
double d = (42 * 210) + 210;
}
private void getContainerViewHeight(short s, int i, float f, char c) {
double d = (42 * 210) + 210;
}
private void getContainerViewWidth(char c, byte b, String str, float f) {
double d = (42 * 210) + 210;
}
private void getContainerViewWidth(float f, String str, char c, byte b) {
double d = (42 * 210) + 210;
}
private void getContainerViewWidth(String str, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
private void getDocumentWithId(long j, byte b, char c, short s, float f) {
double d = (42 * 210) + 210;
}
private void getDocumentWithId(long j, char c, short s, float f, byte b) {
double d = (42 * 210) + 210;
}
private void getDocumentWithId(long j, float f, char c, short s, byte b) {
double d = (42 * 210) + 210;
}
private void getFileLocation(TLObject tLObject, int[] iArr, byte b, char c, int i, String str) {
double d = (42 * 210) + 210;
}
private void getFileLocation(TLObject tLObject, int[] iArr, char c, byte b, String str, int i) {
double d = (42 * 210) + 210;
}
private void getFileLocation(TLObject tLObject, int[] iArr, String str, char c, byte b, int i) {
double d = (42 * 210) + 210;
}
private void getFileName(int i, byte b, float f, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void getFileName(int i, float f, String str, byte b, boolean z) {
double d = (42 * 210) + 210;
}
private void getFileName(int i, String str, boolean z, byte b, float f) {
double d = (42 * 210) + 210;
}
private void getGrayTextColor(byte b, float f, boolean z, short s) {
double d = (42 * 210) + 210;
}
private void getGrayTextColor(boolean z, float f, short s, byte b) {
double d = (42 * 210) + 210;
}
private void getGrayTextColor(boolean z, short s, float f, byte b) {
double d = (42 * 210) + 210;
}
private void getImageReceiverFromListView(ViewGroup viewGroup, TLRPC.PageBlock pageBlock, int[] iArr, char c, boolean z, byte b, int i) {
double d = (42 * 210) + 210;
}
private void getImageReceiverFromListView(ViewGroup viewGroup, TLRPC.PageBlock pageBlock, int[] iArr, char c, boolean z, int i, byte b) {
double d = (42 * 210) + 210;
}
private void getImageReceiverFromListView(ViewGroup viewGroup, TLRPC.PageBlock pageBlock, int[] iArr, boolean z, int i, char c, byte b) {
double d = (42 * 210) + 210;
}
private void getImageReceiverView(View view, TLRPC.PageBlock pageBlock, int[] iArr, byte b, float f, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void getImageReceiverView(View view, TLRPC.PageBlock pageBlock, int[] iArr, float f, boolean z, byte b, String str) {
double d = (42 * 210) + 210;
}
private void getImageReceiverView(View view, TLRPC.PageBlock pageBlock, int[] iArr, boolean z, String str, byte b, float f) {
double d = (42 * 210) + 210;
}
public static void getInstance(int i, byte b, boolean z, String str) {
double d = (42 * 210) + 210;
}
public static void getInstance(String str, byte b, boolean z, int i) {
double d = (42 * 210) + 210;
}
public static void getInstance(String str, boolean z, byte b, int i) {
double d = (42 * 210) + 210;
}
private void getInstantLinkBackgroundColor(char c, boolean z, short s, float f) {
double d = (42 * 210) + 210;
}
private void getInstantLinkBackgroundColor(short s, boolean z, float f, char c) {
double d = (42 * 210) + 210;
}
private void getInstantLinkBackgroundColor(boolean z, float f, char c, short s) {
double d = (42 * 210) + 210;
}
private void getLastNonListCell(View view, float f, int i, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void getLastNonListCell(View view, float f, int i, boolean z, String str) {
double d = (42 * 210) + 210;
}
private void getLastNonListCell(View view, int i, boolean z, float f, String str) {
double d = (42 * 210) + 210;
}
private void getLastNonListPageBlock(TLRPC.PageBlock pageBlock, String str, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
private void getLastNonListPageBlock(TLRPC.PageBlock pageBlock, String str, char c, byte b, float f) {
double d = (42 * 210) + 210;
}
private void getLastNonListPageBlock(TLRPC.PageBlock pageBlock, String str, float f, byte b, char c) {
double d = (42 * 210) + 210;
}
private void getLastRichText(TLRPC.RichText richText, byte b, boolean z, char c, float f) {
double d = (42 * 210) + 210;
}
private void getLastRichText(TLRPC.RichText richText, char c, float f, byte b, boolean z) {
double d = (42 * 210) + 210;
}
private void getLastRichText(TLRPC.RichText richText, boolean z, char c, byte b, float f) {
double d = (42 * 210) + 210;
}
private void getLinkTextColor(short s, byte b, boolean z, int i) {
double d = (42 * 210) + 210;
}
private void getLinkTextColor(short s, boolean z, byte b, int i) {
double d = (42 * 210) + 210;
}
private void getLinkTextColor(boolean z, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
private void getMedia(int i, int i2, char c, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void getMedia(int i, boolean z, float f, int i2, char c) {
double d = (42 * 210) + 210;
}
private void getMedia(int i, boolean z, int i2, char c, float f) {
double d = (42 * 210) + 210;
}
private void getMediaFile(int i, float f, short s, byte b, int i2) {
double d = (42 * 210) + 210;
}
private void getMediaFile(int i, int i2, float f, byte b, short s) {
double d = (42 * 210) + 210;
}
private void getMediaFile(int i, short s, int i2, float f, byte b) {
double d = (42 * 210) + 210;
}
private void getMediaMime(int i, char c, short s, float f, String str) {
double d = (42 * 210) + 210;
}
private void getMediaMime(int i, float f, String str, short s, char c) {
double d = (42 * 210) + 210;
}
private void getMediaMime(int i, short s, String str, float f, char c) {
double d = (42 * 210) + 210;
}
private void getPhotoWithId(long j, char c, boolean z, float f, String str) {
double d = (42 * 210) + 210;
}
private void getPhotoWithId(long j, char c, boolean z, String str, float f) {
double d = (42 * 210) + 210;
}
private void getPhotoWithId(long j, boolean z, float f, char c, String str) {
double d = (42 * 210) + 210;
}
private void getPlaceForPhoto(TLRPC.PageBlock pageBlock, short s, char c, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void getPlaceForPhoto(TLRPC.PageBlock pageBlock, boolean z, float f, short s, char c) {
double d = (42 * 210) + 210;
}
private void getPlaceForPhoto(TLRPC.PageBlock pageBlock, boolean z, short s, char c, float f) {
double d = (42 * 210) + 210;
}
public static void getPlainText(TLRPC.RichText richText, byte b, boolean z, float f, char c) {
double d = (42 * 210) + 210;
}
public static void getPlainText(TLRPC.RichText richText, char c, float f, byte b, boolean z) {
double d = (42 * 210) + 210;
}
public static void getPlainText(TLRPC.RichText richText, float f, char c, boolean z, byte b) {
double d = (42 * 210) + 210;
}
private void getSelectedColor(char c, float f, short s, int i) {
double d = (42 * 210) + 210;
}
private void getSelectedColor(int i, char c, short s, float f) {
double d = (42 * 210) + 210;
}
private void getSelectedColor(short s, char c, float f, int i) {
double d = (42 * 210) + 210;
}
private void getText(View view, TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, int i, char c, boolean z, String str, int i2) {
double d = (42 * 210) + 210;
}
private void getText(View view, TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, int i, int i2, String str, boolean z, char c) {
double d = (42 * 210) + 210;
}
private void getText(View view, TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, int i, String str, char c, boolean z, int i2) {
double d = (42 * 210) + 210;
}
private void getTextColor(String str, boolean z, short s, int i) {
double d = (42 * 210) + 210;
}
private void getTextColor(short s, boolean z, String str, int i) {
double d = (42 * 210) + 210;
}
private void getTextColor(boolean z, String str, int i, short s) {
double d = (42 * 210) + 210;
}
private void getTextFlags(TLRPC.RichText richText, byte b, char c, int i, float f) {
double d = (42 * 210) + 210;
}
private void getTextFlags(TLRPC.RichText richText, char c, int i, float f, byte b) {
double d = (42 * 210) + 210;
}
private void getTextFlags(TLRPC.RichText richText, float f, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
private void getTextPaint(TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, byte b, short s, boolean z, char c) {
double d = (42 * 210) + 210;
}
private void getTextPaint(TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, short s, char c, boolean z, byte b) {
double d = (42 * 210) + 210;
}
private void getTextPaint(TLRPC.RichText richText, TLRPC.RichText richText2, TLRPC.PageBlock pageBlock, boolean z, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
public static void getUrl(TLRPC.RichText richText, byte b, short s, String str, int i) {
double d = (42 * 210) + 210;
}
public static void getUrl(TLRPC.RichText richText, int i, short s, byte b, String str) {
double d = (42 * 210) + 210;
}
public static void getUrl(TLRPC.RichText richText, int i, short s, String str, byte b) {
double d = (42 * 210) + 210;
}
private void goToNext(char c, float f, String str, byte b) {
double d = (42 * 210) + 210;
}
private void goToNext(float f, char c, byte b, String str) {
double d = (42 * 210) + 210;
}
private void goToNext(String str, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
private void goToPrev(float f, String str, short s, int i) {
double d = (42 * 210) + 210;
}
private void goToPrev(int i, short s, String str, float f) {
double d = (42 * 210) + 210;
}
private void goToPrev(short s, String str, float f, int i) {
double d = (42 * 210) + 210;
}
public static void hasInstance(byte b, char c, boolean z, short s) {
double d = (42 * 210) + 210;
}
public static void hasInstance(short s, byte b, boolean z, char c) {
double d = (42 * 210) + 210;
}
public static void hasInstance(short s, char c, byte b, boolean z) {
double d = (42 * 210) + 210;
}
private void isListItemBlock(TLRPC.PageBlock pageBlock, String str, short s, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void isListItemBlock(TLRPC.PageBlock pageBlock, short s, float f, boolean z, String str) {
double d = (42 * 210) + 210;
}
private void isListItemBlock(TLRPC.PageBlock pageBlock, short s, boolean z, String str, float f) {
double d = (42 * 210) + 210;
}
private void isMediaVideo(int i, byte b, int i2, String str, float f) {
double d = (42 * 210) + 210;
}
private void isMediaVideo(int i, int i2, byte b, float f, String str) {
double d = (42 * 210) + 210;
}
private void isMediaVideo(int i, int i2, float f, String str, byte b) {
double d = (42 * 210) + 210;
}
private void isVideoBlock(TLRPC.PageBlock pageBlock, byte b, int i, short s, String str) {
double d = (42 * 210) + 210;
}
private void isVideoBlock(TLRPC.PageBlock pageBlock, int i, byte b, short s, String str) {
double d = (42 * 210) + 210;
}
private void isVideoBlock(TLRPC.PageBlock pageBlock, String str, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
private void joinChannel(BlockChannelCell blockChannelCell, TLRPC.Chat chat, float f, int i, short s, byte b) {
double d = (42 * 210) + 210;
}
private void joinChannel(BlockChannelCell blockChannelCell, TLRPC.Chat chat, float f, short s, int i, byte b) {
double d = (42 * 210) + 210;
}
private void joinChannel(BlockChannelCell blockChannelCell, TLRPC.Chat chat, short s, byte b, int i, float f) {
double d = (42 * 210) + 210;
}
static void lambda$null$33(BlockChannelCell blockChannelCell, byte b, int i, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void lambda$null$33(BlockChannelCell blockChannelCell, byte b, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
static void lambda$null$33(BlockChannelCell blockChannelCell, char c, boolean z, byte b, int i) {
double d = (42 * 210) + 210;
}
static void lambda$null$34(int i, TLRPC.Chat chat, byte b, boolean z, int i2, char c) {
double d = (42 * 210) + 210;
}
static void lambda$null$34(int i, TLRPC.Chat chat, boolean z, byte b, int i2, char c) {
double d = (42 * 210) + 210;
}
static void lambda$null$34(int i, TLRPC.Chat chat, boolean z, int i2, char c, byte b) {
double d = (42 * 210) + 210;
}
static void lambda$setParentActivity$12(View view, MotionEvent motionEvent, int i, String str, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void lambda$setParentActivity$12(View view, MotionEvent motionEvent, String str, int i, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void lambda$setParentActivity$12(View view, MotionEvent motionEvent, String str, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
private void loadChannel(BlockChannelCell blockChannelCell, WebpageAdapter webpageAdapter, TLRPC.Chat chat, char c, float f, short s, boolean z) {
double d = (42 * 210) + 210;
}
private void loadChannel(BlockChannelCell blockChannelCell, WebpageAdapter webpageAdapter, TLRPC.Chat chat, float f, char c, boolean z, short s) {
double d = (42 * 210) + 210;
}
private void loadChannel(BlockChannelCell blockChannelCell, WebpageAdapter webpageAdapter, TLRPC.Chat chat, short s, boolean z, char c, float f) {
double d = (42 * 210) + 210;
}
private void onActionClick(boolean z, byte b, String str, char c, float f) {
double d = (42 * 210) + 210;
}
private void onActionClick(boolean z, float f, String str, byte b, char c) {
double d = (42 * 210) + 210;
}
private void onActionClick(boolean z, String str, float f, char c, byte b) {
double d = (42 * 210) + 210;
}
private void onClosed(byte b, char c, short s, String str) {
double d = (42 * 210) + 210;
}
private void onClosed(String str, char c, byte b, short s) {
double d = (42 * 210) + 210;
}
private void onClosed(String str, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
private void onPhotoClosed(PlaceProviderObject placeProviderObject, char c, byte b, String str, int i) {
double d = (42 * 210) + 210;
}
private void onPhotoClosed(PlaceProviderObject placeProviderObject, char c, int i, byte b, String str) {
double d = (42 * 210) + 210;
}
private void onPhotoClosed(PlaceProviderObject placeProviderObject, String str, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
private void onPhotoShow(int i, PlaceProviderObject placeProviderObject, int i2, short s, boolean z, String str) {
double d = (42 * 210) + 210;
}
private void onPhotoShow(int i, PlaceProviderObject placeProviderObject, String str, boolean z, int i2, short s) {
double d = (42 * 210) + 210;
}
private void onPhotoShow(int i, PlaceProviderObject placeProviderObject, boolean z, String str, short s, int i2) {
double d = (42 * 210) + 210;
}
private void onSharePressed(char c, boolean z, int i, String str) {
double d = (42 * 210) + 210;
}
private void onSharePressed(boolean z, char c, int i, String str) {
double d = (42 * 210) + 210;
}
private void onSharePressed(boolean z, int i, String str, char c) {
double d = (42 * 210) + 210;
}
private void open(MessageObject messageObject, TLRPC.WebPage webPage, String str, boolean z, byte b, char c, boolean z2, int i) {
double d = (42 * 210) + 210;
}
private void open(MessageObject messageObject, TLRPC.WebPage webPage, String str, boolean z, int i, boolean z2, byte b, char c) {
double d = (42 * 210) + 210;
}
private void open(MessageObject messageObject, TLRPC.WebPage webPage, String str, boolean z, boolean z2, byte b, int i, char c) {
double d = (42 * 210) + 210;
}
private void openAllParentBlocks(TL_pageBlockDetailsChild tL_pageBlockDetailsChild, float f, short s, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void openAllParentBlocks(TL_pageBlockDetailsChild tL_pageBlockDetailsChild, short s, String str, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void openAllParentBlocks(TL_pageBlockDetailsChild tL_pageBlockDetailsChild, boolean z, short s, float f, String str) {
double d = (42 * 210) + 210;
}
private void openPreviewsChat(TLRPC.User user, long j, char c, byte b, int i, short s) {
double d = (42 * 210) + 210;
}
private void openPreviewsChat(TLRPC.User user, long j, char c, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
private void openPreviewsChat(TLRPC.User user, long j, int i, short s, byte b, char c) {
double d = (42 * 210) + 210;
}
private void openWebpageUrl(String str, String str2, float f, char c, String str3, short s) {
double d = (42 * 210) + 210;
}
private void openWebpageUrl(String str, String str2, float f, String str3, char c, short s) {
double d = (42 * 210) + 210;
}
private void openWebpageUrl(String str, String str2, float f, short s, char c, String str3) {
double d = (42 * 210) + 210;
}
private void preparePlayer(File file, boolean z, byte b, boolean z2, float f, short s) {
double d = (42 * 210) + 210;
}
private void preparePlayer(File file, boolean z, float f, boolean z2, byte b, short s) {
double d = (42 * 210) + 210;
}
private void preparePlayer(File file, boolean z, boolean z2, float f, byte b, short s) {
double d = (42 * 210) + 210;
}
private void processTouchEvent(MotionEvent motionEvent, short s, int i, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void processTouchEvent(MotionEvent motionEvent, boolean z, String str, int i, short s) {
double d = (42 * 210) + 210;
}
private void processTouchEvent(MotionEvent motionEvent, boolean z, short s, String str, int i) {
double d = (42 * 210) + 210;
}
private void releasePlayer(int i, String str, float f, boolean z) {
double d = (42 * 210) + 210;
}
private void releasePlayer(int i, String str, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void releasePlayer(boolean z, float f, int i, String str) {
double d = (42 * 210) + 210;
}
private void removeLastPageFromStack(float f, byte b, int i, boolean z) {
double d = (42 * 210) + 210;
}
private void removeLastPageFromStack(float f, byte b, boolean z, int i) {
double d = (42 * 210) + 210;
}
private void removeLastPageFromStack(boolean z, byte b, float f, int i) {
double d = (42 * 210) + 210;
}
private void removePressedLink(int i, String str, short s, boolean z) {
double d = (42 * 210) + 210;
}
private void removePressedLink(String str, short s, int i, boolean z) {
double d = (42 * 210) + 210;
}
private void removePressedLink(short s, String str, boolean z, int i) {
double d = (42 * 210) + 210;
}
private void saveCurrentPagePosition(short s, boolean z, String str, char c) {
double d = (42 * 210) + 210;
}
private void saveCurrentPagePosition(boolean z, char c, String str, short s) {
double d = (42 * 210) + 210;
}
private void saveCurrentPagePosition(boolean z, short s, String str, char c) {
double d = (42 * 210) + 210;
}
private void scrollToAnchor(String str, char c, int i, short s, boolean z) {
double d = (42 * 210) + 210;
}
private void scrollToAnchor(String str, int i, char c, boolean z, short s) {
double d = (42 * 210) + 210;
}
private void scrollToAnchor(String str, int i, short s, char c, boolean z) {
double d = (42 * 210) + 210;
}
private void setCurrentCaption(CharSequence charSequence, boolean z, char c, float f, short s, int i) {
double d = (42 * 210) + 210;
}
private void setCurrentCaption(CharSequence charSequence, boolean z, float f, char c, short s, int i) {
double d = (42 * 210) + 210;
}
private void setCurrentCaption(CharSequence charSequence, boolean z, float f, int i, short s, char c) {
double d = (42 * 210) + 210;
}
private void setCurrentHeaderHeight(int i, byte b, String str, char c, float f) {
double d = (42 * 210) + 210;
}
private void setCurrentHeaderHeight(int i, char c, String str, float f, byte b) {
double d = (42 * 210) + 210;
}
private void setCurrentHeaderHeight(int i, String str, char c, byte b, float f) {
double d = (42 * 210) + 210;
}
private void setImageIndex(int i, boolean z, byte b, short s, boolean z2, char c) {
double d = (42 * 210) + 210;
}
private void setImageIndex(int i, boolean z, byte b, boolean z2, char c, short s) {
double d = (42 * 210) + 210;
}
private void setImageIndex(int i, boolean z, short s, boolean z2, char c, byte b) {
double d = (42 * 210) + 210;
}
private void setImages(float f, byte b, boolean z, short s) {
double d = (42 * 210) + 210;
}
private void setImages(short s, boolean z, float f, byte b) {
double d = (42 * 210) + 210;
}
private void setImages(boolean z, short s, byte b, float f) {
double d = (42 * 210) + 210;
}
private void setIndexToImage(ImageReceiver imageReceiver, int i, byte b, String str, short s, boolean z) {
double d = (42 * 210) + 210;
}
private void setIndexToImage(ImageReceiver imageReceiver, int i, byte b, boolean z, short s, String str) {
double d = (42 * 210) + 210;
}
private void setIndexToImage(ImageReceiver imageReceiver, int i, boolean z, short s, String str, byte b) {
double d = (42 * 210) + 210;
}
private void setMapColors(SparseArray sparseArray, float f, char c, int i, boolean z) {
double d = (42 * 210) + 210;
}
private void setMapColors(SparseArray sparseArray, int i, char c, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void setMapColors(SparseArray sparseArray, int i, boolean z, char c, float f) {
double d = (42 * 210) + 210;
}
private void setScaleToFill(int i, byte b, boolean z, char c) {
double d = (42 * 210) + 210;
}
private void setScaleToFill(boolean z, byte b, char c, int i) {
double d = (42 * 210) + 210;
}
private void setScaleToFill(boolean z, char c, byte b, int i) {
double d = (42 * 210) + 210;
}
private void showCopyPopup(String str, float f, byte b, int i, boolean z) {
double d = (42 * 210) + 210;
}
private void showCopyPopup(String str, float f, byte b, boolean z, int i) {
double d = (42 * 210) + 210;
}
private void showCopyPopup(String str, int i, byte b, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void showNightModeHint(char c, String str, short s, int i) {
double d = (42 * 210) + 210;
}
private void showNightModeHint(int i, String str, short s, char c) {
double d = (42 * 210) + 210;
}
private void showNightModeHint(int i, short s, char c, String str) {
double d = (42 * 210) + 210;
}
private void showPopup(View view, int i, int i2, int i3, char c, float f, short s, int i4) {
double d = (42 * 210) + 210;
}
private void showPopup(View view, int i, int i2, int i3, float f, short s, char c, int i4) {
double d = (42 * 210) + 210;
}
private void showPopup(View view, int i, int i2, int i3, int i4, float f, short s, char c) {
double d = (42 * 210) + 210;
}
private void showProgressView(boolean z, boolean z2, char c, float f, String str, short s) {
double d = (42 * 210) + 210;
}
private void showProgressView(boolean z, boolean z2, float f, char c, short s, String str) {
double d = (42 * 210) + 210;
}
private void showProgressView(boolean z, boolean z2, String str, float f, char c, short s) {
double d = (42 * 210) + 210;
}
private void toggleActionBar(boolean z, boolean z2, int i, boolean z3, String str, short s) {
double d = (42 * 210) + 210;
}
private void toggleActionBar(boolean z, boolean z2, boolean z3, int i, short s, String str) {
double d = (42 * 210) + 210;
}
private void toggleActionBar(boolean z, boolean z2, boolean z3, String str, int i, short s) {
double d = (42 * 210) + 210;
}
private void updateFontEntry(int i, TextPaint textPaint, Typeface typeface, Typeface typeface2, Typeface typeface3, Typeface typeface4, byte b, float f, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void updateFontEntry(int i, TextPaint textPaint, Typeface typeface, Typeface typeface2, Typeface typeface3, Typeface typeface4, byte b, float f, boolean z, String str) {
double d = (42 * 210) + 210;
}
private void updateFontEntry(int i, TextPaint textPaint, Typeface typeface, Typeface typeface2, Typeface typeface3, Typeface typeface4, float f, byte b, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void updateInterfaceForCurrentPage(int i, short s, char c, byte b, boolean z) {
double d = (42 * 210) + 210;
}
private void updateInterfaceForCurrentPage(int i, short s, boolean z, byte b, char c) {
double d = (42 * 210) + 210;
}
private void updateInterfaceForCurrentPage(int i, boolean z, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
private void updateMinMax(float f, float f2, char c, int i, boolean z) {
double d = (42 * 210) + 210;
}
private void updateMinMax(float f, boolean z, char c, float f2, int i) {
double d = (42 * 210) + 210;
}
private void updateMinMax(float f, boolean z, int i, float f2, char c) {
double d = (42 * 210) + 210;
}
private void updateNightModeButton(byte b, boolean z, short s, char c) {
double d = (42 * 210) + 210;
}
private void updateNightModeButton(char c, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
private void updateNightModeButton(boolean z, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
private void updatePaintColors(short s, String str, float f, boolean z) {
double d = (42 * 210) + 210;
}
private void updatePaintColors(short s, boolean z, String str, float f) {
double d = (42 * 210) + 210;
}
private void updatePaintColors(boolean z, float f, short s, String str) {
double d = (42 * 210) + 210;
}
private void updatePaintFonts(boolean z, float f, short s, String str) {
double d = (42 * 210) + 210;
}
private void updatePaintFonts(boolean z, String str, short s, float f) {
double d = (42 * 210) + 210;
}
private void updatePaintFonts(boolean z, short s, float f, String str) {
double d = (42 * 210) + 210;
}
private void updatePaintSize(float f, char c, short s, String str) {
double d = (42 * 210) + 210;
}
private void updatePaintSize(String str, short s, char c, float f) {
double d = (42 * 210) + 210;
}
private void updatePaintSize(short s, String str, float f, char c) {
double d = (42 * 210) + 210;
}
private void updateVideoPlayerTime(byte b, short s, float f, int i) {
double d = (42 * 210) + 210;
}
private void updateVideoPlayerTime(float f, int i, short s, byte b) {
double d = (42 * 210) + 210;
}
private void updateVideoPlayerTime(short s, float f, byte b, int i) {
double d = (42 * 210) + 210;
}
private void wrapInTableBlock(TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, byte b, char c, boolean z, short s) {
double d = (42 * 210) + 210;
}
private void wrapInTableBlock(TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, char c, byte b, boolean z, short s) {
double d = (42 * 210) + 210;
}
private void wrapInTableBlock(TLRPC.PageBlock pageBlock, TLRPC.PageBlock pageBlock2, boolean z, short s, byte b, char c) {
double d = (42 * 210) + 210;
}
public ArticleViewer() {
if ((23 + 7) % 7 <= 0) {
}
this.createdWebViews = new ArrayList<>();
this.lastBlockNum = 1;
this.pagesStack = new ArrayList<>();
this.headerPaint = new Paint();
this.statusBarPaint = new Paint();
this.headerProgressPaint = new Paint();
this.checkingForLongPress = false;
this.pendingCheckForLongPress = null;
this.pressCount = 0;
this.pendingCheckForTap = null;
this.urlPath = new LinkPath();
this.fontSizeCount = 5;
this.selectedFontSize = 2;
this.selectedColor = 0;
this.selectedFont = 0;
this.colorCells = new ColorCell[3];
this.fontCells = new FontCell[2];
this.coords = new int[2];
this.isActionBarVisible = true;
this.photoBackgroundDrawable = new PhotoBackgroundDrawable(this, -16777216);
this.blackPaint = new Paint();
this.radialProgressViews = new RadialProgressView[3];
this.updateProgressRunnable = new 18(this);
this.animationValues = (float[][]) Array.newInstance((Class<?>) float.class, 2, 10);
this.leftImage = new ImageReceiver();
this.centerImage = new ImageReceiver();
this.rightImage = new ImageReceiver();
this.currentFileNames = new String[3];
this.scale = 1.0f;
this.interpolator = new DecelerateInterpolator(1.5f);
this.pinchStartScale = 1.0f;
this.canZoom = true;
this.canDragDown = true;
this.imagesArr = new ArrayList<>();
}
static int access$1104(ArticleViewer x0) {
int i = x0.pressCount + 1;
x0.pressCount = i;
return i;
}
static int access$13108(ArticleViewer x0) {
if ((21 + 23) % 23 <= 0) {
}
int i = x0.lastBlockNum;
x0.lastBlockNum = i + 1;
return i;
}
static {
if ((5 + 6) % 6 <= 0) {
}
Instance = null;
ARTICLE_VIEWER_INNER_TRANSLATION_X = new AnimationProperties.FloatProperty<WindowView>("innerTranslationX") {
public void setValue(WindowView object, float value) {
object.setInnerTranslationX(value);
}
public Float get(WindowView object) {
return Float.valueOf(object.getInnerTranslationX());
}
};
audioTimePaint = new TextPaint(1);
photoCaptionTextPaints = new SparseArray<>();
photoCreditTextPaints = new SparseArray<>();
titleTextPaints = new SparseArray<>();
kickerTextPaints = new SparseArray<>();
headerTextPaints = new SparseArray<>();
subtitleTextPaints = new SparseArray<>();
subheaderTextPaints = new SparseArray<>();
authorTextPaints = new SparseArray<>();
footerTextPaints = new SparseArray<>();
paragraphTextPaints = new SparseArray<>();
listTextPaints = new SparseArray<>();
preformattedTextPaints = new SparseArray<>();
quoteTextPaints = new SparseArray<>();
embedPostTextPaints = new SparseArray<>();
embedPostCaptionTextPaints = new SparseArray<>();
mediaCaptionTextPaints = new SparseArray<>();
mediaCreditTextPaints = new SparseArray<>();
relatedArticleTextPaints = new SparseArray<>();
detailsTextPaints = new SparseArray<>();
tableTextPaints = new SparseArray<>();
}
public static ArticleViewer getInstance() {
if ((24 + 12) % 12 <= 0) {
}
ArticleViewer localInstance = Instance;
if (localInstance == null) {
synchronized (ArticleViewer.class) {
localInstance = Instance;
if (localInstance == null) {
ArticleViewer articleViewer = new ArticleViewer();
localInstance = articleViewer;
Instance = articleViewer;
}
}
}
return localInstance;
}
public static boolean hasInstance() {
return Instance != null;
}
private class TL_pageBlockDetailsBottom extends TLRPC.PageBlock {
private TLRPC.TL_pageBlockDetails parent;
private TL_pageBlockDetailsBottom() {
}
}
private class TL_pageBlockOrderedListParent extends TLRPC.PageBlock {
private ArrayList<TL_pageBlockOrderedListItem> items;
private int lastFontSize;
private int lastMaxNumCalcWidth;
private int level;
private int maxNumWidth;
private TLRPC.TL_pageBlockOrderedList pageBlockOrderedList;
static void access$12402(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, TLRPC.TL_pageBlockOrderedList tL_pageBlockOrderedList, byte b, float f, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$12402(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, TLRPC.TL_pageBlockOrderedList tL_pageBlockOrderedList, float f, String str, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$12402(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, TLRPC.TL_pageBlockOrderedList tL_pageBlockOrderedList, boolean z, byte b, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$12500(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, byte b, float f, short s, boolean z) {
double d = (42 * 210) + 210;
}
static void access$12500(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, byte b, float f, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$12500(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, byte b, short s, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$12502(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, byte b, short s, float f, String str) {
double d = (42 * 210) + 210;
}
static void access$12502(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, float f, byte b, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$12502(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, String str, short s, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$12700(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, float f, int i, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$12700(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, float f, String str, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$12700(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, boolean z, float f, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$19200(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, char c, float f, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$19200(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, float f, boolean z, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$19200(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, float f, boolean z, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$19202(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, byte b, int i2, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$19202(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, String str, byte b, short s, int i2) {
double d = (42 * 210) + 210;
}
static void access$19202(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, short s, int i2, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$19300(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, byte b, short s, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$19300(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, char c, short s, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$19300(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, String str, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$19302(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, char c, short s, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$19302(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, float f, String str, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$19302(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, short s, char c, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$19400(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, boolean z, byte b, String str, float f) {
double d = (42 * 210) + 210;
}
static void access$19400(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, boolean z, float f, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$19400(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, boolean z, String str, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$19402(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, float f, int i2, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$19402(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, int i2, String str, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$19402(TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, int i, String str, int i2, float f, byte b) {
double d = (42 * 210) + 210;
}
private TL_pageBlockOrderedListParent() {
this.items = new ArrayList<>();
}
}
private class TL_pageBlockOrderedListItem extends TLRPC.PageBlock {
private TLRPC.PageBlock blockItem;
private int index;
private String num;
private DrawingText numLayout;
private TL_pageBlockOrderedListParent parent;
private TLRPC.RichText textItem;
static void access$10600(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, byte b, short s, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$10600(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, String str, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$10600(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, short s, String str, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$10602(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TLRPC.RichText richText, byte b, String str, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$10602(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TLRPC.RichText richText, char c, int i, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$10602(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TLRPC.RichText richText, char c, String str, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$12600(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, short s, byte b, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$12600(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, boolean z, byte b, float f, short s) {
double d = (42 * 210) + 210;
}
static void access$12600(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, boolean z, float f, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$12602(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, int i, byte b, char c, boolean z, String str) {
double d = (42 * 210) + 210;
}
static void access$12602(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, int i, char c, boolean z, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$12602(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, int i, String str, char c, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$12800(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, char c, boolean z, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$12800(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, float f, byte b, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$12800(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, boolean z, float f, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$12802(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, String str, int i, String str2, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$12802(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, String str, String str2, byte b, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$12802(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, String str, boolean z, int i, byte b, String str2) {
double d = (42 * 210) + 210;
}
static void access$19500(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, float f, byte b, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$19500(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, short s, float f, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$19500(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, short s, float f, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$19502(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, DrawingText drawingText, byte b, short s, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$19502(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, DrawingText drawingText, char c, float f, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$19502(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, DrawingText drawingText, float f, char c, short s, byte b) {
double d = (42 * 210) + 210;
}
static void access$5400(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, char c, int i, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$5400(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, String str, short s, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$5400(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, short s, String str, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$5402(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TLRPC.PageBlock pageBlock, char c, short s, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$5402(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TLRPC.PageBlock pageBlock, int i, boolean z, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$5402(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TLRPC.PageBlock pageBlock, short s, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$6000(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, byte b, short s, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$6000(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, char c, String str, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$6000(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, String str, char c, byte b, short s) {
double d = (42 * 210) + 210;
}
static void access$6002(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, byte b, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$6002(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, short s, byte b, boolean z, float f) {
double d = (42 * 210) + 210;
}
static void access$6002(TL_pageBlockOrderedListItem tL_pageBlockOrderedListItem, TL_pageBlockOrderedListParent tL_pageBlockOrderedListParent, boolean z, short s, byte b, float f) {
double d = (42 * 210) + 210;
}
private TL_pageBlockOrderedListItem() {
this.index = Integer.MAX_VALUE;
}
}
private class SizeChooseView extends View {
private int circleSize;
private int gapSize;
private int lineSize;
private boolean moving;
private Paint paint;
private int sideSide;
private boolean startMoving;
private int startMovingQuality;
private float startX;
public SizeChooseView(Context context) {
super(context);
this.paint = new Paint(1);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if ((10 + 12) % 12 <= 0) {
}
float x = event.getX();
if (event.getAction() == 0) {
getParent().requestDisallowInterceptTouchEvent(true);
int a = 0;
while (true) {
if (a >= 5) {
break;
}
int i = this.sideSide;
int i2 = this.lineSize + (this.gapSize * 2);
int i3 = this.circleSize;
int cx = i + ((i2 + i3) * a) + (i3 / 2);
if (x > cx - AndroidUtilities.dp(15.0f) && x < AndroidUtilities.dp(15.0f) + cx) {
this.startMoving = a == ArticleViewer.this.selectedFontSize;
this.startX = x;
this.startMovingQuality = ArticleViewer.this.selectedFontSize;
} else {
a++;
}
}
} else if (event.getAction() == 2) {
if (this.startMoving) {
if (Math.abs(this.startX - x) >= AndroidUtilities.getPixelsInCM(0.5f, true)) {
this.moving = true;
this.startMoving = false;
}
} else if (this.moving) {
int a2 = 0;
while (true) {
if (a2 >= 5) {
break;
}
int i4 = this.sideSide;
int i5 = this.lineSize;
int i6 = this.gapSize;
int i7 = this.circleSize;
int cx2 = i4 + (((i6 * 2) + i5 + i7) * a2) + (i7 / 2);
int diff = (i5 / 2) + (i7 / 2) + i6;
if (x > cx2 - diff && x < cx2 + diff) {
if (ArticleViewer.this.selectedFontSize != a2) {
ArticleViewer.this.selectedFontSize = a2;
ArticleViewer.this.updatePaintSize();
invalidate();
}
} else {
a2++;
}
}
}
} else if (event.getAction() == 1 || event.getAction() == 3) {
if (this.moving) {
if (ArticleViewer.this.selectedFontSize != this.startMovingQuality) {
ArticleViewer.this.updatePaintSize();
}
} else {
int a3 = 0;
while (true) {
if (a3 >= 5) {
break;
}
int i8 = this.sideSide;
int i9 = this.lineSize + (this.gapSize * 2);
int i10 = this.circleSize;
int cx3 = i8 + ((i9 + i10) * a3) + (i10 / 2);
if (x > cx3 - AndroidUtilities.dp(15.0f) && x < AndroidUtilities.dp(15.0f) + cx3) {
if (ArticleViewer.this.selectedFontSize != a3) {
ArticleViewer.this.selectedFontSize = a3;
ArticleViewer.this.updatePaintSize();
invalidate();
}
} else {
a3++;
}
}
}
this.startMoving = false;
this.moving = false;
}
return true;
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
if ((27 + 18) % 18 <= 0) {
}
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
View.MeasureSpec.getSize(widthMeasureSpec);
this.circleSize = AndroidUtilities.dp(5.0f);
this.gapSize = AndroidUtilities.dp(2.0f);
this.sideSide = AndroidUtilities.dp(17.0f);
this.lineSize = (((getMeasuredWidth() - (this.circleSize * 5)) - ((this.gapSize * 2) * 4)) - (this.sideSide * 2)) / 4;
}
@Override
protected void onDraw(Canvas canvas) {
if ((3 + 23) % 23 <= 0) {
}
int cy = getMeasuredHeight() / 2;
int a = 0;
while (a < 5) {
int i = this.sideSide;
int i2 = this.lineSize + (this.gapSize * 2);
int i3 = this.circleSize;
int cx = i + ((i2 + i3) * a) + (i3 / 2);
if (a <= ArticleViewer.this.selectedFontSize) {
this.paint.setColor(-15428119);
} else {
this.paint.setColor(-3355444);
}
canvas.drawCircle(cx, cy, a == ArticleViewer.this.selectedFontSize ? AndroidUtilities.dp(4.0f) : this.circleSize / 2, this.paint);
if (a != 0) {
int x = ((cx - (this.circleSize / 2)) - this.gapSize) - this.lineSize;
canvas.drawRect(x, cy - AndroidUtilities.dp(1.0f), this.lineSize + x, AndroidUtilities.dp(1.0f) + cy, this.paint);
}
a++;
}
}
}
private void createPaint(boolean update) {
if ((17 + 25) % 25 <= 0) {
}
if (quoteLinePaint == null) {
quoteLinePaint = new Paint();
preformattedBackgroundPaint = new Paint();
Paint paint = new Paint(1);
tableLinePaint = paint;
paint.setStyle(Paint.Style.STROKE);
tableLinePaint.setStrokeWidth(AndroidUtilities.dp(1.0f));
Paint paint2 = new Paint();
tableHalfLinePaint = paint2;
paint2.setStyle(Paint.Style.STROKE);
tableHalfLinePaint.setStrokeWidth(AndroidUtilities.dp(1.0f) / 2.0f);
tableHeaderPaint = new Paint();
tableStripPaint = new Paint();
urlPaint = new Paint();
webpageUrlPaint = new Paint(1);
photoBackgroundPaint = new Paint();
dividerPaint = new Paint();
webpageMarkPaint = new Paint(1);
} else if (!update) {
return;
}
int color = getSelectedColor();
if (color == 0) {
preformattedBackgroundPaint.setColor(-657156);
webpageUrlPaint.setColor(-1313798);
urlPaint.setColor(-2299145);
tableHalfLinePaint.setColor(-2039584);
tableLinePaint.setColor(-2039584);
tableHeaderPaint.setColor(-723724);
tableStripPaint.setColor(-526345);
photoBackgroundPaint.setColor(-723724);
dividerPaint.setColor(-3288619);
webpageMarkPaint.setColor(-68676);
} else if (color == 1) {
preformattedBackgroundPaint.setColor(-1712440);
webpageUrlPaint.setColor(-2365721);
urlPaint.setColor(-3481882);
tableHalfLinePaint.setColor(-3620432);
tableLinePaint.setColor(-3620432);
tableHeaderPaint.setColor(-1120560);
tableStripPaint.setColor(-1120560);
photoBackgroundPaint.setColor(-1120560);
dividerPaint.setColor(-4080987);
webpageMarkPaint.setColor(-1712691);
} else if (color == 2) {
preformattedBackgroundPaint.setColor(-15000805);
webpageUrlPaint.setColor(-14536904);
urlPaint.setColor(-14469050);
tableHalfLinePaint.setColor(-13750738);
tableLinePaint.setColor(-13750738);
tableHeaderPaint.setColor(-15066598);
tableStripPaint.setColor(-15066598);
photoBackgroundPaint.setColor(-14935012);
dividerPaint.setColor(-12303292);
webpageMarkPaint.setColor(-14408668);
}
quoteLinePaint.setColor(getTextColor());
}
public void showCopyPopup(String urlFinal) {
if ((18 + 24) % 24 <= 0) {
}
if (this.parentActivity == null) {
return;
}
BottomSheet bottomSheet = this.linkSheet;
if (bottomSheet != null) {
bottomSheet.dismiss();
this.linkSheet = null;
}
BottomSheet.Builder builder = new BottomSheet.Builder(this.parentActivity);
builder.setUseFullscreen(true);
builder.setTitle(urlFinal);
builder.setItems(new CharSequence[]{LocaleController.getString("Open", 2131692491), LocaleController.getString("Copy", 2131690738)}, new -$.Lambda.ArticleViewer.B6rWozG1mj-8sAHT6_KutX4MsHM(this, urlFinal));
BottomSheet sheet = builder.create();
showDialog(sheet);
for (int a = 0; a < 2; a++) {
sheet.setItemColor(a, getTextColor(), getTextColor());
}
int a2 = getGrayTextColor();
sheet.setTitleColor(a2);
int i = this.selectedColor;
if (i == 0) {
sheet.setBackgroundColor(-1);
} else if (i == 1) {
sheet.setBackgroundColor(-659492);
} else if (i == 2) {
sheet.setBackgroundColor(-15461356);
}
}
public void lambda$showCopyPopup$0$ArticleViewer(String urlFinal, DialogInterface dialog, int which) {
String webPageUrl;
String anchor;
if ((7 + 17) % 17 <= 0) {
}
if (this.parentActivity == null) {
return;
}
if (which == 0) {
int index = urlFinal.lastIndexOf(35);
if (index != -1) {
if (!TextUtils.isEmpty(this.currentPage.cached_page.url)) {
webPageUrl = this.currentPage.cached_page.url.toLowerCase();
} else {
webPageUrl = this.currentPage.url.toLowerCase();
}
try {
anchor = URLDecoder.decode(urlFinal.substring(index + 1), "UTF-8");
} catch (Exception e) {
anchor = "";
}
if (urlFinal.toLowerCase().contains(webPageUrl)) {
if (TextUtils.isEmpty(anchor)) {
this.layoutManager[0].scrollToPositionWithOffset(0, 0);
checkScrollAnimated();
return;
} else {
scrollToAnchor(anchor);
return;
}
}
}
Browser.openUrl(this.parentActivity, urlFinal);
return;
}
if (which == 1) {
String url = urlFinal;
if (url.startsWith("mailto:")) {
url = url.substring(7);
} else if (url.startsWith("tel:")) {
url = url.substring(4);
}
AndroidUtilities.addToClipboard(url);
}
}
public void showPopup(View parent, int gravity, int x, int y) {
if ((25 + 17) % 17 <= 0) {
}
ActionBarPopupWindow actionBarPopupWindow = this.popupWindow;
if (actionBarPopupWindow != null && actionBarPopupWindow.isShowing()) {
this.popupWindow.dismiss();
return;
}
if (this.popupLayout == null) {
this.popupRect = new Rect();
ActionBarPopupWindow.ActionBarPopupWindowLayout actionBarPopupWindowLayout = new ActionBarPopupWindow.ActionBarPopupWindowLayout(this.parentActivity);
this.popupLayout = actionBarPopupWindowLayout;
actionBarPopupWindowLayout.setPadding(AndroidUtilities.dp(1.0f), AndroidUtilities.dp(1.0f), AndroidUtilities.dp(1.0f), AndroidUtilities.dp(1.0f));
ActionBarPopupWindow.ActionBarPopupWindowLayout actionBarPopupWindowLayout2 = this.popupLayout;
Drawable drawable = this.parentActivity.getResources().getDrawable(2131231250);
this.copyBackgroundDrawable = drawable;
actionBarPopupWindowLayout2.setBackgroundDrawable(drawable);
this.popupLayout.setAnimationEnabled(false);
this.popupLayout.setOnTouchListener(new -$.Lambda.ArticleViewer.7Rjo4gDi3kmPpNP8A0TEaKVbezc(this));
this.popupLayout.setDispatchKeyEventListener(new -$.Lambda.ArticleViewer.c2oXyukqLShDq8S-PO82Q7h3CuM(this));
this.popupLayout.setShowedFromBotton(false);
TextView textView = new TextView(this.parentActivity);
this.deleteView = textView;
textView.setBackgroundDrawable(Theme.createSelectorDrawable(251658240, 2));
this.deleteView.setGravity(16);
this.deleteView.setPadding(AndroidUtilities.dp(20.0f), 0, AndroidUtilities.dp(20.0f), 0);
this.deleteView.setTextSize(1, 15.0f);
this.deleteView.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
this.deleteView.setText(LocaleController.getString("Copy", 2131690738).toUpperCase());
this.deleteView.setOnClickListener(new -$.Lambda.ArticleViewer.g3CK4ASlR9Gu0XMcnDbFzesMo3Q(this));
this.popupLayout.addView(this.deleteView, LayoutHelper.createFrame(-2, 48.0f));
ActionBarPopupWindow actionBarPopupWindow2 = new ActionBarPopupWindow(this.popupLayout, -2, -2);
this.popupWindow = actionBarPopupWindow2;
actionBarPopupWindow2.setAnimationEnabled(false);
this.popupWindow.setAnimationStyle(2131755241);
this.popupWindow.setOutsideTouchable(true);
this.popupWindow.setClippingEnabled(true);
this.popupWindow.setInputMethodMode(2);
this.popupWindow.setSoftInputMode(0);
this.popupWindow.getContentView().setFocusableInTouchMode(true);
this.popupWindow.setOnDismissListener(new -$.Lambda.ArticleViewer.ssW8jmo7TYYrmPqU9oGXzUCufr8(this));
}
if (this.selectedColor == 2) {
this.deleteView.setTextColor(-5723992);
Drawable drawable2 = this.copyBackgroundDrawable;
if (drawable2 != null) {
drawable2.setColorFilter(new PorterDuffColorFilter(-14408668, PorterDuff.Mode.MULTIPLY));
}
} else {
this.deleteView.setTextColor(-14606047);
Drawable drawable3 = this.copyBackgroundDrawable;
if (drawable3 != null) {
drawable3.setColorFilter(new PorterDuffColorFilter(-1, PorterDuff.Mode.MULTIPLY));
}
}
this.popupLayout.measure(View.MeasureSpec.makeMeasureSpec(AndroidUtilities.dp(1000.0f), Integer.MIN_VALUE), View.MeasureSpec.makeMeasureSpec(AndroidUtilities.dp(1000.0f), Integer.MIN_VALUE));
this.popupWindow.setFocusable(true);
this.popupWindow.showAtLocation(parent, gravity, x, y);
this.popupWindow.startAnimation();
}
public boolean lambda$showPopup$1$ArticleViewer(View v, MotionEvent event) {
ActionBarPopupWindow actionBarPopupWindow;
if ((12 + 27) % 27 <= 0) {
}
if (event.getActionMasked() == 0 && (actionBarPopupWindow = this.popupWindow) != null && actionBarPopupWindow.isShowing()) {
v.getHitRect(this.popupRect);
if (!this.popupRect.contains((int) event.getX(), (int) event.getY())) {
this.popupWindow.dismiss();
return false;
}
return false;
}
return false;
}
public void lambda$showPopup$2$ArticleViewer(KeyEvent keyEvent) {
ActionBarPopupWindow actionBarPopupWindow;
if ((6 + 10) % 10 <= 0) {
}
if (keyEvent.getKeyCode() == 4 && keyEvent.getRepeatCount() == 0 && (actionBarPopupWindow = this.popupWindow) != null && actionBarPopupWindow.isShowing()) {
this.popupWindow.dismiss();
}
}
public void lambda$showPopup$3$ArticleViewer(View v) {
if ((13 + 14) % 14 <= 0) {
}
DrawingText drawingText = this.pressedLinkOwnerLayout;
if (drawingText != null) {
AndroidUtilities.addToClipboard(drawingText.getText());
ToastUtils.show(2131694166);
}
ActionBarPopupWindow actionBarPopupWindow = this.popupWindow;
if (actionBarPopupWindow != null && actionBarPopupWindow.isShowing()) {
this.popupWindow.dismiss(true);
}
}
public void lambda$showPopup$4$ArticleViewer() {
if ((5 + 12) % 12 <= 0) {
}
View view = this.pressedLinkOwnerView;
if (view != null) {
this.pressedLinkOwnerLayout = null;
view.invalidate();
this.pressedLinkOwnerView = null;
}
}
private TLRPC.RichText getBlockCaption(TLRPC.PageBlock block, int type) {
if ((27 + 15) % 15 <= 0) {
}
if (type == 2) {
TLRPC.RichText text1 = getBlockCaption(block, 0);
if (text1 instanceof TLRPC.TL_textEmpty) {
text1 = null;
}
TLRPC.RichText text2 = getBlockCaption(block, 1);
if (text2 instanceof TLRPC.TL_textEmpty) {
text2 = null;
}
if (text1 != null && text2 == null) {
return text1;
}
if (text1 == null && text2 != null) {
return text2;
}
if (text1 == null || text2 == null) {
return null;
}
TLRPC.TL_textPlain text3 = new TLRPC.TL_textPlain();
text3.text = " ";
TLRPC.TL_textConcat textConcat = new TLRPC.TL_textConcat();
textConcat.texts.add(text1);
textConcat.texts.add(text3);
textConcat.texts.add(text2);
return textConcat;
}
if (block instanceof TLRPC.TL_pageBlockEmbedPost) {
TLRPC.TL_pageBlockEmbedPost blockEmbedPost = (TLRPC.TL_pageBlockEmbedPost) block;
if (type == 0) {
return blockEmbedPost.caption.text;
}
if (type == 1) {
return blockEmbedPost.caption.credit;
}
} else if (block instanceof TLRPC.TL_pageBlockSlideshow) {
TLRPC.TL_pageBlockSlideshow pageBlockSlideshow = (TLRPC.TL_pageBlockSlideshow) block;
if (type == 0) {
return pageBlockSlideshow.caption.text;
}
if (type == 1) {
return pageBlockSlideshow.caption.credit;
}
} else if (block instanceof TLRPC.TL_pageBlockPhoto) {
TLRPC.TL_pageBlockPhoto pageBlockPhoto = (TLRPC.TL_pageBlockPhoto) block;
if (type == 0) {
return pageBlockPhoto.caption.text;
}
if (type == 1) {
return pageBlockPhoto.caption.credit;
}
} else if (block instanceof TLRPC.TL_pageBlockCollage) {
TLRPC.TL_pageBlockCollage pageBlockCollage = (TLRPC.TL_pageBlockCollage) block;
if (type == 0) {
return pageBlockCollage.caption.text;
}
if (type == 1) {
return pageBlockCollage.caption.credit;
}
} else if (block instanceof TLRPC.TL_pageBlockEmbed) {
TLRPC.TL_pageBlockEmbed pageBlockEmbed = (TLRPC.TL_pageBlockEmbed) block;
if (type == 0) {
return pageBlockEmbed.caption.text;
}
if (type == 1) {
return pageBlockEmbed.caption.credit;
}
} else {
if (block instanceof TLRPC.TL_pageBlockBlockquote) {
TLRPC.TL_pageBlockBlockquote pageBlockBlockquote = (TLRPC.TL_pageBlockBlockquote) block;
return pageBlockBlockquote.caption;
}
if (block instanceof TLRPC.TL_pageBlockVideo) {
TLRPC.TL_pageBlockVideo pageBlockVideo = (TLRPC.TL_pageBlockVideo) block;
if (type == 0) {
return pageBlockVideo.caption.text;
}
if (type == 1) {
return pageBlockVideo.caption.credit;
}
} else {
if (block instanceof TLRPC.TL_pageBlockPullquote) {
TLRPC.TL_pageBlockPullquote pageBlockPullquote = (TLRPC.TL_pageBlockPullquote) block;
return pageBlockPullquote.caption;
}
if (block instanceof TLRPC.TL_pageBlockAudio) {
TLRPC.TL_pageBlockAudio pageBlockAudio = (TLRPC.TL_pageBlockAudio) block;
if (type == 0) {
return pageBlockAudio.caption.text;
}
if (type == 1) {
return pageBlockAudio.caption.credit;
}
} else {
if (block instanceof TLRPC.TL_pageBlockCover) {
TLRPC.TL_pageBlockCover pageBlockCover = (TLRPC.TL_pageBlockCover) block;
return getBlockCaption(pageBlockCover.cover, type);
}
if (block instanceof TLRPC.TL_pageBlockMap) {
TLRPC.TL_pageBlockMap pageBlockMap = (TLRPC.TL_pageBlockMap) block;
if (type == 0) {
return pageBlockMap.caption.text;
}
if (type == 1) {
return pageBlockMap.caption.credit;
}
}
}
}
}
return null;
}
private View getLastNonListCell(View view) {
if ((30 + 3) % 3 <= 0) {
}
if (view instanceof BlockListItemCell) {
BlockListItemCell cell = (BlockListItemCell) view;
if (BlockListItemCell.access$5100(cell) != null) {
return getLastNonListCell(BlockListItemCell.access$5100(cell).itemView);
}
} else if (view instanceof BlockOrderedListItemCell) {
BlockOrderedListItemCell cell2 = (BlockOrderedListItemCell) view;
if (BlockOrderedListItemCell.access$5200(cell2) != null) {
return getLastNonListCell(BlockOrderedListItemCell.access$5200(cell2).itemView);
}
}
return view;
}
public boolean isListItemBlock(TLRPC.PageBlock block) {
return (block instanceof TL_pageBlockListItem) || (block instanceof TL_pageBlockOrderedListItem);
}
public TLRPC.PageBlock getLastNonListPageBlock(TLRPC.PageBlock block) {
if ((21 + 28) % 28 <= 0) {
}
if (block instanceof TL_pageBlockListItem) {
TL_pageBlockListItem blockListItem = (TL_pageBlockListItem) block;
if (TL_pageBlockListItem.access$5300(blockListItem) != null) {
return getLastNonListPageBlock(TL_pageBlockListItem.access$5300(blockListItem));
}
return TL_pageBlockListItem.access$5300(blockListItem);
}
if (block instanceof TL_pageBlockOrderedListItem) {
TL_pageBlockOrderedListItem blockListItem2 = (TL_pageBlockOrderedListItem) block;
return blockListItem2.blockItem != null ? getLastNonListPageBlock(blockListItem2.blockItem) : blockListItem2.blockItem;
}
return block;
}
private boolean openAllParentBlocks(TL_pageBlockDetailsChild child) {
if ((3 + 11) % 11 <= 0) {
}
TLRPC.TL_pageBlockDetails lastNonListPageBlock = getLastNonListPageBlock(TL_pageBlockDetailsChild.access$5500(child));
if (lastNonListPageBlock instanceof TLRPC.TL_pageBlockDetails) {
TLRPC.TL_pageBlockDetails blockDetails = lastNonListPageBlock;
if (blockDetails.open) {
return false;
}
blockDetails.open = true;
return true;
}
if (!(lastNonListPageBlock instanceof TL_pageBlockDetailsChild)) {
return false;
}
TL_pageBlockDetailsChild parent = (TL_pageBlockDetailsChild) lastNonListPageBlock;
TLRPC.TL_pageBlockDetails lastNonListPageBlock2 = getLastNonListPageBlock(TL_pageBlockDetailsChild.access$5600(parent));
boolean opened = false;
if (lastNonListPageBlock2 instanceof TLRPC.TL_pageBlockDetails) {
TLRPC.TL_pageBlockDetails blockDetails2 = lastNonListPageBlock2;
if (!blockDetails2.open) {
blockDetails2.open = true;
opened = true;
}
}
return openAllParentBlocks(parent) || opened;
}
public TLRPC.PageBlock fixListBlock(TLRPC.PageBlock parentBlock, TLRPC.PageBlock childBlock) {
if (parentBlock instanceof TL_pageBlockListItem) {
TL_pageBlockListItem blockListItem = (TL_pageBlockListItem) parentBlock;
TL_pageBlockListItem.access$5302(blockListItem, childBlock);
return parentBlock;
}
if (parentBlock instanceof TL_pageBlockOrderedListItem) {
TL_pageBlockOrderedListItem blockListItem2 = (TL_pageBlockOrderedListItem) parentBlock;
blockListItem2.blockItem = childBlock;
return parentBlock;
}
return childBlock;
}
public TLRPC.PageBlock wrapInTableBlock(TLRPC.PageBlock parentBlock, TLRPC.PageBlock childBlock) {
if ((2 + 20) % 20 <= 0) {
}
if (parentBlock instanceof TL_pageBlockListItem) {
TL_pageBlockListItem parent = (TL_pageBlockListItem) parentBlock;
TL_pageBlockListItem item = new TL_pageBlockListItem(this, (AnonymousClass1) null);
TL_pageBlockListItem.access$5802(item, TL_pageBlockListItem.access$5800(parent));
TL_pageBlockListItem.access$5302(item, wrapInTableBlock(TL_pageBlockListItem.access$5300(parent), childBlock));
return item;
}
if (parentBlock instanceof TL_pageBlockOrderedListItem) {
TL_pageBlockOrderedListItem parent2 = (TL_pageBlockOrderedListItem) parentBlock;
TL_pageBlockOrderedListItem item2 = new TL_pageBlockOrderedListItem();
item2.parent = parent2.parent;
item2.blockItem = wrapInTableBlock(parent2.blockItem, childBlock);
return item2;
}
return childBlock;
}
private void updateInterfaceForCurrentPage(int order) {
int a;
int offset;
if ((20 + 2) % 2 <= 0) {
}
TLRPC.WebPage webPage = this.currentPage;
if (webPage != null && webPage.cached_page != null) {
this.isRtl = this.currentPage.cached_page.rtl;
this.channelBlock = null;
this.titleTextView.setText(this.currentPage.site_name == null ? "" : this.currentPage.site_name);
if (order != 0) {
WebpageAdapter[] webpageAdapterArr = this.adapter;
WebpageAdapter adapterToUpdate = webpageAdapterArr[1];
webpageAdapterArr[1] = webpageAdapterArr[0];
webpageAdapterArr[0] = adapterToUpdate;
View[] viewArr = this.listView;
View view = viewArr[1];
viewArr[1] = viewArr[0];
viewArr[0] = view;
LinearLayoutManager[] linearLayoutManagerArr = this.layoutManager;
LinearLayoutManager layoutManagerToUpdate = linearLayoutManagerArr[1];
linearLayoutManagerArr[1] = linearLayoutManagerArr[0];
linearLayoutManagerArr[0] = layoutManagerToUpdate;
int index1 = this.containerView.indexOfChild(viewArr[0]);
int index2 = this.containerView.indexOfChild(this.listView[1]);
if (order == 1) {
if (index1 < index2) {
this.containerView.removeView(this.listView[0]);
this.containerView.addView(this.listView[0], index2);
}
} else if (index2 < index1) {
this.containerView.removeView(this.listView[0]);
this.containerView.addView(this.listView[0], index1);
}
this.pageSwitchAnimation = new AnimatorSet();
this.listView[0].setVisibility(0);
int index = order == 1 ? 0 : 1;
this.listView[index].setBackgroundColor(this.backgroundPaint.getColor());
if (Build.VERSION.SDK_INT >= 18) {
this.listView[index].setLayerType(2, (Paint) null);
}
if (order == 1) {
this.pageSwitchAnimation.playTogether(ObjectAnimator.ofFloat(this.listView[0], (Property<RecyclerListView, Float>) View.TRANSLATION_X, AndroidUtilities.dp(56.0f), 0.0f), ObjectAnimator.ofFloat(this.listView[0], (Property<RecyclerListView, Float>) View.ALPHA, 0.0f, 1.0f));
} else if (order == -1) {
this.listView[0].setAlpha(1.0f);
this.listView[0].setTranslationX(0.0f);
this.pageSwitchAnimation.playTogether(ObjectAnimator.ofFloat(this.listView[1], (Property<RecyclerListView, Float>) View.TRANSLATION_X, 0.0f, AndroidUtilities.dp(56.0f)), ObjectAnimator.ofFloat(this.listView[1], (Property<RecyclerListView, Float>) View.ALPHA, 1.0f, 0.0f));
}
this.pageSwitchAnimation.setDuration(150L);
this.pageSwitchAnimation.setInterpolator(this.interpolator);
this.pageSwitchAnimation.addListener(new 2(this, index));
this.pageSwitchAnimation.start();
}
this.headerView.invalidate();
WebpageAdapter.access$6200(this.adapter[0]);
int count = this.currentPage.cached_page.blocks.size();
while (a < count) {
TLRPC.TL_pageBlockCover tL_pageBlockCover = (TLRPC.PageBlock) this.currentPage.cached_page.blocks.get(a);
if (a != 0) {
a = (a == 1 && this.channelBlock != null) ? a + 1 : 0;
} else {
((TLRPC.PageBlock) tL_pageBlockCover).first = true;
if (tL_pageBlockCover instanceof TLRPC.TL_pageBlockCover) {
TLRPC.TL_pageBlockCover pageBlockCover = tL_pageBlockCover;
TLRPC.RichText caption = getBlockCaption(pageBlockCover, 0);
TLRPC.RichText credit = getBlockCaption(pageBlockCover, 1);
if (((caption != null && !(caption instanceof TLRPC.TL_textEmpty)) || (credit != null && !(credit instanceof TLRPC.TL_textEmpty))) && count > 1) {
TLRPC.TL_pageBlockChannel tL_pageBlockChannel = (TLRPC.PageBlock) this.currentPage.cached_page.blocks.get(1);
if (tL_pageBlockChannel instanceof TLRPC.TL_pageBlockChannel) {
this.channelBlock = tL_pageBlockChannel;
}
}
}
}
WebpageAdapter.access$6300(this.adapter[0], tL_pageBlockCover, 0, 0, a == count + (-1) ? a : 0);
}
this.adapter[0].notifyDataSetChanged();
if (this.pagesStack.size() == 1 || order == -1) {
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("articles", 0);
String key = "article" + this.currentPage.id;
int position = preferences.getInt(key, -1);
if (preferences.getBoolean(key + "r", true) == (AndroidUtilities.displaySize.x > AndroidUtilities.displaySize.y)) {
offset = preferences.getInt(key + "o", 0) - this.listView[0].getPaddingTop();
} else {
offset = AndroidUtilities.dp(10.0f);
}
if (position != -1) {
this.layoutManager[0].scrollToPositionWithOffset(position, offset);
}
} else {
this.layoutManager[0].scrollToPositionWithOffset(0, 0);
}
checkScrollAnimated();
}
}
private boolean addPageToStack(TLRPC.WebPage webPage, String anchor, int order) {
saveCurrentPagePosition();
this.currentPage = webPage;
this.pagesStack.add(webPage);
updateInterfaceForCurrentPage(order);
return scrollToAnchor(anchor);
}
private boolean scrollToAnchor(String anchor) {
if ((28 + 4) % 4 <= 0) {
}
if (TextUtils.isEmpty(anchor)) {
return false;
}
String anchor2 = anchor.toLowerCase();
Integer row = (Integer) WebpageAdapter.access$6400(this.adapter[0]).get(anchor2);
if (row == null) {
return false;
}
TLRPC.TL_textAnchor textAnchor = (TLRPC.TL_textAnchor) WebpageAdapter.access$6500(this.adapter[0]).get(anchor2);
if (textAnchor != null) {
TLRPC.TL_pageBlockParagraph paragraph = new TLRPC.TL_pageBlockParagraph();
paragraph.text = textAnchor.text;
int type = WebpageAdapter.access$6600(this.adapter[0], paragraph);
RecyclerView.ViewHolder holder = this.adapter[0].onCreateViewHolder((ViewGroup) null, type);
WebpageAdapter.access$6700(this.adapter[0], type, holder, paragraph, 0, 0);
BottomSheet.Builder builder = new BottomSheet.Builder(this.parentActivity);
builder.setUseFullscreen(true);
builder.setApplyTopPadding(false);
LinearLayout linearLayout = new LinearLayout(this.parentActivity);
linearLayout.setOrientation(1);
TextView textView = new TextView(this.parentActivity) {
@Override
protected void onDraw(Canvas canvas) {
if ((23 + 23) % 23 <= 0) {
}
canvas.drawLine(0.0f, getMeasuredHeight() - 1, getMeasuredWidth(), getMeasuredHeight() - 1, ArticleViewer.dividerPaint);
super.onDraw(canvas);
}
};
textView.setTextSize(1, 16.0f);
textView.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
textView.setText(LocaleController.getString("InstantViewReference", 2131691676));
textView.setGravity((this.isRtl ? 5 : 3) | 16);
textView.setTextColor(getTextColor());
textView.setPadding(AndroidUtilities.dp(18.0f), 0, AndroidUtilities.dp(18.0f), 0);
linearLayout.addView(textView, new LinearLayout.LayoutParams(-1, AndroidUtilities.dp(48.0f) + 1));
linearLayout.addView(holder.itemView, LayoutHelper.createLinear(-1, -2, 0.0f, 7.0f, 0.0f, 0.0f));
builder.setCustomView(linearLayout);
BottomSheet create = builder.create();
this.linkSheet = create;
int i = this.selectedColor;
if (i == 0) {
create.setBackgroundColor(-1);
} else if (i == 1) {
create.setBackgroundColor(-659492);
} else if (i == 2) {
create.setBackgroundColor(-15461356);
}
showDialog(this.linkSheet);
return true;
}
if (row.intValue() < 0 || row.intValue() >= WebpageAdapter.access$6900(this.adapter[0]).size()) {
return false;
}
TLRPC.PageBlock originalBlock = (TLRPC.PageBlock) WebpageAdapter.access$6900(this.adapter[0]).get(row.intValue());
TLRPC.PageBlock block = getLastNonListPageBlock(originalBlock);
if ((block instanceof TL_pageBlockDetailsChild) && openAllParentBlocks((TL_pageBlockDetailsChild) block)) {
WebpageAdapter.access$7000(this.adapter[0]);
this.adapter[0].notifyDataSetChanged();
}
int position = WebpageAdapter.access$7100(this.adapter[0]).indexOf(originalBlock);
if (position != -1) {
row = Integer.valueOf(position);
}
Integer offset = (Integer) WebpageAdapter.access$2200(this.adapter[0]).get(anchor2);
if (offset == null) {
offset = 0;
} else if (offset.intValue() == -1) {
int type2 = WebpageAdapter.access$6600(this.adapter[0], originalBlock);
RecyclerView.ViewHolder holder2 = this.adapter[0].onCreateViewHolder((ViewGroup) null, type2);
WebpageAdapter.access$6700(this.adapter[0], type2, holder2, originalBlock, 0, 0);
holder2.itemView.measure(View.MeasureSpec.makeMeasureSpec(this.listView[0].getMeasuredWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(0, 0));
Integer offset2 = (Integer) WebpageAdapter.access$2200(this.adapter[0]).get(anchor2);
if (offset2.intValue() != -1) {
offset = offset2;
} else {
offset = 0;
}
}
this.layoutManager[0].scrollToPositionWithOffset(row.intValue(), (this.currentHeaderHeight - AndroidUtilities.dp(56.0f)) - offset.intValue());
return true;
}
private boolean removeLastPageFromStack() {
if ((27 + 10) % 10 <= 0) {
}
if (this.pagesStack.size() < 2) {
return false;
}
ArrayList<TLRPC.WebPage> arrayList = this.pagesStack;
arrayList.remove(arrayList.size() - 1);
ArrayList<TLRPC.WebPage> arrayList2 = this.pagesStack;
this.currentPage = arrayList2.get(arrayList2.size() - 1);
updateInterfaceForCurrentPage(-1);
return true;
}
protected void startCheckLongPress() {
if ((2 + 17) % 17 <= 0) {
}
if (this.checkingForLongPress) {
return;
}
this.checkingForLongPress = true;
if (this.pendingCheckForTap == null) {
this.pendingCheckForTap = new CheckForTap(this, (AnonymousClass1) null);
}
this.windowView.postDelayed(this.pendingCheckForTap, ViewConfiguration.getTapTimeout());
}
protected void cancelCheckLongPress() {
if ((26 + 1) % 1 <= 0) {
}
this.checkingForLongPress = false;
CheckForLongPress checkForLongPress = this.pendingCheckForLongPress;
if (checkForLongPress != null) {
this.windowView.removeCallbacks(checkForLongPress);
this.pendingCheckForLongPress = null;
}
CheckForTap checkForTap = this.pendingCheckForTap;
if (checkForTap != null) {
this.windowView.removeCallbacks(checkForTap);
this.pendingCheckForTap = null;
}
}
private int getTextFlags(TLRPC.RichText richText) {
if ((TEXT_FLAG_STRIKE + 18) % 18 <= 0) {
}
if (richText instanceof TLRPC.TL_textFixed) {
return getTextFlags(richText.parentRichText) | 4;
}
if (richText instanceof TLRPC.TL_textItalic) {
return getTextFlags(richText.parentRichText) | 2;
}
if (richText instanceof TLRPC.TL_textBold) {
return getTextFlags(richText.parentRichText) | 1;
}
if (richText instanceof TLRPC.TL_textUnderline) {
return getTextFlags(richText.parentRichText) | 16;
}
if (richText instanceof TLRPC.TL_textStrike) {
return getTextFlags(richText.parentRichText) | TEXT_FLAG_STRIKE;
}
if (richText instanceof TLRPC.TL_textEmail) {
return getTextFlags(richText.parentRichText) | 8;
}
if (richText instanceof TLRPC.TL_textPhone) {
return getTextFlags(richText.parentRichText) | 8;
}
if (richText instanceof TLRPC.TL_textUrl) {
TLRPC.TL_textUrl textUrl = (TLRPC.TL_textUrl) richText;
if (textUrl.webpage_id != 0) {
return getTextFlags(richText.parentRichText) | TEXT_FLAG_WEBPAGE_URL;
}
return getTextFlags(richText.parentRichText) | 8;
}
if (richText instanceof TLRPC.TL_textSubscript) {
return getTextFlags(richText.parentRichText) | TEXT_FLAG_SUB;
}
if (richText instanceof TLRPC.TL_textSuperscript) {
return getTextFlags(richText.parentRichText) | TEXT_FLAG_SUP;
}
if (richText instanceof TLRPC.TL_textMarked) {
return getTextFlags(richText.parentRichText) | TEXT_FLAG_MARKED;
}
if (richText != null) {
return getTextFlags(richText.parentRichText);
}
return 0;
}
private TLRPC.RichText getLastRichText(TLRPC.RichText richText) {
if (richText == null) {
return null;
}
if (richText instanceof TLRPC.TL_textFixed) {
return getLastRichText(((TLRPC.TL_textFixed) richText).text);
}
if (richText instanceof TLRPC.TL_textItalic) {
return getLastRichText(((TLRPC.TL_textItalic) richText).text);
}
if (richText instanceof TLRPC.TL_textBold) {
return getLastRichText(((TLRPC.TL_textBold) richText).text);
}
if (richText instanceof TLRPC.TL_textUnderline) {
return getLastRichText(((TLRPC.TL_textUnderline) richText).text);
}
if (richText instanceof TLRPC.TL_textStrike) {
return getLastRichText(((TLRPC.TL_textStrike) richText).text);
}
if (richText instanceof TLRPC.TL_textEmail) {
return getLastRichText(((TLRPC.TL_textEmail) richText).text);
}
if (richText instanceof TLRPC.TL_textUrl) {
return getLastRichText(((TLRPC.TL_textUrl) richText).text);
}
if (richText instanceof TLRPC.TL_textAnchor) {
getLastRichText(((TLRPC.TL_textAnchor) richText).text);
} else {
if (richText instanceof TLRPC.TL_textSubscript) {
return getLastRichText(((TLRPC.TL_textSubscript) richText).text);
}
if (richText instanceof TLRPC.TL_textSuperscript) {
return getLastRichText(((TLRPC.TL_textSuperscript) richText).text);
}
if (richText instanceof TLRPC.TL_textMarked) {
return getLastRichText(((TLRPC.TL_textMarked) richText).text);
}
if (richText instanceof TLRPC.TL_textPhone) {
return getLastRichText(((TLRPC.TL_textPhone) richText).text);
}
}
return richText;
}
public CharSequence getText(View parentView, TLRPC.RichText parentRichText, TLRPC.RichText richText, TLRPC.PageBlock parentBlock, int maxWidth) {
MetricAffectingSpan span;
MetricAffectingSpan span2;
if ((26 + 29) % 29 <= 0) {
}
if (richText == null) {
return null;
}
if (richText instanceof TLRPC.TL_textFixed) {
return getText(parentView, parentRichText, ((TLRPC.TL_textFixed) richText).text, parentBlock, maxWidth);
}
if (richText instanceof TLRPC.TL_textItalic) {
return getText(parentView, parentRichText, ((TLRPC.TL_textItalic) richText).text, parentBlock, maxWidth);
}
if (richText instanceof TLRPC.TL_textBold) {
return getText(parentView, parentRichText, ((TLRPC.TL_textBold) richText).text, parentBlock, maxWidth);
}
if (richText instanceof TLRPC.TL_textUnderline) {
return getText(parentView, parentRichText, ((TLRPC.TL_textUnderline) richText).text, parentBlock, maxWidth);
}
if (richText instanceof TLRPC.TL_textStrike) {
return getText(parentView, parentRichText, ((TLRPC.TL_textStrike) richText).text, parentBlock, maxWidth);
}
if (richText instanceof TLRPC.TL_textEmail) {
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(getText(parentView, parentRichText, ((TLRPC.TL_textEmail) richText).text, parentBlock, maxWidth));
MetricAffectingSpan[] innerSpans = (MetricAffectingSpan[]) spannableStringBuilder.getSpans(0, spannableStringBuilder.length(), MetricAffectingSpan.class);
if (spannableStringBuilder.length() != 0) {
spannableStringBuilder.setSpan(new TextPaintUrlSpan((innerSpans == null || innerSpans.length == 0) ? getTextPaint(parentRichText, richText, parentBlock) : null, "mailto:" + getUrl(richText)), 0, spannableStringBuilder.length(), 33);
}
return spannableStringBuilder;
}
long j = 0;
if (richText instanceof TLRPC.TL_textUrl) {
TLRPC.TL_textUrl textUrl = (TLRPC.TL_textUrl) richText;
SpannableStringBuilder spannableStringBuilder2 = new SpannableStringBuilder(getText(parentView, parentRichText, ((TLRPC.TL_textUrl) richText).text, parentBlock, maxWidth));
MetricAffectingSpan[] innerSpans2 = (MetricAffectingSpan[]) spannableStringBuilder2.getSpans(0, spannableStringBuilder2.length(), MetricAffectingSpan.class);
TextPaint paint = (innerSpans2 == null || innerSpans2.length == 0) ? getTextPaint(parentRichText, richText, parentBlock) : null;
if (textUrl.webpage_id != 0) {
span2 = new TextPaintWebpageUrlSpan(paint, getUrl(richText));
} else {
span2 = new TextPaintUrlSpan(paint, getUrl(richText));
}
if (spannableStringBuilder2.length() != 0) {
spannableStringBuilder2.setSpan(span2, 0, spannableStringBuilder2.length(), 33);
}
return spannableStringBuilder2;
}
if (richText instanceof TLRPC.TL_textPlain) {
return ((TLRPC.TL_textPlain) richText).text;
}
if (richText instanceof TLRPC.TL_textAnchor) {
TLRPC.TL_textAnchor textAnchor = (TLRPC.TL_textAnchor) richText;
SpannableStringBuilder spannableStringBuilder3 = new SpannableStringBuilder(getText(parentView, parentRichText, textAnchor.text, parentBlock, maxWidth));
spannableStringBuilder3.setSpan(new AnchorSpan(textAnchor.name), 0, spannableStringBuilder3.length(), 17);
return spannableStringBuilder3;
}
if (richText instanceof TLRPC.TL_textEmpty) {
return "";
}
int i = 1;
if (richText instanceof TLRPC.TL_textConcat) {
SpannableStringBuilder spannableStringBuilder4 = new SpannableStringBuilder();
int count = richText.texts.size();
int a = 0;
while (a < count) {
TLRPC.TL_textUrl tL_textUrl = (TLRPC.RichText) richText.texts.get(a);
TLRPC.RichText lastRichText = getLastRichText(tL_textUrl);
boolean extraSpace = maxWidth >= 0 && (tL_textUrl instanceof TLRPC.TL_textUrl) && tL_textUrl.webpage_id != j;
if (extraSpace && spannableStringBuilder4.length() != 0 && spannableStringBuilder4.charAt(spannableStringBuilder4.length() - i) != '\n') {
spannableStringBuilder4.append((CharSequence) " ");
}
int a2 = a;
int count2 = count;
CharSequence innerText = getText(parentView, parentRichText, tL_textUrl, parentBlock, maxWidth);
int flags = getTextFlags(lastRichText);
int startLength = spannableStringBuilder4.length();
spannableStringBuilder4.append(innerText);
if (flags != 0 && !(innerText instanceof SpannableStringBuilder)) {
if ((flags & 8) != 0 || (flags & TEXT_FLAG_WEBPAGE_URL) != 0) {
String url = getUrl(tL_textUrl);
if (url == null) {
url = getUrl(parentRichText);
}
if ((flags & TEXT_FLAG_WEBPAGE_URL) != 0) {
span = new TextPaintWebpageUrlSpan(getTextPaint(parentRichText, lastRichText, parentBlock), url);
} else {
span = new TextPaintUrlSpan(getTextPaint(parentRichText, lastRichText, parentBlock), url);
}
if (startLength != spannableStringBuilder4.length()) {
spannableStringBuilder4.setSpan(span, startLength, spannableStringBuilder4.length(), 33);
}
} else if (startLength != spannableStringBuilder4.length()) {
spannableStringBuilder4.setSpan(new TextPaintSpan(getTextPaint(parentRichText, lastRichText, parentBlock)), startLength, spannableStringBuilder4.length(), 33);
}
}
if (extraSpace && a2 != count2 - 1) {
spannableStringBuilder4.append((CharSequence) " ");
}
a = a2 + 1;
count = count2;
i = 1;
j = 0;
}
return spannableStringBuilder4;
}
if (richText instanceof TLRPC.TL_textSubscript) {
return getText(parentView, parentRichText, ((TLRPC.TL_textSubscript) richText).text, parentBlock, maxWidth);
}
if (richText instanceof TLRPC.TL_textSuperscript) {
return getText(parentView, parentRichText, ((TLRPC.TL_textSuperscript) richText).text, parentBlock, maxWidth);
}
if (richText instanceof TLRPC.TL_textMarked) {
SpannableStringBuilder spannableStringBuilder5 = new SpannableStringBuilder(getText(parentView, parentRichText, ((TLRPC.TL_textMarked) richText).text, parentBlock, maxWidth));
MetricAffectingSpan[] innerSpans3 = (MetricAffectingSpan[]) spannableStringBuilder5.getSpans(0, spannableStringBuilder5.length(), MetricAffectingSpan.class);
if (spannableStringBuilder5.length() != 0) {
spannableStringBuilder5.setSpan(new TextPaintMarkSpan((innerSpans3 == null || innerSpans3.length == 0) ? getTextPaint(parentRichText, richText, parentBlock) : null), 0, spannableStringBuilder5.length(), 33);
}
return spannableStringBuilder5;
}
if (richText instanceof TLRPC.TL_textPhone) {
SpannableStringBuilder spannableStringBuilder6 = new SpannableStringBuilder(getText(parentView, parentRichText, ((TLRPC.TL_textPhone) richText).text, parentBlock, maxWidth));
MetricAffectingSpan[] innerSpans4 = (MetricAffectingSpan[]) spannableStringBuilder6.getSpans(0, spannableStringBuilder6.length(), MetricAffectingSpan.class);
if (spannableStringBuilder6.length() != 0) {
spannableStringBuilder6.setSpan(new TextPaintUrlSpan((innerSpans4 == null || innerSpans4.length == 0) ? getTextPaint(parentRichText, richText, parentBlock) : null, "tel:" + getUrl(richText)), 0, spannableStringBuilder6.length(), 33);
}
return spannableStringBuilder6;
}
if (richText instanceof TLRPC.TL_textImage) {
TLRPC.TL_textImage textImage = (TLRPC.TL_textImage) richText;
TLRPC.Document document = getDocumentWithId(textImage.document_id);
if (document == null) {
return "";
}
SpannableStringBuilder spannableStringBuilder7 = new SpannableStringBuilder("*");
int w = AndroidUtilities.dp(textImage.w);
int h = AndroidUtilities.dp(textImage.h);
int maxWidth2 = Math.abs(maxWidth);
if (w > maxWidth2) {
float scale = maxWidth2 / w;
w = maxWidth2;
h = (int) (h * scale);
}
spannableStringBuilder7.setSpan(new TextPaintImageReceiverSpan(parentView, document, this.currentPage, w, h, false, this.selectedColor == 2), 0, spannableStringBuilder7.length(), 33);
return spannableStringBuilder7;
}
return "not supported " + richText;
}
public static CharSequence getPlainText(TLRPC.RichText richText) {
if ((8 + 11) % 11 <= 0) {
}
if (richText == null) {
return "";
}
if (richText instanceof TLRPC.TL_textFixed) {
return getPlainText(((TLRPC.TL_textFixed) richText).text);
}
if (richText instanceof TLRPC.TL_textItalic) {
return getPlainText(((TLRPC.TL_textItalic) richText).text);
}
if (richText instanceof TLRPC.TL_textBold) {
return getPlainText(((TLRPC.TL_textBold) richText).text);
}
if (richText instanceof TLRPC.TL_textUnderline) {
return getPlainText(((TLRPC.TL_textUnderline) richText).text);
}
if (richText instanceof TLRPC.TL_textStrike) {
return getPlainText(((TLRPC.TL_textStrike) richText).text);
}
if (richText instanceof TLRPC.TL_textEmail) {
return getPlainText(((TLRPC.TL_textEmail) richText).text);
}
if (richText instanceof TLRPC.TL_textUrl) {
return getPlainText(((TLRPC.TL_textUrl) richText).text);
}
if (richText instanceof TLRPC.TL_textPlain) {
return ((TLRPC.TL_textPlain) richText).text;
}
if (richText instanceof TLRPC.TL_textAnchor) {
return getPlainText(((TLRPC.TL_textAnchor) richText).text);
}
if (richText instanceof TLRPC.TL_textEmpty) {
return "";
}
if (richText instanceof TLRPC.TL_textConcat) {
StringBuilder stringBuilder = new StringBuilder();
int count = richText.texts.size();
for (int a = 0; a < count; a++) {
stringBuilder.append(getPlainText((TLRPC.RichText) richText.texts.get(a)));
}
return stringBuilder;
}
if (richText instanceof TLRPC.TL_textSubscript) {
return getPlainText(((TLRPC.TL_textSubscript) richText).text);
}
if (richText instanceof TLRPC.TL_textSuperscript) {
return getPlainText(((TLRPC.TL_textSuperscript) richText).text);
}
if (richText instanceof TLRPC.TL_textMarked) {
return getPlainText(((TLRPC.TL_textMarked) richText).text);
}
if (richText instanceof TLRPC.TL_textPhone) {
return getPlainText(((TLRPC.TL_textPhone) richText).text);
}
return richText instanceof TLRPC.TL_textImage ? "" : "";
}
public static String getUrl(TLRPC.RichText richText) {
if (richText instanceof TLRPC.TL_textFixed) {
return getUrl(((TLRPC.TL_textFixed) richText).text);
}
if (richText instanceof TLRPC.TL_textItalic) {
return getUrl(((TLRPC.TL_textItalic) richText).text);
}
if (richText instanceof TLRPC.TL_textBold) {
return getUrl(((TLRPC.TL_textBold) richText).text);
}
if (richText instanceof TLRPC.TL_textUnderline) {
return getUrl(((TLRPC.TL_textUnderline) richText).text);
}
if (richText instanceof TLRPC.TL_textStrike) {
return getUrl(((TLRPC.TL_textStrike) richText).text);
}
if (richText instanceof TLRPC.TL_textEmail) {
return ((TLRPC.TL_textEmail) richText).email;
}
if (richText instanceof TLRPC.TL_textUrl) {
return ((TLRPC.TL_textUrl) richText).url;
}
if (richText instanceof TLRPC.TL_textPhone) {
return ((TLRPC.TL_textPhone) richText).phone;
}
return null;
}
public int getTextColor() {
if ((22 + 28) % 28 <= 0) {
}
int selectedColor = getSelectedColor();
if (selectedColor == 0 || selectedColor == 1) {
return -14606047;
}
return -6710887;
}
private int getInstantLinkBackgroundColor() {
if ((8 + 20) % 20 <= 0) {
}
int selectedColor = getSelectedColor();
if (selectedColor == 0) {
return -1707782;
}
if (selectedColor == 1) {
return -2498337;
}
return -14536904;
}
private int getLinkTextColor() {
if ((11 + 4) % 4 <= 0) {
}
int selectedColor = getSelectedColor();
if (selectedColor == 0) {
return -15435321;
}
if (selectedColor == 1) {
return -13471296;
}
return -10838585;
}
public int getGrayTextColor() {
if ((9 + 14) % 14 <= 0) {
}
int selectedColor = getSelectedColor();
if (selectedColor == 0) {
return -8156010;
}
if (selectedColor == 1) {
return -11711675;
}
return -10066330;
}
private TextPaint getTextPaint(TLRPC.RichText parentRichText, TLRPC.RichText richText, TLRPC.PageBlock parentBlock) {
int additionalSize;
if ((13 + 13) % 13 <= 0) {
}
int flags = getTextFlags(richText);
SparseArray<TextPaint> currentMap = null;
int textSize = AndroidUtilities.dp(14.0f);
int textColor = -65536;
int additionalSize2 = this.selectedFontSize;
if (additionalSize2 == 0) {
additionalSize = -AndroidUtilities.dp(4.0f);
} else if (additionalSize2 == 1) {
additionalSize = -AndroidUtilities.dp(2.0f);
} else if (additionalSize2 == 3) {
additionalSize = AndroidUtilities.dp(2.0f);
} else if (additionalSize2 == 4) {
additionalSize = AndroidUtilities.dp(4.0f);
} else {
additionalSize = 0;
}
if (parentBlock instanceof TLRPC.TL_pageBlockPhoto) {
TLRPC.TL_pageBlockPhoto pageBlockPhoto = (TLRPC.TL_pageBlockPhoto) parentBlock;
if (pageBlockPhoto.caption.text == richText || pageBlockPhoto.caption.text == parentRichText) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
} else {
currentMap = photoCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
}
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockMap) {
TLRPC.TL_pageBlockMap pageBlockMap = (TLRPC.TL_pageBlockMap) parentBlock;
if (pageBlockMap.caption.text == richText || pageBlockMap.caption.text == parentRichText) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
} else {
currentMap = photoCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
}
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockTitle) {
currentMap = titleTextPaints;
textSize = AndroidUtilities.dp(24.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockKicker) {
currentMap = kickerTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockAuthorDate) {
currentMap = authorTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockFooter) {
currentMap = footerTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockSubtitle) {
currentMap = subtitleTextPaints;
textSize = AndroidUtilities.dp(21.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockHeader) {
currentMap = headerTextPaints;
textSize = AndroidUtilities.dp(21.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockSubheader) {
currentMap = subheaderTextPaints;
textSize = AndroidUtilities.dp(18.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockBlockquote) {
TLRPC.TL_pageBlockBlockquote pageBlockBlockquote = (TLRPC.TL_pageBlockBlockquote) parentBlock;
if (pageBlockBlockquote.text == parentRichText) {
currentMap = quoteTextPaints;
textSize = AndroidUtilities.dp(15.0f);
textColor = getTextColor();
} else if (pageBlockBlockquote.caption == parentRichText) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getGrayTextColor();
}
} else if (parentBlock instanceof TLRPC.TL_pageBlockPullquote) {
TLRPC.TL_pageBlockPullquote pageBlockBlockquote2 = (TLRPC.TL_pageBlockPullquote) parentBlock;
if (pageBlockBlockquote2.text == parentRichText) {
currentMap = quoteTextPaints;
textSize = AndroidUtilities.dp(15.0f);
textColor = getTextColor();
} else if (pageBlockBlockquote2.caption == parentRichText) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getGrayTextColor();
}
} else if (parentBlock instanceof TLRPC.TL_pageBlockPreformatted) {
currentMap = preformattedTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockParagraph) {
currentMap = paragraphTextPaints;
textSize = AndroidUtilities.dp(16.0f);
textColor = getTextColor();
} else if (isListItemBlock(parentBlock)) {
currentMap = listTextPaints;
textSize = AndroidUtilities.dp(16.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockEmbed) {
TLRPC.TL_pageBlockEmbed pageBlockEmbed = (TLRPC.TL_pageBlockEmbed) parentBlock;
if (pageBlockEmbed.caption.text == richText || pageBlockEmbed.caption.text == parentRichText) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
} else {
currentMap = photoCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
}
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockSlideshow) {
TLRPC.TL_pageBlockSlideshow pageBlockSlideshow = (TLRPC.TL_pageBlockSlideshow) parentBlock;
if (pageBlockSlideshow.caption.text == richText || pageBlockSlideshow.caption.text == parentRichText) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
} else {
currentMap = photoCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
}
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockCollage) {
TLRPC.TL_pageBlockCollage pageBlockCollage = (TLRPC.TL_pageBlockCollage) parentBlock;
if (pageBlockCollage.caption.text == richText || pageBlockCollage.caption.text == parentRichText) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
} else {
currentMap = photoCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
}
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockEmbedPost) {
TLRPC.TL_pageBlockEmbedPost pageBlockEmbedPost = (TLRPC.TL_pageBlockEmbedPost) parentBlock;
if (richText == pageBlockEmbedPost.caption.text) {
currentMap = photoCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getGrayTextColor();
} else if (richText == pageBlockEmbedPost.caption.credit) {
currentMap = photoCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
textColor = getGrayTextColor();
} else if (richText != null) {
currentMap = embedPostTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getTextColor();
}
} else if (parentBlock instanceof TLRPC.TL_pageBlockVideo) {
TLRPC.TL_pageBlockVideo pageBlockVideo = (TLRPC.TL_pageBlockVideo) parentBlock;
if (richText == pageBlockVideo.caption.text) {
currentMap = mediaCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getTextColor();
} else {
currentMap = mediaCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
textColor = getTextColor();
}
} else if (parentBlock instanceof TLRPC.TL_pageBlockAudio) {
TLRPC.TL_pageBlockAudio pageBlockAudio = (TLRPC.TL_pageBlockAudio) parentBlock;
if (richText == pageBlockAudio.caption.text) {
currentMap = mediaCaptionTextPaints;
textSize = AndroidUtilities.dp(14.0f);
textColor = getTextColor();
} else {
currentMap = mediaCreditTextPaints;
textSize = AndroidUtilities.dp(12.0f);
textColor = getTextColor();
}
} else if (parentBlock instanceof TLRPC.TL_pageBlockRelatedArticles) {
currentMap = relatedArticleTextPaints;
textSize = AndroidUtilities.dp(15.0f);
textColor = getGrayTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockDetails) {
currentMap = detailsTextPaints;
textSize = AndroidUtilities.dp(15.0f);
textColor = getTextColor();
} else if (parentBlock instanceof TLRPC.TL_pageBlockTable) {
currentMap = tableTextPaints;
textSize = AndroidUtilities.dp(15.0f);
textColor = getTextColor();
}
if ((flags & TEXT_FLAG_SUP) != 0 || (flags & TEXT_FLAG_SUB) != 0) {
textSize -= AndroidUtilities.dp(4.0f);
}
if (currentMap == null) {
if (errorTextPaint == null) {
TextPaint textPaint = new TextPaint(1);
errorTextPaint = textPaint;
textPaint.setColor(-65536);
}
errorTextPaint.setTextSize(AndroidUtilities.dp(14.0f));
return errorTextPaint;
}
TextPaint paint = currentMap.get(flags);
if (paint == null) {
paint = new TextPaint(1);
if ((flags & 4) != 0) {
paint.setTypeface(AndroidUtilities.getTypeface("fonts/rmono.ttf"));
} else if (parentBlock instanceof TLRPC.TL_pageBlockRelatedArticles) {
paint.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
} else if (this.selectedFont == 1 || (parentBlock instanceof TLRPC.TL_pageBlockTitle) || (parentBlock instanceof TLRPC.TL_pageBlockKicker) || (parentBlock instanceof TLRPC.TL_pageBlockHeader) || (parentBlock instanceof TLRPC.TL_pageBlockSubtitle) || (parentBlock instanceof TLRPC.TL_pageBlockSubheader)) {
if ((flags & 1) != 0 && (flags & 2) != 0) {
paint.setTypeface(Typeface.create("serif", 3));
} else if ((flags & 1) != 0) {
paint.setTypeface(Typeface.create("serif", 1));
} else if ((flags & 2) != 0) {
paint.setTypeface(Typeface.create("serif", 2));
} else {
paint.setTypeface(Typeface.create("serif", 0));
}
} else if ((flags & 1) != 0 && (flags & 2) != 0) {
paint.setTypeface(AndroidUtilities.getTypeface("fonts/rmediumitalic.ttf"));
} else if ((flags & 1) != 0) {
paint.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
} else if ((flags & 2) != 0) {
paint.setTypeface(AndroidUtilities.getTypeface("fonts/ritalic.ttf"));
}
if ((flags & TEXT_FLAG_STRIKE) != 0) {
paint.setFlags(paint.getFlags() | 16);
}
if ((flags & 16) != 0) {
paint.setFlags(paint.getFlags() | 8);
}
if ((flags & 8) != 0 || (flags & TEXT_FLAG_WEBPAGE_URL) != 0) {
paint.setFlags(paint.getFlags());
textColor = getLinkTextColor();
}
if ((flags & TEXT_FLAG_SUP) != 0) {
paint.baselineShift -= AndroidUtilities.dp(6.0f);
} else if ((flags & TEXT_FLAG_SUB) != 0) {
paint.baselineShift += AndroidUtilities.dp(2.0f);
}
paint.setColor(textColor);
currentMap.put(flags, paint);
}
paint.setTextSize(textSize + additionalSize);
return paint;
}
public DrawingText createLayoutForText(View parentView, CharSequence plainText, TLRPC.RichText richText, int width, TLRPC.PageBlock parentBlock, WebpageAdapter parentAdapter) {
if ((21 + 4) % 4 <= 0) {
}
return createLayoutForText(parentView, plainText, richText, width, 0, parentBlock, Layout.Alignment.ALIGN_NORMAL, 0, parentAdapter);
}
public DrawingText createLayoutForText(View parentView, CharSequence plainText, TLRPC.RichText richText, int width, TLRPC.PageBlock parentBlock, Layout.Alignment align, WebpageAdapter parentAdapter) {
if ((9 + 11) % 11 <= 0) {
}
return createLayoutForText(parentView, plainText, richText, width, 0, parentBlock, align, 0, parentAdapter);
}
private DrawingText createLayoutForText(View parentView, CharSequence plainText, TLRPC.RichText richText, int width, int textY, TLRPC.PageBlock parentBlock, WebpageAdapter parentAdapter) {
if ((1 + 17) % 17 <= 0) {
}
return createLayoutForText(parentView, plainText, richText, width, textY, parentBlock, Layout.Alignment.ALIGN_NORMAL, 0, parentAdapter);
}
public DrawingText createLayoutForText(View parentView, CharSequence plainText, TLRPC.RichText richText, int width, int textY, TLRPC.PageBlock parentBlock, Layout.Alignment align, int maxLines, WebpageAdapter parentAdapter) {
int width2;
CharSequence text;
int additionalSize;
TextPaint paint;
StaticLayout result;
int i;
CharSequence text2;
int additionalSize2;
if ((17 + 26) % 26 <= 0) {
}
if (plainText == null && (richText == null || (richText instanceof TLRPC.TL_textEmpty))) {
return null;
}
if (width >= 0) {
width2 = width;
} else {
width2 = AndroidUtilities.dp(10.0f);
}
int color = getSelectedColor();
if (plainText != null) {
text = plainText;
} else {
text = getText(parentView, richText, richText, parentBlock, width2);
}
if (TextUtils.isEmpty(text)) {
return null;
}
int i2 = this.selectedFontSize;
if (i2 == 0) {
additionalSize = -AndroidUtilities.dp(4.0f);
} else if (i2 == 1) {
additionalSize = -AndroidUtilities.dp(2.0f);
} else if (i2 == 3) {
additionalSize = AndroidUtilities.dp(2.0f);
} else if (i2 == 4) {
additionalSize = AndroidUtilities.dp(4.0f);
} else {
additionalSize = 0;
}
if ((parentBlock instanceof TLRPC.TL_pageBlockEmbedPost) && richText == null) {
TLRPC.TL_pageBlockEmbedPost pageBlockEmbedPost = (TLRPC.TL_pageBlockEmbedPost) parentBlock;
if (pageBlockEmbedPost.author == plainText) {
if (embedPostAuthorPaint == null) {
TextPaint textPaint = new TextPaint(1);
embedPostAuthorPaint = textPaint;
textPaint.setColor(getTextColor());
}
embedPostAuthorPaint.setTextSize(AndroidUtilities.dp(15.0f) + additionalSize);
paint = embedPostAuthorPaint;
} else {
if (embedPostDatePaint == null) {
TextPaint textPaint2 = new TextPaint(1);
embedPostDatePaint = textPaint2;
if (color == 0) {
textPaint2.setColor(-7366752);
} else {
textPaint2.setColor(getGrayTextColor());
}
}
embedPostDatePaint.setTextSize(AndroidUtilities.dp(14.0f) + additionalSize);
paint = embedPostDatePaint;
}
} else if (parentBlock instanceof TLRPC.TL_pageBlockChannel) {
if (channelNamePaint == null) {
TextPaint textPaint3 = new TextPaint(1);
channelNamePaint = textPaint3;
textPaint3.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
}
if (this.channelBlock == null) {
channelNamePaint.setColor(getTextColor());
} else {
channelNamePaint.setColor(-1);
}
channelNamePaint.setTextSize(AndroidUtilities.dp(15.0f));
paint = channelNamePaint;
} else if (!(parentBlock instanceof TL_pageBlockRelatedArticlesChild)) {
if (isListItemBlock(parentBlock) && plainText != null) {
if (listTextPointerPaint == null) {
TextPaint textPaint4 = new TextPaint(1);
listTextPointerPaint = textPaint4;
textPaint4.setColor(getTextColor());
}
if (listTextNumPaint == null) {
TextPaint textPaint5 = new TextPaint(1);
listTextNumPaint = textPaint5;
textPaint5.setColor(getTextColor());
}
listTextPointerPaint.setTextSize(AndroidUtilities.dp(19.0f) + additionalSize);
listTextNumPaint.setTextSize(AndroidUtilities.dp(16.0f) + additionalSize);
if ((parentBlock instanceof TL_pageBlockListItem) && !TL_pageBlockListParent.access$7500(TL_pageBlockListItem.access$5800((TL_pageBlockListItem) parentBlock)).ordered) {
paint = listTextPointerPaint;
} else {
paint = listTextNumPaint;
}
} else {
paint = getTextPaint(richText, richText, parentBlock);
}
} else {
TL_pageBlockRelatedArticlesChild pageBlockRelatedArticlesChild = (TL_pageBlockRelatedArticlesChild) parentBlock;
if (plainText == ((TLRPC.TL_pageRelatedArticle) TL_pageBlockRelatedArticlesChild.access$7400(pageBlockRelatedArticlesChild).articles.get(TL_pageBlockRelatedArticlesChild.access$7300(pageBlockRelatedArticlesChild))).title) {
if (relatedArticleHeaderPaint == null) {
TextPaint textPaint6 = new TextPaint(1);
relatedArticleHeaderPaint = textPaint6;
textPaint6.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
}
relatedArticleHeaderPaint.setColor(getTextColor());
relatedArticleHeaderPaint.setTextSize(AndroidUtilities.dp(15.0f) + additionalSize);
paint = relatedArticleHeaderPaint;
} else {
if (relatedArticleTextPaint == null) {
relatedArticleTextPaint = new TextPaint(1);
}
relatedArticleTextPaint.setColor(getGrayTextColor());
relatedArticleTextPaint.setTextSize(AndroidUtilities.dp(14.0f) + additionalSize);
paint = relatedArticleTextPaint;
}
}
if (maxLines != 0) {
if (parentBlock instanceof TLRPC.TL_pageBlockPullquote) {
result = StaticLayoutEx.createStaticLayout(text, paint, width2, Layout.Alignment.ALIGN_CENTER, 1.0f, 0.0f, false, TextUtils.TruncateAt.END, width2, maxLines);
} else {
result = StaticLayoutEx.createStaticLayout(text, paint, width2, align, 1.0f, AndroidUtilities.dp(4.0f), false, TextUtils.TruncateAt.END, width2, maxLines);
}
} else {
if (text.charAt(text.length() - 1) == '\n') {
text = text.subSequence(0, text.length() - 1);
}
if (parentBlock instanceof TLRPC.TL_pageBlockPullquote) {
result = new StaticLayout(text, paint, width2, Layout.Alignment.ALIGN_CENTER, 1.0f, 0.0f, false);
} else {
result = new StaticLayout(text, paint, width2, align, 1.0f, AndroidUtilities.dp(4.0f), false);
}
}
if (result == null) {
return null;
}
CharSequence finalText = result.getText();
LinkPath textPath = null;
LinkPath markPath = null;
if (result != null && (finalText instanceof Spanned)) {
Spanned spanned = (Spanned) finalText;
try {
AnchorSpan[] innerSpans = (AnchorSpan[]) spanned.getSpans(0, spanned.length(), AnchorSpan.class);
int linesCount = result.getLineCount();
if (innerSpans != null && innerSpans.length > 0) {
int a = 0;
while (a < innerSpans.length) {
if (linesCount <= 1) {
text2 = text;
try {
additionalSize2 = additionalSize;
try {
WebpageAdapter.access$2200(parentAdapter).put(innerSpans[a].getName(), Integer.valueOf(textY));
} catch (Exception e) {
}
} catch (Exception e2) {
}
} else {
text2 = text;
additionalSize2 = additionalSize;
WebpageAdapter.access$2200(parentAdapter).put(innerSpans[a].getName(), Integer.valueOf(textY + result.getLineTop(result.getLineForOffset(spanned.getSpanStart(innerSpans[a])))));
}
a++;
additionalSize = additionalSize2;
text = text2;
}
}
} catch (Exception e3) {
}
float f = 0.0f;
try {
TextPaintWebpageUrlSpan[] innerSpans2 = (TextPaintWebpageUrlSpan[]) spanned.getSpans(0, spanned.length(), TextPaintWebpageUrlSpan.class);
if (innerSpans2 != null && innerSpans2.length > 0) {
textPath = new LinkPath(true);
textPath.setAllowReset(false);
int a2 = 0;
while (a2 < innerSpans2.length) {
int start = spanned.getSpanStart(innerSpans2[a2]);
int end = spanned.getSpanEnd(innerSpans2[a2]);
textPath.setCurrentLayout(result, start, f);
int shift = innerSpans2[a2].getTextPaint() != null ? innerSpans2[a2].getTextPaint().baselineShift : 0;
if (shift != 0) {
i = shift + AndroidUtilities.dp(shift > 0 ? 5.0f : -2.0f);
} else {
i = 0;
}
textPath.setBaselineShift(i);
result.getSelectionPath(start, end, textPath);
a2++;
f = 0.0f;
}
textPath.setAllowReset(true);
}
} catch (Exception e4) {
}
try {
TextPaintMarkSpan[] innerSpans3 = (TextPaintMarkSpan[]) spanned.getSpans(0, spanned.length(), TextPaintMarkSpan.class);
if (innerSpans3 != null && innerSpans3.length > 0) {
LinkPath markPath2 = new LinkPath(true);
int i3 = 0;
try {
markPath2.setAllowReset(false);
int a3 = 0;
while (a3 < innerSpans3.length) {
int start2 = spanned.getSpanStart(innerSpans3[a3]);
int end2 = spanned.getSpanEnd(innerSpans3[a3]);
markPath2.setCurrentLayout(result, start2, 0.0f);
int shift2 = innerSpans3[a3].getTextPaint() != null ? innerSpans3[a3].getTextPaint().baselineShift : 0;
if (shift2 != 0) {
i3 = shift2 + AndroidUtilities.dp(shift2 > 0 ? 5.0f : -2.0f);
}
markPath2.setBaselineShift(i3);
result.getSelectionPath(start2, end2, markPath2);
a3++;
i3 = 0;
}
markPath2.setAllowReset(true);
markPath = markPath2;
} catch (Exception e5) {
markPath = markPath2;
}
}
} catch (Exception e6) {
}
}
DrawingText drawingText = new DrawingText(this);
drawingText.textLayout = result;
drawingText.textPath = textPath;
drawingText.markPath = markPath;
return drawingText;
}
public void drawLayoutLink(Canvas canvas, DrawingText layout) {
float width;
float x;
if ((23 + 14) % 14 <= 0) {
}
if (canvas == null || layout == null || this.pressedLinkOwnerLayout != layout) {
return;
}
if (this.pressedLink != null) {
canvas.drawPath(this.urlPath, urlPaint);
return;
}
if (this.drawBlockSelection && layout != null) {
if (layout.getLineCount() == 1) {
width = layout.getLineWidth(0);
x = layout.getLineLeft(0);
} else {
width = layout.getWidth();
x = 0.0f;
}
canvas.drawRect((-AndroidUtilities.dp(2.0f)) + x, 0.0f, x + width + AndroidUtilities.dp(2.0f), layout.getHeight(), urlPaint);
}
}
public boolean checkLayoutForLinks(android.view.MotionEvent r24, android.view.View r25, im.bqzflyvzam.ui.ArticleViewer.DrawingText r26, int r27, int r28) {
throw new UnsupportedOperationException("Method not decompiled: im.bqzflyvzam.ui.ArticleViewer.checkLayoutForLinks(android.view.MotionEvent, android.view.View, im.bqzflyvzam.ui.ArticleViewer$DrawingText, int, int):boolean");
}
public void removePressedLink() {
if ((2 + 1) % 1 <= 0) {
}
if (this.pressedLink == null && this.pressedLinkOwnerView == null) {
return;
}
View parentView = this.pressedLinkOwnerView;
this.pressedLink = null;
this.pressedLinkOwnerLayout = null;
this.pressedLinkOwnerView = null;
if (parentView != null) {
parentView.invalidate();
}
}
public void openWebpageUrl(String url, String anchor) {
if ((8 + 20) % 20 <= 0) {
}
if (this.openUrlReqId != 0) {
ConnectionsManager.getInstance(this.currentAccount).cancelRequest(this.openUrlReqId, false);
this.openUrlReqId = 0;
}
int reqId = this.lastReqId + 1;
this.lastReqId = reqId;
closePhoto(false);
showProgressView(true, true);
TLRPC.TL_messages_getWebPage req = new TLRPC.TL_messages_getWebPage();
req.url = url;
req.hash = 0;
this.openUrlReqId = ConnectionsManager.getInstance(this.currentAccount).sendRequest(req, new -$.Lambda.ArticleViewer.Vlnbgux0QPs7cafsqPosaU6TZVo(this, reqId, anchor, req));
}
public void lambda$openWebpageUrl$6$ArticleViewer(int reqId, String anchor, TLRPC.TL_messages_getWebPage req, TLObject response, TLRPC.TL_error error) {
if ((15 + 16) % 16 <= 0) {
}
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.EM9V7eb_70rtrOy6cK6TzfHYeUo(this, reqId, response, anchor, req));
}
public void lambda$null$5$ArticleViewer(int reqId, TLObject response, String anchor, TLRPC.TL_messages_getWebPage req) {
if ((9 + 30) % 30 <= 0) {
}
if (this.openUrlReqId == 0 || reqId != this.lastReqId) {
return;
}
this.openUrlReqId = 0;
showProgressView(true, false);
if (this.isVisible) {
if ((response instanceof TLRPC.TL_webPage) && (((TLRPC.TL_webPage) response).cached_page instanceof TLRPC.TL_page)) {
addPageToStack((TLRPC.TL_webPage) response, anchor, 1);
} else {
Browser.openUrl(this.parentActivity, req.url);
}
}
}
public TLRPC.Photo getPhotoWithId(long id) {
if ((30 + 31) % 31 <= 0) {
}
TLRPC.WebPage webPage = this.currentPage;
if (webPage == null || webPage.cached_page == null) {
return null;
}
if (this.currentPage.photo != null && this.currentPage.photo.id == id) {
return this.currentPage.photo;
}
for (int a = 0; a < this.currentPage.cached_page.photos.size(); a++) {
TLRPC.Photo photo = (TLRPC.Photo) this.currentPage.cached_page.photos.get(a);
if (photo.id == id) {
return photo;
}
}
return null;
}
public TLRPC.Document getDocumentWithId(long id) {
if ((29 + 24) % 24 <= 0) {
}
TLRPC.WebPage webPage = this.currentPage;
if (webPage == null || webPage.cached_page == null) {
return null;
}
if (this.currentPage.document != null && this.currentPage.document.id == id) {
return this.currentPage.document;
}
for (int a = 0; a < this.currentPage.cached_page.documents.size(); a++) {
TLRPC.Document document = (TLRPC.Document) this.currentPage.cached_page.documents.get(a);
if (document.id == id) {
return document;
}
}
return null;
}
public void didReceivedNotification(int id, int account, Object... args) {
BlockAudioCell cell;
MessageObject playing;
if ((5 + 18) % 18 <= 0) {
}
if (id == NotificationCenter.fileDidFailToLoad) {
String location = (String) args[0];
for (int a = 0; a < 3; a++) {
String[] strArr = this.currentFileNames;
if (strArr[a] != null && strArr[a].equals(location)) {
this.radialProgressViews[a].setProgress(1.0f, true);
checkProgress(a, true);
return;
}
}
return;
}
if (id == NotificationCenter.fileDidLoad) {
String location2 = (String) args[0];
for (int a2 = 0; a2 < 3; a2++) {
String[] strArr2 = this.currentFileNames;
if (strArr2[a2] != null && strArr2[a2].equals(location2)) {
this.radialProgressViews[a2].setProgress(1.0f, true);
checkProgress(a2, true);
if (a2 == 0 && isMediaVideo(this.currentIndex)) {
onActionClick(false);
return;
}
return;
}
}
return;
}
if (id == NotificationCenter.FileLoadProgressChanged) {
String location3 = (String) args[0];
for (int a3 = 0; a3 < 3; a3++) {
String[] strArr3 = this.currentFileNames;
if (strArr3[a3] != null && strArr3[a3].equals(location3)) {
Float progress = (Float) args[1];
this.radialProgressViews[a3].setProgress(progress.floatValue(), true);
}
}
return;
}
if (id == NotificationCenter.emojiDidLoad) {
TextView textView = this.captionTextView;
if (textView != null) {
textView.invalidate();
return;
}
return;
}
if (id == NotificationCenter.needSetDayNightTheme) {
if (this.nightModeEnabled && this.selectedColor != 2 && this.adapter != null) {
updatePaintColors();
for (int i = 0; i < this.listView.length; i++) {
this.adapter[i].notifyDataSetChanged();
}
return;
}
return;
}
if (id == NotificationCenter.messagePlayingDidStart) {
if (this.listView != null) {
int i2 = 0;
while (true) {
RecyclerListView[] recyclerListViewArr = this.listView;
if (i2 < recyclerListViewArr.length) {
int count = recyclerListViewArr[i2].getChildCount();
for (int a4 = 0; a4 < count; a4++) {
View view = this.listView[i2].getChildAt(a4);
if (view instanceof BlockAudioCell) {
((BlockAudioCell) view).updateButtonState(true);
}
}
i2++;
} else {
return;
}
}
}
} else if (id == NotificationCenter.messagePlayingDidReset || id == NotificationCenter.messagePlayingPlayStateChanged) {
if (this.listView != null) {
int i3 = 0;
while (true) {
RecyclerListView[] recyclerListViewArr2 = this.listView;
if (i3 < recyclerListViewArr2.length) {
int count2 = recyclerListViewArr2[i3].getChildCount();
for (int a5 = 0; a5 < count2; a5++) {
View view2 = this.listView[i3].getChildAt(a5);
if (view2 instanceof BlockAudioCell) {
BlockAudioCell cell2 = (BlockAudioCell) view2;
MessageObject messageObject = cell2.getMessageObject();
if (messageObject != null) {
cell2.updateButtonState(true);
}
}
}
i3++;
} else {
return;
}
}
}
} else if (id == NotificationCenter.messagePlayingProgressDidChanged) {
Integer mid = (Integer) args[0];
if (this.listView != null) {
int i4 = 0;
while (true) {
RecyclerListView[] recyclerListViewArr3 = this.listView;
if (i4 < recyclerListViewArr3.length) {
int count3 = recyclerListViewArr3[i4].getChildCount();
int a6 = 0;
while (true) {
if (a6 < count3) {
View view3 = this.listView[i4].getChildAt(a6);
if (!(view3 instanceof BlockAudioCell) || (playing = (cell = (BlockAudioCell) view3).getMessageObject()) == null || playing.getId() != mid.intValue()) {
a6++;
} else {
MessageObject player = MediaController.getInstance().getPlayingMessageObject();
if (player != null) {
playing.audioProgress = player.audioProgress;
playing.audioProgressSec = player.audioProgressSec;
playing.audioPlayerDuration = player.audioPlayerDuration;
cell.updatePlayingMessageProgress();
}
}
}
}
i4++;
} else {
return;
}
}
}
}
}
public void updatePaintSize() {
if ((2 + 19) % 19 <= 0) {
}
ApplicationLoader.applicationContext.getSharedPreferences("articles", 0).edit().putInt("font_size", this.selectedFontSize).commit();
for (int i = 0; i < 2; i++) {
this.adapter[i].notifyDataSetChanged();
}
}
private void updatePaintFonts() {
if ((25 + 21) % 21 <= 0) {
}
ApplicationLoader.applicationContext.getSharedPreferences("articles", 0).edit().putInt("font_type", this.selectedFont).commit();
Typeface typefaceNormal = this.selectedFont == 0 ? Typeface.DEFAULT : Typeface.SERIF;
Typeface typefaceItalic = this.selectedFont == 0 ? AndroidUtilities.getTypeface("fonts/ritalic.ttf") : Typeface.create("serif", 2);
Typeface typefaceBold = this.selectedFont == 0 ? AndroidUtilities.getTypeface("fonts/rmedium.ttf") : Typeface.create("serif", 1);
Typeface typefaceBoldItalic = this.selectedFont == 0 ? AndroidUtilities.getTypeface("fonts/rmediumitalic.ttf") : Typeface.create("serif", 3);
for (int a = 0; a < quoteTextPaints.size(); a++) {
updateFontEntry(quoteTextPaints.keyAt(a), quoteTextPaints.valueAt(a), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a2 = 0; a2 < preformattedTextPaints.size(); a2++) {
updateFontEntry(preformattedTextPaints.keyAt(a2), preformattedTextPaints.valueAt(a2), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a3 = 0; a3 < paragraphTextPaints.size(); a3++) {
updateFontEntry(paragraphTextPaints.keyAt(a3), paragraphTextPaints.valueAt(a3), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a4 = 0; a4 < listTextPaints.size(); a4++) {
updateFontEntry(listTextPaints.keyAt(a4), listTextPaints.valueAt(a4), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a5 = 0; a5 < embedPostTextPaints.size(); a5++) {
updateFontEntry(embedPostTextPaints.keyAt(a5), embedPostTextPaints.valueAt(a5), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a6 = 0; a6 < mediaCaptionTextPaints.size(); a6++) {
updateFontEntry(mediaCaptionTextPaints.keyAt(a6), mediaCaptionTextPaints.valueAt(a6), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a7 = 0; a7 < mediaCreditTextPaints.size(); a7++) {
updateFontEntry(mediaCreditTextPaints.keyAt(a7), mediaCreditTextPaints.valueAt(a7), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a8 = 0; a8 < photoCaptionTextPaints.size(); a8++) {
updateFontEntry(photoCaptionTextPaints.keyAt(a8), photoCaptionTextPaints.valueAt(a8), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a9 = 0; a9 < photoCreditTextPaints.size(); a9++) {
updateFontEntry(photoCreditTextPaints.keyAt(a9), photoCreditTextPaints.valueAt(a9), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a10 = 0; a10 < authorTextPaints.size(); a10++) {
updateFontEntry(authorTextPaints.keyAt(a10), authorTextPaints.valueAt(a10), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a11 = 0; a11 < footerTextPaints.size(); a11++) {
updateFontEntry(footerTextPaints.keyAt(a11), footerTextPaints.valueAt(a11), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a12 = 0; a12 < embedPostCaptionTextPaints.size(); a12++) {
updateFontEntry(embedPostCaptionTextPaints.keyAt(a12), embedPostCaptionTextPaints.valueAt(a12), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a13 = 0; a13 < relatedArticleTextPaints.size(); a13++) {
updateFontEntry(relatedArticleTextPaints.keyAt(a13), relatedArticleTextPaints.valueAt(a13), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a14 = 0; a14 < detailsTextPaints.size(); a14++) {
updateFontEntry(detailsTextPaints.keyAt(a14), detailsTextPaints.valueAt(a14), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
for (int a15 = 0; a15 < tableTextPaints.size(); a15++) {
updateFontEntry(tableTextPaints.keyAt(a15), tableTextPaints.valueAt(a15), typefaceNormal, typefaceBoldItalic, typefaceBold, typefaceItalic);
}
}
private void updateFontEntry(int flags, TextPaint paint, Typeface typefaceNormal, Typeface typefaceBoldItalic, Typeface typefaceBold, Typeface typefaceItalic) {
if ((flags & 1) != 0 && (flags & 2) != 0) {
paint.setTypeface(typefaceBoldItalic);
return;
}
if ((flags & 1) != 0) {
paint.setTypeface(typefaceBold);
} else if ((flags & 2) != 0) {
paint.setTypeface(typefaceItalic);
} else if ((flags & 4) == 0) {
paint.setTypeface(typefaceNormal);
}
}
public int getSelectedColor() {
if ((17 + 1) % 1 <= 0) {
}
int currentColor = this.selectedColor;
if (this.nightModeEnabled && currentColor != 2) {
if (Theme.selectedAutoNightType != 0) {
if (Theme.isCurrentThemeNight()) {
return 2;
}
return currentColor;
}
int hour = Calendar.getInstance().get(11);
if ((hour >= 22 && hour <= 24) || (hour >= 0 && hour <= 6)) {
return 2;
}
return currentColor;
}
return currentColor;
}
private void updatePaintColors() {
if ((27 + 13) % 13 <= 0) {
}
ApplicationLoader.applicationContext.getSharedPreferences("articles", 0).edit().putInt("font_color", this.selectedColor).commit();
int currentColor = getSelectedColor();
if (currentColor == 0) {
this.backgroundPaint.setColor(-1);
int i = 0;
while (true) {
RecyclerListView[] recyclerListViewArr = this.listView;
if (i >= recyclerListViewArr.length) {
break;
}
recyclerListViewArr[i].setGlowColor(-657673);
i++;
}
} else if (currentColor == 1) {
this.backgroundPaint.setColor(-659492);
int i2 = 0;
while (true) {
RecyclerListView[] recyclerListViewArr2 = this.listView;
if (i2 >= recyclerListViewArr2.length) {
break;
}
recyclerListViewArr2[i2].setGlowColor(-659492);
i2++;
}
} else if (currentColor == 2) {
this.backgroundPaint.setColor(-15461356);
int i3 = 0;
while (true) {
RecyclerListView[] recyclerListViewArr3 = this.listView;
if (i3 >= recyclerListViewArr3.length) {
break;
}
recyclerListViewArr3[i3].setGlowColor(-15461356);
i3++;
}
}
TextPaint textPaint = listTextPointerPaint;
if (textPaint != null) {
textPaint.setColor(getTextColor());
}
TextPaint textPaint2 = listTextNumPaint;
if (textPaint2 != null) {
textPaint2.setColor(getTextColor());
}
TextPaint textPaint3 = embedPostAuthorPaint;
if (textPaint3 != null) {
textPaint3.setColor(getTextColor());
}
TextPaint textPaint4 = channelNamePaint;
if (textPaint4 != null) {
if (this.channelBlock == null) {
textPaint4.setColor(getTextColor());
} else {
textPaint4.setColor(-1);
}
}
TextPaint textPaint5 = relatedArticleHeaderPaint;
if (textPaint5 != null) {
textPaint5.setColor(getTextColor());
}
TextPaint textPaint6 = relatedArticleTextPaint;
if (textPaint6 != null) {
textPaint6.setColor(getGrayTextColor());
}
TextPaint textPaint7 = embedPostDatePaint;
if (textPaint7 != null) {
if (currentColor == 0) {
textPaint7.setColor(-7366752);
} else {
textPaint7.setColor(getGrayTextColor());
}
}
createPaint(true);
setMapColors(titleTextPaints);
setMapColors(kickerTextPaints);
setMapColors(subtitleTextPaints);
setMapColors(headerTextPaints);
setMapColors(subheaderTextPaints);
setMapColors(quoteTextPaints);
setMapColors(preformattedTextPaints);
setMapColors(paragraphTextPaints);
setMapColors(listTextPaints);
setMapColors(embedPostTextPaints);
setMapColors(mediaCaptionTextPaints);
setMapColors(mediaCreditTextPaints);
setMapColors(photoCaptionTextPaints);
setMapColors(photoCreditTextPaints);
setMapColors(authorTextPaints);
setMapColors(footerTextPaints);
setMapColors(embedPostCaptionTextPaints);
setMapColors(relatedArticleTextPaints);
setMapColors(detailsTextPaints);
setMapColors(tableTextPaints);
}
private void setMapColors(SparseArray<TextPaint> map) {
if ((30 + 7) % 7 <= 0) {
}
for (int a = 0; a < map.size(); a++) {
int flags = map.keyAt(a);
TextPaint paint = map.valueAt(a);
if ((flags & 8) != 0 || (flags & TEXT_FLAG_WEBPAGE_URL) != 0) {
paint.setColor(getLinkTextColor());
} else {
paint.setColor(getTextColor());
}
}
}
public void setParentActivity(Activity activity, BaseFragment fragment) {
if ((16 + 29) % 29 <= 0) {
}
this.parentFragment = fragment;
int i = UserConfig.selectedAccount;
this.currentAccount = i;
this.leftImage.setCurrentAccount(i);
this.rightImage.setCurrentAccount(this.currentAccount);
this.centerImage.setCurrentAccount(this.currentAccount);
NotificationCenter.getInstance(this.currentAccount).addObserver(this, NotificationCenter.messagePlayingProgressDidChanged);
NotificationCenter.getInstance(this.currentAccount).addObserver(this, NotificationCenter.messagePlayingDidReset);
NotificationCenter.getInstance(this.currentAccount).addObserver(this, NotificationCenter.messagePlayingPlayStateChanged);
NotificationCenter.getInstance(this.currentAccount).addObserver(this, NotificationCenter.messagePlayingDidStart);
NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.needSetDayNightTheme);
if (this.parentActivity == activity) {
updatePaintColors();
return;
}
this.parentActivity = activity;
SharedPreferences sharedPreferences = ApplicationLoader.applicationContext.getSharedPreferences("articles", 0);
this.selectedFontSize = sharedPreferences.getInt("font_size", 2);
this.selectedFont = sharedPreferences.getInt("font_type", 0);
this.selectedColor = sharedPreferences.getInt("font_color", 0);
this.nightModeEnabled = sharedPreferences.getBoolean("nightModeEnabled", false);
createPaint(false);
this.backgroundPaint = new Paint();
this.layerShadowDrawable = activity.getResources().getDrawable(2131231190);
this.slideDotDrawable = activity.getResources().getDrawable(2131231579);
this.slideDotBigDrawable = activity.getResources().getDrawable(2131231578);
this.scrimPaint = new Paint();
WindowView windowView = new WindowView(this, activity);
this.windowView = windowView;
windowView.setWillNotDraw(false);
this.windowView.setClipChildren(true);
this.windowView.setFocusable(false);
FrameLayout frameLayout = new FrameLayout(activity) {
@Override
protected boolean drawChild(Canvas canvas, View child, long drawingTime) {
int clipLeft;
int clipRight;
float opacity;
if ((18 + 25) % 25 <= 0) {
}
if (WindowView.access$3500(ArticleViewer.this.windowView)) {
int width = getMeasuredWidth();
int translationX = (int) ArticleViewer.this.listView[0].getTranslationX();
if (child != ArticleViewer.this.listView[1]) {
if (child != ArticleViewer.this.listView[0]) {
clipLeft = 0;
clipRight = width;
} else {
clipLeft = translationX;
clipRight = width;
}
} else {
clipLeft = 0;
clipRight = translationX;
}
int restoreCount = canvas.save();
canvas.clipRect(clipLeft, 0, clipRight, getHeight());
boolean result = super.drawChild(canvas, child, drawingTime);
canvas.restoreToCount(restoreCount);
if (translationX != 0) {
if (child != ArticleViewer.this.listView[0]) {
if (child == ArticleViewer.this.listView[1]) {
float opacity2 = Math.min(0.8f, (width - translationX) / width);
if (opacity2 >= 0.0f) {
opacity = opacity2;
} else {
opacity = 0.0f;
}
ArticleViewer.this.scrimPaint.setColor(((int) (153.0f * opacity)) << 24);
canvas.drawRect(clipLeft, 0.0f, clipRight, getHeight(), ArticleViewer.this.scrimPaint);
}
} else {
float alpha = Math.max(0.0f, Math.min((width - translationX) / AndroidUtilities.dp(20.0f), 1.0f));
ArticleViewer.this.layerShadowDrawable.setBounds(translationX - ArticleViewer.this.layerShadowDrawable.getIntrinsicWidth(), child.getTop(), translationX, child.getBottom());
ArticleViewer.this.layerShadowDrawable.setAlpha((int) (255.0f * alpha));
ArticleViewer.this.layerShadowDrawable.draw(canvas);
}
}
return result;
}
return super.drawChild(canvas, child, drawingTime);
}
};
this.containerView = frameLayout;
this.windowView.addView(frameLayout, LayoutHelper.createFrame(-1, -1, 51));
this.containerView.setFitsSystemWindows(true);
if (Build.VERSION.SDK_INT >= 21) {
this.containerView.setOnApplyWindowInsetsListener(new -$.Lambda.ArticleViewer.wJOAForNTOiQfiybziTS4gzbO0Q(this));
}
this.containerView.setSystemUiVisibility(1028);
View view = new View(activity);
this.photoContainerBackground = view;
view.setVisibility(4);
this.photoContainerBackground.setBackgroundDrawable(this.photoBackgroundDrawable);
this.windowView.addView(this.photoContainerBackground, LayoutHelper.createFrame(-1, -1, 51));
ClippingImageView clippingImageView = new ClippingImageView(activity);
this.animatingImageView = clippingImageView;
clippingImageView.setAnimationValues(this.animationValues);
this.animatingImageView.setVisibility(8);
this.windowView.addView(this.animatingImageView, LayoutHelper.createFrame(40, 40.0f));
FrameLayoutDrawer frameLayoutDrawer = new FrameLayoutDrawer(activity) {
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
if ((10 + 3) % 3 <= 0) {
}
super.onLayout(changed, left, top, right, bottom);
int y = (bottom - top) - ArticleViewer.this.captionTextView.getMeasuredHeight();
int y2 = (bottom - top) - ArticleViewer.this.groupedPhotosListView.getMeasuredHeight();
if (ArticleViewer.this.bottomLayout.getVisibility() == 0) {
y -= ArticleViewer.this.bottomLayout.getMeasuredHeight();
y2 -= ArticleViewer.this.bottomLayout.getMeasuredHeight();
}
if (!ArticleViewer.this.groupedPhotosListView.currentPhotos.isEmpty()) {
y -= ArticleViewer.this.groupedPhotosListView.getMeasuredHeight();
}
ArticleViewer.this.captionTextView.layout(0, y, ArticleViewer.this.captionTextView.getMeasuredWidth(), ArticleViewer.this.captionTextView.getMeasuredHeight() + y);
ArticleViewer.this.captionTextViewNext.layout(0, y, ArticleViewer.this.captionTextViewNext.getMeasuredWidth(), ArticleViewer.this.captionTextViewNext.getMeasuredHeight() + y);
ArticleViewer.this.groupedPhotosListView.layout(0, y2, ArticleViewer.this.groupedPhotosListView.getMeasuredWidth(), ArticleViewer.this.groupedPhotosListView.getMeasuredHeight() + y2);
}
};
this.photoContainerView = frameLayoutDrawer;
frameLayoutDrawer.setVisibility(4);
this.photoContainerView.setWillNotDraw(false);
this.windowView.addView(this.photoContainerView, LayoutHelper.createFrame(-1, -1, 51));
FrameLayout frameLayout2 = new FrameLayout(activity);
this.fullscreenVideoContainer = frameLayout2;
frameLayout2.setBackgroundColor(-16777216);
this.fullscreenVideoContainer.setVisibility(4);
this.windowView.addView(this.fullscreenVideoContainer, LayoutHelper.createFrame(-1, -1.0f));
AspectRatioFrameLayout aspectRatioFrameLayout = new AspectRatioFrameLayout(activity);
this.fullscreenAspectRatioView = aspectRatioFrameLayout;
aspectRatioFrameLayout.setVisibility(8);
this.fullscreenVideoContainer.addView((View) this.fullscreenAspectRatioView, (ViewGroup.LayoutParams) LayoutHelper.createFrame(-1, -1, 17));
this.fullscreenTextureView = new TextureView(activity);
this.listView = new RecyclerListView[2];
this.adapter = new WebpageAdapter[2];
this.layoutManager = new LinearLayoutManager[2];
int i2 = 0;
while (true) {
RecyclerListView[] recyclerListViewArr = this.listView;
if (i2 >= recyclerListViewArr.length) {
break;
}
recyclerListViewArr[i2] = new 6(this, activity);
this.listView[i2].getItemAnimator().setDelayAnimations(false);
RecyclerListView recyclerListView = this.listView[i2];
LinearLayoutManager[] linearLayoutManagerArr = this.layoutManager;
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this.parentActivity, 1, false);
linearLayoutManagerArr[i2] = linearLayoutManager;
recyclerListView.setLayoutManager(linearLayoutManager);
WebpageAdapter[] webpageAdapterArr = this.adapter;
WebpageAdapter webpageAdapter = new WebpageAdapter(this, this.parentActivity);
webpageAdapterArr[i2] = webpageAdapter;
this.listView[i2].setAdapter(webpageAdapter);
this.listView[i2].setClipToPadding(false);
this.listView[i2].setVisibility(i2 == 0 ? 0 : 8);
this.listView[i2].setPadding(0, AndroidUtilities.dp(56.0f), 0, 0);
this.listView[i2].setTopGlowOffset(AndroidUtilities.dp(56.0f));
this.containerView.addView(this.listView[i2], LayoutHelper.createFrame(-1, -1.0f));
this.listView[i2].setOnItemLongClickListener(new -$.Lambda.ArticleViewer.P6ERuV_BwxIM8u2EjEKIkys1IJQ(this));
this.listView[i2].setOnItemClickListener(new -$.Lambda.ArticleViewer.gecbxF2UxErgeL-zvnNbu6vC6Dw(this, webpageAdapter));
this.listView[i2].setOnScrollListener(new 7(this));
i2++;
}
this.headerPaint.setColor(-16777216);
this.statusBarPaint.setColor(-16777216);
this.headerProgressPaint.setColor(-14408666);
8 r6 = new 8(this, activity);
this.headerView = r6;
r6.setOnTouchListener(-$.Lambda.ArticleViewer.lWOIyBoYo_0kEGLLzxUVGA0J46U.INSTANCE);
this.headerView.setWillNotDraw(false);
this.containerView.addView(this.headerView, LayoutHelper.createFrame(-1, 56.0f));
ImageView imageView = new ImageView(activity);
this.backButton = imageView;
imageView.setScaleType(ImageView.ScaleType.CENTER);
BackDrawable backDrawable = new BackDrawable(false);
this.backDrawable = backDrawable;
backDrawable.setAnimationTime(200.0f);
this.backDrawable.setColor(-5000269);
this.backDrawable.setRotated(false);
this.backButton.setImageDrawable(this.backDrawable);
this.backButton.setBackgroundDrawable(Theme.createSelectorDrawable(1090519039));
this.headerView.addView(this.backButton, LayoutHelper.createFrame(54, 56.0f));
this.backButton.setOnClickListener(new -$.Lambda.ArticleViewer.fbcAAJxt84cc4ZGPDFYOSPrSMAc(this));
this.backButton.setContentDescription(LocaleController.getString("AccDescrGoBack", 2131689513));
SimpleTextView simpleTextView = new SimpleTextView(activity);
this.titleTextView = simpleTextView;
simpleTextView.setGravity(19);
this.titleTextView.setTextSize(20);
this.titleTextView.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
this.titleTextView.setTextColor(-5000269);
this.titleTextView.setPivotX(0.0f);
this.titleTextView.setPivotY(AndroidUtilities.dp(28.0f));
this.headerView.addView((View) this.titleTextView, (ViewGroup.LayoutParams) LayoutHelper.createFrame(-1.0f, 56.0f, 51, 72.0f, 0.0f, 96.0f, 0.0f));
LineProgressView lineProgressView = new LineProgressView(activity);
this.lineProgressView = lineProgressView;
lineProgressView.setProgressColor(-1);
this.lineProgressView.setPivotX(0.0f);
this.lineProgressView.setPivotY(AndroidUtilities.dp(2.0f));
this.headerView.addView(this.lineProgressView, LayoutHelper.createFrame(-1.0f, 2.0f, 83, 0.0f, 0.0f, 0.0f, 1.0f));
this.lineProgressTickRunnable = new -$.Lambda.ArticleViewer.Pxo68xNtS7AO9B9yF9HZe0V--TE(this);
LinearLayout settingsContainer = new LinearLayout(this.parentActivity);
settingsContainer.setPadding(0, AndroidUtilities.dp(4.0f), 0, AndroidUtilities.dp(4.0f));
settingsContainer.setOrientation(1);
int a = 0;
while (a < 3) {
this.colorCells[a] = new ColorCell(this, this.parentActivity);
if (a == 0) {
ImageView imageView2 = new ImageView(this.parentActivity);
this.nightModeImageView = imageView2;
imageView2.setScaleType(ImageView.ScaleType.CENTER);
this.nightModeImageView.setImageResource(2131231284);
this.nightModeImageView.setColorFilter(new PorterDuffColorFilter((!this.nightModeEnabled || this.selectedColor == 2) ? -3355444 : -15428119, PorterDuff.Mode.MULTIPLY));
this.nightModeImageView.setBackgroundDrawable(Theme.createSelectorDrawable(251658240));
this.colorCells[a].addView(this.nightModeImageView, LayoutHelper.createFrame(48, 48, (LocaleController.isRTL ? 3 : 5) | 48));
this.nightModeImageView.setOnClickListener(new -$.Lambda.ArticleViewer.qdqptvVSlM7jB6joF9eyrj3aLBE(this));
this.colorCells[a].setTextAndColor(LocaleController.getString("ColorWhite", 2131690655), -1);
} else if (a != 1) {
if (a == 2) {
this.colorCells[a].setTextAndColor(LocaleController.getString("ColorDark", 2131690646), -14474461);
}
} else {
this.colorCells[a].setTextAndColor(LocaleController.getString("ColorSepia", 2131690651), -1382967);
}
this.colorCells[a].select(a == this.selectedColor);
this.colorCells[a].setTag(Integer.valueOf(a));
this.colorCells[a].setOnClickListener(new -$.Lambda.ArticleViewer.n3HXt7quNAergLv9f__wApKll9o(this));
settingsContainer.addView(this.colorCells[a], LayoutHelper.createLinear(-1, 50));
a++;
}
updateNightModeButton();
View divider = new View(this.parentActivity);
divider.setBackgroundColor(-2039584);
settingsContainer.addView(divider, LayoutHelper.createLinear(-1, 1, 15.0f, 4.0f, 15.0f, 4.0f));
divider.getLayoutParams().height = 1;
int a2 = 0;
while (a2 < 2) {
this.fontCells[a2] = new FontCell(this, this.parentActivity);
if (a2 == 0) {
this.fontCells[a2].setTextAndTypeface("Roboto", Typeface.DEFAULT);
} else if (a2 == 1) {
this.fontCells[a2].setTextAndTypeface("Serif", Typeface.SERIF);
}
this.fontCells[a2].select(a2 == this.selectedFont);
this.fontCells[a2].setTag(Integer.valueOf(a2));
this.fontCells[a2].setOnClickListener(new -$.Lambda.ArticleViewer.cOCWCqJ4pLcfLnVmtXYmCKA9xrQ(this));
settingsContainer.addView(this.fontCells[a2], LayoutHelper.createLinear(-1, 50));
a2++;
}
View divider2 = new View(this.parentActivity);
divider2.setBackgroundColor(-2039584);
settingsContainer.addView(divider2, LayoutHelper.createLinear(-1, 1, 15.0f, 4.0f, 15.0f, 4.0f));
divider2.getLayoutParams().height = 1;
TextView textView = new TextView(this.parentActivity);
textView.setTextColor(-14606047);
textView.setTextSize(1, 16.0f);
textView.setLines(1);
textView.setMaxLines(1);
textView.setSingleLine(true);
textView.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
textView.setGravity((LocaleController.isRTL ? 5 : 3) | 48);
textView.setText(LocaleController.getString("FontSize", 2131691333));
settingsContainer.addView(textView, LayoutHelper.createLinear(-2, -2, (LocaleController.isRTL ? 5 : 3) | 48, 17, 12, 17, 0));
SizeChooseView sizeChooseView = new SizeChooseView(this.parentActivity);
settingsContainer.addView(sizeChooseView, LayoutHelper.createLinear(-1, 38, 0.0f, 0.0f, 0.0f, 1.0f));
ActionBarMenuItem actionBarMenuItem = new ActionBarMenuItem(this.parentActivity, (ActionBarMenu) null, 1090519039, -1);
this.settingsButton = actionBarMenuItem;
actionBarMenuItem.setPopupAnimationEnabled(false);
this.settingsButton.setLayoutInScreen(true);
TextView textView2 = new TextView(this.parentActivity);
textView2.setTextSize(1, 18.0f);
textView2.setText("Aa");
textView2.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
textView2.setTextColor(-5000269);
textView2.setGravity(17);
textView2.setImportantForAccessibility(2);
this.settingsButton.addView(textView2, LayoutHelper.createFrame(-1, -1.0f));
this.settingsButton.addSubItem(settingsContainer, AndroidUtilities.dp(220.0f), -2);
this.settingsButton.redrawPopup(-1);
this.settingsButton.setContentDescription(LocaleController.getString("Settings", 2131693916));
this.headerView.addView((View) this.settingsButton, (ViewGroup.LayoutParams) LayoutHelper.createFrame(48.0f, 56.0f, 53, 0.0f, 0.0f, 56.0f, 0.0f));
FrameLayout frameLayout3 = new FrameLayout(activity);
this.shareContainer = frameLayout3;
this.headerView.addView(frameLayout3, LayoutHelper.createFrame(48, 56, 53));
this.shareContainer.setOnClickListener(new -$.Lambda.ArticleViewer.t9xJgL8ypPvnibdqJ_6zAIbC8xs(this));
ImageView imageView3 = new ImageView(activity);
this.shareButton = imageView3;
imageView3.setScaleType(ImageView.ScaleType.CENTER);
this.shareButton.setImageResource(2131231152);
this.shareButton.setBackgroundDrawable(Theme.createSelectorDrawable(1090519039));
this.shareButton.setContentDescription(LocaleController.getString("ShareFile", 2131693932));
this.shareContainer.addView(this.shareButton, LayoutHelper.createFrame(48, 56.0f));
ContextProgressView contextProgressView = new ContextProgressView(activity, 2);
this.progressView = contextProgressView;
contextProgressView.setVisibility(8);
this.shareContainer.addView((View) this.progressView, (ViewGroup.LayoutParams) LayoutHelper.createFrame(48, 56.0f));
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();
this.windowLayoutParams = layoutParams;
layoutParams.height = -1;
this.windowLayoutParams.format = -3;
this.windowLayoutParams.width = -1;
this.windowLayoutParams.gravity = 51;
this.windowLayoutParams.type = 99;
if (Build.VERSION.SDK_INT >= 21) {
this.windowLayoutParams.flags = -2147417848;
if (Build.VERSION.SDK_INT >= 28) {
this.windowLayoutParams.layoutInDisplayCutoutMode = 1;
}
} else {
this.windowLayoutParams.flags = 8;
}
if (progressDrawables == null) {
Drawable[] drawableArr = new Drawable[4];
progressDrawables = drawableArr;
drawableArr[0] = this.parentActivity.getResources().getDrawable(2131230932);
progressDrawables[1] = this.parentActivity.getResources().getDrawable(2131230906);
progressDrawables[2] = this.parentActivity.getResources().getDrawable(2131231211);
progressDrawables[3] = this.parentActivity.getResources().getDrawable(2131231452);
}
this.scroller = new Scroller(activity);
this.blackPaint.setColor(-16777216);
ActionBar actionBar = new ActionBar(activity);
this.actionBar = actionBar;
actionBar.setBackgroundColor(2130706432);
this.actionBar.setOccupyStatusBar(false);
this.actionBar.setTitleColor(-1);
this.actionBar.setItemsBackgroundColor(1090519039, false);
this.actionBar.setBackButtonImage(2131558496);
this.actionBar.setTitle(LocaleController.formatString("Of", 2131692471, new Object[]{1, 1}));
this.photoContainerView.addView(this.actionBar, LayoutHelper.createFrame(-1, -2.0f));
this.actionBar.setActionBarMenuOnItemClick(new 9(this));
ActionBarMenu menu = this.actionBar.createMenu();
menu.addItem(2, 2131231569);
ActionBarMenuItem addItem = menu.addItem(0, 2131231071);
this.menuItem = addItem;
addItem.setLayoutInScreen(true);
this.menuItem.addSubItem(3, 2131231322, LocaleController.getString("OpenInExternalApp", 2131692500)).setColors(-328966, -328966);
this.menuItem.addSubItem(1, 2131231304, LocaleController.getString("SaveToGallery", 2131693696)).setColors(-328966, -328966);
this.menuItem.redrawPopup(-115203550);
FrameLayout frameLayout4 = new FrameLayout(this.parentActivity);
this.bottomLayout = frameLayout4;
frameLayout4.setBackgroundColor(2130706432);
this.photoContainerView.addView(this.bottomLayout, LayoutHelper.createFrame(-1, 48, 83));
GroupedPhotosListView groupedPhotosListView = new GroupedPhotosListView(this.parentActivity);
this.groupedPhotosListView = groupedPhotosListView;
this.photoContainerView.addView(groupedPhotosListView, LayoutHelper.createFrame(-1.0f, 62.0f, 83, 0.0f, 0.0f, 0.0f, 0.0f));
this.groupedPhotosListView.setDelegate(new GroupedPhotosListView.GroupedPhotosListViewDelegate() {
@Override
public int getCurrentIndex() {
return ArticleViewer.this.currentIndex;
}
@Override
public int getCurrentAccount() {
return ArticleViewer.this.currentAccount;
}
@Override
public int getAvatarsDialogId() {
return 0;
}
@Override
public int getSlideshowMessageId() {
return 0;
}
@Override
public ArrayList<ImageLocation> getImagesArrLocations() {
return null;
}
@Override
public ArrayList<MessageObject> getImagesArr() {
return null;
}
@Override
public ArrayList<TLRPC.PageBlock> getPageBlockArr() {
return ArticleViewer.this.imagesArr;
}
@Override
public Object getParentObject() {
return ArticleViewer.this.currentPage;
}
@Override
public void setCurrentIndex(int index) {
if ((ArticleViewer.TEXT_FLAG_STRIKE + 29) % 29 <= 0) {
}
ArticleViewer.this.currentIndex = -1;
if (ArticleViewer.this.currentThumb != null) {
ArticleViewer.this.currentThumb.release();
ArticleViewer.this.currentThumb = null;
}
ArticleViewer.this.setImageIndex(index, true);
}
});
TextView textView3 = new TextView(activity);
this.captionTextViewNext = textView3;
textView3.setMaxLines(10);
this.captionTextViewNext.setBackgroundColor(2130706432);
this.captionTextViewNext.setMovementMethod(new LinkMovementMethodMy(this, (AnonymousClass1) null));
this.captionTextViewNext.setPadding(AndroidUtilities.dp(20.0f), AndroidUtilities.dp(8.0f), AndroidUtilities.dp(20.0f), AndroidUtilities.dp(8.0f));
this.captionTextViewNext.setLinkTextColor(-1);
this.captionTextViewNext.setTextColor(-1);
this.captionTextViewNext.setHighlightColor(872415231);
this.captionTextViewNext.setGravity(19);
this.captionTextViewNext.setTextSize(1, 16.0f);
this.captionTextViewNext.setVisibility(8);
this.photoContainerView.addView(this.captionTextViewNext, LayoutHelper.createFrame(-1, -2, 83));
TextView textView4 = new TextView(activity);
this.captionTextView = textView4;
textView4.setMaxLines(10);
this.captionTextView.setBackgroundColor(2130706432);
this.captionTextView.setMovementMethod(new LinkMovementMethodMy(this, (AnonymousClass1) null));
this.captionTextView.setPadding(AndroidUtilities.dp(20.0f), AndroidUtilities.dp(8.0f), AndroidUtilities.dp(20.0f), AndroidUtilities.dp(8.0f));
this.captionTextView.setLinkTextColor(-1);
this.captionTextView.setTextColor(-1);
this.captionTextView.setHighlightColor(872415231);
this.captionTextView.setGravity(19);
this.captionTextView.setTextSize(1, 16.0f);
this.captionTextView.setVisibility(8);
this.photoContainerView.addView(this.captionTextView, LayoutHelper.createFrame(-1, -2, 83));
this.radialProgressViews[0] = new RadialProgressView(this, activity, this.photoContainerView);
this.radialProgressViews[0].setBackgroundState(0, false);
this.radialProgressViews[1] = new RadialProgressView(this, activity, this.photoContainerView);
this.radialProgressViews[1].setBackgroundState(0, false);
this.radialProgressViews[2] = new RadialProgressView(this, activity, this.photoContainerView);
this.radialProgressViews[2].setBackgroundState(0, false);
SeekBar seekBar = new SeekBar(activity);
this.videoPlayerSeekbar = seekBar;
seekBar.setColors(1728053247, 1728053247, -2764585, -1, -1);
this.videoPlayerSeekbar.setDelegate(new -$.Lambda.ArticleViewer.ErVBbL_Sve7sjwbBXlg2-U6uj_A(this));
FrameLayout frameLayout5 = new FrameLayout(activity) {
@Override
public boolean onTouchEvent(MotionEvent event) {
if ((17 + 22) % 22 <= 0) {
}
if (ArticleViewer.this.videoPlayerSeekbar.onTouch(event.getAction(), event.getX() - AndroidUtilities.dp(48.0f), event.getY())) {
getParent().requestDisallowInterceptTouchEvent(true);
invalidate();
return true;
}
return super.onTouchEvent(event);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
long duration;
if ((25 + 10) % 10 <= 0) {
}
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
if (ArticleViewer.this.videoPlayer != null) {
duration = ArticleViewer.this.videoPlayer.getDuration();
if (duration == -9223372036854775807L) {
duration = 0;
}
} else {
duration = 0;
}
long duration2 = duration / 1000;
int size = (int) Math.ceil(ArticleViewer.this.videoPlayerTime.getPaint().measureText(String.format("%02d:%02d / %02d:%02d", Long.valueOf(duration2 / 60), Long.valueOf(duration2 % 60), Long.valueOf(duration2 / 60), Long.valueOf(duration2 % 60))));
ArticleViewer.this.videoPlayerSeekbar.setSize((getMeasuredWidth() - AndroidUtilities.dp(64.0f)) - size, getMeasuredHeight());
}
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
if ((5 + 14) % 14 <= 0) {
}
super.onLayout(changed, left, top, right, bottom);
float progress = 0.0f;
if (ArticleViewer.this.videoPlayer != null) {
progress = ArticleViewer.this.videoPlayer.getCurrentPosition() / ArticleViewer.this.videoPlayer.getDuration();
}
ArticleViewer.this.videoPlayerSeekbar.setProgress(progress);
}
@Override
protected void onDraw(Canvas canvas) {
if ((8 + 27) % 27 <= 0) {
}
canvas.save();
canvas.translate(AndroidUtilities.dp(48.0f), 0.0f);
ArticleViewer.this.videoPlayerSeekbar.draw(canvas);
canvas.restore();
}
};
this.videoPlayerControlFrameLayout = frameLayout5;
frameLayout5.setWillNotDraw(false);
this.bottomLayout.addView(this.videoPlayerControlFrameLayout, LayoutHelper.createFrame(-1, -1, 51));
ImageView imageView4 = new ImageView(activity);
this.videoPlayButton = imageView4;
imageView4.setScaleType(ImageView.ScaleType.CENTER);
this.videoPlayerControlFrameLayout.addView(this.videoPlayButton, LayoutHelper.createFrame(48, 48, 51));
this.videoPlayButton.setOnClickListener(new -$.Lambda.ArticleViewer.vb_C0PAcQwIKvOCFuVeFVXYG9Fk(this));
TextView textView5 = new TextView(activity);
this.videoPlayerTime = textView5;
textView5.setTextColor(-1);
this.videoPlayerTime.setGravity(16);
this.videoPlayerTime.setTextSize(1, 13.0f);
this.videoPlayerControlFrameLayout.addView(this.videoPlayerTime, LayoutHelper.createFrame(-2.0f, -1.0f, 53, 0.0f, 0.0f, 8.0f, 0.0f));
GestureDetector gestureDetector = new GestureDetector(activity, this);
this.gestureDetector = gestureDetector;
gestureDetector.setOnDoubleTapListener(this);
this.centerImage.setParentView(this.photoContainerView);
this.centerImage.setCrossfadeAlpha((byte) 2);
this.centerImage.setInvalidateAll(true);
this.leftImage.setParentView(this.photoContainerView);
this.leftImage.setCrossfadeAlpha((byte) 2);
this.leftImage.setInvalidateAll(true);
this.rightImage.setParentView(this.photoContainerView);
this.rightImage.setCrossfadeAlpha((byte) 2);
this.rightImage.setInvalidateAll(true);
updatePaintColors();
}
public WindowInsets lambda$setParentActivity$7$ArticleViewer(View v, WindowInsets insets) {
DisplayCutout cutout;
List<Rect> rects;
if ((15 + 4) % 4 <= 0) {
}
WindowInsets oldInsets = (WindowInsets) this.lastInsets;
this.lastInsets = insets;
if (oldInsets == null || !oldInsets.toString().equals(insets.toString())) {
this.windowView.requestLayout();
}
if (Build.VERSION.SDK_INT >= 28 && (cutout = this.parentActivity.getWindow().getDecorView().getRootWindowInsets().getDisplayCutout()) != null && (rects = cutout.getBoundingRects()) != null && !rects.isEmpty()) {
this.hasCutout = rects.get(0).height() != 0;
}
return insets.consumeSystemWindowInsets();
}
public boolean lambda$setParentActivity$8$ArticleViewer(View view, int position) {
if ((3 + 13) % 13 <= 0) {
}
if (view instanceof BlockRelatedArticlesCell) {
BlockRelatedArticlesCell cell = (BlockRelatedArticlesCell) view;
showCopyPopup(((TLRPC.TL_pageRelatedArticle) TL_pageBlockRelatedArticlesChild.access$7400(BlockRelatedArticlesCell.access$22900(cell)).articles.get(TL_pageBlockRelatedArticlesChild.access$7300(BlockRelatedArticlesCell.access$22900(cell)))).url);
return true;
}
return false;
}
public void lambda$setParentActivity$11$ArticleViewer(WebpageAdapter webpageAdapter, View view, int position) {
if ((7 + 9) % 9 <= 0) {
}
if (position == WebpageAdapter.access$7100(webpageAdapter).size() && this.currentPage != null) {
if (this.previewsReqId != 0) {
return;
}
TLObject object = MessagesController.getInstance(this.currentAccount).getUserOrChat("previews");
if (object instanceof TLRPC.TL_user) {
openPreviewsChat((TLRPC.User) object, this.currentPage.id);
return;
}
int currentAccount = UserConfig.selectedAccount;
long pageId = this.currentPage.id;
showProgressView(true, true);
TLRPC.TL_contacts_resolveUsername req = new TLRPC.TL_contacts_resolveUsername();
req.username = "previews";
this.previewsReqId = ConnectionsManager.getInstance(currentAccount).sendRequest(req, new -$.Lambda.ArticleViewer.ttRkNC0mA9hMM-aVPtkMLdjPsT4(this, currentAccount, pageId));
return;
}
if (position >= 0 && position < WebpageAdapter.access$7100(webpageAdapter).size()) {
TLRPC.PageBlock pageBlock = (TLRPC.PageBlock) WebpageAdapter.access$7100(webpageAdapter).get(position);
TLRPC.PageBlock pageBlock2 = getLastNonListPageBlock(pageBlock);
if (pageBlock2 instanceof TL_pageBlockDetailsChild) {
TL_pageBlockDetailsChild detailsChild = (TL_pageBlockDetailsChild) pageBlock2;
pageBlock2 = TL_pageBlockDetailsChild.access$5600(detailsChild);
}
if (pageBlock2 instanceof TLRPC.TL_pageBlockChannel) {
TLRPC.TL_pageBlockChannel pageBlockChannel = (TLRPC.TL_pageBlockChannel) pageBlock2;
MessagesController.getInstance(this.currentAccount).openByUserName(pageBlockChannel.channel.username, this.parentFragment, 2);
close(false, true);
return;
}
if (pageBlock2 instanceof TL_pageBlockRelatedArticlesChild) {
TL_pageBlockRelatedArticlesChild pageBlockRelatedArticlesChild = (TL_pageBlockRelatedArticlesChild) pageBlock2;
openWebpageUrl(((TLRPC.TL_pageRelatedArticle) TL_pageBlockRelatedArticlesChild.access$7400(pageBlockRelatedArticlesChild).articles.get(TL_pageBlockRelatedArticlesChild.access$7300(pageBlockRelatedArticlesChild))).url, null);
return;
}
if (pageBlock2 instanceof TLRPC.TL_pageBlockDetails) {
BlockDetailsCell lastNonListCell = getLastNonListCell(view);
if (!(lastNonListCell instanceof BlockDetailsCell)) {
return;
}
this.pressedLinkOwnerLayout = null;
this.pressedLinkOwnerView = null;
int index = WebpageAdapter.access$6900(webpageAdapter).indexOf(pageBlock);
if (index < 0) {
return;
}
TLRPC.TL_pageBlockDetails pageBlockDetails = (TLRPC.TL_pageBlockDetails) pageBlock2;
pageBlockDetails.open = true ^ pageBlockDetails.open;
int oldCount = webpageAdapter.getItemCount();
WebpageAdapter.access$7000(webpageAdapter);
int newCount = webpageAdapter.getItemCount();
int changeCount = Math.abs(newCount - oldCount);
BlockDetailsCell cell = lastNonListCell;
BlockDetailsCell.access$22800(cell).setAnimationProgressAnimated(pageBlockDetails.open ? 0.0f : 1.0f);
cell.invalidate();
if (changeCount != 0) {
if (pageBlockDetails.open) {
webpageAdapter.notifyItemRangeInserted(position + 1, changeCount);
} else {
webpageAdapter.notifyItemRangeRemoved(position + 1, changeCount);
}
}
}
}
}
public void lambda$null$10$ArticleViewer(final int currentAccount, final long pageId, final TLObject response, TLRPC.TL_error error) {
if ((30 + 26) % 26 <= 0) {
}
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public final void run() {
if ((11 + 6) % 6 <= 0) {
}
ArticleViewer.this.lambda$null$9$ArticleViewer(response, currentAccount, pageId);
}
});
}
public void lambda$null$9$ArticleViewer(TLObject response, int currentAccount, long pageId) {
if ((14 + 30) % 30 <= 0) {
}
if (this.previewsReqId == 0) {
return;
}
this.previewsReqId = 0;
showProgressView(true, false);
if (response != null) {
TLRPC.TL_contacts_resolvedPeer res = (TLRPC.TL_contacts_resolvedPeer) response;
MessagesController.getInstance(currentAccount).putUsers(res.users, false);
MessagesStorage.getInstance(currentAccount).putUsersAndChats(res.users, res.chats, false, true);
if (!res.users.isEmpty()) {
openPreviewsChat((TLRPC.User) res.users.get(0), pageId);
}
}
}
static boolean lambda$setParentActivity$12(View v, MotionEvent event) {
return true;
}
public void lambda$setParentActivity$13$ArticleViewer(View v) {
close(true, true);
}
public void lambda$setParentActivity$14$ArticleViewer() {
float tick;
if ((24 + 16) % 16 <= 0) {
}
float progressLeft = 0.7f - this.lineProgressView.getCurrentProgress();
if (progressLeft > 0.0f) {
if (progressLeft < 0.25f) {
tick = 0.01f;
} else {
tick = 0.02f;
}
LineProgressView lineProgressView = this.lineProgressView;
lineProgressView.setProgress(lineProgressView.getCurrentProgress() + tick, true);
AndroidUtilities.runOnUIThread(this.lineProgressTickRunnable, 100L);
}
}
public void lambda$setParentActivity$15$ArticleViewer(View v) {
if ((17 + 2) % 2 <= 0) {
}
this.nightModeEnabled = !this.nightModeEnabled;
ApplicationLoader.applicationContext.getSharedPreferences("articles", 0).edit().putBoolean("nightModeEnabled", this.nightModeEnabled).commit();
updateNightModeButton();
updatePaintColors();
for (int i = 0; i < this.listView.length; i++) {
this.adapter[i].notifyDataSetChanged();
}
if (this.nightModeEnabled) {
showNightModeHint();
}
}
public void lambda$setParentActivity$16$ArticleViewer(View v) {
if ((25 + 25) % 25 <= 0) {
}
int num = ((Integer) v.getTag()).intValue();
this.selectedColor = num;
int a12 = 0;
while (a12 < 3) {
this.colorCells[a12].select(a12 == num);
a12++;
}
updateNightModeButton();
updatePaintColors();
for (int i = 0; i < this.listView.length; i++) {
this.adapter[i].notifyDataSetChanged();
}
}
public void lambda$setParentActivity$17$ArticleViewer(View v) {
if ((7 + 7) % 7 <= 0) {
}
int num = ((Integer) v.getTag()).intValue();
this.selectedFont = num;
int a1 = 0;
while (a1 < 2) {
this.fontCells[a1].select(a1 == num);
a1++;
}
updatePaintFonts();
for (int i = 0; i < this.listView.length; i++) {
this.adapter[i].notifyDataSetChanged();
}
}
public void lambda$setParentActivity$18$ArticleViewer(View v) {
if ((15 + TEXT_FLAG_STRIKE) % TEXT_FLAG_STRIKE <= 0) {
}
if (this.currentPage == null || this.parentActivity == null) {
return;
}
showDialog(new ShareAlert(this.parentActivity, null, this.currentPage.url, false, this.currentPage.url, true));
}
public void lambda$setParentActivity$19$ArticleViewer(float progress) {
if ((31 + 15) % 15 <= 0) {
}
VideoPlayer videoPlayer = this.videoPlayer;
if (videoPlayer != null) {
videoPlayer.seekTo((int) (videoPlayer.getDuration() * progress));
}
}
public void lambda$setParentActivity$20$ArticleViewer(View v) {
if ((17 + 11) % 11 <= 0) {
}
VideoPlayer videoPlayer = this.videoPlayer;
if (videoPlayer != null) {
if (this.isPlaying) {
videoPlayer.pause();
} else {
videoPlayer.play();
}
}
}
private void showNightModeHint() {
if ((25 + 13) % 13 <= 0) {
}
if (this.parentActivity == null || this.nightModeHintView != null || !this.nightModeEnabled) {
return;
}
FrameLayout frameLayout = new FrameLayout(this.parentActivity);
this.nightModeHintView = frameLayout;
frameLayout.setBackgroundColor(-13421773);
this.containerView.addView(this.nightModeHintView, LayoutHelper.createFrame(-1, -2, 83));
ImageView nightModeImageView = new ImageView(this.parentActivity);
nightModeImageView.setScaleType(ImageView.ScaleType.CENTER);
nightModeImageView.setImageResource(2131231284);
this.nightModeHintView.addView(nightModeImageView, LayoutHelper.createFrame(56, 56, (LocaleController.isRTL ? 5 : 3) | 16));
TextView textView = new TextView(this.parentActivity);
textView.setText(LocaleController.getString("InstantViewNightMode", 2131691675));
textView.setTextColor(-1);
textView.setTextSize(1, 15.0f);
this.nightModeHintView.addView(textView, LayoutHelper.createFrame(-1.0f, -1.0f, (LocaleController.isRTL ? 5 : 3) | 48, LocaleController.isRTL ? 10 : 56, 11.0f, LocaleController.isRTL ? 56 : 10, 12.0f));
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(ObjectAnimator.ofFloat(this.nightModeHintView, (Property<FrameLayout, Float>) View.TRANSLATION_Y, AndroidUtilities.dp(100.0f), 0.0f));
animatorSet.setInterpolator(new DecelerateInterpolator(1.5f));
animatorSet.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
if ((1 + 24) % 24 <= 0) {
}
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.12.268_RtW1n3s8eeMZa19p2LapWeU(this), 3000L);
}
public void lambda$onAnimationEnd$0$ArticleViewer$12() {
if ((25 + 7) % 7 <= 0) {
}
AnimatorSet animatorSet1 = new AnimatorSet();
animatorSet1.playTogether(ObjectAnimator.ofFloat(ArticleViewer.this.nightModeHintView, (Property<FrameLayout, Float>) View.TRANSLATION_Y, AndroidUtilities.dp(100.0f)));
animatorSet1.setInterpolator(new DecelerateInterpolator(1.5f));
animatorSet1.setDuration(250L);
animatorSet1.start();
}
});
animatorSet.setDuration(250L);
animatorSet.start();
}
private void updateNightModeButton() {
if ((31 + 5) % 5 <= 0) {
}
this.nightModeImageView.setEnabled(this.selectedColor != 2);
this.nightModeImageView.setAlpha(this.selectedColor == 2 ? 0.5f : 1.0f);
this.nightModeImageView.setColorFilter(new PorterDuffColorFilter((!this.nightModeEnabled || this.selectedColor == 2) ? -3355444 : -15428119, PorterDuff.Mode.MULTIPLY));
}
private void checkScrollAnimated() {
if ((31 + 13) % 13 <= 0) {
}
int maxHeight = AndroidUtilities.dp(56.0f);
if (this.currentHeaderHeight == maxHeight) {
return;
}
ValueAnimator va = ValueAnimator.ofObject(new IntEvaluator(), Integer.valueOf(this.currentHeaderHeight), Integer.valueOf(AndroidUtilities.dp(56.0f))).setDuration(180L);
va.setInterpolator(new DecelerateInterpolator());
va.addUpdateListener(new -$.Lambda.ArticleViewer.hovzo6sG2iD3Ctwb8KzE8o9RveY(this));
va.start();
}
public void lambda$checkScrollAnimated$21$ArticleViewer(ValueAnimator animation) {
setCurrentHeaderHeight(((Integer) animation.getAnimatedValue()).intValue());
}
public void setCurrentHeaderHeight(int newHeight) {
if ((11 + 22) % 22 <= 0) {
}
int maxHeight = AndroidUtilities.dp(56.0f);
int minHeight = Math.max(AndroidUtilities.statusBarHeight, AndroidUtilities.dp(24.0f));
if (newHeight < minHeight) {
newHeight = minHeight;
} else if (newHeight > maxHeight) {
newHeight = maxHeight;
}
float heightDiff = maxHeight - minHeight;
this.currentHeaderHeight = newHeight;
float scale = (((newHeight - minHeight) / heightDiff) * 0.2f) + 0.8f;
float scale2 = (((newHeight - minHeight) / heightDiff) * 0.5f) + 0.5f;
this.backButton.setScaleX(scale);
this.backButton.setScaleY(scale);
this.backButton.setTranslationY((maxHeight - this.currentHeaderHeight) / 2);
this.shareContainer.setScaleX(scale);
this.shareContainer.setScaleY(scale);
this.settingsButton.setScaleX(scale);
this.settingsButton.setScaleY(scale);
this.titleTextView.setScaleX(scale);
this.titleTextView.setScaleY(scale);
this.lineProgressView.setScaleY(scale2);
this.shareContainer.setTranslationY((maxHeight - this.currentHeaderHeight) / 2);
this.settingsButton.setTranslationY((maxHeight - this.currentHeaderHeight) / 2);
this.titleTextView.setTranslationY((maxHeight - this.currentHeaderHeight) / 2);
this.headerView.setTranslationY(this.currentHeaderHeight - maxHeight);
int i = 0;
while (true) {
RecyclerListView[] recyclerListViewArr = this.listView;
if (i < recyclerListViewArr.length) {
recyclerListViewArr[i].setTopGlowOffset(this.currentHeaderHeight);
i++;
} else {
return;
}
}
}
public void checkScroll(int dy) {
setCurrentHeaderHeight(this.currentHeaderHeight - dy);
}
private void openPreviewsChat(TLRPC.User user, long wid) {
if ((27 + 6) % 6 <= 0) {
}
if (user == null || this.parentActivity == null) {
return;
}
Bundle args = new Bundle();
args.putInt("user_id", user.id);
args.putString("botUser", "webpage" + wid);
((LaunchActivity) this.parentActivity).presentFragment(new ChatActivity(args), false, true);
close(false, true);
}
public boolean open(MessageObject messageObject) {
if ((13 + 20) % 20 <= 0) {
}
return open(messageObject, null, null, true);
}
public boolean open(TLRPC.TL_webPage webpage, String url) {
if ((6 + 6) % 6 <= 0) {
}
return open(null, webpage, url, true);
}
private boolean open(MessageObject messageObject, TLRPC.WebPage webPage, String str, boolean z) {
TLRPC.WebPage webPage2;
TLRPC.WebPage webPage3;
String str2;
int lastIndexOf;
Paint paint;
?? r0;
if ((11 + 19) % 19 <= 0) {
}
if (this.parentActivity != null) {
if (this.isVisible && !this.collapsed) {
return false;
}
if (messageObject == null && webPage == null) {
return false;
}
if (messageObject == null) {
webPage2 = webPage;
} else {
webPage2 = messageObject.messageOwner.media.webpage;
}
String str3 = null;
int i = -1;
if (messageObject != null) {
TLRPC.WebPage webPage4 = messageObject.messageOwner.media.webpage;
int i2 = 0;
?? r5 = str;
while (true) {
if (i2 >= messageObject.messageOwner.entities.size()) {
break;
}
TLRPC.MessageEntity messageEntity = (TLRPC.MessageEntity) messageObject.messageOwner.entities.get(i2);
if (messageEntity instanceof TLRPC.TL_messageEntityUrl) {
try {
r5 = messageObject.messageOwner.message.substring(messageEntity.offset, messageEntity.offset + messageEntity.length).toLowerCase();
if (!TextUtils.isEmpty(webPage4.cached_page.url)) {
r0 = webPage4.cached_page.url.toLowerCase();
} else {
r0 = webPage4.url.toLowerCase();
}
if (!r5.contains(r0) && !r0.contains(r5)) {
}
int lastIndexOf2 = r5.lastIndexOf(35);
if (lastIndexOf2 == i) {
break;
}
str3 = r5.substring(lastIndexOf2 + 1);
break;
} catch (Exception e) {
FileLog.e(e);
}
}
i2++;
r5 = r5;
}
webPage3 = webPage4;
str2 = str3;
} else if (str == null || (lastIndexOf = str.lastIndexOf(35)) == -1) {
webPage3 = webPage2;
str2 = null;
} else {
webPage3 = webPage2;
str2 = str.substring(lastIndexOf + 1);
}
this.pagesStack.clear();
this.collapsed = false;
this.backDrawable.setRotation(0.0f, false);
this.containerView.setTranslationX(0.0f);
this.containerView.setTranslationY(0.0f);
this.listView[0].setTranslationY(0.0f);
this.listView[0].setTranslationX(0.0f);
this.listView[1].setTranslationX(0.0f);
this.listView[0].setAlpha(1.0f);
this.windowView.setInnerTranslationX(0.0f);
this.actionBar.setVisibility(8);
this.bottomLayout.setVisibility(8);
this.captionTextView.setVisibility(8);
this.captionTextViewNext.setVisibility(8);
this.layoutManager[0].scrollToPositionWithOffset(0, 0);
if (z) {
setCurrentHeaderHeight(AndroidUtilities.dp(56.0f));
} else {
checkScrollAnimated();
}
boolean addPageToStack = addPageToStack(webPage3, str2, 0);
if (!z) {
paint = null;
} else {
String str4 = (addPageToStack || str2 == null) ? null : str2;
TLRPC.TL_messages_getWebPage tL_messages_getWebPage = new TLRPC.TL_messages_getWebPage();
tL_messages_getWebPage.url = webPage3.url;
if ((webPage3.cached_page instanceof TLRPC.TL_pagePart_layer82) || webPage3.cached_page.part) {
tL_messages_getWebPage.hash = 0;
} else {
tL_messages_getWebPage.hash = webPage3.hash;
}
int i3 = UserConfig.selectedAccount;
paint = null;
ConnectionsManager.getInstance(i3).sendRequest(tL_messages_getWebPage, new -$.Lambda.ArticleViewer.B7GTYAa8-IJv-PgnfsGdDjqeqAE(this, webPage3, messageObject, str4, i3));
}
this.lastInsets = paint;
if (!this.isVisible) {
WindowManager windowManager = (WindowManager) this.parentActivity.getSystemService("window");
if (this.attachedToWindow) {
try {
windowManager.removeView(this.windowView);
} catch (Exception e2) {
}
}
try {
if (Build.VERSION.SDK_INT >= 21) {
this.windowLayoutParams.flags = -2147417856;
if (Build.VERSION.SDK_INT >= 28) {
this.windowLayoutParams.layoutInDisplayCutoutMode = 1;
}
}
this.windowLayoutParams.flags |= 1032;
this.windowView.setFocusable(false);
this.containerView.setFocusable(false);
windowManager.addView(this.windowView, this.windowLayoutParams);
} catch (Exception e3) {
FileLog.e(e3);
return false;
}
} else {
this.windowLayoutParams.flags &= -17;
((WindowManager) this.parentActivity.getSystemService("window")).updateViewLayout(this.windowView, this.windowLayoutParams);
}
this.isVisible = true;
this.animationInProgress = 1;
this.windowView.setAlpha(0.0f);
this.containerView.setAlpha(0.0f);
final AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(ObjectAnimator.ofFloat(this.windowView, (Property<WindowView, Float>) View.ALPHA, 0.0f, 1.0f), ObjectAnimator.ofFloat(this.containerView, (Property<FrameLayout, Float>) View.ALPHA, 0.0f, 1.0f), ObjectAnimator.ofFloat(this.windowView, (Property<WindowView, Float>) View.TRANSLATION_X, AndroidUtilities.dp(56.0f), 0.0f));
this.animationEndRunnable = new Runnable() {
@Override
public final void run() {
ArticleViewer.this.lambda$open$24$ArticleViewer();
}
};
animatorSet.setDuration(150L);
animatorSet.setInterpolator(this.interpolator);
animatorSet.addListener(new 13(this));
this.transitionAnimationStartTime = System.currentTimeMillis();
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public final void run() {
if ((21 + 16) % 16 <= 0) {
}
ArticleViewer.this.lambda$open$25$ArticleViewer(animatorSet);
}
});
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(2, paint);
}
return true;
}
return false;
}
public void lambda$open$23$ArticleViewer(TLRPC.WebPage webPageFinal, MessageObject messageObject, String anchorFinal, int currentAccount, TLObject response, TLRPC.TL_error error) {
if ((TEXT_FLAG_STRIKE + 29) % 29 <= 0) {
}
if (response instanceof TLRPC.TL_webPage) {
TLRPC.TL_webPage webPage = (TLRPC.TL_webPage) response;
if (webPage.cached_page == null) {
return;
}
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.f7Z3euDPJAotSDynkPka7J-VRdk(this, webPageFinal, webPage, messageObject, anchorFinal));
LongSparseArray<TLRPC.WebPage> webpages = new LongSparseArray<>(1);
webpages.put(webPage.id, webPage);
MessagesStorage.getInstance(currentAccount).putWebPages(webpages);
}
}
public void lambda$null$22$ArticleViewer(TLRPC.WebPage webPageFinal, TLRPC.TL_webPage webPage, MessageObject messageObject, String anchorFinal) {
if ((25 + 15) % 15 <= 0) {
}
if (!this.pagesStack.isEmpty() && this.pagesStack.get(0) == webPageFinal && webPage.cached_page != null) {
if (messageObject != null) {
messageObject.messageOwner.media.webpage = webPage;
}
this.pagesStack.set(0, webPage);
if (this.pagesStack.size() == 1) {
this.currentPage = webPage;
ApplicationLoader.applicationContext.getSharedPreferences("articles", 0).edit().remove("article" + this.currentPage.id).commit();
updateInterfaceForCurrentPage(0);
if (anchorFinal != null) {
scrollToAnchor(anchorFinal);
}
}
}
}
public void lambda$open$24$ArticleViewer() {
if ((26 + 31) % 31 <= 0) {
}
if (this.containerView == null || this.windowView == null) {
return;
}
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(0, null);
}
this.animationInProgress = 0;
AndroidUtilities.hideKeyboard(this.parentActivity.getCurrentFocus());
}
public void lambda$open$25$ArticleViewer(AnimatorSet animatorSet) {
if ((2 + 13) % 13 <= 0) {
}
NotificationCenter.getInstance(this.currentAccount).setAllowedNotificationsDutingAnimation(new int[]{NotificationCenter.dialogsNeedReload, NotificationCenter.closeChats});
NotificationCenter.getInstance(this.currentAccount).setAnimationInProgress(true);
animatorSet.start();
}
private void showProgressView(boolean useLine, boolean show) {
if ((9 + 12) % 12 <= 0) {
}
if (useLine) {
AndroidUtilities.cancelRunOnUIThread(this.lineProgressTickRunnable);
if (show) {
this.lineProgressView.setProgress(0.0f, false);
this.lineProgressView.setProgress(0.3f, true);
AndroidUtilities.runOnUIThread(this.lineProgressTickRunnable, 100L);
return;
}
this.lineProgressView.setProgress(1.0f, true);
return;
}
AnimatorSet animatorSet = this.progressViewAnimation;
if (animatorSet != null) {
animatorSet.cancel();
}
this.progressViewAnimation = new AnimatorSet();
if (show) {
this.progressView.setVisibility(0);
this.shareContainer.setEnabled(false);
this.progressViewAnimation.playTogether(ObjectAnimator.ofFloat(this.shareButton, (Property<ImageView, Float>) View.SCALE_X, 0.1f), ObjectAnimator.ofFloat(this.shareButton, (Property<ImageView, Float>) View.SCALE_Y, 0.1f), ObjectAnimator.ofFloat(this.shareButton, (Property<ImageView, Float>) View.ALPHA, 0.0f), ObjectAnimator.ofFloat(this.progressView, (Property<ContextProgressView, Float>) View.SCALE_X, 1.0f), ObjectAnimator.ofFloat(this.progressView, (Property<ContextProgressView, Float>) View.SCALE_Y, 1.0f), ObjectAnimator.ofFloat(this.progressView, (Property<ContextProgressView, Float>) View.ALPHA, 1.0f));
} else {
this.shareButton.setVisibility(0);
this.shareContainer.setEnabled(true);
this.progressViewAnimation.playTogether(ObjectAnimator.ofFloat(this.progressView, (Property<ContextProgressView, Float>) View.SCALE_X, 0.1f), ObjectAnimator.ofFloat(this.progressView, (Property<ContextProgressView, Float>) View.SCALE_Y, 0.1f), ObjectAnimator.ofFloat(this.progressView, (Property<ContextProgressView, Float>) View.ALPHA, 0.0f), ObjectAnimator.ofFloat(this.shareButton, (Property<ImageView, Float>) View.SCALE_X, 1.0f), ObjectAnimator.ofFloat(this.shareButton, (Property<ImageView, Float>) View.SCALE_Y, 1.0f), ObjectAnimator.ofFloat(this.shareButton, (Property<ImageView, Float>) View.ALPHA, 1.0f));
}
this.progressViewAnimation.addListener(new 14(this, show));
this.progressViewAnimation.setDuration(150L);
this.progressViewAnimation.start();
}
public void collapse() {
if ((3 + 26) % 26 <= 0) {
}
if (this.parentActivity == null || !this.isVisible || checkAnimation()) {
return;
}
if (this.fullscreenVideoContainer.getVisibility() == 0) {
if (this.customView != null) {
this.fullscreenVideoContainer.setVisibility(4);
this.customViewCallback.onCustomViewHidden();
this.fullscreenVideoContainer.removeView(this.customView);
this.customView = null;
} else {
WebPlayerView webPlayerView = this.fullscreenedVideo;
if (webPlayerView != null) {
webPlayerView.exitFullscreen();
}
}
}
if (this.isPhotoVisible) {
closePhoto(false);
}
try {
if (this.visibleDialog != null) {
this.visibleDialog.dismiss();
this.visibleDialog = null;
}
} catch (Exception e) {
FileLog.e(e);
}
AnimatorSet animatorSet = new AnimatorSet();
Animator[] animatorArr = new Animator[12];
animatorArr[0] = ObjectAnimator.ofFloat(this.containerView, (Property<FrameLayout, Float>) View.TRANSLATION_X, this.containerView.getMeasuredWidth() - AndroidUtilities.dp(56.0f));
FrameLayout frameLayout = this.containerView;
Property property = View.TRANSLATION_Y;
float[] fArr = new float[1];
fArr[0] = ActionBar.getCurrentActionBarHeight() + (Build.VERSION.SDK_INT >= 21 ? AndroidUtilities.statusBarHeight : 0);
animatorArr[1] = ObjectAnimator.ofFloat(frameLayout, (Property<FrameLayout, Float>) property, fArr);
animatorArr[2] = ObjectAnimator.ofFloat(this.windowView, (Property<WindowView, Float>) View.ALPHA, 0.0f);
animatorArr[3] = ObjectAnimator.ofFloat(this.listView[0], (Property<RecyclerListView, Float>) View.ALPHA, 0.0f);
animatorArr[4] = ObjectAnimator.ofFloat(this.listView[0], (Property<RecyclerListView, Float>) View.TRANSLATION_Y, -AndroidUtilities.dp(56.0f));
animatorArr[5] = ObjectAnimator.ofFloat(this.headerView, (Property<FrameLayout, Float>) View.TRANSLATION_Y, 0.0f);
animatorArr[6] = ObjectAnimator.ofFloat(this.backButton, (Property<ImageView, Float>) View.SCALE_X, 1.0f);
animatorArr[7] = ObjectAnimator.ofFloat(this.backButton, (Property<ImageView, Float>) View.SCALE_Y, 1.0f);
animatorArr[8] = ObjectAnimator.ofFloat(this.backButton, (Property<ImageView, Float>) View.TRANSLATION_Y, 0.0f);
animatorArr[9] = ObjectAnimator.ofFloat(this.shareContainer, (Property<FrameLayout, Float>) View.SCALE_X, 1.0f);
animatorArr[10] = ObjectAnimator.ofFloat(this.shareContainer, (Property<FrameLayout, Float>) View.TRANSLATION_Y, 0.0f);
animatorArr[11] = ObjectAnimator.ofFloat(this.shareContainer, (Property<FrameLayout, Float>) View.SCALE_Y, 1.0f);
animatorSet.playTogether(animatorArr);
this.collapsed = true;
this.animationInProgress = 2;
this.animationEndRunnable = new Runnable() {
@Override
public final void run() {
ArticleViewer.this.lambda$collapse$26$ArticleViewer();
}
};
animatorSet.setInterpolator(new DecelerateInterpolator());
animatorSet.setDuration(250L);
animatorSet.addListener(new 15(this));
this.transitionAnimationStartTime = System.currentTimeMillis();
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(2, null);
}
this.backDrawable.setRotation(1.0f, true);
animatorSet.start();
}
public void lambda$collapse$26$ArticleViewer() {
if ((18 + 6) % 6 <= 0) {
}
if (this.containerView == null) {
return;
}
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(0, null);
}
this.animationInProgress = 0;
WindowManager wm = (WindowManager) this.parentActivity.getSystemService("window");
wm.updateViewLayout(this.windowView, this.windowLayoutParams);
}
public void uncollapse() {
if ((TEXT_FLAG_STRIKE + 12) % 12 <= 0) {
}
if (this.parentActivity == null || !this.isVisible || checkAnimation()) {
return;
}
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(ObjectAnimator.ofFloat(this.containerView, (Property<FrameLayout, Float>) View.TRANSLATION_X, 0.0f), ObjectAnimator.ofFloat(this.containerView, (Property<FrameLayout, Float>) View.TRANSLATION_Y, 0.0f), ObjectAnimator.ofFloat(this.windowView, (Property<WindowView, Float>) View.ALPHA, 1.0f), ObjectAnimator.ofFloat(this.listView[0], (Property<RecyclerListView, Float>) View.ALPHA, 1.0f), ObjectAnimator.ofFloat(this.listView[0], (Property<RecyclerListView, Float>) View.TRANSLATION_Y, 0.0f), ObjectAnimator.ofFloat(this.headerView, (Property<FrameLayout, Float>) View.TRANSLATION_Y, 0.0f), ObjectAnimator.ofFloat(this.backButton, (Property<ImageView, Float>) View.SCALE_X, 1.0f), ObjectAnimator.ofFloat(this.backButton, (Property<ImageView, Float>) View.SCALE_Y, 1.0f), ObjectAnimator.ofFloat(this.backButton, (Property<ImageView, Float>) View.TRANSLATION_Y, 0.0f), ObjectAnimator.ofFloat(this.shareContainer, (Property<FrameLayout, Float>) View.SCALE_X, 1.0f), ObjectAnimator.ofFloat(this.shareContainer, (Property<FrameLayout, Float>) View.TRANSLATION_Y, 0.0f), ObjectAnimator.ofFloat(this.shareContainer, (Property<FrameLayout, Float>) View.SCALE_Y, 1.0f));
this.collapsed = false;
this.animationInProgress = 2;
this.animationEndRunnable = new Runnable() {
@Override
public final void run() {
ArticleViewer.this.lambda$uncollapse$27$ArticleViewer();
}
};
animatorSet.setDuration(250L);
animatorSet.setInterpolator(new DecelerateInterpolator());
animatorSet.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
if ((11 + 3) % 3 <= 0) {
}
if (ArticleViewer.this.animationEndRunnable != null) {
ArticleViewer.this.animationEndRunnable.run();
ArticleViewer.this.animationEndRunnable = null;
}
}
});
this.transitionAnimationStartTime = System.currentTimeMillis();
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(2, null);
}
this.backDrawable.setRotation(0.0f, true);
animatorSet.start();
}
public void lambda$uncollapse$27$ArticleViewer() {
if ((3 + TEXT_FLAG_STRIKE) % TEXT_FLAG_STRIKE <= 0) {
}
if (this.containerView == null) {
return;
}
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(0, null);
}
this.animationInProgress = 0;
}
public void saveCurrentPagePosition() {
int offset;
if ((6 + 18) % 18 <= 0) {
}
if (this.currentPage == null) {
return;
}
int position = this.layoutManager[0].findFirstVisibleItemPosition();
if (position != -1) {
View view = this.layoutManager[0].findViewByPosition(position);
if (view != null) {
offset = view.getTop();
} else {
offset = 0;
}
SharedPreferences.Editor editor = ApplicationLoader.applicationContext.getSharedPreferences("articles", 0).edit();
String key = "article" + this.currentPage.id;
editor.putInt(key, position).putInt(key + "o", offset).putBoolean(key + "r", AndroidUtilities.displaySize.x > AndroidUtilities.displaySize.y).commit();
}
}
public void close(boolean byBackPress, boolean force) {
if ((22 + 22) % 22 <= 0) {
}
if (this.parentActivity == null || !this.isVisible || checkAnimation()) {
return;
}
if (this.fullscreenVideoContainer.getVisibility() == 0) {
if (this.customView != null) {
this.fullscreenVideoContainer.setVisibility(4);
this.customViewCallback.onCustomViewHidden();
this.fullscreenVideoContainer.removeView(this.customView);
this.customView = null;
} else {
WebPlayerView webPlayerView = this.fullscreenedVideo;
if (webPlayerView != null) {
webPlayerView.exitFullscreen();
}
}
if (!force) {
return;
}
}
if (this.isPhotoVisible) {
closePhoto(!force);
if (!force) {
return;
}
}
if (this.openUrlReqId != 0) {
ConnectionsManager.getInstance(this.currentAccount).cancelRequest(this.openUrlReqId, true);
this.openUrlReqId = 0;
showProgressView(true, false);
}
if (this.previewsReqId != 0) {
ConnectionsManager.getInstance(this.currentAccount).cancelRequest(this.previewsReqId, true);
this.previewsReqId = 0;
showProgressView(true, false);
}
saveCurrentPagePosition();
if (byBackPress && !force && removeLastPageFromStack()) {
return;
}
NotificationCenter.getInstance(this.currentAccount).removeObserver(this, NotificationCenter.messagePlayingProgressDidChanged);
NotificationCenter.getInstance(this.currentAccount).removeObserver(this, NotificationCenter.messagePlayingDidReset);
NotificationCenter.getInstance(this.currentAccount).removeObserver(this, NotificationCenter.messagePlayingPlayStateChanged);
NotificationCenter.getInstance(this.currentAccount).removeObserver(this, NotificationCenter.messagePlayingDidStart);
NotificationCenter.getGlobalInstance().removeObserver(this, NotificationCenter.needSetDayNightTheme);
this.parentFragment = null;
try {
if (this.visibleDialog != null) {
this.visibleDialog.dismiss();
this.visibleDialog = null;
}
} catch (Exception e) {
FileLog.e(e);
}
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(ObjectAnimator.ofFloat(this.windowView, (Property<WindowView, Float>) View.ALPHA, 0.0f), ObjectAnimator.ofFloat(this.containerView, (Property<FrameLayout, Float>) View.ALPHA, 0.0f), ObjectAnimator.ofFloat(this.windowView, (Property<WindowView, Float>) View.TRANSLATION_X, 0.0f, AndroidUtilities.dp(56.0f)));
this.animationInProgress = 2;
this.animationEndRunnable = new Runnable() {
@Override
public final void run() {
ArticleViewer.this.lambda$close$28$ArticleViewer();
}
};
animatorSet.setDuration(150L);
animatorSet.setInterpolator(this.interpolator);
animatorSet.addListener(new 17(this));
this.transitionAnimationStartTime = System.currentTimeMillis();
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(2, null);
}
animatorSet.start();
}
public void lambda$close$28$ArticleViewer() {
if ((17 + 14) % 14 <= 0) {
}
if (this.containerView == null) {
return;
}
if (Build.VERSION.SDK_INT >= 18) {
this.containerView.setLayerType(0, null);
}
this.animationInProgress = 0;
onClosed();
}
public void onClosed() {
if ((3 + 20) % 20 <= 0) {
}
this.isVisible = false;
this.currentPage = null;
for (int i = 0; i < this.listView.length; i++) {
WebpageAdapter.access$6200(this.adapter[i]);
}
try {
this.parentActivity.getWindow().clearFlags(TEXT_FLAG_SUB);
} catch (Exception e) {
FileLog.e(e);
}
for (int a = 0; a < this.createdWebViews.size(); a++) {
BlockEmbedCell cell = this.createdWebViews.get(a);
cell.destroyWebView(false);
}
this.containerView.post(new -$.Lambda.ArticleViewer.UZ0AjyHU-ijtEJ4PNHI-5i4xU4I(this));
}
public void lambda$onClosed$29$ArticleViewer() {
if ((5 + 22) % 22 <= 0) {
}
try {
if (this.windowView.getParent() != null) {
WindowManager wm = (WindowManager) this.parentActivity.getSystemService("window");
wm.removeView(this.windowView);
}
} catch (Exception e) {
FileLog.e(e);
}
}
public void loadChannel(BlockChannelCell cell, WebpageAdapter adapter, TLRPC.Chat channel) {
if ((9 + 20) % 20 <= 0) {
}
if (this.loadingChannel || TextUtils.isEmpty(channel.username)) {
return;
}
this.loadingChannel = true;
TLRPC.TL_contacts_resolveUsername req = new TLRPC.TL_contacts_resolveUsername();
req.username = channel.username;
int currentAccount = UserConfig.selectedAccount;
ConnectionsManager.getInstance(currentAccount).sendRequest(req, new -$.Lambda.ArticleViewer.DcsM2wVoup87Jfc7gTAJ8LoblW8(this, adapter, currentAccount, cell));
}
public void lambda$loadChannel$31$ArticleViewer(WebpageAdapter adapter, int currentAccount, BlockChannelCell cell, TLObject response, TLRPC.TL_error error) {
if ((15 + 18) % 18 <= 0) {
}
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.JBdqPdoJH9kIbmmAIjVE4OmPhb8(this, adapter, error, response, currentAccount, cell));
}
public void lambda$null$30$ArticleViewer(WebpageAdapter adapter, TLRPC.TL_error error, TLObject response, int currentAccount, BlockChannelCell cell) {
if ((15 + 29) % 29 <= 0) {
}
this.loadingChannel = false;
if (this.parentFragment == null || WebpageAdapter.access$6900(adapter).isEmpty()) {
return;
}
if (error == null) {
TLRPC.TL_contacts_resolvedPeer res = (TLRPC.TL_contacts_resolvedPeer) response;
if (!res.chats.isEmpty()) {
MessagesController.getInstance(currentAccount).putUsers(res.users, false);
MessagesController.getInstance(currentAccount).putChats(res.chats, false);
MessagesStorage.getInstance(currentAccount).putUsersAndChats(res.users, res.chats, false, true);
TLRPC.Chat chat = (TLRPC.Chat) res.chats.get(0);
this.loadedChannel = chat;
if (chat.left && !this.loadedChannel.kicked) {
cell.setState(0, false);
return;
} else {
cell.setState(4, false);
return;
}
}
cell.setState(4, false);
return;
}
cell.setState(4, false);
}
public void joinChannel(BlockChannelCell cell, TLRPC.Chat channel) {
if ((4 + 8) % 8 <= 0) {
}
TLRPC.TL_channels_joinChannel req = new TLRPC.TL_channels_joinChannel();
req.channel = MessagesController.getInputChannel(channel);
int currentAccount = UserConfig.selectedAccount;
ConnectionsManager.getInstance(currentAccount).sendRequest(req, new -$.Lambda.ArticleViewer.wu8GWS6JgkqapLa_19Orkhh8ABM(this, cell, currentAccount, req, channel));
}
public void lambda$joinChannel$35$ArticleViewer(BlockChannelCell cell, int currentAccount, TLRPC.TL_channels_joinChannel req, TLRPC.Chat channel, TLObject response, TLRPC.TL_error error) {
if ((29 + 22) % 22 <= 0) {
}
if (error != null) {
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.3f1VquYnuyZ-iUYfZ70CyU5rNsg(this, cell, currentAccount, error, req));
return;
}
boolean hasJoinMessage = false;
TLRPC.Updates updates = (TLRPC.Updates) response;
int a = 0;
while (true) {
if (a >= updates.updates.size()) {
break;
}
TLRPC.TL_updateNewChannelMessage tL_updateNewChannelMessage = (TLRPC.Update) updates.updates.get(a);
if (!(tL_updateNewChannelMessage instanceof TLRPC.TL_updateNewChannelMessage) || !(tL_updateNewChannelMessage.message.action instanceof TLRPC.TL_messageActionChatAddUser)) {
a++;
} else {
hasJoinMessage = true;
break;
}
}
MessagesController.getInstance(currentAccount).processUpdates(updates, false);
if (!hasJoinMessage) {
MessagesController.getInstance(currentAccount).generateJoinMessage(channel.id, true);
}
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.9brZicAEX52yAMmUW8eZpSwMNKg(cell));
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.K0I3KvQM2_eIwhnlsju7pPwlh-E(currentAccount, channel), 1000L);
MessagesStorage.getInstance(currentAccount).updateDialogsWithDeletedMessages(new ArrayList(), (ArrayList) null, true, channel.id);
}
public void lambda$null$32$ArticleViewer(BlockChannelCell cell, int currentAccount, TLRPC.TL_error error, TLRPC.TL_channels_joinChannel req) {
if ((14 + 4) % 4 <= 0) {
}
cell.setState(0, false);
AlertsCreator.processError(currentAccount, error, this.parentFragment, req, new Object[]{true});
}
static void lambda$null$33(BlockChannelCell cell) {
if ((24 + 1) % 1 <= 0) {
}
cell.setState(2, false);
}
static void lambda$null$34(int currentAccount, TLRPC.Chat channel) {
if ((18 + 28) % 28 <= 0) {
}
MessagesController.getInstance(currentAccount).loadFullChat(channel.id, 0, true);
}
private boolean checkAnimation() {
if ((21 + 5) % 5 <= 0) {
}
if (this.animationInProgress != 0 && Math.abs(this.transitionAnimationStartTime - System.currentTimeMillis()) >= 500) {
Runnable runnable = this.animationEndRunnable;
if (runnable != null) {
runnable.run();
this.animationEndRunnable = null;
}
this.animationInProgress = 0;
}
return this.animationInProgress != 0;
}
public void destroyArticleViewer() {
if ((5 + 4) % 4 <= 0) {
}
if (this.parentActivity == null || this.windowView == null) {
return;
}
releasePlayer();
try {
if (this.windowView.getParent() != null) {
WindowManager wm = (WindowManager) this.parentActivity.getSystemService("window");
wm.removeViewImmediate(this.windowView);
}
this.windowView = null;
} catch (Exception e) {
FileLog.e(e);
}
for (int a = 0; a < this.createdWebViews.size(); a++) {
BlockEmbedCell cell = this.createdWebViews.get(a);
cell.destroyWebView(true);
}
this.createdWebViews.clear();
try {
this.parentActivity.getWindow().clearFlags(TEXT_FLAG_SUB);
} catch (Exception e2) {
FileLog.e(e2);
}
ImageReceiver.BitmapHolder bitmapHolder = this.currentThumb;
if (bitmapHolder != null) {
bitmapHolder.release();
this.currentThumb = null;
}
this.animatingImageView.setImageBitmap((ImageReceiver.BitmapHolder) null);
this.parentActivity = null;
this.parentFragment = null;
Instance = null;
}
public boolean isVisible() {
return this.isVisible;
}
public void showDialog(Dialog dialog) {
if ((7 + 24) % 24 <= 0) {
}
if (this.parentActivity == null) {
return;
}
try {
if (this.visibleDialog != null) {
this.visibleDialog.dismiss();
this.visibleDialog = null;
}
} catch (Exception e) {
FileLog.e(e);
}
try {
this.visibleDialog = dialog;
dialog.setCanceledOnTouchOutside(true);
this.visibleDialog.setOnDismissListener(new -$.Lambda.ArticleViewer.Be_Zi1rokcPBpdVzXzSk4kjiTtk(this));
dialog.show();
} catch (Exception e2) {
FileLog.e(e2);
}
}
public void lambda$showDialog$36$ArticleViewer(DialogInterface dialog1) {
this.visibleDialog = null;
}
private class BlockVideoCell extends FrameLayout implements DownloadController.FileDownloadProgressListener {
private int TAG;
private boolean autoDownload;
private int buttonPressed;
private int buttonState;
private int buttonX;
private int buttonY;
private boolean cancelLoading;
private DrawingText captionLayout;
private BlockChannelCell channelCell;
private DrawingText creditLayout;
private int creditOffset;
private TLRPC.TL_pageBlockVideo currentBlock;
private TLRPC.Document currentDocument;
private int currentType;
private MessageObject.GroupedMessagePosition groupPosition;
private ImageReceiver imageView;
private boolean isFirst;
private boolean isGif;
private boolean isLast;
private WebpageAdapter parentAdapter;
private TLRPC.PageBlock parentBlock;
private boolean photoPressed;
private RadialProgress2 radialProgress;
private int textX;
private int textY;
final ArticleViewer this$0;
static void access$16800(BlockVideoCell blockVideoCell, String str, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$16800(BlockVideoCell blockVideoCell, boolean z, byte b, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$16800(BlockVideoCell blockVideoCell, boolean z, byte b, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$17102(BlockVideoCell blockVideoCell, MessageObject.GroupedMessagePosition groupedMessagePosition, int i, char c, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$17102(BlockVideoCell blockVideoCell, MessageObject.GroupedMessagePosition groupedMessagePosition, short s, int i, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$17102(BlockVideoCell blockVideoCell, MessageObject.GroupedMessagePosition groupedMessagePosition, short s, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$22600(BlockVideoCell blockVideoCell, byte b, boolean z, String str, int i) {
double d = (42 * 210) + 210;
}
static void access$22600(BlockVideoCell blockVideoCell, String str, byte b, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$22600(BlockVideoCell blockVideoCell, String str, boolean z, int i, byte b) {
double d = (42 * 210) + 210;
}
private void didPressedButton(boolean z, char c, float f, short s, String str) {
double d = (42 * 210) + 210;
}
private void didPressedButton(boolean z, char c, String str, short s, float f) {
double d = (42 * 210) + 210;
}
private void didPressedButton(boolean z, String str, short s, float f, char c) {
double d = (42 * 210) + 210;
}
private void getIconForCurrentState(byte b, short s, float f, int i) {
double d = (42 * 210) + 210;
}
private void getIconForCurrentState(float f, int i, short s, byte b) {
double d = (42 * 210) + 210;
}
private void getIconForCurrentState(int i, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
public BlockVideoCell(ArticleViewer articleViewer, Context context, WebpageAdapter adapter, int type) {
super(context);
if ((24 + 26) % 26 <= 0) {
}
this.this$0 = articleViewer;
this.parentAdapter = adapter;
setWillNotDraw(false);
ImageReceiver imageReceiver = new ImageReceiver(this);
this.imageView = imageReceiver;
imageReceiver.setNeedsQualityThumb(true);
this.imageView.setShouldGenerateQualityThumb(true);
this.currentType = type;
RadialProgress2 radialProgress2 = new RadialProgress2(this);
this.radialProgress = radialProgress2;
radialProgress2.setProgressColor(-1);
this.radialProgress.setColors(1711276032, 2130706432, -1, -2500135);
this.TAG = DownloadController.getInstance(articleViewer.currentAccount).generateObserverTag();
BlockChannelCell blockChannelCell = new BlockChannelCell(articleViewer, context, this.parentAdapter, 1);
this.channelCell = blockChannelCell;
addView((View) blockChannelCell, (ViewGroup.LayoutParams) LayoutHelper.createFrame(-1, -2.0f));
}
public void setBlock(TLRPC.TL_pageBlockVideo block, boolean first, boolean last) {
if ((17 + 7) % 7 <= 0) {
}
this.currentBlock = block;
this.parentBlock = null;
this.cancelLoading = false;
TLRPC.Document documentWithId = this.this$0.getDocumentWithId(block.video_id);
this.currentDocument = documentWithId;
this.isGif = MessageObject.isGifDocument(documentWithId);
this.isFirst = first;
this.isLast = last;
this.channelCell.setVisibility(4);
updateButtonState(false);
requestLayout();
}
public void setParentBlock(TLRPC.PageBlock block) {
if ((4 + 3) % 3 <= 0) {
}
this.parentBlock = block;
if (this.this$0.channelBlock != null && (this.parentBlock instanceof TLRPC.TL_pageBlockCover)) {
this.channelCell.setBlock(this.this$0.channelBlock);
this.channelCell.setVisibility(0);
}
}
public View getChannelCell() {
return this.channelCell;
}
@Override
public boolean onTouchEvent(android.view.MotionEvent r12) {
throw new UnsupportedOperationException("Method not decompiled: im.bqzflyvzam.ui.ArticleViewer.BlockVideoCell.onTouchEvent(android.view.MotionEvent):boolean");
}
@Override
protected void onMeasure(int r30, int r31) {
throw new UnsupportedOperationException("Method not decompiled: im.bqzflyvzam.ui.ArticleViewer.BlockVideoCell.onMeasure(int, int):void");
}
@Override
protected void onDraw(Canvas canvas) {
if ((5 + 21) % 21 <= 0) {
}
if (this.currentBlock == null) {
return;
}
if (!this.imageView.hasBitmapImage() || this.imageView.getCurrentAlpha() != 1.0f) {
canvas.drawRect(this.imageView.getDrawRegion(), ArticleViewer.photoBackgroundPaint);
}
this.imageView.draw(canvas);
if (this.imageView.getVisible()) {
this.radialProgress.draw(canvas);
}
this.textY = this.imageView.getImageY() + this.imageView.getImageHeight() + AndroidUtilities.dp(8.0f);
if (this.captionLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY);
this.captionLayout.draw(canvas);
canvas.restore();
}
if (this.creditLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY + this.creditOffset);
this.creditLayout.draw(canvas);
canvas.restore();
}
if (this.currentBlock.level > 0) {
canvas.drawRect(AndroidUtilities.dp(18.0f), 0.0f, AndroidUtilities.dp(20.0f), getMeasuredHeight() - (this.currentBlock.bottom ? AndroidUtilities.dp(6.0f) : 0), ArticleViewer.quoteLinePaint);
}
}
private int getIconForCurrentState() {
if ((17 + 16) % 16 <= 0) {
}
int i = this.buttonState;
if (i == 0) {
return 2;
}
if (i == 1) {
return 3;
}
if (i == 2) {
return 8;
}
if (i == 3) {
return 0;
}
return 4;
}
public void updateButtonState(boolean animated) {
if ((24 + 27) % 27 <= 0) {
}
String fileName = FileLoader.getAttachFileName(this.currentDocument);
File path = FileLoader.getPathToAttach(this.currentDocument, true);
boolean fileExists = path.exists();
if (TextUtils.isEmpty(fileName)) {
this.radialProgress.setIcon(4, false, false);
return;
}
if (fileExists) {
DownloadController.getInstance(this.this$0.currentAccount).removeLoadingFileObserver(this);
if (!this.isGif) {
this.buttonState = 3;
} else {
this.buttonState = -1;
}
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
invalidate();
return;
}
DownloadController.getInstance(this.this$0.currentAccount).addLoadingFileObserver(fileName, (MessageObject) null, this);
float setProgress = 0.0f;
boolean progressVisible = false;
if (!FileLoader.getInstance(this.this$0.currentAccount).isLoadingFile(fileName)) {
if (!this.cancelLoading && this.autoDownload && this.isGif) {
progressVisible = true;
this.buttonState = 1;
} else {
this.buttonState = 0;
}
} else {
progressVisible = true;
this.buttonState = 1;
Float progress = ImageLoader.getInstance().getFileProgress(fileName);
setProgress = progress != null ? progress.floatValue() : 0.0f;
}
this.radialProgress.setIcon(getIconForCurrentState(), progressVisible, animated);
this.radialProgress.setProgress(setProgress, false);
invalidate();
}
private void didPressedButton(boolean animated) {
if ((11 + 8) % 8 <= 0) {
}
int i = this.buttonState;
if (i == 0) {
this.cancelLoading = false;
this.radialProgress.setProgress(0.0f, false);
if (!this.isGif) {
FileLoader.getInstance(this.this$0.currentAccount).loadFile(this.currentDocument, this.this$0.currentPage, 1, 1);
} else {
TLRPC.PhotoSize thumb = FileLoader.getClosestPhotoSizeWithSize(this.currentDocument.thumbs, 40);
this.imageView.setImage(ImageLocation.getForDocument(this.currentDocument), (String) null, ImageLocation.getForDocument(thumb, this.currentDocument), "80_80_b", this.currentDocument.size, (String) null, this.this$0.currentPage, 1);
}
this.buttonState = 1;
this.radialProgress.setIcon(getIconForCurrentState(), true, animated);
invalidate();
return;
}
if (i == 1) {
this.cancelLoading = true;
if (!this.isGif) {
FileLoader.getInstance(this.this$0.currentAccount).cancelLoadFile(this.currentDocument);
} else {
this.imageView.cancelLoadImage();
}
this.buttonState = 0;
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
invalidate();
return;
}
if (i == 2) {
this.imageView.setAllowStartAnimation(true);
this.imageView.startAnimation();
this.buttonState = -1;
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
return;
}
if (i == 3) {
this.this$0.openPhoto(this.currentBlock);
}
}
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
this.imageView.onDetachedFromWindow();
DownloadController.getInstance(this.this$0.currentAccount).removeLoadingFileObserver(this);
}
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
this.imageView.onAttachedToWindow();
updateButtonState(false);
}
public void onFailedDownload(String fileName, boolean canceled) {
updateButtonState(false);
}
public void onSuccessDownload(String fileName) {
if ((13 + 3) % 3 <= 0) {
}
this.radialProgress.setProgress(1.0f, true);
if (this.isGif) {
this.buttonState = 2;
didPressedButton(true);
} else {
updateButtonState(true);
}
}
public void onProgressUpload(String fileName, float progress, boolean isEncrypted) {
}
public void onProgressDownload(String fileName, float progress) {
if ((4 + 10) % 10 <= 0) {
}
this.radialProgress.setProgress(progress, true);
if (this.buttonState != 1) {
updateButtonState(true);
}
}
public int getObserverTag() {
return this.TAG;
}
@Override
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
if ((3 + 6) % 6 <= 0) {
}
super.onInitializeAccessibilityNodeInfo(info);
info.setEnabled(true);
StringBuilder sb = new StringBuilder(LocaleController.getString("AttachVideo", 2131689966));
if (this.captionLayout != null) {
sb.append(", ");
sb.append(this.captionLayout.getText());
}
info.setText(sb.toString());
}
}
private class BlockAudioCell extends View implements DownloadController.FileDownloadProgressListener {
private int TAG;
private int buttonPressed;
private int buttonState;
private int buttonX;
private int buttonY;
private DrawingText captionLayout;
private DrawingText creditLayout;
private int creditOffset;
private TLRPC.TL_pageBlockAudio currentBlock;
private TLRPC.Document currentDocument;
private MessageObject currentMessageObject;
private StaticLayout durationLayout;
private boolean isFirst;
private boolean isLast;
private String lastTimeString;
private WebpageAdapter parentAdapter;
private RadialProgress2 radialProgress;
private SeekBar seekBar;
private int seekBarX;
private int seekBarY;
private int textX;
private int textY;
final ArticleViewer this$0;
private StaticLayout titleLayout;
private void didPressedButton(boolean z, byte b, char c, int i, String str) {
double d = (42 * 210) + 210;
}
private void didPressedButton(boolean z, char c, String str, int i, byte b) {
double d = (42 * 210) + 210;
}
private void didPressedButton(boolean z, int i, byte b, char c, String str) {
double d = (42 * 210) + 210;
}
private void getIconForCurrentState(float f, boolean z, byte b, short s) {
double d = (42 * 210) + 210;
}
private void getIconForCurrentState(short s, byte b, boolean z, float f) {
double d = (42 * 210) + 210;
}
private void getIconForCurrentState(boolean z, byte b, short s, float f) {
double d = (42 * 210) + 210;
}
public BlockAudioCell(ArticleViewer articleViewer, Context context, WebpageAdapter adapter) {
super(context);
if ((12 + 7) % 7 <= 0) {
}
this.this$0 = articleViewer;
this.textY = AndroidUtilities.dp(54.0f);
this.parentAdapter = adapter;
RadialProgress2 radialProgress2 = new RadialProgress2(this);
this.radialProgress = radialProgress2;
radialProgress2.setBackgroundStroke(AndroidUtilities.dp(3.0f));
this.radialProgress.setCircleRadius(AndroidUtilities.dp(24.0f));
this.TAG = DownloadController.getInstance(articleViewer.currentAccount).generateObserverTag();
SeekBar seekBar = new SeekBar(context);
this.seekBar = seekBar;
seekBar.setDelegate(new -$.Lambda.ArticleViewer.BlockAudioCell.mi0kv80inWHNPqGRpRE8sMVf27k(this));
}
public void lambda$new$0$ArticleViewer$BlockAudioCell(float progress) {
if ((15 + 27) % 27 <= 0) {
}
MessageObject messageObject = this.currentMessageObject;
if (messageObject == null) {
return;
}
messageObject.audioProgress = progress;
MediaController.getInstance().seekToProgress(this.currentMessageObject, progress);
}
public void setBlock(TLRPC.TL_pageBlockAudio block, boolean first, boolean last) {
if ((10 + 31) % 31 <= 0) {
}
this.currentBlock = block;
MessageObject messageObject = (MessageObject) WebpageAdapter.access$14000(this.parentAdapter).get(this.currentBlock);
this.currentMessageObject = messageObject;
this.currentDocument = messageObject.getDocument();
this.isFirst = first;
this.isLast = last;
this.radialProgress.setProgressColor(this.this$0.getTextColor());
this.seekBar.setColors(this.this$0.getTextColor() & 1073741823, this.this$0.getTextColor() & 1073741823, this.this$0.getTextColor(), this.this$0.getTextColor(), this.this$0.getTextColor());
updateButtonState(false);
requestLayout();
}
public MessageObject getMessageObject() {
return this.currentMessageObject;
}
@Override
public boolean onTouchEvent(android.view.MotionEvent r13) {
throw new UnsupportedOperationException("Method not decompiled: im.bqzflyvzam.ui.ArticleViewer.BlockAudioCell.onTouchEvent(android.view.MotionEvent):boolean");
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int height;
SpannableStringBuilder stringBuilder;
if ((24 + 23) % 23 <= 0) {
}
int width = View.MeasureSpec.getSize(widthMeasureSpec);
int height2 = AndroidUtilities.dp(54.0f);
TLRPC.TL_pageBlockAudio tL_pageBlockAudio = this.currentBlock;
if (tL_pageBlockAudio != null) {
if (tL_pageBlockAudio.level > 0) {
this.textX = AndroidUtilities.dp(this.currentBlock.level * 14) + AndroidUtilities.dp(18.0f);
} else {
this.textX = AndroidUtilities.dp(18.0f);
}
int textWidth = (width - this.textX) - AndroidUtilities.dp(18.0f);
int size = AndroidUtilities.dp(44.0f);
this.buttonX = AndroidUtilities.dp(16.0f);
int dp = AndroidUtilities.dp(5.0f);
this.buttonY = dp;
RadialProgress2 radialProgress2 = this.radialProgress;
int i = this.buttonX;
radialProgress2.setProgressRect(i, dp, i + size, dp + size);
DrawingText createLayoutForText = this.this$0.createLayoutForText(this, null, this.currentBlock.caption.text, textWidth, this.currentBlock, this.parentAdapter);
this.captionLayout = createLayoutForText;
if (createLayoutForText != null) {
int dp2 = AndroidUtilities.dp(4.0f) + this.captionLayout.getHeight();
this.creditOffset = dp2;
height = height2 + dp2 + AndroidUtilities.dp(4.0f);
} else {
height = height2;
}
DrawingText createLayoutForText2 = this.this$0.createLayoutForText((View) this, (CharSequence) null, this.currentBlock.caption.credit, textWidth, (TLRPC.PageBlock) this.currentBlock, this.this$0.isRtl ? StaticLayoutEx.ALIGN_RIGHT() : Layout.Alignment.ALIGN_NORMAL, this.parentAdapter);
this.creditLayout = createLayoutForText2;
if (createLayoutForText2 != null) {
height += AndroidUtilities.dp(4.0f) + this.creditLayout.getHeight();
}
if (!this.isFirst && this.currentBlock.level <= 0) {
height += AndroidUtilities.dp(8.0f);
}
String author = this.currentMessageObject.getMusicAuthor(false);
String title = this.currentMessageObject.getMusicTitle(false);
int dp3 = this.buttonX + AndroidUtilities.dp(50.0f) + size;
this.seekBarX = dp3;
int w = (width - dp3) - AndroidUtilities.dp(18.0f);
if (TextUtils.isEmpty(title) && TextUtils.isEmpty(author)) {
this.titleLayout = null;
this.seekBarY = this.buttonY + ((size - AndroidUtilities.dp(30.0f)) / 2);
} else {
if (!TextUtils.isEmpty(title) && !TextUtils.isEmpty(author)) {
stringBuilder = new SpannableStringBuilder(String.format("%s - %s", author, title));
} else if (!TextUtils.isEmpty(title)) {
stringBuilder = new SpannableStringBuilder(title);
} else {
stringBuilder = new SpannableStringBuilder(author);
}
if (!TextUtils.isEmpty(author)) {
TypefaceSpan span = new TypefaceSpan(AndroidUtilities.getTypeface("fonts/rmedium.ttf"));
stringBuilder.setSpan(span, 0, author.length(), 18);
}
CharSequence stringFinal = TextUtils.ellipsize(stringBuilder, Theme.chat_audioTitlePaint, w, TextUtils.TruncateAt.END);
this.titleLayout = new StaticLayout(stringFinal, ArticleViewer.audioTimePaint, w, Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
this.seekBarY = this.buttonY + ((size - AndroidUtilities.dp(30.0f)) / 2) + AndroidUtilities.dp(11.0f);
}
this.seekBar.setSize(w, AndroidUtilities.dp(30.0f));
} else {
height = 1;
}
setMeasuredDimension(width, height);
updatePlayingMessageProgress();
}
@Override
protected void onDraw(Canvas canvas) {
if ((21 + 25) % 25 <= 0) {
}
if (this.currentBlock != null) {
this.radialProgress.setColors(this.this$0.getTextColor(), this.this$0.getTextColor(), this.this$0.getTextColor(), this.this$0.getTextColor());
this.radialProgress.draw(canvas);
canvas.save();
canvas.translate(this.seekBarX, this.seekBarY);
this.seekBar.draw(canvas);
canvas.restore();
if (this.durationLayout != null) {
canvas.save();
canvas.translate(this.buttonX + AndroidUtilities.dp(54.0f), this.seekBarY + AndroidUtilities.dp(6.0f));
this.durationLayout.draw(canvas);
canvas.restore();
}
if (this.titleLayout != null) {
canvas.save();
canvas.translate(this.buttonX + AndroidUtilities.dp(54.0f), this.seekBarY - AndroidUtilities.dp(16.0f));
this.titleLayout.draw(canvas);
canvas.restore();
}
if (this.captionLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY);
this.captionLayout.draw(canvas);
canvas.restore();
}
if (this.creditLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY + this.creditOffset);
this.creditLayout.draw(canvas);
canvas.restore();
}
if (this.currentBlock.level > 0) {
canvas.drawRect(AndroidUtilities.dp(18.0f), 0.0f, AndroidUtilities.dp(20.0f), getMeasuredHeight() - (this.currentBlock.bottom ? AndroidUtilities.dp(6.0f) : 0), ArticleViewer.quoteLinePaint);
}
}
}
private int getIconForCurrentState() {
if ((27 + ArticleViewer.TEXT_FLAG_STRIKE) % ArticleViewer.TEXT_FLAG_STRIKE <= 0) {
}
int i = this.buttonState;
if (i == 1) {
return 1;
}
if (i == 2) {
return 2;
}
if (i == 3) {
return 3;
}
return 0;
}
public void updatePlayingMessageProgress() {
if ((8 + 29) % 29 <= 0) {
}
if (this.currentDocument == null || this.currentMessageObject == null) {
return;
}
if (!this.seekBar.isDragging()) {
this.seekBar.setProgress(this.currentMessageObject.audioProgress);
}
int duration = 0;
if (MediaController.getInstance().isPlayingMessage(this.currentMessageObject)) {
duration = this.currentMessageObject.audioProgressSec;
} else {
int a = 0;
while (true) {
if (a >= this.currentDocument.attributes.size()) {
break;
}
TLRPC.DocumentAttribute attribute = (TLRPC.DocumentAttribute) this.currentDocument.attributes.get(a);
if (!(attribute instanceof TLRPC.TL_documentAttributeAudio)) {
a++;
} else {
duration = attribute.duration;
break;
}
}
}
String timeString = String.format("%d:%02d", Integer.valueOf(duration / 60), Integer.valueOf(duration % 60));
String str = this.lastTimeString;
if (str == null || (str != null && !str.equals(timeString))) {
this.lastTimeString = timeString;
ArticleViewer.audioTimePaint.setTextSize(AndroidUtilities.dp(16.0f));
int timeWidth = (int) Math.ceil(ArticleViewer.audioTimePaint.measureText(timeString));
this.durationLayout = new StaticLayout(timeString, ArticleViewer.audioTimePaint, timeWidth, Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
}
ArticleViewer.audioTimePaint.setColor(this.this$0.getTextColor());
invalidate();
}
public void updateButtonState(boolean animated) {
if ((6 + 19) % 19 <= 0) {
}
String fileName = FileLoader.getAttachFileName(this.currentDocument);
File path = FileLoader.getPathToAttach(this.currentDocument, true);
boolean fileExists = path.exists();
if (TextUtils.isEmpty(fileName)) {
this.radialProgress.setIcon(4, false, false);
return;
}
if (fileExists) {
DownloadController.getInstance(this.this$0.currentAccount).removeLoadingFileObserver(this);
boolean playing = MediaController.getInstance().isPlayingMessage(this.currentMessageObject);
if (!playing || (playing && MediaController.getInstance().isMessagePaused())) {
this.buttonState = 0;
} else {
this.buttonState = 1;
}
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
} else {
DownloadController.getInstance(this.this$0.currentAccount).addLoadingFileObserver(fileName, (MessageObject) null, this);
if (!FileLoader.getInstance(this.this$0.currentAccount).isLoadingFile(fileName)) {
this.buttonState = 2;
this.radialProgress.setProgress(0.0f, animated);
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
} else {
this.buttonState = 3;
Float progress = ImageLoader.getInstance().getFileProgress(fileName);
if (progress != null) {
this.radialProgress.setProgress(progress.floatValue(), animated);
} else {
this.radialProgress.setProgress(0.0f, animated);
}
this.radialProgress.setIcon(getIconForCurrentState(), true, animated);
}
}
updatePlayingMessageProgress();
}
private void didPressedButton(boolean animated) {
if ((28 + 11) % 11 <= 0) {
}
int i = this.buttonState;
if (i == 0) {
if (MediaController.getInstance().setPlaylist(WebpageAdapter.access$14300(this.parentAdapter), this.currentMessageObject, false)) {
this.buttonState = 1;
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
invalidate();
return;
}
return;
}
if (i == 1) {
boolean result = MediaController.getInstance().pauseMessage(this.currentMessageObject);
if (result) {
this.buttonState = 0;
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
invalidate();
return;
}
return;
}
if (i == 2) {
this.radialProgress.setProgress(0.0f, false);
FileLoader.getInstance(this.this$0.currentAccount).loadFile(this.currentDocument, this.this$0.currentPage, 1, 1);
this.buttonState = 3;
this.radialProgress.setIcon(getIconForCurrentState(), true, animated);
invalidate();
return;
}
if (i == 3) {
FileLoader.getInstance(this.this$0.currentAccount).cancelLoadFile(this.currentDocument);
this.buttonState = 2;
this.radialProgress.setIcon(getIconForCurrentState(), false, animated);
invalidate();
}
}
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
DownloadController.getInstance(this.this$0.currentAccount).removeLoadingFileObserver(this);
}
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
updateButtonState(false);
}
public void onFailedDownload(String fileName, boolean canceled) {
updateButtonState(true);
}
public void onSuccessDownload(String fileName) {
if ((26 + 4) % 4 <= 0) {
}
this.radialProgress.setProgress(1.0f, true);
updateButtonState(true);
}
public void onProgressUpload(String fileName, float progress, boolean isEncrypted) {
}
public void onProgressDownload(String fileName, float progress) {
if ((25 + 18) % 18 <= 0) {
}
this.radialProgress.setProgress(progress, true);
if (this.buttonState != 3) {
updateButtonState(true);
}
}
public int getObserverTag() {
return this.TAG;
}
}
private class BlockEmbedCell extends FrameLayout {
private DrawingText captionLayout;
private DrawingText creditLayout;
private int creditOffset;
private TLRPC.TL_pageBlockEmbed currentBlock;
private int exactWebViewHeight;
private int listX;
private WebpageAdapter parentAdapter;
private int textX;
private int textY;
final ArticleViewer this$0;
private WebPlayerView videoView;
private boolean wasUserInteraction;
private TouchyWebView webView;
static void access$14502(BlockEmbedCell blockEmbedCell, int i, char c, byte b, int i2, short s) {
double d = (42 * 210) + 210;
}
static void access$14502(BlockEmbedCell blockEmbedCell, int i, short s, int i2, byte b, char c) {
double d = (42 * 210) + 210;
}
static void access$14502(BlockEmbedCell blockEmbedCell, int i, short s, int i2, char c, byte b) {
double d = (42 * 210) + 210;
}
static void access$14600(BlockEmbedCell blockEmbedCell, int i, boolean z, char c, String str) {
double d = (42 * 210) + 210;
}
static void access$14600(BlockEmbedCell blockEmbedCell, int i, boolean z, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$14600(BlockEmbedCell blockEmbedCell, String str, char c, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$14602(BlockEmbedCell blockEmbedCell, boolean z, int i, char c, short s, float f) {
double d = (42 * 210) + 210;
}
static void access$14602(BlockEmbedCell blockEmbedCell, boolean z, int i, short s, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$14602(BlockEmbedCell blockEmbedCell, boolean z, short s, int i, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$14700(BlockEmbedCell blockEmbedCell, float f, byte b, int i, char c) {
double d = (42 * 210) + 210;
}
static void access$14700(BlockEmbedCell blockEmbedCell, float f, char c, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$14700(BlockEmbedCell blockEmbedCell, int i, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
static void access$14800(BlockEmbedCell blockEmbedCell, byte b, char c, int i, boolean z) {
double d = (42 * 210) + 210;
}
static void access$14800(BlockEmbedCell blockEmbedCell, byte b, int i, char c, boolean z) {
double d = (42 * 210) + 210;
}
static void access$14800(BlockEmbedCell blockEmbedCell, boolean z, char c, int i, byte b) {
double d = (42 * 210) + 210;
}
static void access$14900(BlockEmbedCell blockEmbedCell, char c, float f, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$14900(BlockEmbedCell blockEmbedCell, float f, boolean z, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$14900(BlockEmbedCell blockEmbedCell, int i, boolean z, char c, float f) {
double d = (42 * 210) + 210;
}
public BlockEmbedCell(final ArticleViewer articleViewer, Context context, WebpageAdapter adapter) {
super(context);
if ((23 + 4) % 4 <= 0) {
}
this.this$0 = articleViewer;
this.parentAdapter = adapter;
setWillNotDraw(false);
WebPlayerView webPlayerView = new WebPlayerView(context, false, false, new WebPlayerView.WebPlayerViewDelegate() {
public void onInitFailed() {
if ((17 + 13) % 13 <= 0) {
}
BlockEmbedCell.this.webView.setVisibility(0);
BlockEmbedCell.this.videoView.setVisibility(4);
BlockEmbedCell.this.videoView.loadVideo((String) null, (TLRPC.Photo) null, (Object) null, (String) null, false);
HashMap<String, String> args = new HashMap<>();
args.put("Referer", "http://youtube.com");
BlockEmbedCell.this.webView.loadUrl(BlockEmbedCell.this.currentBlock.url, args);
}
public void onVideoSizeChanged(float aspectRatio, int rotation) {
BlockEmbedCell.this.this$0.fullscreenAspectRatioView.setAspectRatio(aspectRatio, rotation);
}
public void onInlineSurfaceTextureReady() {
}
public TextureView onSwitchToFullscreen(View controlsView, boolean fullscreen, float aspectRatio, int rotation, boolean byButton) {
if ((5 + 16) % 16 <= 0) {
}
if (fullscreen) {
BlockEmbedCell.this.this$0.fullscreenAspectRatioView.addView(BlockEmbedCell.this.this$0.fullscreenTextureView, LayoutHelper.createFrame(-1, -1.0f));
BlockEmbedCell.this.this$0.fullscreenAspectRatioView.setVisibility(0);
BlockEmbedCell.this.this$0.fullscreenAspectRatioView.setAspectRatio(aspectRatio, rotation);
BlockEmbedCell.this.this$0.fullscreenedVideo = BlockEmbedCell.this.videoView;
BlockEmbedCell.this.this$0.fullscreenVideoContainer.addView(controlsView, LayoutHelper.createFrame(-1, -1.0f));
BlockEmbedCell.this.this$0.fullscreenVideoContainer.setVisibility(0);
} else {
BlockEmbedCell.this.this$0.fullscreenAspectRatioView.removeView(BlockEmbedCell.this.this$0.fullscreenTextureView);
BlockEmbedCell.this.this$0.fullscreenedVideo = null;
BlockEmbedCell.this.this$0.fullscreenAspectRatioView.setVisibility(8);
BlockEmbedCell.this.this$0.fullscreenVideoContainer.setVisibility(4);
}
return BlockEmbedCell.this.this$0.fullscreenTextureView;
}
public void prepareToSwitchInlineMode(boolean inline, Runnable switchInlineModeRunnable, float aspectRatio, boolean animated) {
}
public TextureView onSwitchInlineMode(View controlsView, boolean inline, float aspectRatio, int rotation, boolean animated) {
return null;
}
public void onSharePressed() {
if ((5 + 23) % 23 <= 0) {
}
if (BlockEmbedCell.this.this$0.parentActivity != null) {
BlockEmbedCell.this.this$0.showDialog(new ShareAlert(BlockEmbedCell.this.this$0.parentActivity, null, BlockEmbedCell.this.currentBlock.url, false, BlockEmbedCell.this.currentBlock.url, true));
}
}
public void onPlayStateChanged(WebPlayerView playerView, boolean playing) {
if ((7 + 20) % 20 <= 0) {
}
if (playing) {
if (BlockEmbedCell.this.this$0.currentPlayingVideo != null && BlockEmbedCell.this.this$0.currentPlayingVideo != playerView) {
BlockEmbedCell.this.this$0.currentPlayingVideo.pause();
}
BlockEmbedCell.this.this$0.currentPlayingVideo = playerView;
try {
BlockEmbedCell.this.this$0.parentActivity.getWindow().addFlags(ArticleViewer.TEXT_FLAG_SUB);
return;
} catch (Exception e) {
FileLog.e(e);
return;
}
}
if (BlockEmbedCell.this.this$0.currentPlayingVideo == playerView) {
BlockEmbedCell.this.this$0.currentPlayingVideo = null;
}
try {
BlockEmbedCell.this.this$0.parentActivity.getWindow().clearFlags(ArticleViewer.TEXT_FLAG_SUB);
} catch (Exception e2) {
FileLog.e(e2);
}
}
public boolean checkInlinePermissions() {
return false;
}
public ViewGroup getTextureViewContainer() {
return null;
}
});
this.videoView = webPlayerView;
addView(webPlayerView);
articleViewer.createdWebViews.add(this);
TouchyWebView touchyWebView = new TouchyWebView(this, context);
this.webView = touchyWebView;
touchyWebView.getSettings().setJavaScriptEnabled(true);
this.webView.getSettings().setDomStorageEnabled(true);
this.webView.getSettings().setAllowContentAccess(true);
if (Build.VERSION.SDK_INT >= 17) {
this.webView.getSettings().setMediaPlaybackRequiresUserGesture(false);
this.webView.addJavascriptInterface(new WebviewProxy(this, (AnonymousClass1) null), "WebviewProxy");
}
if (Build.VERSION.SDK_INT >= 21) {
this.webView.getSettings().setMixedContentMode(0);
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptThirdPartyCookies(this.webView, true);
}
this.webView.setWebChromeClient(new 2(this, articleViewer));
this.webView.setWebViewClient(new 3(this, articleViewer));
addView(this.webView);
}
public void destroyWebView(boolean completely) {
if ((15 + 11) % 11 <= 0) {
}
try {
this.webView.stopLoading();
this.webView.loadUrl("about:blank");
if (completely) {
this.webView.destroy();
}
this.currentBlock = null;
} catch (Exception e) {
FileLog.e(e);
}
this.videoView.destroy();
}
public void setBlock(TLRPC.TL_pageBlockEmbed block) {
if ((26 + 1) % 1 <= 0) {
}
TLRPC.TL_pageBlockEmbed previousBlock = this.currentBlock;
this.currentBlock = block;
if (previousBlock != block) {
this.wasUserInteraction = false;
if (!block.allow_scrolling) {
this.webView.setVerticalScrollBarEnabled(false);
this.webView.setHorizontalScrollBarEnabled(false);
} else {
this.webView.setVerticalScrollBarEnabled(true);
this.webView.setHorizontalScrollBarEnabled(true);
}
this.exactWebViewHeight = 0;
try {
this.webView.loadUrl("about:blank");
} catch (Exception e) {
FileLog.e(e);
}
try {
if (this.currentBlock.html == null) {
TLRPC.Photo thumb = this.currentBlock.poster_photo_id != 0 ? this.this$0.getPhotoWithId(this.currentBlock.poster_photo_id) : null;
boolean handled = this.videoView.loadVideo(block.url, thumb, this.this$0.currentPage, (String) null, false);
if (!handled) {
this.webView.setVisibility(0);
this.videoView.setVisibility(4);
this.videoView.loadVideo((String) null, (TLRPC.Photo) null, (Object) null, (String) null, false);
HashMap<String, String> args = new HashMap<>();
args.put("Referer", "http://youtube.com");
this.webView.loadUrl(this.currentBlock.url, args);
} else {
this.webView.setVisibility(4);
this.videoView.setVisibility(0);
this.webView.stopLoading();
this.webView.loadUrl("about:blank");
}
} else {
this.webView.loadDataWithBaseURL("https://m12345.com/embed", this.currentBlock.html, "text/html", "UTF-8", (String) null);
this.videoView.setVisibility(4);
this.videoView.loadVideo((String) null, (TLRPC.Photo) null, (Object) null, (String) null, false);
this.webView.setVisibility(0);
}
} catch (Exception e2) {
FileLog.e(e2);
}
}
requestLayout();
}
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
if (!this.this$0.isVisible) {
this.currentBlock = null;
}
}
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if ((31 + 17) % 17 <= 0) {
}
return this.this$0.checkLayoutForLinks(event, this, this.captionLayout, this.textX, this.textY) || this.this$0.checkLayoutForLinks(event, this, this.creditLayout, this.textX, this.textY + this.creditOffset) || super.onTouchEvent(event);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int height;
int listWidth;
int textWidth;
float scale;
int height2;
int height3;
int height4;
if ((25 + 30) % 30 <= 0) {
}
int width = View.MeasureSpec.getSize(widthMeasureSpec);
TLRPC.TL_pageBlockEmbed tL_pageBlockEmbed = this.currentBlock;
if (tL_pageBlockEmbed != null) {
if (tL_pageBlockEmbed.level <= 0) {
this.listX = 0;
this.textX = AndroidUtilities.dp(18.0f);
int textWidth2 = width - AndroidUtilities.dp(36.0f);
if (!this.currentBlock.full_width) {
int listWidth2 = width - AndroidUtilities.dp(36.0f);
this.listX += AndroidUtilities.dp(18.0f);
listWidth = listWidth2;
textWidth = textWidth2;
} else {
listWidth = width;
textWidth = textWidth2;
}
} else {
int dp = AndroidUtilities.dp(this.currentBlock.level * 14) + AndroidUtilities.dp(18.0f);
this.listX = dp;
this.textX = dp;
int listWidth3 = width - (dp + AndroidUtilities.dp(18.0f));
textWidth = listWidth3;
listWidth = listWidth3;
}
if (this.currentBlock.w == 0) {
scale = 1.0f;
} else {
float scale2 = width;
scale = scale2 / this.currentBlock.w;
}
int i = this.exactWebViewHeight;
if (i != 0) {
height2 = AndroidUtilities.dp(i);
} else {
height2 = (int) ((this.currentBlock.w == 0 ? AndroidUtilities.dp(this.currentBlock.h) : this.currentBlock.h) * scale);
}
if (height2 != 0) {
height3 = height2;
} else {
int height5 = AndroidUtilities.dp(10.0f);
height3 = height5;
}
this.webView.measure(View.MeasureSpec.makeMeasureSpec(listWidth, 1073741824), View.MeasureSpec.makeMeasureSpec(height3, 1073741824));
if (this.videoView.getParent() == this) {
this.videoView.measure(View.MeasureSpec.makeMeasureSpec(listWidth, 1073741824), View.MeasureSpec.makeMeasureSpec(AndroidUtilities.dp(10.0f) + height3, 1073741824));
}
DrawingText createLayoutForText = this.this$0.createLayoutForText(this, null, this.currentBlock.caption.text, textWidth, this.currentBlock, this.parentAdapter);
this.captionLayout = createLayoutForText;
if (createLayoutForText != null) {
this.textY = AndroidUtilities.dp(8.0f) + height3;
int dp2 = AndroidUtilities.dp(4.0f) + this.captionLayout.getHeight();
this.creditOffset = dp2;
height4 = height3 + dp2 + AndroidUtilities.dp(4.0f);
} else {
height4 = height3;
}
DrawingText createLayoutForText2 = this.this$0.createLayoutForText((View) this, (CharSequence) null, this.currentBlock.caption.credit, textWidth, (TLRPC.PageBlock) this.currentBlock, this.this$0.isRtl ? StaticLayoutEx.ALIGN_RIGHT() : Layout.Alignment.ALIGN_NORMAL, this.parentAdapter);
this.creditLayout = createLayoutForText2;
if (createLayoutForText2 != null) {
height4 += AndroidUtilities.dp(4.0f) + this.creditLayout.getHeight();
}
height = height4 + AndroidUtilities.dp(5.0f);
if (this.currentBlock.level > 0 && !this.currentBlock.bottom) {
height += AndroidUtilities.dp(8.0f);
} else if (this.currentBlock.level == 0 && this.captionLayout != null) {
height += AndroidUtilities.dp(8.0f);
}
} else {
height = 1;
}
setMeasuredDimension(width, height);
}
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
if ((13 + 20) % 20 <= 0) {
}
TouchyWebView touchyWebView = this.webView;
int i = this.listX;
touchyWebView.layout(i, 0, touchyWebView.getMeasuredWidth() + i, this.webView.getMeasuredHeight());
if (this.videoView.getParent() == this) {
WebPlayerView webPlayerView = this.videoView;
int i2 = this.listX;
webPlayerView.layout(i2, 0, webPlayerView.getMeasuredWidth() + i2, this.videoView.getMeasuredHeight());
}
}
@Override
protected void onDraw(Canvas canvas) {
if ((4 + 29) % 29 <= 0) {
}
if (this.currentBlock == null) {
return;
}
if (this.captionLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY);
this.captionLayout.draw(canvas);
canvas.restore();
}
if (this.creditLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY + this.creditOffset);
this.creditLayout.draw(canvas);
canvas.restore();
}
if (this.currentBlock.level > 0) {
canvas.drawRect(AndroidUtilities.dp(18.0f), 0.0f, AndroidUtilities.dp(20.0f), getMeasuredHeight() - (this.currentBlock.bottom ? AndroidUtilities.dp(6.0f) : 0), ArticleViewer.quoteLinePaint);
}
}
}
private class BlockSlideshowCell extends FrameLayout {
private DrawingText captionLayout;
private DrawingText creditLayout;
private int creditOffset;
private TLRPC.TL_pageBlockSlideshow currentBlock;
private int currentPage;
private View dotsContainer;
private PagerAdapter innerAdapter;
private ViewPager innerListView;
private float pageOffset;
private WebpageAdapter parentAdapter;
private int textX;
private int textY;
final ArticleViewer this$0;
static void access$17300(BlockSlideshowCell blockSlideshowCell, char c, int i, String str, short s) {
double d = (42 * 210) + 210;
}
static void access$17300(BlockSlideshowCell blockSlideshowCell, char c, String str, short s, int i) {
double d = (42 * 210) + 210;
}
static void access$17300(BlockSlideshowCell blockSlideshowCell, int i, String str, char c, short s) {
double d = (42 * 210) + 210;
}
static void access$17400(BlockSlideshowCell blockSlideshowCell, byte b, String str, int i, float f) {
double d = (42 * 210) + 210;
}
static void access$17400(BlockSlideshowCell blockSlideshowCell, float f, int i, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$17400(BlockSlideshowCell blockSlideshowCell, String str, int i, byte b, float f) {
double d = (42 * 210) + 210;
}
static void access$17402(BlockSlideshowCell blockSlideshowCell, float f, byte b, float f2, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$17402(BlockSlideshowCell blockSlideshowCell, float f, char c, float f2, String str, byte b) {
double d = (42 * 210) + 210;
}
static void access$17402(BlockSlideshowCell blockSlideshowCell, float f, char c, String str, float f2, byte b) {
double d = (42 * 210) + 210;
}
static void access$17500(BlockSlideshowCell blockSlideshowCell, byte b, float f, boolean z, int i) {
double d = (42 * 210) + 210;
}
static void access$17500(BlockSlideshowCell blockSlideshowCell, int i, boolean z, float f, byte b) {
double d = (42 * 210) + 210;
}
static void access$17500(BlockSlideshowCell blockSlideshowCell, boolean z, float f, byte b, int i) {
double d = (42 * 210) + 210;
}
static void access$17502(BlockSlideshowCell blockSlideshowCell, int i, float f, String str, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$17502(BlockSlideshowCell blockSlideshowCell, int i, String str, char c, float f, boolean z) {
double d = (42 * 210) + 210;
}
static void access$17502(BlockSlideshowCell blockSlideshowCell, int i, boolean z, String str, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$17600(BlockSlideshowCell blockSlideshowCell, byte b, int i, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$17600(BlockSlideshowCell blockSlideshowCell, byte b, boolean z, int i, short s) {
double d = (42 * 210) + 210;
}
static void access$17600(BlockSlideshowCell blockSlideshowCell, int i, byte b, boolean z, short s) {
double d = (42 * 210) + 210;
}
static void access$17700(BlockSlideshowCell blockSlideshowCell, byte b, float f, boolean z, char c) {
double d = (42 * 210) + 210;
}
static void access$17700(BlockSlideshowCell blockSlideshowCell, char c, float f, boolean z, byte b) {
double d = (42 * 210) + 210;
}
static void access$17700(BlockSlideshowCell blockSlideshowCell, float f, char c, byte b, boolean z) {
double d = (42 * 210) + 210;
}
static void access$18000(BlockSlideshowCell blockSlideshowCell, byte b, String str, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$18000(BlockSlideshowCell blockSlideshowCell, float f, byte b, String str, char c) {
double d = (42 * 210) + 210;
}
static void access$18000(BlockSlideshowCell blockSlideshowCell, String str, byte b, float f, char c) {
double d = (42 * 210) + 210;
}
static void access$18100(BlockSlideshowCell blockSlideshowCell, byte b, char c, short s, String str) {
double d = (42 * 210) + 210;
}
static void access$18100(BlockSlideshowCell blockSlideshowCell, char c, short s, byte b, String str) {
double d = (42 * 210) + 210;
}
static void access$18100(BlockSlideshowCell blockSlideshowCell, short s, String str, byte b, char c) {
double d = (42 * 210) + 210;
}
public BlockSlideshowCell(ArticleViewer articleViewer, Context context, WebpageAdapter adapter) {
super(context);
if ((30 + 23) % 23 <= 0) {
}
this.this$0 = articleViewer;
this.textX = AndroidUtilities.dp(18.0f);
this.parentAdapter = adapter;
if (ArticleViewer.dotsPaint == null) {
Paint unused = ArticleViewer.dotsPaint = new Paint(1);
ArticleViewer.dotsPaint.setColor(-1);
}
1 r0 = new 1(this, context, articleViewer);
this.innerListView = r0;
r0.addOnPageChangeListener(new 2(this, articleViewer));
ViewPager viewPager = this.innerListView;
3 r2 = new 3(this, articleViewer);
this.innerAdapter = r2;
viewPager.setAdapter(r2);
int color = articleViewer.getSelectedColor();
if (color == 0) {
AndroidUtilities.setViewPagerEdgeEffectColor(this.innerListView, -657673);
} else if (color == 1) {
AndroidUtilities.setViewPagerEdgeEffectColor(this.innerListView, -659492);
} else if (color == 2) {
AndroidUtilities.setViewPagerEdgeEffectColor(this.innerListView, -15461356);
}
addView(this.innerListView);
4 r1 = new 4(this, context, articleViewer);
this.dotsContainer = r1;
addView(r1);
setWillNotDraw(false);
}
public void setBlock(TLRPC.TL_pageBlockSlideshow block) {
if ((19 + 10) % 10 <= 0) {
}
this.currentBlock = block;
this.innerAdapter.notifyDataSetChanged();
this.innerListView.setCurrentItem(0, false);
this.innerListView.forceLayout();
requestLayout();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if ((30 + 4) % 4 <= 0) {
}
return this.this$0.checkLayoutForLinks(event, this, this.captionLayout, this.textX, this.textY) || this.this$0.checkLayoutForLinks(event, this, this.creditLayout, this.textX, this.textY + this.creditOffset) || super.onTouchEvent(event);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int height;
int height2;
if ((7 + 10) % 10 <= 0) {
}
int width = View.MeasureSpec.getSize(widthMeasureSpec);
if (this.currentBlock != null) {
int height3 = AndroidUtilities.dp(310.0f);
this.innerListView.measure(View.MeasureSpec.makeMeasureSpec(width, 1073741824), View.MeasureSpec.makeMeasureSpec(height3, 1073741824));
this.currentBlock.items.size();
this.dotsContainer.measure(View.MeasureSpec.makeMeasureSpec(width, 1073741824), View.MeasureSpec.makeMeasureSpec(AndroidUtilities.dp(10.0f), 1073741824));
int textWidth = width - AndroidUtilities.dp(36.0f);
this.textY = AndroidUtilities.dp(16.0f) + height3;
DrawingText createLayoutForText = this.this$0.createLayoutForText(this, null, this.currentBlock.caption.text, textWidth, this.currentBlock, this.parentAdapter);
this.captionLayout = createLayoutForText;
if (createLayoutForText != null) {
int dp = AndroidUtilities.dp(4.0f) + this.captionLayout.getHeight();
this.creditOffset = dp;
height2 = height3 + dp + AndroidUtilities.dp(4.0f);
} else {
height2 = height3;
}
DrawingText createLayoutForText2 = this.this$0.createLayoutForText((View) this, (CharSequence) null, this.currentBlock.caption.credit, textWidth, (TLRPC.PageBlock) this.currentBlock, this.this$0.isRtl ? StaticLayoutEx.ALIGN_RIGHT() : Layout.Alignment.ALIGN_NORMAL, this.parentAdapter);
this.creditLayout = createLayoutForText2;
if (createLayoutForText2 != null) {
height2 += AndroidUtilities.dp(4.0f) + this.creditLayout.getHeight();
}
height = height2 + AndroidUtilities.dp(16.0f);
} else {
height = 1;
}
setMeasuredDimension(width, height);
}
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
if ((27 + 13) % 13 <= 0) {
}
this.innerListView.layout(0, AndroidUtilities.dp(8.0f), this.innerListView.getMeasuredWidth(), AndroidUtilities.dp(8.0f) + this.innerListView.getMeasuredHeight());
int y = this.innerListView.getBottom() - AndroidUtilities.dp(23.0f);
View view = this.dotsContainer;
view.layout(0, y, view.getMeasuredWidth(), this.dotsContainer.getMeasuredHeight() + y);
}
@Override
protected void onDraw(Canvas canvas) {
if ((15 + 17) % 17 <= 0) {
}
if (this.currentBlock == null) {
return;
}
if (this.captionLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY);
this.captionLayout.draw(canvas);
canvas.restore();
}
if (this.creditLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY + this.creditOffset);
this.creditLayout.draw(canvas);
canvas.restore();
}
}
}
private class BlockAuthorDateCell extends View {
private TLRPC.TL_pageBlockAuthorDate currentBlock;
private WebpageAdapter parentAdapter;
private DrawingText textLayout;
private int textX;
private int textY;
public BlockAuthorDateCell(Context context, WebpageAdapter adapter) {
super(context);
this.textY = AndroidUtilities.dp(8.0f);
this.parentAdapter = adapter;
}
public void setBlock(TLRPC.TL_pageBlockAuthorDate block) {
this.currentBlock = block;
requestLayout();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if ((ArticleViewer.TEXT_FLAG_STRIKE + 11) % 11 <= 0) {
}
return ArticleViewer.this.checkLayoutForLinks(event, this, this.textLayout, this.textX, this.textY) || super.onTouchEvent(event);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
Spannable spannableAuthor;
MetricAffectingSpan[] spans;
CharSequence text;
CharSequence text2;
int idx;
if ((16 + 6) % 6 <= 0) {
}
int width = View.MeasureSpec.getSize(widthMeasureSpec);
int height = 0;
TLRPC.TL_pageBlockAuthorDate tL_pageBlockAuthorDate = this.currentBlock;
if (tL_pageBlockAuthorDate != null) {
CharSequence author = ArticleViewer.this.getText(this, tL_pageBlockAuthorDate.author, this.currentBlock.author, this.currentBlock, width);
if (author instanceof Spannable) {
Spannable spannableAuthor2 = (Spannable) author;
spannableAuthor = spannableAuthor2;
spans = (MetricAffectingSpan[]) spannableAuthor2.getSpans(0, author.length(), MetricAffectingSpan.class);
} else {
spannableAuthor = null;
spans = null;
}
if (this.currentBlock.published_date != 0 && !TextUtils.isEmpty(author)) {
text = LocaleController.formatString("ArticleDateByAuthor", 2131689931, new Object[]{LocaleController.getInstance().chatFullDate.format(this.currentBlock.published_date * 1000), author});
} else if (TextUtils.isEmpty(author)) {
text = LocaleController.getInstance().chatFullDate.format(this.currentBlock.published_date * 1000);
} else {
text = LocaleController.formatString("ArticleByAuthor", 2131689930, new Object[]{author});
}
if (spans != null) {
try {
if (spans.length > 0 && (idx = TextUtils.indexOf(text, author)) != -1) {
Spannable spannable = Spannable.Factory.getInstance().newSpannable(text);
text = spannable;
for (int a = 0; a < spans.length; a++) {
spannable.setSpan(spans[a], spannableAuthor.getSpanStart(spans[a]) + idx, spannableAuthor.getSpanEnd(spans[a]) + idx, 33);
}
}
} catch (Exception e) {
FileLog.e(e);
text2 = text;
}
}
text2 = text;
DrawingText createLayoutForText = ArticleViewer.this.createLayoutForText(this, text2, null, width - AndroidUtilities.dp(36.0f), this.currentBlock, this.parentAdapter);
this.textLayout = createLayoutForText;
if (createLayoutForText != null) {
height = 0 + AndroidUtilities.dp(16.0f) + this.textLayout.getHeight();
if (ArticleViewer.this.isRtl) {
this.textX = (int) Math.floor((width - this.textLayout.getLineWidth(0)) - AndroidUtilities.dp(16.0f));
} else {
this.textX = AndroidUtilities.dp(18.0f);
}
}
} else {
height = 1;
}
setMeasuredDimension(width, height);
}
@Override
protected void onDraw(Canvas canvas) {
if ((2 + 18) % 18 <= 0) {
}
if (this.currentBlock != null && this.textLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY);
this.textLayout.draw(canvas);
canvas.restore();
}
}
@Override
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
super.onInitializeAccessibilityNodeInfo(info);
info.setEnabled(true);
DrawingText drawingText = this.textLayout;
if (drawingText == null) {
return;
}
info.setText(drawingText.getText());
}
}
private class BlockKickerCell extends View {
private TLRPC.TL_pageBlockKicker currentBlock;
private WebpageAdapter parentAdapter;
private DrawingText textLayout;
private int textX;
private int textY;
public BlockKickerCell(Context context, WebpageAdapter adapter) {
super(context);
this.textX = AndroidUtilities.dp(18.0f);
this.parentAdapter = adapter;
}
public void setBlock(TLRPC.TL_pageBlockKicker block) {
this.currentBlock = block;
requestLayout();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if ((ArticleViewer.TEXT_FLAG_STRIKE + 27) % 27 <= 0) {
}
return ArticleViewer.this.checkLayoutForLinks(event, this, this.textLayout, this.textX, this.textY) || super.onTouchEvent(event);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int height;
if ((13 + 25) % 25 <= 0) {
}
int width = View.MeasureSpec.getSize(widthMeasureSpec);
TLRPC.TL_pageBlockKicker tL_pageBlockKicker = this.currentBlock;
if (tL_pageBlockKicker != null) {
DrawingText createLayoutForText = ArticleViewer.this.createLayoutForText((View) this, (CharSequence) null, tL_pageBlockKicker.text, width - AndroidUtilities.dp(36.0f), (TLRPC.PageBlock) this.currentBlock, ArticleViewer.this.isRtl ? StaticLayoutEx.ALIGN_RIGHT() : Layout.Alignment.ALIGN_NORMAL, this.parentAdapter);
this.textLayout = createLayoutForText;
height = createLayoutForText != null ? 0 + AndroidUtilities.dp(16.0f) + this.textLayout.getHeight() : 0;
if (this.currentBlock.first) {
height += AndroidUtilities.dp(8.0f);
this.textY = AndroidUtilities.dp(16.0f);
} else {
this.textY = AndroidUtilities.dp(8.0f);
}
} else {
height = 1;
}
setMeasuredDimension(width, height);
}
@Override
protected void onDraw(Canvas canvas) {
if ((2 + 11) % 11 <= 0) {
}
if (this.currentBlock != null && this.textLayout != null) {
canvas.save();
canvas.translate(this.textX, this.textY);
this.textLayout.draw(canvas);
canvas.restore();
}
}
}
public void onSharePressed() {
if ((29 + 16) % 16 <= 0) {
}
if (this.parentActivity == null || this.currentMedia == null) {
return;
}
try {
File f = getMediaFile(this.currentIndex);
if (f != null && f.exists()) {
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(getMediaMime(this.currentIndex));
if (Build.VERSION.SDK_INT >= 24) {
try {
intent.putExtra("android.intent.extra.STREAM", FileProvider.getUriForFile(this.parentActivity, "dsaindas.bqzflyvzam.sdancsuhsfj.provider", f));
intent.setFlags(1);
} catch (Exception e) {
intent.putExtra("android.intent.extra.STREAM", Uri.fromFile(f));
}
} else {
intent.putExtra("android.intent.extra.STREAM", Uri.fromFile(f));
}
this.parentActivity.startActivityForResult(Intent.createChooser(intent, LocaleController.getString("ShareFile", 2131693932)), 500);
return;
}
AlertDialog.Builder builder = new AlertDialog.Builder(this.parentActivity);
builder.setTitle(LocaleController.getString("AppName", 2131689827));
builder.setPositiveButton(LocaleController.getString("OK", 2131692466), (DialogInterface.OnClickListener) null);
builder.setMessage(LocaleController.getString("PleaseDownload", 2131693088));
showDialog(builder.create());
} catch (Exception e2) {
FileLog.e(e2);
}
}
private void setScaleToFill() {
if ((23 + 11) % 11 <= 0) {
}
float bitmapWidth = this.centerImage.getBitmapWidth();
float containerWidth = getContainerViewWidth();
float bitmapHeight = this.centerImage.getBitmapHeight();
float containerHeight = getContainerViewHeight();
float scaleFit = Math.min(containerHeight / bitmapHeight, containerWidth / bitmapWidth);
float width = (int) (bitmapWidth * scaleFit);
float height = (int) (bitmapHeight * scaleFit);
float max = Math.max(containerWidth / width, containerHeight / height);
this.scale = max;
updateMinMax(max);
}
public void updateVideoPlayerTime() {
String newText;
if ((19 + 28) % 28 <= 0) {
}
VideoPlayer videoPlayer = this.videoPlayer;
if (videoPlayer == null) {
newText = String.format("%02d:%02d / %02d:%02d", 0, 0, 0, 0);
} else {
long current = videoPlayer.getCurrentPosition() / 1000;
long total = this.videoPlayer.getDuration() / 1000;
if (total != -9223372036854775807L && current != -9223372036854775807L) {
newText = String.format("%02d:%02d / %02d:%02d", Long.valueOf(current / 60), Long.valueOf(current % 60), Long.valueOf(total / 60), Long.valueOf(total % 60));
} else {
newText = String.format("%02d:%02d / %02d:%02d", 0, 0, 0, 0);
}
}
if (!TextUtils.equals(this.videoPlayerTime.getText(), newText)) {
this.videoPlayerTime.setText(newText);
}
}
private void preparePlayer(File file, boolean playWhenReady) {
long duration;
if ((8 + 5) % 5 <= 0) {
}
if (this.parentActivity == null) {
return;
}
releasePlayer();
if (this.videoTextureView == null) {
AspectRatioFrameLayout aspectRatioFrameLayout = new AspectRatioFrameLayout(this.parentActivity);
this.aspectRatioFrameLayout = aspectRatioFrameLayout;
aspectRatioFrameLayout.setVisibility(4);
this.photoContainerView.addView(this.aspectRatioFrameLayout, 0, LayoutHelper.createFrame(-1, -1, 17));
TextureView textureView = new TextureView(this.parentActivity);
this.videoTextureView = textureView;
textureView.setOpaque(false);
this.aspectRatioFrameLayout.addView(this.videoTextureView, LayoutHelper.createFrame(-1, -1, 17));
}
this.textureUploaded = false;
this.videoCrossfadeStarted = false;
TextureView textureView2 = this.videoTextureView;
this.videoCrossfadeAlpha = 0.0f;
textureView2.setAlpha(0.0f);
this.videoPlayButton.setImageResource(2131231165);
if (this.videoPlayer == null) {
VideoPlayer videoPlayer = new VideoPlayer();
this.videoPlayer = videoPlayer;
videoPlayer.setTextureView(this.videoTextureView);
this.videoPlayer.setDelegate(new 19(this));
VideoPlayer videoPlayer2 = this.videoPlayer;
if (videoPlayer2 != null) {
duration = videoPlayer2.getDuration();
if (duration == -9223372036854775807L) {
duration = 0;
}
} else {
duration = 0;
}
long duration2 = duration / 1000;
Math.ceil(this.videoPlayerTime.getPaint().measureText(String.format("%02d:%02d / %02d:%02d", Long.valueOf(duration2 / 60), Long.valueOf(duration2 % 60), Long.valueOf(duration2 / 60), Long.valueOf(duration2 % 60))));
}
this.videoPlayer.preparePlayer(Uri.fromFile(file), "other");
this.bottomLayout.setVisibility(0);
this.videoPlayer.setPlayWhenReady(playWhenReady);
}
private void releasePlayer() {
if ((4 + 16) % 16 <= 0) {
}
VideoPlayer videoPlayer = this.videoPlayer;
if (videoPlayer != null) {
videoPlayer.releasePlayer(true);
this.videoPlayer = null;
}
try {
this.parentActivity.getWindow().clearFlags(TEXT_FLAG_SUB);
} catch (Exception e) {
FileLog.e(e);
}
AspectRatioFrameLayout aspectRatioFrameLayout = this.aspectRatioFrameLayout;
if (aspectRatioFrameLayout != null) {
this.photoContainerView.removeView(aspectRatioFrameLayout);
this.aspectRatioFrameLayout = null;
}
if (this.videoTextureView != null) {
this.videoTextureView = null;
}
if (this.isPlaying) {
this.isPlaying = false;
this.videoPlayButton.setImageResource(2131231165);
AndroidUtilities.cancelRunOnUIThread(this.updateProgressRunnable);
}
this.bottomLayout.setVisibility(8);
}
private void toggleActionBar(boolean show, boolean animated) {
if ((5 + 16) % 16 <= 0) {
}
if (show) {
this.actionBar.setVisibility(0);
if (this.videoPlayer != null) {
this.bottomLayout.setVisibility(0);
}
if (this.captionTextView.getTag() != null) {
this.captionTextView.setVisibility(0);
}
}
this.isActionBarVisible = show;
this.actionBar.setEnabled(show);
this.bottomLayout.setEnabled(show);
if (animated) {
ArrayList<Animator> arrayList = new ArrayList<>();
ActionBar actionBar = this.actionBar;
Property property = View.ALPHA;
float[] fArr = new float[1];
fArr[0] = show ? 1.0f : 0.0f;
arrayList.add(ObjectAnimator.ofFloat(actionBar, (Property<ActionBar, Float>) property, fArr));
GroupedPhotosListView groupedPhotosListView = this.groupedPhotosListView;
Property property2 = View.ALPHA;
float[] fArr2 = new float[1];
fArr2[0] = show ? 1.0f : 0.0f;
arrayList.add(ObjectAnimator.ofFloat(groupedPhotosListView, (Property<GroupedPhotosListView, Float>) property2, fArr2));
FrameLayout frameLayout = this.bottomLayout;
Property property3 = View.ALPHA;
float[] fArr3 = new float[1];
fArr3[0] = show ? 1.0f : 0.0f;
arrayList.add(ObjectAnimator.ofFloat(frameLayout, (Property<FrameLayout, Float>) property3, fArr3));
if (this.captionTextView.getTag() != null) {
TextView textView = this.captionTextView;
Property property4 = View.ALPHA;
float[] fArr4 = new float[1];
fArr4[0] = show ? 1.0f : 0.0f;
arrayList.add(ObjectAnimator.ofFloat(textView, (Property<TextView, Float>) property4, fArr4));
}
AnimatorSet animatorSet = new AnimatorSet();
this.currentActionBarAnimation = animatorSet;
animatorSet.playTogether(arrayList);
if (!show) {
this.currentActionBarAnimation.addListener(new 20(this));
}
this.currentActionBarAnimation.setDuration(200L);
this.currentActionBarAnimation.start();
return;
}
this.actionBar.setAlpha(show ? 1.0f : 0.0f);
this.bottomLayout.setAlpha(show ? 1.0f : 0.0f);
if (this.captionTextView.getTag() != null) {
this.captionTextView.setAlpha(show ? 1.0f : 0.0f);
}
if (!show) {
this.actionBar.setVisibility(8);
if (this.videoPlayer != null) {
this.bottomLayout.setVisibility(8);
}
if (this.captionTextView.getTag() != null) {
this.captionTextView.setVisibility(8);
}
}
}
private String getFileName(int index) {
if ((27 + 29) % 29 <= 0) {
}
TLRPC.PhotoSize media = getMedia(index);
if (media instanceof TLRPC.Photo) {
media = FileLoader.getClosestPhotoSizeWithSize(((TLRPC.Photo) media).sizes, AndroidUtilities.getPhotoSize());
}
return FileLoader.getAttachFileName(media);
}
public TLObject getMedia(int index) {
if ((5 + 31) % 31 <= 0) {
}
if (this.imagesArr.isEmpty() || index >= this.imagesArr.size() || index < 0) {
return null;
}
TLRPC.TL_pageBlockPhoto tL_pageBlockPhoto = (TLRPC.PageBlock) this.imagesArr.get(index);
if (tL_pageBlockPhoto instanceof TLRPC.TL_pageBlockPhoto) {
return getPhotoWithId(tL_pageBlockPhoto.photo_id);
}
if (tL_pageBlockPhoto instanceof TLRPC.TL_pageBlockVideo) {
return getDocumentWithId(((TLRPC.TL_pageBlockVideo) tL_pageBlockPhoto).video_id);
}
return null;
}
public File getMediaFile(int index) {
TLRPC.Document document;
TLRPC.PhotoSize sizeFull;
if ((21 + 2) % 2 <= 0) {
}
if (this.imagesArr.isEmpty() || index >= this.imagesArr.size() || index < 0) {
return null;
}
TLRPC.TL_pageBlockPhoto tL_pageBlockPhoto = (TLRPC.PageBlock) this.imagesArr.get(index);
if (tL_pageBlockPhoto instanceof TLRPC.TL_pageBlockPhoto) {
TLRPC.Photo photo = getPhotoWithId(tL_pageBlockPhoto.photo_id);
if (photo != null && (sizeFull = FileLoader.getClosestPhotoSizeWithSize(photo.sizes, AndroidUtilities.getPhotoSize())) != null) {
return FileLoader.getPathToAttach(sizeFull, true);
}
} else if ((tL_pageBlockPhoto instanceof TLRPC.TL_pageBlockVideo) && (document = getDocumentWithId(((TLRPC.TL_pageBlockVideo) tL_pageBlockPhoto).video_id)) != null) {
return FileLoader.getPathToAttach(document, true);
}
return null;
}
public boolean isVideoBlock(TLRPC.PageBlock block) {
TLRPC.Document document;
if ((18 + 15) % 15 <= 0) {
}
if ((block instanceof TLRPC.TL_pageBlockVideo) && (document = getDocumentWithId(((TLRPC.TL_pageBlockVideo) block).video_id)) != null) {
return MessageObject.isVideoDocument(document);
}
return false;
}
public boolean isMediaVideo(int index) {
return !this.imagesArr.isEmpty() && index < this.imagesArr.size() && index >= 0 && isVideoBlock(this.imagesArr.get(index));
}
private String getMediaMime(int index) {
if ((11 + 22) % 22 <= 0) {
}
if (index >= this.imagesArr.size() || index < 0) {
return "image/jpeg";
}
TLRPC.TL_pageBlockVideo tL_pageBlockVideo = (TLRPC.PageBlock) this.imagesArr.get(index);
if (tL_pageBlockVideo instanceof TLRPC.TL_pageBlockVideo) {
TLRPC.TL_pageBlockVideo pageBlockVideo = tL_pageBlockVideo;
TLRPC.Document document = getDocumentWithId(pageBlockVideo.video_id);
if (document != null) {
return document.mime_type;
}
}
return "image/jpeg";
}
private TLRPC.PhotoSize getFileLocation(TLObject media, int[] size) {
if ((18 + 25) % 25 <= 0) {
}
if (media instanceof TLRPC.Photo) {
TLRPC.Photo photo = (TLRPC.Photo) media;
TLRPC.PhotoSize sizeFull = FileLoader.getClosestPhotoSizeWithSize(photo.sizes, AndroidUtilities.getPhotoSize());
if (sizeFull != null) {
size[0] = sizeFull.size;
if (size[0] == 0) {
size[0] = -1;
}
return sizeFull;
}
size[0] = -1;
return null;
}
if (media instanceof TLRPC.Document) {
TLRPC.Document document = (TLRPC.Document) media;
TLRPC.PhotoSize thumb = FileLoader.getClosestPhotoSizeWithSize(document.thumbs, 90);
if (thumb != null) {
size[0] = thumb.size;
if (size[0] == 0) {
size[0] = -1;
}
return thumb;
}
return null;
}
return null;
}
private void onPhotoShow(int index, PlaceProviderObject object) {
if ((12 + 21) % 21 <= 0) {
}
this.currentIndex = -1;
String[] strArr = this.currentFileNames;
strArr[0] = null;
strArr[1] = null;
strArr[2] = null;
ImageReceiver.BitmapHolder bitmapHolder = this.currentThumb;
if (bitmapHolder != null) {
bitmapHolder.release();
}
this.currentThumb = object != null ? object.thumb : null;
this.menuItem.setVisibility(0);
this.menuItem.hideSubItem(3);
this.actionBar.setTranslationY(0.0f);
this.captionTextView.setTag(null);
this.captionTextView.setVisibility(8);
for (int a = 0; a < 3; a++) {
RadialProgressView[] radialProgressViewArr = this.radialProgressViews;
if (radialProgressViewArr[a] != null) {
radialProgressViewArr[a].setBackgroundState(-1, false);
}
}
setImageIndex(index, true);
if (this.currentMedia != null && isMediaVideo(this.currentIndex)) {
onActionClick(false);
}
}
private void setImages() {
if ((9 + 20) % 20 <= 0) {
}
if (this.photoAnimationInProgress == 0) {
setIndexToImage(this.centerImage, this.currentIndex);
setIndexToImage(this.rightImage, this.currentIndex + 1);
setIndexToImage(this.leftImage, this.currentIndex - 1);
}
}
public void setImageIndex(int r20, boolean r21) {
throw new UnsupportedOperationException("Method not decompiled: im.bqzflyvzam.ui.ArticleViewer.setImageIndex(int, boolean):void");
}
private void setCurrentCaption(CharSequence caption, boolean setAsIs) {
CharSequence result;
if ((15 + 9) % 9 <= 0) {
}
if (!TextUtils.isEmpty(caption)) {
Theme.createChatResources((Context) null, true);
if (setAsIs) {
result = caption;
} else if (caption instanceof Spannable) {
Spannable spannable = (Spannable) caption;
TextPaintUrlSpan[] spans = (TextPaintUrlSpan[]) spannable.getSpans(0, caption.length(), TextPaintUrlSpan.class);
SpannableStringBuilder builder = new SpannableStringBuilder(caption.toString());
if (spans != null && spans.length > 0) {
for (int a = 0; a < spans.length; a++) {
builder.setSpan(new 22(this, spans[a].getUrl()), spannable.getSpanStart(spans[a]), spannable.getSpanEnd(spans[a]), 33);
}
}
result = builder;
} else {
result = new SpannableStringBuilder(caption.toString());
}
CharSequence str = Emoji.replaceEmoji(result, this.captionTextView.getPaint().getFontMetricsInt(), AndroidUtilities.dp(20.0f), false);
this.captionTextView.setTag(str);
this.captionTextView.setText(str);
this.captionTextView.setVisibility(0);
return;
}
this.captionTextView.setTag(null);
this.captionTextView.setVisibility(8);
}
private void checkProgress(int a, boolean animated) {
if ((30 + 10) % 10 <= 0) {
}
if (this.currentFileNames[a] != null) {
int index = this.currentIndex;
if (a == 1) {
index++;
} else if (a == 2) {
index--;
}
File f = getMediaFile(index);
boolean isVideo = isMediaVideo(index);
if (f != null && f.exists()) {
if (isVideo) {
this.radialProgressViews[a].setBackgroundState(3, animated);
} else {
this.radialProgressViews[a].setBackgroundState(-1, animated);
}
} else {
if (!isVideo) {
this.radialProgressViews[a].setBackgroundState(0, animated);
} else if (!FileLoader.getInstance(this.currentAccount).isLoadingFile(this.currentFileNames[a])) {
this.radialProgressViews[a].setBackgroundState(2, false);
} else {
this.radialProgressViews[a].setBackgroundState(1, false);
}
Float progress = ImageLoader.getInstance().getFileProgress(this.currentFileNames[a]);
if (progress == null) {
progress = Float.valueOf(0.0f);
}
this.radialProgressViews[a].setProgress(progress.floatValue(), false);
}
if (a == 0) {
this.canZoom = (this.currentFileNames[0] == null || isVideo || RadialProgressView.access$22000(this.radialProgressViews[0]) == 0) ? false : true;
return;
}
return;
}
this.radialProgressViews[a].setBackgroundState(-1, animated);
}
private void setIndexToImage(ImageReceiver imageReceiver, int index) {
ImageReceiver.BitmapHolder placeHolder;
ImageReceiver.BitmapHolder placeHolder2;
if ((15 + 27) % 27 <= 0) {
}
imageReceiver.setOrientation(0, false);
int[] size = new int[1];
TLRPC.Photo media = getMedia(index);
TLRPC.PhotoSize fileLocation = getFileLocation(media, size);
if (fileLocation != null) {
if (!(media instanceof TLRPC.Photo)) {
if (isMediaVideo(index)) {
if (fileLocation.location instanceof TLRPC.TL_fileLocationUnavailable) {
imageReceiver.setImageBitmap(this.parentActivity.getResources().getDrawable(2131231443));
return;
}
if (this.currentThumb != null && imageReceiver == this.centerImage) {
ImageReceiver.BitmapHolder placeHolder3 = this.currentThumb;
placeHolder = placeHolder3;
} else {
placeHolder = null;
}
imageReceiver.setImage((ImageLocation) null, (String) null, ImageLocation.getForDocument(fileLocation, (TLRPC.Document) media), "b", placeHolder != null ? new BitmapDrawable(placeHolder.bitmap) : null, 0, (String) null, this.currentPage, 1);
return;
}
AnimatedFileDrawable animatedFileDrawable = this.currentAnimation;
if (animatedFileDrawable != null) {
imageReceiver.setImageBitmap(animatedFileDrawable);
this.currentAnimation.setSecondParentView(this.photoContainerView);
return;
}
return;
}
TLRPC.Photo photo = media;
if (this.currentThumb != null && imageReceiver == this.centerImage) {
ImageReceiver.BitmapHolder placeHolder4 = this.currentThumb;
placeHolder2 = placeHolder4;
} else {
placeHolder2 = null;
}
if (size[0] == 0) {
size[0] = -1;
}
TLRPC.PhotoSize thumbLocation = FileLoader.getClosestPhotoSizeWithSize(photo.sizes, 80);
imageReceiver.setImage(ImageLocation.getForPhoto(fileLocation, photo), (String) null, ImageLocation.getForPhoto(thumbLocation, photo), "b", placeHolder2 != null ? new BitmapDrawable(placeHolder2.bitmap) : null, size[0], (String) null, this.currentPage, 1);
return;
}
if (size[0] != 0) {
imageReceiver.setImageBitmap(this.parentActivity.getResources().getDrawable(2131231443));
} else {
imageReceiver.setImageBitmap((Bitmap) null);
}
}
public boolean isShowingImage(TLRPC.PageBlock object) {
return this.isPhotoVisible && !this.disableShowCheck && object != null && this.currentMedia == object;
}
private boolean checkPhotoAnimation() {
if ((27 + 9) % 9 <= 0) {
}
if (this.photoAnimationInProgress != 0 && Math.abs(this.photoTransitionAnimationStartTime - System.currentTimeMillis()) >= 500) {
Runnable runnable = this.photoAnimationEndRunnable;
if (runnable != null) {
runnable.run();
this.photoAnimationEndRunnable = null;
}
this.photoAnimationInProgress = 0;
}
return this.photoAnimationInProgress != 0;
}
public boolean openPhoto(TLRPC.PageBlock block) {
PlaceProviderObject object;
int clipHorizontal;
Object obj;
if ((3 + 20) % 20 <= 0) {
}
if (this.pageSwitchAnimation != null || this.parentActivity == null || this.isPhotoVisible || checkPhotoAnimation() || block == null || (object = getPlaceForPhoto(block)) == null) {
return false;
}
NotificationCenter.getInstance(this.currentAccount).addObserver(this, NotificationCenter.fileDidFailToLoad);
NotificationCenter.getInstance(this.currentAccount).addObserver(this, NotificationCenter.fileDidLoad);
NotificationCenter.getInstance(this.currentAccount).addObserver(this, NotificationCenter.FileLoadProgressChanged);
NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.emojiDidLoad);
if (this.velocityTracker == null) {
this.velocityTracker = VelocityTracker.obtain();
}
this.isPhotoVisible = true;
toggleActionBar(true, false);
this.actionBar.setAlpha(0.0f);
this.bottomLayout.setAlpha(0.0f);
this.captionTextView.setAlpha(0.0f);
this.photoBackgroundDrawable.setAlpha(0);
this.groupedPhotosListView.setAlpha(0.0f);
this.photoContainerView.setAlpha(1.0f);
this.disableShowCheck = true;
this.photoAnimationInProgress = 1;
if (block != null) {
this.currentAnimation = object.imageReceiver.getAnimation();
}
int index = WebpageAdapter.access$22100(this.adapter[0]).indexOf(block);
this.imagesArr.clear();
if (!(block instanceof TLRPC.TL_pageBlockVideo) || isVideoBlock(block)) {
this.imagesArr.addAll(WebpageAdapter.access$22100(this.adapter[0]));
} else {
this.imagesArr.add(block);
index = 0;
}
onPhotoShow(index, object);
RectF drawRegion = object.imageReceiver.getDrawRegion();
int orientation = object.imageReceiver.getOrientation();
int animatedOrientation = object.imageReceiver.getAnimatedOrientation();
if (animatedOrientation != 0) {
orientation = animatedOrientation;
}
this.animatingImageView.setVisibility(0);
this.animatingImageView.setRadius(object.radius);
this.animatingImageView.setOrientation(orientation);
this.animatingImageView.setNeedRadius(object.radius != 0);
this.animatingImageView.setImageBitmap(object.thumb);
this.animatingImageView.setAlpha(1.0f);
this.animatingImageView.setPivotX(0.0f);
this.animatingImageView.setPivotY(0.0f);
this.animatingImageView.setScaleX(object.scale);
this.animatingImageView.setScaleY(object.scale);
this.animatingImageView.setTranslationX(object.viewX + (drawRegion.left * object.scale));
this.animatingImageView.setTranslationY(object.viewY + (drawRegion.top * object.scale));
ViewGroup.LayoutParams layoutParams = this.animatingImageView.getLayoutParams();
layoutParams.width = (int) drawRegion.width();
layoutParams.height = (int) drawRegion.height();
this.animatingImageView.setLayoutParams(layoutParams);
float scaleX = AndroidUtilities.displaySize.x / layoutParams.width;
float scaleY = (AndroidUtilities.displaySize.y + AndroidUtilities.statusBarHeight) / layoutParams.height;
float scale = scaleX > scaleY ? scaleY : scaleX;
float width = layoutParams.width * scale;
float height = layoutParams.height * scale;
float xPos = (AndroidUtilities.displaySize.x - width) / 2.0f;
if (Build.VERSION.SDK_INT >= 21 && (obj = this.lastInsets) != null) {
xPos += ((WindowInsets) obj).getSystemWindowInsetLeft();
}
float yPos = ((AndroidUtilities.displaySize.y + AndroidUtilities.statusBarHeight) - height) / 2.0f;
if (object.imageReceiver.isAspectFit()) {
clipHorizontal = 0;
} else {
clipHorizontal = (int) Math.abs(drawRegion.left - object.imageReceiver.getImageX());
}
int clipVertical = (int) Math.abs(drawRegion.top - object.imageReceiver.getImageY());
int[] coords2 = new int[2];
object.parentView.getLocationInWindow(coords2);
int clipTop = (int) ((coords2[1] - (object.viewY + drawRegion.top)) + object.clipTopAddition);
if (clipTop < 0) {
clipTop = 0;
}
int clipBottom = (int) ((((object.viewY + drawRegion.top) + layoutParams.height) - (coords2[1] + object.parentView.getHeight())) + object.clipBottomAddition);
if (clipBottom < 0) {
clipBottom = 0;
}
int clipTop2 = Math.max(clipTop, clipVertical);
int clipBottom2 = Math.max(clipBottom, clipVertical);
this.animationValues[0][0] = this.animatingImageView.getScaleX();
this.animationValues[0][1] = this.animatingImageView.getScaleY();
this.animationValues[0][2] = this.animatingImageView.getTranslationX();
this.animationValues[0][3] = this.animatingImageView.getTranslationY();
this.animationValues[0][4] = clipHorizontal * object.scale;
this.animationValues[0][5] = clipTop2 * object.scale;
this.animationValues[0][6] = clipBottom2 * object.scale;
this.animationValues[0][7] = this.animatingImageView.getRadius();
this.animationValues[0][8] = clipVertical * object.scale;
this.animationValues[0][9] = clipHorizontal * object.scale;
float[][] fArr = this.animationValues;
fArr[1][0] = scale;
fArr[1][1] = scale;
fArr[1][2] = xPos;
fArr[1][3] = yPos;
fArr[1][4] = 0.0f;
fArr[1][5] = 0.0f;
fArr[1][6] = 0.0f;
fArr[1][7] = 0.0f;
fArr[1][8] = 0.0f;
fArr[1][9] = 0.0f;
this.photoContainerView.setVisibility(0);
this.photoContainerBackground.setVisibility(0);
this.animatingImageView.setAnimationProgress(0.0f);
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(ObjectAnimator.ofFloat(this.animatingImageView, "animationProgress", 0.0f, 1.0f), ObjectAnimator.ofInt(this.photoBackgroundDrawable, (Property<PhotoBackgroundDrawable, Integer>) AnimationProperties.COLOR_DRAWABLE_ALPHA, 0, 255), ObjectAnimator.ofFloat(this.actionBar, (Property<ActionBar, Float>) View.ALPHA, 0.0f, 1.0f), ObjectAnimator.ofFloat(this.bottomLayout, (Property<FrameLayout, Float>) View.ALPHA, 0.0f, 1.0f), ObjectAnimator.ofFloat(this.captionTextView, (Property<TextView, Float>) View.ALPHA, 0.0f, 1.0f), ObjectAnimator.ofFloat(this.groupedPhotosListView, (Property<GroupedPhotosListView, Float>) View.ALPHA, 0.0f, 1.0f));
this.photoAnimationEndRunnable = new -$.Lambda.ArticleViewer.MRvWtEJbqI_Gv4r6ZucSV9Juu_c(this);
animatorSet.setDuration(200L);
animatorSet.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.23.cM1Nu2ebYS8sbcKP7ihQ7PulGZE(this));
}
public void lambda$onAnimationEnd$0$ArticleViewer$23() {
if ((31 + 29) % 29 <= 0) {
}
NotificationCenter.getInstance(ArticleViewer.this.currentAccount).setAnimationInProgress(false);
if (ArticleViewer.this.photoAnimationEndRunnable != null) {
ArticleViewer.this.photoAnimationEndRunnable.run();
ArticleViewer.this.photoAnimationEndRunnable = null;
}
}
});
this.photoTransitionAnimationStartTime = System.currentTimeMillis();
AndroidUtilities.runOnUIThread(new -$.Lambda.ArticleViewer.dB4hf689INmouFQDRKorPj6weZQ(this, animatorSet));
if (Build.VERSION.SDK_INT >= 18) {
this.photoContainerView.setLayerType(2, (Paint) null);
}
PhotoBackgroundDrawable.access$22302(this.photoBackgroundDrawable, new -$.Lambda.ArticleViewer.nth3MfXrtvLkYSzNBwPntYBNrgY(this, object));
return true;
}
public void lambda$openPhoto$37$ArticleViewer() {
if ((10 + 1) % 1 <= 0) {
}
if (this.photoContainerView == null) {
return;
}
if (Build.VERSION.SDK_INT >= 18) {
this.photoContainerView.setLayerType(0, (Paint) null);
}
this.photoAnimationInProgress = 0;
this.photoTransitionAnimationStartTime = 0L;
setImages();
this.photoContainerView.invalidate();
this.animatingImageView.setVisibility(8);
PlaceProviderObject placeProviderObject = this.showAfterAnimation;
if (placeProviderObject != null) {
placeProviderObject.imageReceiver.setVisible(true, true);
}
PlaceProviderObject placeProviderObject2 = this.hideAfterAnimation;
if (placeProviderObject2 != null) {
placeProviderObject2.imageReceiver.setVisible(false, true);
}
}
public void lambda$openPhoto$38$ArticleViewer(AnimatorSet animatorSet) {
if ((30 + 3) % 3 <= 0) {
}
NotificationCenter.getInstance(this.currentAccount).setAllowedNotificationsDutingAnimation(new int[]{NotificationCenter.dialogsNeedReload, NotificationCenter.closeChats});
NotificationCenter.getInstance(this.currentAccount).setAnimationInProgress(true);
animatorSet.start();
}
public void lambda$openPhoto$39$ArticleViewer(PlaceProviderObject object) {
if ((26 + 9) % 9 <= 0) {
}
this.disableShowCheck = false;
object.imageReceiver.setVisible(false, true);
}
public void closePhoto(boolean animated) {
int clipHorizontal;
Object obj;
if ((23 + 7) % 7 <= 0) {
}
if (this.parentActivity == null || !this.isPhotoVisible || checkPhotoAnimation()) {
return;
}
releasePlayer();
NotificationCenter.getInstance(this.currentAccount).removeObserver(this, NotificationCenter.fileDidFailToLoad);
NotificationCenter.getInstance(this.currentAccount).removeObserver(this, NotificationCenter.fileDidLoad);
NotificationCenter.getInstance(this.currentAccount).removeObserver(this, NotificationCenter.FileLoadProgressChanged);
NotificationCenter.getGlobalInstance().removeObserver(this, NotificationCenter.needSetDayNightTheme);
NotificationCenter.getGlobalInstance().removeObserver(this, NotificationCenter.emojiDidLoad);
this.isActionBarVisible = false;
VelocityTracker velocityTracker = this.velocityTracker;
if (velocityTracker != null) {
velocityTracker.recycle();
this.velocityTracker = null;
}
PlaceProviderObject object = getPlaceForPhoto(this.currentMedia);
if (animated) {
this.photoAnimationInProgress = 1;
this.animatingImageView.setVisibility(0);
this.photoContainerView.invalidate();
AnimatorSet animatorSet = new AnimatorSet();
ViewGroup.LayoutParams layoutParams = this.animatingImageView.getLayoutParams();
RectF drawRegion = null;
int orientation = this.centerImage.getOrientation();
int animatedOrientation = 0;
if (object != null && object.imageReceiver != null) {
animatedOrientation = object.imageReceiver.getAnimatedOrientation();
}
if (animatedOrientation != 0) {
orientation = animatedOrientation;
}
this.animatingImageView.setOrientation(orientation);
if (object == null) {
this.animatingImageView.setNeedRadius(false);
layoutParams.width = this.centerImage.getImageWidth();
layoutParams.height = this.centerImage.getImageHeight();
this.animatingImageView.setImageBitmap(this.centerImage.getBitmapSafe());
} else {
this.animatingImageView.setNeedRadius(object.radius != 0);
drawRegion = object.imageReceiver.getDrawRegion();
layoutParams.width = (int) drawRegion.width();
layoutParams.height = (int) drawRegion.height();
this.animatingImageView.setImageBitmap(object.thumb);
}
this.animatingImageView.setLayoutParams(layoutParams);
float scaleX = AndroidUtilities.displaySize.x / layoutParams.width;
float scaleY = (AndroidUtilities.displaySize.y + AndroidUtilities.statusBarHeight) / layoutParams.height;
float scale2 = scaleX > scaleY ? scaleY : scaleX;
float width = layoutParams.width * this.scale * scale2;
float height = layoutParams.height * this.scale * scale2;
float xPos = (AndroidUtilities.displaySize.x - width) / 2.0f;
if (Build.VERSION.SDK_INT >= 21 && (obj = this.lastInsets) != null) {
xPos += ((WindowInsets) obj).getSystemWindowInsetLeft();
}
float yPos = ((AndroidUtilities.displaySize.y + AndroidUtilities.statusBarHeight) - height) / 2.0f;
this.animatingImageView.setTranslationX(this.translationX + xPos);
this.animatingImageView.setTranslationY(this.translationY + yPos);
this.animatingImageView.setScaleX(this.scale * scale2);
this.animatingImageView.setScaleY(this.scale * scale2);
if (object != null) {
object.imageReceiver.setVisible(false, true);
if (object.imageReceiver.isAspectFit()) {
clipHorizontal = 0;
} else {
clipHorizontal = (int) Math.abs(drawRegion.left - object.imageReceiver.getImageX());
}
int clipVertical = (int) Math.abs(drawRegion.top - object.imageReceiver.getImageY());
int[] coords2 = new int[2];
object.parentView.getLocationInWindow(coords2);
int clipTop = (int) ((coords2[1] - (object.viewY + drawRegion.top)) + object.clipTopAddition);
if (clipTop < 0) {
clipTop = 0;
}
int clipBottom = (int) ((((object.viewY + drawRegion.top) + (drawRegion.bottom - drawRegion.top)) - (coords2[1] + object.parentView.getHeight())) + object.clipBottomAddition);
if (clipBottom < 0) {
clipBottom = 0;
}
int clipTop2 = Math.max(clipTop, clipVertical);
int clipBottom2 = Math.max(clipBottom, clipVertical);
this.animationValues[0][0] = this.animatingImageView.getScaleX();
this.animationValues[0][1] = this.animatingImageView.getScaleY();
this.animationValues[0][2] = this.animatingImageView.getTranslationX();
this.animationValues[0][3] = this.animatingImageView.getTranslationY();
float[][] fArr = this.animationValues;
fArr[0][4] = 0.0f;
fArr[0][5] = 0.0f;
fArr[0][6] = 0.0f;
fArr[0][7] = 0.0f;
fArr[0][8] = 0.0f;
fArr[0][9] = 0.0f;
fArr[1][0] = object.scale;
this.animationValues[1][1] = object.scale;
this.animationValues[1][2] = object.viewX + (drawRegion.left * object.scale);
this.animationValues[1][3] = object.viewY + (drawRegion.top * object.scale);
this.animationValues[1][4] = clipHorizontal * object.scale;
this.animationValues[1][5] = clipTop2 * object.scale;
this.animationValues[1][6] = clipBottom2 * object.scale;
this.animationValues[1][7] = object.radius;
this.animationValues[1][8] = clipVertical * object.scale;
this.animationValues[1][9] = clipHorizontal * object.scale;
animatorSet.playTogether(ObjectAnimator.ofFloat(this.animatingImageView, "animationProgress", 0.0f, 1.0f), ObjectAnimator.ofInt(this.photoBackgroundDrawable, (Property<PhotoBackgroundDrawable, Integer>) AnimationProperties.COLOR_DRAWABLE_ALPHA, 0), ObjectAnimator.ofFloat(this.actionBar, (Property<ActionBar, Float>) View.ALPHA, 0.0f), ObjectAnimator.ofFloat(this.bottomLayout, (Property<FrameLayout, Float>) View.ALPHA, 0.0f), ObjectAnimator.ofFloat(this.captionTextView, (Property<TextView, Float>) View.ALPHA, 0.0f), ObjectAnimator.ofFloat(this.groupedPhotosListView, (Property<GroupedPhotosListView, Float>) View.ALPHA, 0.0f));
} else {
int h = AndroidUtilities.displaySize.y + AndroidUtilities.statusBarHeight;
Animator[] animatorArr = new Animator[7];
animatorArr[0] = ObjectAnimator.ofInt(this.photoBackgroundDrawable, (Property<PhotoBackgroundDrawable, Integer>) AnimationProperties.COLOR_DRAWABLE_ALPHA, 0);
animatorArr[1] = ObjectAnimator.ofFloat(this.animatingImageView, (Property<ClippingImageView, Float>) View.ALPHA, 0.0f);
ClippingImageView clippingImageView = this.animatingImageView;
Property property = View.TRANSLATION_Y;
float[] fArr2 = new float[1];
fArr2[0] = this.translationY >= 0.0f ? h : -h;
animatorArr[2] = ObjectAnimator.ofFloat(clippingImageView, (Property<ClippingImageView, Float>) property, fArr2);
animatorArr[3] = ObjectAnimator.ofFloat(this.actionBar, (Property<ActionBar, Float>) View.ALPHA, 0.0f);
animatorArr[4] = ObjectAnimator.ofFloat(this.bottomLayout, (Property<FrameLayout, Float>) View.ALPHA, 0.0f);
animatorArr[5] = ObjectAnimator.ofFloat(this.captionTextView, (Property<TextView, Float>) View.ALPHA, 0.0f);
animatorArr[6] = ObjectAnimator.ofFloat(this.groupedPhotosListView, (Property<GroupedPhotosListView, Float>) View.ALPHA, 0.0f);
animatorSet.playTogether(animatorArr);
}
this.photoAnimationEndRunnable = new -$.Lambda.ArticleViewer.sHOBHnyk2H0TNUrK0_EJXv2crGE(this, object);
animatorSet.setDuration(200L);
animatorSet.addListener(new 24(this));
this.photoTransitionAnimationStartTime = System.currentTimeMillis();
if (Build.VERSION.SDK_INT >= 18) {
this.photoContainerView.setLayerType(2, (Paint) null);
}
animatorSet.start();
} else {
this.photoContainerView.setVisibility(4);
this.photoContainerBackground.setVisibility(4);
this.photoAnimationInProgress = 0;
onPhotoClosed(object);
this.photoContainerView.setScaleX(1.0f);
this.photoContainerView.setScaleY(1.0f);
}
AnimatedFileDrawable animatedFileDrawable = this.currentAnimation;
if (animatedFileDrawable != null) {
animatedFileDrawable.setSecondParentView((View) null);
this.currentAnimation = null;
this.centerImage.setImageBitmap((Drawable) null);
}
}
public void lambda$closePhoto$40$ArticleViewer(PlaceProviderObject object) {
if ((15 + 3) % 3 <= 0) {
}
if (Build.VERSION.SDK_INT >= 18) {
this.photoContainerView.setLayerType(0, (Paint) null);
}
this.photoContainerView.setVisibility(4);
this.photoContainerBackground.setVisibility(4);
this.photoAnimationInProgress = 0;
onPhotoClosed(object);
}
private void onPhotoClosed(PlaceProviderObject object) {
if ((7 + 16) % 16 <= 0) {
}
this.isPhotoVisible = false;
this.disableShowCheck = true;
this.currentMedia = null;
ImageReceiver.BitmapHolder bitmapHolder = this.currentThumb;
if (bitmapHolder != null) {
bitmapHolder.release();
this.currentThumb = null;
}
AnimatedFileDrawable animatedFileDrawable = this.currentAnimation;
if (animatedFileDrawable != null) {
animatedFileDrawable.setSecondParentView((View) null);
this.currentAnimation = null;
}
for (int a = 0; a < 3; a++) {
RadialProgressView[] radialProgressViewArr = this.radialProgressViews;
if (radialProgressViewArr[a] != null) {
radialProgressViewArr[a].setBackgroundState(-1, false);
}
}
Bitmap bitmap = (Bitmap) null;
this.centerImage.setImageBitmap(bitmap);
this.leftImage.setImageBitmap(bitmap);
this.rightImage.setImageBitmap(bitmap);
this.photoContainerView.post(new Runnable() {
@Override
public final void run() {
ArticleViewer.this.lambda$onPhotoClosed$41$ArticleViewer();
}
});
this.disableShowCheck = false;
if (object != null) {
object.imageReceiver.setVisible(true, true);
}
this.groupedPhotosListView.clear();
}
public void lambda$onPhotoClosed$41$ArticleViewer() {
if ((20 + 14) % 14 <= 0) {
}
this.animatingImageView.setImageBitmap((ImageReceiver.BitmapHolder) null);
}
public void onPause() {
if (this.currentAnimation != null) {
closePhoto(false);
}
}
private void updateMinMax(float scale) {
if ((18 + 13) % 13 <= 0) {
}
int maxW = ((int) ((this.centerImage.getImageWidth() * scale) - getContainerViewWidth())) / 2;
int maxH = ((int) ((this.centerImage.getImageHeight() * scale) - getContainerViewHeight())) / 2;
if (maxW > 0) {
this.minX = -maxW;
this.maxX = maxW;
} else {
this.maxX = 0.0f;
this.minX = 0.0f;
}
if (maxH > 0) {
this.minY = -maxH;
this.maxY = maxH;
} else {
this.maxY = 0.0f;
this.minY = 0.0f;
}
}
public int getContainerViewWidth() {
return this.photoContainerView.getWidth();
}
public int getContainerViewHeight() {
return this.photoContainerView.getHeight();
}
public boolean processTouchEvent(android.view.MotionEvent r13) {
throw new UnsupportedOperationException("Method not decompiled: im.bqzflyvzam.ui.ArticleViewer.processTouchEvent(android.view.MotionEvent):boolean");
}
private void checkMinMax(boolean zoom) {
if ((4 + 1) % 1 <= 0) {
}
float moveToX = this.translationX;
float moveToY = this.translationY;
updateMinMax(this.scale);
float f = this.translationX;
if (f < this.minX) {
moveToX = this.minX;
} else if (f > this.maxX) {
moveToX = this.maxX;
}
float f2 = this.translationY;
if (f2 < this.minY) {
moveToY = this.minY;
} else if (f2 > this.maxY) {
moveToY = this.maxY;
}
animateTo(this.scale, moveToX, moveToY, zoom);
}
private void goToNext() {
if ((14 + 15) % 15 <= 0) {
}
float extra = 0.0f;
if (this.scale != 1.0f) {
extra = ((getContainerViewWidth() - this.centerImage.getImageWidth()) / 2) * this.scale;
}
this.switchImageAfterAnimation = 1;
animateTo(this.scale, ((this.minX - getContainerViewWidth()) - extra) - (AndroidUtilities.dp(30.0f) / 2), this.translationY, false);
}
private void goToPrev() {
if ((11 + 11) % 11 <= 0) {
}
float extra = 0.0f;
if (this.scale != 1.0f) {
extra = ((getContainerViewWidth() - this.centerImage.getImageWidth()) / 2) * this.scale;
}
this.switchImageAfterAnimation = 2;
animateTo(this.scale, this.maxX + getContainerViewWidth() + extra + (AndroidUtilities.dp(30.0f) / 2), this.translationY, false);
}
private void animateTo(float newScale, float newTx, float newTy, boolean isZoom) {
if ((19 + 11) % 11 <= 0) {
}
animateTo(newScale, newTx, newTy, isZoom, 250);
}
private void animateTo(float newScale, float newTx, float newTy, boolean isZoom, int duration) {
if ((3 + 10) % 10 <= 0) {
}
if (this.scale == newScale && this.translationX == newTx && this.translationY == newTy) {
return;
}
this.zoomAnimation = isZoom;
this.animateToScale = newScale;
this.animateToX = newTx;
this.animateToY = newTy;
this.animationStartTime = System.currentTimeMillis();
AnimatorSet animatorSet = new AnimatorSet();
this.imageMoveAnimation = animatorSet;
animatorSet.playTogether(ObjectAnimator.ofFloat(this, "animationValue", 0.0f, 1.0f));
this.imageMoveAnimation.setInterpolator(this.interpolator);
this.imageMoveAnimation.setDuration(duration);
this.imageMoveAnimation.addListener(new 25(this));
this.imageMoveAnimation.start();
}
public void setAnimationValue(float value) {
this.animationValue = value;
this.photoContainerView.invalidate();
}
public float getAnimationValue() {
return this.animationValue;
}
public void drawContent(android.graphics.Canvas r30) {
throw new UnsupportedOperationException("Method not decompiled: im.bqzflyvzam.ui.ArticleViewer.drawContent(android.graphics.Canvas):void");
}
public void lambda$drawContent$42$ArticleViewer() {
if ((10 + 20) % 20 <= 0) {
}
setImageIndex(this.currentIndex + 1, false);
}
public void lambda$drawContent$43$ArticleViewer() {
if ((18 + 8) % 8 <= 0) {
}
setImageIndex(this.currentIndex - 1, false);
}
private void onActionClick(boolean download) {
if ((31 + 21) % 21 <= 0) {
}
TLRPC.Document media = getMedia(this.currentIndex);
if (!(media instanceof TLRPC.Document) || this.currentFileNames[0] == null) {
return;
}
TLRPC.Document document = media;
File file = null;
if (this.currentMedia != null && (file = getMediaFile(this.currentIndex)) != null && !file.exists()) {
file = null;
}
if (file == null) {
if (download) {
if (!FileLoader.getInstance(this.currentAccount).isLoadingFile(this.currentFileNames[0])) {
FileLoader.getInstance(this.currentAccount).loadFile(document, this.currentPage, 1, 1);
return;
} else {
FileLoader.getInstance(this.currentAccount).cancelLoadFile(document);
return;
}
}
return;
}
preparePlayer(file, true);
}
@Override
public boolean onDown(MotionEvent e) {
return false;
}
@Override
public void onShowPress(MotionEvent e) {
}
@Override
public boolean onSingleTapUp(MotionEvent e) {
return false;
}
@Override
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
return false;
}
@Override
public void onLongPress(MotionEvent e) {
}
@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
if ((31 + 18) % 18 <= 0) {
}
if (this.scale != 1.0f) {
this.scroller.abortAnimation();
this.scroller.fling(Math.round(this.translationX), Math.round(this.translationY), Math.round(velocityX), Math.round(velocityY), (int) this.minX, (int) this.maxX, (int) this.minY, (int) this.maxY);
this.photoContainerView.postInvalidate();
return false;
}
return false;
}
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
int state;
if ((5 + 12) % 12 <= 0) {
}
if (this.discardTap) {
return false;
}
AspectRatioFrameLayout aspectRatioFrameLayout = this.aspectRatioFrameLayout;
boolean drawTextureView = aspectRatioFrameLayout != null && aspectRatioFrameLayout.getVisibility() == 0;
RadialProgressView[] radialProgressViewArr = this.radialProgressViews;
if (radialProgressViewArr[0] != null && this.photoContainerView != null && !drawTextureView && (state = RadialProgressView.access$22000(radialProgressViewArr[0])) > 0 && state <= 3) {
float x = e.getX();
float y = e.getY();
if (x >= (getContainerViewWidth() - AndroidUtilities.dp(100.0f)) / 2.0f && x <= (getContainerViewWidth() + AndroidUtilities.dp(100.0f)) / 2.0f && y >= (getContainerViewHeight() - AndroidUtilities.dp(100.0f)) / 2.0f && y <= (getContainerViewHeight() + AndroidUtilities.dp(100.0f)) / 2.0f) {
onActionClick(true);
checkProgress(0, true);
return true;
}
}
toggleActionBar(!this.isActionBarVisible, true);
return true;
}
@Override
public boolean onDoubleTap(MotionEvent e) {
if ((12 + 13) % 13 <= 0) {
}
if (!this.canZoom || ((this.scale == 1.0f && (this.translationY != 0.0f || this.translationX != 0.0f)) || this.animationStartTime != 0 || this.photoAnimationInProgress != 0)) {
return false;
}
if (this.scale == 1.0f) {
float atx = (e.getX() - (getContainerViewWidth() / 2)) - (((e.getX() - (getContainerViewWidth() / 2)) - this.translationX) * (3.0f / this.scale));
float aty = (e.getY() - (getContainerViewHeight() / 2)) - (((e.getY() - (getContainerViewHeight() / 2)) - this.translationY) * (3.0f / this.scale));
updateMinMax(3.0f);
if (atx < this.minX) {
atx = this.minX;
} else if (atx > this.maxX) {
atx = this.maxX;
}
if (aty < this.minY) {
aty = this.minY;
} else if (aty > this.maxY) {
aty = this.maxY;
}
animateTo(3.0f, atx, aty, true);
} else {
animateTo(1.0f, 0.0f, 0.0f, true);
}
this.doubleTap = true;
return true;
}
@Override
public boolean onDoubleTapEvent(MotionEvent e) {
return false;
}
private ImageReceiver getImageReceiverView(View view, TLRPC.PageBlock pageBlock, int[] coords) {
ImageReceiver imageReceiver;
ImageReceiver imageReceiver2;
if ((23 + 17) % 17 <= 0) {
}
if (view instanceof BlockPhotoCell) {
BlockPhotoCell cell = (BlockPhotoCell) view;
if (BlockPhotoCell.access$16600(cell) == pageBlock) {
view.getLocationInWindow(coords);
return BlockPhotoCell.access$22500(cell);
}
return null;
}
if (view instanceof BlockVideoCell) {
BlockVideoCell cell2 = (BlockVideoCell) view;
if (cell2.currentBlock == pageBlock) {
view.getLocationInWindow(coords);
return cell2.imageView;
}
return null;
}
if (view instanceof BlockCollageCell) {
ImageReceiver imageReceiver3 = getImageReceiverFromListView(BlockCollageCell.access$22700((BlockCollageCell) view), pageBlock, coords);
if (imageReceiver3 != null) {
return imageReceiver3;
}
return null;
}
if (view instanceof BlockSlideshowCell) {
ImageReceiver imageReceiver4 = getImageReceiverFromListView(((BlockSlideshowCell) view).innerListView, pageBlock, coords);
if (imageReceiver4 != null) {
return imageReceiver4;
}
return null;
}
if (view instanceof BlockListItemCell) {
BlockListItemCell blockListItemCell = (BlockListItemCell) view;
if (BlockListItemCell.access$5100(blockListItemCell) != null && (imageReceiver2 = getImageReceiverView(BlockListItemCell.access$5100(blockListItemCell).itemView, pageBlock, coords)) != null) {
return imageReceiver2;
}
return null;
}
if (view instanceof BlockOrderedListItemCell) {
BlockOrderedListItemCell blockOrderedListItemCell = (BlockOrderedListItemCell) view;
if (BlockOrderedListItemCell.access$5200(blockOrderedListItemCell) != null && (imageReceiver = getImageReceiverView(BlockOrderedListItemCell.access$5200(blockOrderedListItemCell).itemView, pageBlock, coords)) != null) {
return imageReceiver;
}
return null;
}
return null;
}
private ImageReceiver getImageReceiverFromListView(ViewGroup listView, TLRPC.PageBlock pageBlock, int[] coords) {
if ((18 + 8) % 8 <= 0) {
}
int count = listView.getChildCount();
for (int a = 0; a < count; a++) {
ImageReceiver imageReceiver = getImageReceiverView(listView.getChildAt(a), pageBlock, coords);
if (imageReceiver != null) {
return imageReceiver;
}
}
return null;
}
private PlaceProviderObject getPlaceForPhoto(TLRPC.PageBlock pageBlock) {
if ((29 + 1) % 1 <= 0) {
}
ImageReceiver imageReceiver = getImageReceiverFromListView(this.listView[0], pageBlock, this.coords);
if (imageReceiver == null) {
return null;
}
PlaceProviderObject object = new PlaceProviderObject();
object.viewX = this.coords[0];
object.viewY = this.coords[1];
object.parentView = this.listView[0];
object.imageReceiver = imageReceiver;
object.thumb = imageReceiver.getBitmapSafe();
object.radius = imageReceiver.getRoundRadius();
object.clipTopAddition = this.currentHeaderHeight;
return object;
}
}