com-dot-app-sancharsaathi-1-5-0.apk
Download file
package D0;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Picture;
import android.graphics.RectF;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
public abstract class q {
/* renamed from: a reason: collision with root package name */
public static final boolean f711a = true;
/* renamed from: b reason: collision with root package name */
public static final boolean f712b = true;
/* renamed from: c reason: collision with root package name */
public static final boolean f713c = true;
public static View a(ViewGroup viewGroup, View view, View view2) {
Matrix matrix = new Matrix();
matrix.setTranslate((float) (-view2.getScrollX()), (float) (-view2.getScrollY()));
z.i(view, matrix);
z.j(viewGroup, matrix);
RectF rectF = new RectF(0.0f, 0.0f, (float) view.getWidth(), (float) view.getHeight());
matrix.mapRect(rectF);
int round = Math.round(rectF.left);
int round2 = Math.round(rectF.top);
int round3 = Math.round(rectF.right);
int round4 = Math.round(rectF.bottom);
ImageView imageView = new ImageView(view.getContext());
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
Bitmap b4 = b(view, matrix, rectF, viewGroup);
if (b4 != null) {
imageView.setImageBitmap(b4);
}
imageView.measure(View.MeasureSpec.makeMeasureSpec(round3 - round, 1073741824), View.MeasureSpec.makeMeasureSpec(round4 - round2, 1073741824));
imageView.layout(round, round2, round3, round4);
return imageView;
}
public static Bitmap b(View view, Matrix matrix, RectF rectF, ViewGroup viewGroup) {
boolean z4;
boolean z5;
int i4;
ViewGroup viewGroup2;
if (f711a) {
z5 = !view.isAttachedToWindow();
z4 = viewGroup == null ? false : viewGroup.isAttachedToWindow();
} else {
z5 = false;
z4 = false;
}
boolean z6 = f712b;
Bitmap bitmap = null;
if (!z6 || !z5) {
i4 = 0;
viewGroup2 = null;
} else if (!z4) {
return null;
} else {
viewGroup2 = (ViewGroup) view.getParent();
i4 = viewGroup2.indexOfChild(view);
viewGroup.getOverlay().add(view);
}
int round = Math.round(rectF.width());
int round2 = Math.round(rectF.height());
if (round > 0 && round2 > 0) {
float min = Math.min(1.0f, 1048576.0f / ((float) (round * round2)));
int round3 = Math.round(((float) round) * min);
int round4 = Math.round(((float) round2) * min);
matrix.postTranslate(-rectF.left, -rectF.top);
matrix.postScale(min, min);
if (f713c) {
Picture picture = new Picture();
Canvas beginRecording = picture.beginRecording(round3, round4);
beginRecording.concat(matrix);
view.draw(beginRecording);
picture.endRecording();
bitmap = Bitmap.createBitmap(picture);
} else {
bitmap = Bitmap.createBitmap(round3, round4, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
canvas.concat(matrix);
view.draw(canvas);
}
}
if (z6 && z5) {
viewGroup.getOverlay().remove(view);
viewGroup2.addView(view, i4);
}
return bitmap;
}
public static Animator c(Animator animator, Animator animator2) {
if (animator == null) {
return animator2;
}
if (animator2 == null) {
return animator;
}
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(new Animator[]{animator, animator2});
return animatorSet;
}
}
Download file