updated version.properties parsing + cleanup code
This commit is contained in:
@@ -1,21 +1,17 @@
|
||||
package com.vk.api.audio;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.vk.api.base.ApiRequest;
|
||||
import com.vk.dto.music.MusicTrack;
|
||||
import com.vk.log.L;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import ru.vtosters.lite.music.Genius;
|
||||
import ru.vtosters.lite.utils.AndroidUtils;
|
||||
import ru.vtosters.lite.utils.Preferences;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AudioGetLyrics extends ApiRequest<AudioGetLyrics.a> {
|
||||
private final MusicTrack musicTrack;
|
||||
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
package com.vk.api.gifts;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.vk.api.base.ApiRequest;
|
||||
import com.vk.dto.gift.CatalogedGift;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
@@ -29,7 +27,7 @@ public class GiftGetByStickerId extends ApiRequest<GiftGetByStickerId.a> {
|
||||
@Override // com.vk.api.sdk.o.VKRequest
|
||||
public GiftGetByStickerId.a a(JSONObject jSONObject) throws JSONException {
|
||||
JSONObject jSONObject2 = jSONObject.getJSONObject("response");
|
||||
return new a(jSONObject2.optInt("balance"),
|
||||
return new a(jSONObject2.optInt("balance"),
|
||||
new CatalogedGift(jSONObject2.getJSONObject("gift")));
|
||||
}
|
||||
}
|
||||
@@ -11,13 +11,15 @@ import android.net.Uri;
|
||||
import android.os.Environment;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import b.h.g.m.CameraUtils;
|
||||
import b.h.g.m.FileUtils;
|
||||
import com.facebook.common.i.MediaUtils;
|
||||
import com.facebook.x.g.EncodedImage;
|
||||
import com.vk.imageloader.VKImageLoader;
|
||||
import com.vk.log.L;
|
||||
import com.vk.metrics.eventtracking.VkTracker;
|
||||
import com.vtosters.lite.R;
|
||||
import ru.vtosters.lite.concurrent.VTExecutors;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
@@ -26,10 +28,6 @@ import java.io.InputStream;
|
||||
import java.net.URI;
|
||||
import java.util.HashSet;
|
||||
|
||||
import b.h.g.m.CameraUtils;
|
||||
import b.h.g.m.FileUtils;
|
||||
import ru.vtosters.lite.concurrent.VTExecutors;
|
||||
|
||||
public class DownloadUtils {
|
||||
public static final HashSet<Long> a = new HashSet<>();
|
||||
|
||||
@@ -49,7 +47,7 @@ public class DownloadUtils {
|
||||
ToastUtils.a(context.getString(R.string.error) + " [" + e2.getMessage() + "]");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static void b(final Context context, String str, String uri, boolean z) {
|
||||
if (TextUtils.isEmpty(uri)) {
|
||||
return;
|
||||
|
||||
+1
-2
@@ -186,8 +186,7 @@ public final class DialogGetMentionSuggestionCmd extends BaseImEngineCmd<Suggest
|
||||
}
|
||||
}), a(b2)));
|
||||
EntityValue entityValue = new EntityValue(z2 ? null : l, z3);
|
||||
switch (this.d)
|
||||
{
|
||||
switch (this.d) {
|
||||
case CACHE:
|
||||
source = Source.CACHE;
|
||||
break;
|
||||
|
||||
@@ -16,12 +16,18 @@ public enum MemberType {
|
||||
|
||||
public static MemberType a(int i) {
|
||||
switch (i) {
|
||||
case 0: return UNKNOWN;
|
||||
case 1: return USER;
|
||||
case 2: return GROUP;
|
||||
case 3: return EMAIL;
|
||||
case 4: return CONTACT;
|
||||
case 5: return CUSTOM_BOT;
|
||||
case 0:
|
||||
return UNKNOWN;
|
||||
case 1:
|
||||
return USER;
|
||||
case 2:
|
||||
return GROUP;
|
||||
case 3:
|
||||
return EMAIL;
|
||||
case 4:
|
||||
return CONTACT;
|
||||
case 5:
|
||||
return CUSTOM_BOT;
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown member type value: " + i);
|
||||
}
|
||||
|
||||
@@ -11,12 +11,11 @@ import com.vk.im.engine.models.dialogs.Dialog;
|
||||
import com.vk.im.engine.models.groups.Group;
|
||||
import com.vk.im.engine.utils.DialogPermissionHelper;
|
||||
import com.vk.im.ui.p.ImBridge7;
|
||||
import ru.vtosters.lite.dialogs.DialogMenuInjectors;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ru.vtosters.lite.dialogs.DialogMenuInjectors;
|
||||
|
||||
public final class DialogActionsHelper {
|
||||
public static final DialogActionsHelper a = new DialogActionsHelper();
|
||||
|
||||
|
||||
+1
@@ -21,6 +21,7 @@ import com.vk.im.ui.q.h.VideoAutoPlayer;
|
||||
import com.vk.im.ui.views.span.OnSpanClickListener;
|
||||
import com.vk.im.ui.views.span.OnSpanLongPressListener;
|
||||
import com.vk.im.ui.views.sticker.StickerAnimationState;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@MainThread
|
||||
|
||||
+11
-15
@@ -17,11 +17,7 @@ import com.vk.im.engine.models.ProfilesSimpleInfo;
|
||||
import com.vk.im.engine.models.attaches.AttachAudioMsg;
|
||||
import com.vk.im.engine.models.dialogs.Dialog;
|
||||
import com.vk.im.engine.models.dialogs.DialogTheme;
|
||||
import com.vk.im.engine.models.messages.Msg;
|
||||
import com.vk.im.engine.models.messages.MsgFromUser;
|
||||
import com.vk.im.engine.models.messages.MsgIdType;
|
||||
import com.vk.im.engine.models.messages.MsgSyncState;
|
||||
import com.vk.im.engine.models.messages.WithUserContent;
|
||||
import com.vk.im.engine.models.messages.*;
|
||||
import com.vk.im.engine.utils.collection.IntSet;
|
||||
import com.vk.im.ui.components.viewcontrollers.msg_list.entry.AdapterEntry;
|
||||
import com.vk.im.ui.media.audio.AudioTrack;
|
||||
@@ -149,7 +145,7 @@ public class VhBindArgs {
|
||||
public boolean E() {
|
||||
Msg var1 = this.b.c;
|
||||
boolean var2;
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser)var1).i2()) {
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser) var1).i2()) {
|
||||
var2 = true;
|
||||
} else {
|
||||
var2 = false;
|
||||
@@ -161,7 +157,7 @@ public class VhBindArgs {
|
||||
public boolean F() {
|
||||
Msg var1 = this.b.c;
|
||||
boolean var2;
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser)var1).F0()) {
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser) var1).F0()) {
|
||||
var2 = true;
|
||||
} else {
|
||||
var2 = false;
|
||||
@@ -207,7 +203,7 @@ public class VhBindArgs {
|
||||
} else if (!(var1 instanceof MsgFromUser)) {
|
||||
return false;
|
||||
} else {
|
||||
MsgFromUser var7 = (MsgFromUser)var1;
|
||||
MsgFromUser var7 = (MsgFromUser) var1;
|
||||
Msg var3 = this.a.c;
|
||||
boolean var4;
|
||||
if (var3 != null && var3.d() == MsgSyncState.DONE) {
|
||||
@@ -246,7 +242,7 @@ public class VhBindArgs {
|
||||
byte var2 = 0;
|
||||
int var3 = var2;
|
||||
if (var1) {
|
||||
AttachAudioMsg var4 = (AttachAudioMsg)((MsgFromUser)this.b.c).c(AttachAudioMsg.class, false);
|
||||
AttachAudioMsg var4 = (AttachAudioMsg) ((MsgFromUser) this.b.c).c(AttachAudioMsg.class, false);
|
||||
var3 = var2;
|
||||
if (var4 != null) {
|
||||
var3 = var4.f();
|
||||
@@ -271,7 +267,7 @@ public class VhBindArgs {
|
||||
public boolean c() {
|
||||
Msg var1 = this.b.c;
|
||||
boolean var2;
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser)var1).I0()) {
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser) var1).I0()) {
|
||||
var2 = true;
|
||||
} else {
|
||||
var2 = false;
|
||||
@@ -283,7 +279,7 @@ public class VhBindArgs {
|
||||
public boolean d() {
|
||||
Msg var1 = this.b.c;
|
||||
boolean var2;
|
||||
if (var1 instanceof WithUserContent && ((WithUserContent)var1).D0() != null) {
|
||||
if (var1 instanceof WithUserContent && ((WithUserContent) var1).D0() != null) {
|
||||
var2 = true;
|
||||
} else {
|
||||
var2 = false;
|
||||
@@ -321,7 +317,7 @@ public class VhBindArgs {
|
||||
public boolean g() {
|
||||
Msg var1 = this.b.c;
|
||||
boolean var2;
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser)var1).G0()) {
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser) var1).G0()) {
|
||||
var2 = true;
|
||||
} else {
|
||||
var2 = false;
|
||||
@@ -333,7 +329,7 @@ public class VhBindArgs {
|
||||
public boolean h() {
|
||||
Msg var1 = this.b.c;
|
||||
boolean var2;
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser)var1).Z1()) {
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser) var1).Z1()) {
|
||||
var2 = true;
|
||||
} else {
|
||||
var2 = false;
|
||||
@@ -447,7 +443,7 @@ public class VhBindArgs {
|
||||
public boolean r() {
|
||||
Msg var1 = this.b.c;
|
||||
boolean var2;
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser)var1).e2()) {
|
||||
if (var1 instanceof MsgFromUser && ((MsgFromUser) var1).e2()) {
|
||||
var2 = true;
|
||||
} else {
|
||||
var2 = false;
|
||||
@@ -457,7 +453,7 @@ public class VhBindArgs {
|
||||
}
|
||||
|
||||
public boolean s() {
|
||||
if(this.C != null)
|
||||
if (this.C != null)
|
||||
return switch (this.C) {
|
||||
case LOCAL_ID -> this.D == this.b.c.getLocalId();
|
||||
case VK_ID -> this.D == this.b.c.C1();
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ public class MsgPartTextHolder extends MsgPartHolderBase<Attach> {
|
||||
MsgPartTextHolder.this.f.a(MsgPartTextHolder.this.g.getLocalId());
|
||||
});
|
||||
mTextPart.setOnLongClickListener(view -> {
|
||||
if(!mTextPart.isTextSelectable()) MsgPartTextHolder.this.f.b(MsgPartTextHolder.this.g.getLocalId());
|
||||
if (!mTextPart.isTextSelectable()) MsgPartTextHolder.this.f.b(MsgPartTextHolder.this.g.getLocalId());
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
+9
-8
@@ -28,7 +28,6 @@ import com.vk.im.engine.models.Profile;
|
||||
import com.vk.im.engine.models.dialogs.BubbleColors;
|
||||
import com.vk.im.engine.models.dialogs.Dialog;
|
||||
import com.vk.im.engine.models.messages.Msg;
|
||||
import com.vk.im.engine.models.messages.MsgSyncState;
|
||||
import com.vk.im.engine.utils.MsgPermissionHelper;
|
||||
import com.vk.im.ui.components.viewcontrollers.msg_list.BombView;
|
||||
import com.vk.im.ui.components.viewcontrollers.msg_list.SwipeToReplyItemTouchCallback;
|
||||
@@ -144,7 +143,7 @@ public class VhMsg extends VhBase implements SwipeToReplyItemTouchCallback.b {
|
||||
this.X = context.getString(m.vkim_accessibility_msg_unread);
|
||||
MsgBubbleView var5 = this.e;
|
||||
var5.setContentView(this.B.a(var4, var5));
|
||||
ViewGroup.MarginLayoutParams var7 = (ViewGroup.MarginLayoutParams)this.e.getLayoutParams();
|
||||
ViewGroup.MarginLayoutParams var7 = (ViewGroup.MarginLayoutParams) this.e.getLayoutParams();
|
||||
Rect var6 = this.G;
|
||||
var6.left = var7.leftMargin;
|
||||
var6.right = var7.rightMargin;
|
||||
@@ -337,7 +336,8 @@ public class VhMsg extends VhBase implements SwipeToReplyItemTouchCallback.b {
|
||||
if (args.w()) {
|
||||
var12 = var11;
|
||||
if (args.k()) {
|
||||
label30: {
|
||||
label30:
|
||||
{
|
||||
if (args.G()) {
|
||||
var12 = Screen.a(4);
|
||||
} else {
|
||||
@@ -671,7 +671,7 @@ public class VhMsg extends VhBase implements SwipeToReplyItemTouchCallback.b {
|
||||
private void f(VhBindArgs args) {
|
||||
Msg var2 = args.b.c;
|
||||
if (var2 != null) {
|
||||
this.P.setStateListener((BombView.d)null);
|
||||
this.P.setStateListener((BombView.d) null);
|
||||
if (var2.M1() && !var2.E1()) {
|
||||
this.P.setVisibility(View.GONE);
|
||||
} else {
|
||||
@@ -832,7 +832,8 @@ public class VhMsg extends VhBase implements SwipeToReplyItemTouchCallback.b {
|
||||
MsgBubbleView var8 = this.e;
|
||||
boolean var6 = var4;
|
||||
if (var5) {
|
||||
label57: {
|
||||
label57:
|
||||
{
|
||||
if (!args.C()) {
|
||||
var6 = var4;
|
||||
if (!args.z()) {
|
||||
@@ -877,7 +878,7 @@ public class VhMsg extends VhBase implements SwipeToReplyItemTouchCallback.b {
|
||||
if (args.s()) {
|
||||
this.itemView.setBackground(this.H);
|
||||
} else {
|
||||
this.itemView.setBackground((Drawable)null);
|
||||
this.itemView.setBackground((Drawable) null);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -985,7 +986,7 @@ public class VhMsg extends VhBase implements SwipeToReplyItemTouchCallback.b {
|
||||
|
||||
public void a(@NonNull Msg var1, int var2) {
|
||||
if (this.f0()) {
|
||||
((MsgPartCarouselHolder)this.B).a(var1, var2);
|
||||
((MsgPartCarouselHolder) this.B).a(var1, var2);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1110,7 +1111,7 @@ public class VhMsg extends VhBase implements SwipeToReplyItemTouchCallback.b {
|
||||
|
||||
public Unit invoke() {
|
||||
if (VhMsg.this.e.getMeasuredWidth() < VhMsg.h0) {
|
||||
((ViewGroup.MarginLayoutParams)VhMsg.this.e.getLayoutParams()).leftMargin = VhMsg.h0 - VhMsg.this.e.getMeasuredWidth() + this.a;
|
||||
((ViewGroup.MarginLayoutParams) VhMsg.this.e.getLayoutParams()).leftMargin = VhMsg.h0 - VhMsg.this.e.getMeasuredWidth() + this.a;
|
||||
VhMsg.this.e.invalidate();
|
||||
VhMsg.this.e.requestLayout();
|
||||
} else {
|
||||
|
||||
@@ -6,7 +6,6 @@ import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewStub;
|
||||
import android.widget.TextView;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.vk.core.ui.VkBottomSheetBehavior;
|
||||
@@ -55,7 +54,7 @@ public final class MentionsController {
|
||||
|
||||
@Override
|
||||
public boolean a() {
|
||||
if(MentionsController.this.state)
|
||||
if (MentionsController.this.state)
|
||||
return ViewExtKt.i(MentionsController.this.mCoordinatorLayout);
|
||||
return false;
|
||||
}
|
||||
@@ -105,7 +104,7 @@ public final class MentionsController {
|
||||
View inflate = ((ViewStub) this.j.findViewById(R.id.mentions_container_stub)).inflate();
|
||||
ViewGroup viewGroup = (ViewGroup) inflate.findViewById(R.id.mentions_container);
|
||||
viewGroup.addView(this.mDialogMentionComponent.a(viewGroup, (Bundle) null));
|
||||
this.mCoordinatorLayout = inflate.findViewById(R.id.mentions_cl);;
|
||||
this.mCoordinatorLayout = inflate.findViewById(R.id.mentions_cl);
|
||||
this.mBottomSheetBehavior = (VkBottomSheetBehavior<RecyclerView>) ((CoordinatorLayout.LayoutParams) viewGroup.getLayoutParams()).getBehavior();
|
||||
this.mBottomSheetBehavior.a(new VkBottomSheetBehavior.b() {
|
||||
@Override
|
||||
|
||||
@@ -2,13 +2,13 @@ package com.vk.im.ui.views;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
public class Corners{
|
||||
public class Corners {
|
||||
private int topLeft;
|
||||
private int topRight;
|
||||
private int bottomLeft;
|
||||
private int bottomRight;
|
||||
|
||||
public Corners(int i, int i2, int i3, int i4){
|
||||
public Corners(int i, int i2, int i3, int i4) {
|
||||
this.topLeft = i;
|
||||
this.topRight = i2;
|
||||
this.bottomLeft = i3;
|
||||
@@ -23,7 +23,7 @@ public class Corners{
|
||||
this(0, 0, 0, 0, 15);
|
||||
}
|
||||
|
||||
public static Corners a(Corners corners, int i, int i2, int i3, int i4, int i5, Object obj){
|
||||
public static Corners a(Corners corners, int i, int i2, int i3, int i4, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = corners.topLeft;
|
||||
}
|
||||
@@ -40,30 +40,30 @@ public class Corners{
|
||||
return corners;
|
||||
}
|
||||
|
||||
public int a(){
|
||||
public int a() {
|
||||
return this.bottomLeft;
|
||||
}
|
||||
|
||||
public int b(){
|
||||
public int b() {
|
||||
return this.bottomRight;
|
||||
}
|
||||
|
||||
public int c(){
|
||||
public int c() {
|
||||
return this.topLeft;
|
||||
}
|
||||
|
||||
public int d(){
|
||||
public int d() {
|
||||
return this.topRight;
|
||||
}
|
||||
|
||||
public boolean e(){
|
||||
public boolean e() {
|
||||
int i;
|
||||
int i2 = this.topLeft;
|
||||
int i3 = this.topRight;
|
||||
return i2 == i3 && i3 == (i = this.bottomRight) && this.bottomLeft == i;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj){
|
||||
public boolean equals(Object obj) {
|
||||
if (this != obj) {
|
||||
if (!(obj instanceof Corners)) {
|
||||
return false;
|
||||
@@ -74,24 +74,24 @@ public class Corners{
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean f(){
|
||||
public boolean f() {
|
||||
return this.topLeft == 0 && e();
|
||||
}
|
||||
|
||||
public void g(){
|
||||
public void g() {
|
||||
a(0, 0);
|
||||
}
|
||||
|
||||
public int hashCode(){
|
||||
public int hashCode() {
|
||||
return (((((this.topLeft * 31) + this.topRight) * 31) + this.bottomLeft) * 31) + this.bottomRight;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public String toString(){
|
||||
public String toString() {
|
||||
return "Corners(topLeft=" + this.topLeft + ", topRight=" + this.topRight + ", bottomLeft=" + this.bottomLeft + ", bottomRight=" + this.bottomRight + ")";
|
||||
}
|
||||
|
||||
public Corners a(int i, int i2){
|
||||
public Corners a(int i, int i2) {
|
||||
if ((i2 & 1) > 0) {
|
||||
this.topLeft = i;
|
||||
}
|
||||
@@ -113,7 +113,7 @@ public class Corners{
|
||||
return this;
|
||||
}
|
||||
|
||||
public Corners a(int i, int i2, int i3, int i4){
|
||||
public Corners a(int i, int i2, int i3, int i4) {
|
||||
this.topLeft = i;
|
||||
this.topRight = i2;
|
||||
this.bottomLeft = i3;
|
||||
@@ -121,7 +121,7 @@ public class Corners{
|
||||
return this;
|
||||
}
|
||||
|
||||
public Corners a(Corners corners){
|
||||
public Corners a(Corners corners) {
|
||||
this.topLeft = corners.topLeft;
|
||||
this.topRight = corners.topRight;
|
||||
this.bottomLeft = corners.bottomLeft;
|
||||
|
||||
@@ -9,7 +9,6 @@ import android.graphics.Shader;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.vk.im.ui.o;
|
||||
|
||||
public class StoryBorderView extends View {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package com.vk.im.ui.views.dialogs;
|
||||
|
||||
import static com.vk.im.ui.d.vkim_administration_title;
|
||||
import static ru.vtosters.lite.utils.ThemesUtils.getAccentColor;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
@@ -17,10 +14,9 @@ import android.view.ViewGroup;
|
||||
import android.view.ViewPropertyAnimator;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.ColorInt;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
|
||||
import b.h.g.r.MathExt;
|
||||
import com.vk.core.extensions.AnimationExtKt;
|
||||
import com.vk.core.util.ContextExtKt;
|
||||
import com.vk.core.util.Screen;
|
||||
@@ -42,9 +38,10 @@ import com.vk.im.ui.views.FixTextView;
|
||||
import com.vk.im.ui.views.avatars.AvatarView;
|
||||
import com.vk.im.ui.views.avatars.StoryBorderView;
|
||||
|
||||
import b.h.g.r.MathExt;
|
||||
import static com.vk.im.ui.d.vkim_administration_title;
|
||||
import static ru.vtosters.lite.utils.ThemesUtils.getAccentColor;
|
||||
|
||||
public class DialogItemView extends ViewGroup{
|
||||
public class DialogItemView extends ViewGroup {
|
||||
private final int B;
|
||||
private final int C;
|
||||
private final int D;
|
||||
@@ -80,15 +77,15 @@ public class DialogItemView extends ViewGroup{
|
||||
private boolean g0;
|
||||
private boolean h0;
|
||||
|
||||
public DialogItemView(Context context){
|
||||
public DialogItemView(Context context) {
|
||||
this(context, null, 0, 6);
|
||||
}
|
||||
|
||||
public DialogItemView(Context context, AttributeSet attributeSet){
|
||||
public DialogItemView(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0, 4);
|
||||
}
|
||||
|
||||
public DialogItemView(Context context, AttributeSet attributeSet, int i){
|
||||
public DialogItemView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
Resources resources = getResources();
|
||||
this.a = resources.getDisplayMetrics();
|
||||
@@ -255,11 +252,11 @@ public class DialogItemView extends ViewGroup{
|
||||
addView(this.f0);
|
||||
}
|
||||
|
||||
public DialogItemView(Context context, AttributeSet attributeSet, int i, int i2){
|
||||
public DialogItemView(Context context, AttributeSet attributeSet, int i, int i2) {
|
||||
this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i);
|
||||
}
|
||||
|
||||
public static ViewPropertyAnimator b(View view, float f, long j, long j2, Runnable runnable, int i, Object obj){
|
||||
public static ViewPropertyAnimator b(View view, float f, long j, long j2, Runnable runnable, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
f = 0.0f;
|
||||
}
|
||||
@@ -279,7 +276,7 @@ public class DialogItemView extends ViewGroup{
|
||||
return AnimationExtKt.b(view, f, j, j2, runnable);
|
||||
}
|
||||
|
||||
public static void a(View view, float f, float f2, int i, Object obj){
|
||||
public static void a(View view, float f, float f2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
f = 1.0f;
|
||||
}
|
||||
@@ -291,7 +288,7 @@ public class DialogItemView extends ViewGroup{
|
||||
AnimationExtKt.a(view, f, f2);
|
||||
}
|
||||
|
||||
public static ViewPropertyAnimator a(View view, float f, long j, long j2, Runnable runnable, int i, Object obj){
|
||||
public static ViewPropertyAnimator a(View view, float f, long j, long j2, Runnable runnable, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
f = 1.0f;
|
||||
}
|
||||
@@ -311,14 +308,14 @@ public class DialogItemView extends ViewGroup{
|
||||
return AnimationExtKt.a(view, f, j, j2, runnable);
|
||||
}
|
||||
|
||||
static void a(DialogItemView dialogItemView, int i, int i2, int i3, int i4, Object obj){
|
||||
static void a(DialogItemView dialogItemView, int i, int i2, int i3, int i4, Object obj) {
|
||||
if ((i4 & 4) != 0) {
|
||||
i3 = 0;
|
||||
}
|
||||
dialogItemView.a(i, i2, i3);
|
||||
}
|
||||
|
||||
static ViewGroup.MarginLayoutParams a(DialogItemView dialogItemView, int i, int i2, int i3, int i4, int i5, int i6, int i7, Object obj){
|
||||
static ViewGroup.MarginLayoutParams a(DialogItemView dialogItemView, int i, int i2, int i3, int i4, int i5, int i6, int i7, Object obj) {
|
||||
if ((i7 & 1) != 0) {
|
||||
i = -2;
|
||||
}
|
||||
@@ -340,19 +337,19 @@ public class DialogItemView extends ViewGroup{
|
||||
return dialogItemView.a(i, i2, i3, i4, i5, i6);
|
||||
}
|
||||
|
||||
private Drawable getDrOnlineMobile(){
|
||||
private Drawable getDrOnlineMobile() {
|
||||
return ContextExtKt.c(getContext(), f.ic_online_mobile_vkapp_composite_16);
|
||||
}
|
||||
|
||||
private Drawable getDrOnlineVkMe(){
|
||||
private Drawable getDrOnlineVkMe() {
|
||||
return ContextExtKt.c(getContext(), f.ic_online_mobile_vkme_composite_16);
|
||||
}
|
||||
|
||||
private Drawable getDrOnlineWeb(){
|
||||
private Drawable getDrOnlineWeb() {
|
||||
return ContextExtKt.c(getContext(), f.ic_online_web_composite_16);
|
||||
}
|
||||
|
||||
private int getTimeMargin(){
|
||||
private int getTimeMargin() {
|
||||
Layout layout = this.T.getLayout();
|
||||
|
||||
if (layout == null) {
|
||||
@@ -374,11 +371,11 @@ public class DialogItemView extends ViewGroup{
|
||||
return 0;
|
||||
}
|
||||
|
||||
private int getTitleColorHighlight(){
|
||||
private int getTitleColorHighlight() {
|
||||
return ContextExtKt.a(getContext(), vkim_administration_title);
|
||||
}
|
||||
|
||||
private void h(int i, int i2, int i3, int i4){
|
||||
private void h(int i, int i2, int i3, int i4) {
|
||||
int paddingLeft = getPaddingLeft();
|
||||
int paddingTop = getPaddingTop();
|
||||
int measuredWidth = getMeasuredWidth() - getPaddingRight();
|
||||
@@ -412,51 +409,51 @@ public class DialogItemView extends ViewGroup{
|
||||
j(measuredWidth - r, max6, measuredWidth, q + max6);
|
||||
}
|
||||
|
||||
private int i(){
|
||||
private int i() {
|
||||
return g(this.K);
|
||||
}
|
||||
|
||||
private int j(){
|
||||
private int j() {
|
||||
return f(this.T) + Math.max(f(this.V), f(this.U));
|
||||
}
|
||||
|
||||
private int k(){
|
||||
private int k() {
|
||||
return Math.max(g(this.T), g(this.V) + g(this.U));
|
||||
}
|
||||
|
||||
private int l(){
|
||||
private int l() {
|
||||
return Math.max(Math.max(f(this.N), f(this.R)), Math.max(f(this.O), f(this.P)));
|
||||
}
|
||||
|
||||
private int m(){
|
||||
private int m() {
|
||||
return View.MeasureSpec.makeMeasureSpec(0, 0);
|
||||
}
|
||||
|
||||
private boolean n(){
|
||||
private boolean n() {
|
||||
return e(this.S);
|
||||
}
|
||||
|
||||
private int o(){
|
||||
private int o() {
|
||||
return f(this.S);
|
||||
}
|
||||
|
||||
private int p(){
|
||||
private int p() {
|
||||
return g(this.S);
|
||||
}
|
||||
|
||||
private int q(){
|
||||
private int q() {
|
||||
return MathExt.a(f(this.b0), f(this.c0), f(this.d0), f(this.e0), f(this.f0));
|
||||
}
|
||||
|
||||
private int r(){
|
||||
private int r() {
|
||||
return g(this.b0) + MathExt.a(g(this.c0), g(this.d0), g(this.e0), g(this.f0));
|
||||
}
|
||||
|
||||
private int s(){
|
||||
private int s() {
|
||||
return Math.max(f(this.a0), f(this.W));
|
||||
}
|
||||
|
||||
private void setAttach(CharSequence charSequence){
|
||||
private void setAttach(CharSequence charSequence) {
|
||||
int i = VISIBLE;
|
||||
|
||||
if (charSequence == null || charSequence.length() == 0) {
|
||||
@@ -467,57 +464,57 @@ public class DialogItemView extends ViewGroup{
|
||||
this.U.setText(charSequence);
|
||||
}
|
||||
|
||||
private void setBodyLinesCount(int i){
|
||||
private void setBodyLinesCount(int i) {
|
||||
boolean z = i == 1;
|
||||
this.T.setSingleLine(z);
|
||||
this.T.setMaxLines(i);
|
||||
}
|
||||
|
||||
private int t(){
|
||||
private int t() {
|
||||
return g(this.a0) + g(this.W);
|
||||
}
|
||||
|
||||
private void u(){
|
||||
private void u() {
|
||||
ViewExtKt.b(this.b0, this.g0 | this.h0);
|
||||
}
|
||||
|
||||
public void a(Dialog dialog, ProfilesSimpleInfo profilesSimpleInfo){
|
||||
public void a(Dialog dialog, ProfilesSimpleInfo profilesSimpleInfo) {
|
||||
this.K.a(dialog, profilesSimpleInfo);
|
||||
}
|
||||
|
||||
public void b(){
|
||||
public void b() {
|
||||
a(null, (ComposingType) null);
|
||||
}
|
||||
|
||||
public void c(){
|
||||
public void c() {
|
||||
a(getDrOnlineMobile());
|
||||
}
|
||||
|
||||
public void d(){
|
||||
public void d() {
|
||||
a(getDrOnlineVkMe());
|
||||
}
|
||||
|
||||
public void e(){
|
||||
public void e() {
|
||||
a(getDrOnlineWeb());
|
||||
}
|
||||
|
||||
public void f(){
|
||||
public void f() {
|
||||
this.S.setVisibility(GONE);
|
||||
this.S.e();
|
||||
}
|
||||
|
||||
public void g(){
|
||||
public void g() {
|
||||
b(this.L, 0.0f, 0L, 0L, null, 15, null);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onDetachedFromWindow(){
|
||||
protected void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
a(this.L, 0.0f, 0.0f, 3, null);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4){
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
if (this.E) {
|
||||
g(i, i2, i3, i4);
|
||||
} else {
|
||||
@@ -526,7 +523,7 @@ public class DialogItemView extends ViewGroup{
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onMeasure(int i, int i2){
|
||||
protected void onMeasure(int i, int i2) {
|
||||
if (this.E) {
|
||||
c(i);
|
||||
} else {
|
||||
@@ -534,11 +531,11 @@ public class DialogItemView extends ViewGroup{
|
||||
}
|
||||
}
|
||||
|
||||
public void setAvatar(Profile profile){
|
||||
public void setAvatar(Profile profile) {
|
||||
this.K.a(profile);
|
||||
}
|
||||
|
||||
public void setBombVisible(boolean z){
|
||||
public void setBombVisible(boolean z) {
|
||||
if (z) {
|
||||
this.b0.setImageResource(f.ic_bomb_composite_24);
|
||||
}
|
||||
@@ -548,23 +545,23 @@ public class DialogItemView extends ViewGroup{
|
||||
u();
|
||||
}
|
||||
|
||||
public void setCasperIconColor(@ColorInt int i){
|
||||
public void setCasperIconColor(@ColorInt int i) {
|
||||
ViewExtKt.a(this.Q, i);
|
||||
}
|
||||
|
||||
public void setCasperIconVisible(boolean z){
|
||||
public void setCasperIconVisible(boolean z) {
|
||||
this.Q.setVisibility(z ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
public void setErrorVisible(boolean z){
|
||||
public void setErrorVisible(boolean z) {
|
||||
this.f0.setVisibility(z ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
public void setGiftVisible(boolean z){
|
||||
public void setGiftVisible(boolean z) {
|
||||
this.V.setVisibility(z ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
public void setHasStories(boolean z){
|
||||
public void setHasStories(boolean z) {
|
||||
if (this.I == z) {
|
||||
return;
|
||||
}
|
||||
@@ -590,7 +587,7 @@ public class DialogItemView extends ViewGroup{
|
||||
setClipToPadding(!z);
|
||||
}
|
||||
|
||||
public void setMentionVisible(boolean z){
|
||||
public void setMentionVisible(boolean z) {
|
||||
if (z) {
|
||||
this.b0.setImageResource(f.ic_mention_composite_24);
|
||||
}
|
||||
@@ -600,15 +597,15 @@ public class DialogItemView extends ViewGroup{
|
||||
u();
|
||||
}
|
||||
|
||||
public void setMutedVisible(boolean z){
|
||||
public void setMutedVisible(boolean z) {
|
||||
this.P.setVisibility(z ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
public void setOnStoryClickListener(View.OnClickListener onClickListener){
|
||||
public void setOnStoryClickListener(View.OnClickListener onClickListener) {
|
||||
ViewExtKt.b(this.M, onClickListener);
|
||||
}
|
||||
|
||||
public void setSender(Profile profile){
|
||||
public void setSender(Profile profile) {
|
||||
if (profile == null) {
|
||||
f();
|
||||
return;
|
||||
@@ -617,29 +614,29 @@ public class DialogItemView extends ViewGroup{
|
||||
this.S.a(profile);
|
||||
}
|
||||
|
||||
public void setSendingVisible(boolean z){
|
||||
public void setSendingVisible(boolean z) {
|
||||
this.e0.setVisibility(z ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
public void setTime(CharSequence charSequence){
|
||||
public void setTime(CharSequence charSequence) {
|
||||
this.R.setText(charSequence);
|
||||
}
|
||||
|
||||
public void setUnreadOutVisible(boolean z){
|
||||
public void setUnreadOutVisible(boolean z) {
|
||||
this.d0.setVisibility(z ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
public void setVerifiedVisible(boolean z){
|
||||
public void setVerifiedVisible(boolean z) {
|
||||
this.O.setVisibility(z ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
private void a(Drawable drawable){
|
||||
private void a(Drawable drawable) {
|
||||
ViewExtKt.c(this.L, a(16), a(20));
|
||||
this.L.setImageDrawable(drawable);
|
||||
a(this.L, 0.0f, 0L, 0L, null, 15, null);
|
||||
}
|
||||
|
||||
private void c(int i){
|
||||
private void c(int i) {
|
||||
int size = (View.MeasureSpec.getSize(i) - getPaddingLeft()) - getPaddingRight();
|
||||
d(b(size - this.K.getViewSize()), m());
|
||||
int r = r();
|
||||
@@ -655,7 +652,7 @@ public class DialogItemView extends ViewGroup{
|
||||
setMeasuredDimension(View.MeasureSpec.getSize(i), getPaddingTop() + getPaddingBottom() + Math.max(f(this.K), l() + Math.max(Math.max(o(), j()), Math.max(s(), q()))));
|
||||
}
|
||||
|
||||
private void d(int i){
|
||||
private void d(int i) {
|
||||
int size = (View.MeasureSpec.getSize(i) - getPaddingLeft()) - getPaddingRight();
|
||||
d(b(size - this.K.getViewSize()), m());
|
||||
int r = r();
|
||||
@@ -672,7 +669,7 @@ public class DialogItemView extends ViewGroup{
|
||||
setMeasuredDimension(View.MeasureSpec.getSize(i), getPaddingTop() + getPaddingBottom() + Math.max(f(this.K), l() + Math.max(Math.max(o(), j()), Math.max(s(), q()))));
|
||||
}
|
||||
|
||||
private void e(int i, int i2, int i3, int i4){
|
||||
private void e(int i, int i2, int i3, int i4) {
|
||||
if (e(this.T) && e(this.U)) {
|
||||
c(i, i2, i3, i4);
|
||||
} else if (e(this.T)) {
|
||||
@@ -683,7 +680,7 @@ public class DialogItemView extends ViewGroup{
|
||||
}
|
||||
}
|
||||
|
||||
private void g(int i, int i2, int i3, int i4){
|
||||
private void g(int i, int i2, int i3, int i4) {
|
||||
int paddingLeft = getPaddingLeft();
|
||||
int paddingTop = getPaddingTop();
|
||||
int measuredWidth = getMeasuredWidth() - getPaddingRight();
|
||||
@@ -706,12 +703,12 @@ public class DialogItemView extends ViewGroup{
|
||||
j(measuredWidth - r, i8, measuredWidth, q + i8);
|
||||
}
|
||||
|
||||
private void i(int i, int i2, int i3, int i4){
|
||||
private void i(int i, int i2, int i3, int i4) {
|
||||
AvatarView avatarView = this.S;
|
||||
b(avatarView, i + b(avatarView), ((i2 + ((i4 - i2) / 2)) - (this.S.getMeasuredHeight() / 2)) + d(this.S));
|
||||
}
|
||||
|
||||
private void j(int i, int i2, int i3, int i4){
|
||||
private void j(int i, int i2, int i3, int i4) {
|
||||
int i5 = i2 + ((i4 - i2) / 2);
|
||||
AppCompatImageView appCompatImageView = this.b0;
|
||||
b(appCompatImageView, b(appCompatImageView) + i, (i5 - (this.b0.getMeasuredHeight() / 2)) + d(this.b0));
|
||||
@@ -728,7 +725,7 @@ public class DialogItemView extends ViewGroup{
|
||||
b(appCompatImageView4, i + b(appCompatImageView4), (i5 - (this.f0.getMeasuredHeight() / 2)) + d(this.f0));
|
||||
}
|
||||
|
||||
private void k(int i, int i2, int i3, int i4){
|
||||
private void k(int i, int i2, int i3, int i4) {
|
||||
int i5 = i2 + ((i4 - i2) / 2);
|
||||
TextView textView = this.W;
|
||||
b(textView, b(textView) + i, (i5 - (this.W.getMeasuredHeight() / 2)) + d(this.W));
|
||||
@@ -741,7 +738,7 @@ public class DialogItemView extends ViewGroup{
|
||||
b(appCompatImageView, i + b(appCompatImageView), (i5 - (this.a0.getMeasuredHeight() / 2)) + d(this.a0));
|
||||
}
|
||||
|
||||
public void b(CharSequence charSequence, boolean z){
|
||||
public void b(CharSequence charSequence, boolean z) {
|
||||
int i = VISIBLE;
|
||||
|
||||
if (charSequence == null || charSequence.length() == 0) {
|
||||
@@ -755,7 +752,7 @@ public class DialogItemView extends ViewGroup{
|
||||
this.g.a(z ? this.B : this.h);
|
||||
}
|
||||
|
||||
private void f(int i, int i2, int i3, int i4){
|
||||
private void f(int i, int i2, int i3, int i4) {
|
||||
TextView textView = this.N;
|
||||
b(textView, i + b(textView), d(this.N) + i2);
|
||||
int right = this.N.getRight() + c(this.N);
|
||||
@@ -783,7 +780,7 @@ public class DialogItemView extends ViewGroup{
|
||||
}
|
||||
}
|
||||
|
||||
private void l(int i, int i2, int i3, int i4){
|
||||
private void l(int i, int i2, int i3, int i4) {
|
||||
TextView textView = this.W;
|
||||
b(textView, i + b(textView), i2);
|
||||
int right = this.W.getRight() + c(this.W);
|
||||
@@ -791,33 +788,33 @@ public class DialogItemView extends ViewGroup{
|
||||
b(appCompatImageView, right + b(appCompatImageView), (((this.W.getBottom() + this.W.getTop()) / 2) - (this.a0.getMeasuredHeight() / 2)) + d(this.a0));
|
||||
}
|
||||
|
||||
private void e(int i, int i2){
|
||||
private void e(int i, int i2) {
|
||||
b(this.a0, i, 0, i2, 0);
|
||||
b(this.W, i, g(this.a0), i2, 0);
|
||||
}
|
||||
|
||||
public void a(CharSequence charSequence, boolean z){
|
||||
public void a(CharSequence charSequence, boolean z) {
|
||||
this.N.setText(charSequence);
|
||||
this.N.setTextColor(z ? getTitleColorHighlight() : this.f15761e);
|
||||
}
|
||||
|
||||
private void b(int i, int i2){
|
||||
private void b(int i, int i2) {
|
||||
b(this.O, i, 0, i2, 0);
|
||||
b(this.Q, i, 0, i2, 0);
|
||||
b(this.P, i, 0, i2, 0);
|
||||
b(this.R, i, 0, i2, 0);
|
||||
}
|
||||
|
||||
public void a(){
|
||||
public void a() {
|
||||
a(null, 1);
|
||||
setAttach(null);
|
||||
}
|
||||
|
||||
private boolean e(View view){
|
||||
private boolean e(View view) {
|
||||
return view.getVisibility() == VISIBLE;
|
||||
}
|
||||
|
||||
public void a(CharSequence charSequence, int i, CharSequence charSequence2){
|
||||
public void a(CharSequence charSequence, int i, CharSequence charSequence2) {
|
||||
boolean z = false;
|
||||
|
||||
if (!(charSequence == null || charSequence.length() == 0)) {
|
||||
@@ -840,11 +837,11 @@ public class DialogItemView extends ViewGroup{
|
||||
}
|
||||
}
|
||||
|
||||
private void b(int i, int i2, int i3){
|
||||
private void b(int i, int i2, int i3) {
|
||||
a(this.N, i, i3, i2, 0);
|
||||
}
|
||||
|
||||
private void b(int i, int i2, int i3, int i4){
|
||||
private void b(int i, int i2, int i3, int i4) {
|
||||
int g = e(this.V) ? g(this.V) + i : i;
|
||||
TextView textView = this.U;
|
||||
a(textView, g + b(textView), i2 + d(this.U));
|
||||
@@ -852,7 +849,7 @@ public class DialogItemView extends ViewGroup{
|
||||
b(appCompatImageView, i + b(appCompatImageView), (this.U.getTop() + (this.U.getMeasuredHeight() / 2)) - (this.V.getMeasuredHeight() / 2));
|
||||
}
|
||||
|
||||
private void a(CharSequence charSequence, int i){
|
||||
private void a(CharSequence charSequence, int i) {
|
||||
int i2 = VISIBLE;
|
||||
|
||||
if (charSequence == null || charSequence.length() == 0) {
|
||||
@@ -864,13 +861,13 @@ public class DialogItemView extends ViewGroup{
|
||||
setBodyLinesCount(i);
|
||||
}
|
||||
|
||||
private void b(View view, int i, int i2, int i3, int i4){
|
||||
private void b(View view, int i, int i2, int i3, int i4) {
|
||||
if (view.getVisibility() != GONE) {
|
||||
a(view, i, i2, i3, i4);
|
||||
}
|
||||
}
|
||||
|
||||
public void a(CharSequence charSequence, ComposingType composingType){
|
||||
public void a(CharSequence charSequence, ComposingType composingType) {
|
||||
Drawable drawable = composingType == ComposingType.AUDIO ? this.H : this.G;
|
||||
boolean z = false;
|
||||
drawable.setVisible(!(charSequence == null || charSequence.length() == 0), false);
|
||||
@@ -885,13 +882,13 @@ public class DialogItemView extends ViewGroup{
|
||||
this.W.setText(charSequence);
|
||||
}
|
||||
|
||||
private void b(View view, int i, int i2){
|
||||
private void b(View view, int i, int i2) {
|
||||
if (view.getVisibility() == VISIBLE) {
|
||||
a(view, i, i2);
|
||||
}
|
||||
}
|
||||
|
||||
private int b(View view){
|
||||
private int b(View view) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||
|
||||
if (marginLayoutParams != null) {
|
||||
@@ -901,11 +898,11 @@ public class DialogItemView extends ViewGroup{
|
||||
return 0;
|
||||
}
|
||||
|
||||
private int b(int i){
|
||||
private int b(int i) {
|
||||
return View.MeasureSpec.makeMeasureSpec(i, MeasureSpec.AT_MOST);
|
||||
}
|
||||
|
||||
private int g(View view){
|
||||
private int g(View view) {
|
||||
if (view.getVisibility() == GONE) {
|
||||
return 0;
|
||||
}
|
||||
@@ -915,13 +912,13 @@ public class DialogItemView extends ViewGroup{
|
||||
return marginLayoutParams != null ? measuredWidth + marginLayoutParams.leftMargin + marginLayoutParams.rightMargin : measuredWidth;
|
||||
}
|
||||
|
||||
private void a(int i, int i2){
|
||||
private void a(int i, int i2) {
|
||||
a(this.K, i, 0, i2, 0);
|
||||
b(this.M, i, 0, i2, 0);
|
||||
b(this.L, i, 0, i2, 0);
|
||||
}
|
||||
|
||||
private int f(View view){
|
||||
private int f(View view) {
|
||||
if (view.getVisibility() == GONE) {
|
||||
return 0;
|
||||
}
|
||||
@@ -934,32 +931,32 @@ public class DialogItemView extends ViewGroup{
|
||||
return measuredHeight;
|
||||
}
|
||||
|
||||
private void a(int i, int i2, int i3, int i4){
|
||||
private void a(int i, int i2, int i3, int i4) {
|
||||
AvatarView avatarView = this.K;
|
||||
a(avatarView, i + b(avatarView), i2 + d(this.K));
|
||||
a(this.M, this.K.getLeft() - this.K.getPaddingLeft(), this.K.getTop() - this.K.getPaddingTop());
|
||||
b(this.L, this.K.getRight() - this.L.getMeasuredWidth(), this.K.getBottom() - this.L.getMeasuredHeight());
|
||||
}
|
||||
|
||||
private void c(int i, int i2){
|
||||
private void c(int i, int i2) {
|
||||
b(this.S, i, 0, i2, 0);
|
||||
}
|
||||
|
||||
private void c(int i, int i2, int i3, int i4){
|
||||
private void c(int i, int i2, int i3, int i4) {
|
||||
d(i, i2, i3, f(this.T) + i2);
|
||||
b(i, i2 + f(this.T), i3, i4);
|
||||
}
|
||||
|
||||
private int h(){
|
||||
private int h() {
|
||||
return f(this.K);
|
||||
}
|
||||
|
||||
private void d(int i, int i2, int i3, int i4){
|
||||
private void d(int i, int i2, int i3, int i4) {
|
||||
TextView textView = this.T;
|
||||
a(textView, i + b(textView), i2 + d(this.T));
|
||||
}
|
||||
|
||||
private int c(View view){
|
||||
private int c(View view) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||
|
||||
if (marginLayoutParams != null) {
|
||||
@@ -969,7 +966,7 @@ public class DialogItemView extends ViewGroup{
|
||||
return 0;
|
||||
}
|
||||
|
||||
private void d(int i, int i2){
|
||||
private void d(int i, int i2) {
|
||||
b(this.b0, i, 0, i2, 0);
|
||||
b(this.c0, i, 0, i2, 0);
|
||||
b(this.d0, i, 0, i2, 0);
|
||||
@@ -977,13 +974,13 @@ public class DialogItemView extends ViewGroup{
|
||||
b(this.f0, i, 0, i2, 0);
|
||||
}
|
||||
|
||||
private void a(int i, int i2, int i3){
|
||||
private void a(int i, int i2, int i3) {
|
||||
b(this.T, i, i3, i2, 0);
|
||||
b(this.V, i, i3, i2, 0);
|
||||
b(this.U, i, i3 + g(this.V), i2, 0);
|
||||
}
|
||||
|
||||
private int d(View view){
|
||||
private int d(View view) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||
|
||||
if (marginLayoutParams != null) {
|
||||
@@ -993,7 +990,7 @@ public class DialogItemView extends ViewGroup{
|
||||
return 0;
|
||||
}
|
||||
|
||||
private ViewGroup.MarginLayoutParams a(int i, int i2, int i3, int i4, int i5, int i6){
|
||||
private ViewGroup.MarginLayoutParams a(int i, int i2, int i3, int i4, int i5, int i6) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = new ViewGroup.MarginLayoutParams(i, i2);
|
||||
marginLayoutParams.leftMargin = i3;
|
||||
marginLayoutParams.topMargin = i4;
|
||||
@@ -1002,23 +999,23 @@ public class DialogItemView extends ViewGroup{
|
||||
return marginLayoutParams;
|
||||
}
|
||||
|
||||
public int a(int i){
|
||||
public int a(int i) {
|
||||
return (int) (i * (this.a.densityDpi / 160.0f));
|
||||
}
|
||||
|
||||
public int a(float f2){
|
||||
public int a(float f2) {
|
||||
return (int) (f2 * (this.a.densityDpi / 160.0f));
|
||||
}
|
||||
|
||||
private void a(View view, int i, int i2, int i3, int i4){
|
||||
private void a(View view, int i, int i2, int i3, int i4) {
|
||||
view.measure(ViewGroup.getChildMeasureSpec(i, i2 + b(view) + c(view), view.getLayoutParams().width), ViewGroup.getChildMeasureSpec(i3, i4 + d(view) + a(view), view.getLayoutParams().height));
|
||||
}
|
||||
|
||||
private void a(View view, int i, int i2){
|
||||
private void a(View view, int i, int i2) {
|
||||
view.layout(i, i2, view.getMeasuredWidth() + i, view.getMeasuredHeight() + i2);
|
||||
}
|
||||
|
||||
private int a(View view){
|
||||
private int a(View view) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||
|
||||
if (marginLayoutParams != null) {
|
||||
|
||||
@@ -6,7 +6,6 @@ import android.graphics.Canvas;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.PorterDuffColorFilter;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
import com.vk.core.ui.themes.Themable;
|
||||
import com.vk.core.ui.themes.VKThemeHelper;
|
||||
import com.vk.core.util.ContextExtKt;
|
||||
@@ -14,7 +13,7 @@ import com.vk.dto.stories.model.StoriesContainer;
|
||||
import com.vk.stories.view.BorderedCircleImageView;
|
||||
import com.vtosters.lite.R;
|
||||
|
||||
public final class CommunityBorderedImageView extends BorderedCircleImageView implements Themable{
|
||||
public final class CommunityBorderedImageView extends BorderedCircleImageView implements Themable {
|
||||
private boolean f0;
|
||||
private int g0;
|
||||
private int h0;
|
||||
@@ -23,19 +22,19 @@ public final class CommunityBorderedImageView extends BorderedCircleImageView im
|
||||
private int unread;
|
||||
private int read;
|
||||
|
||||
public CommunityBorderedImageView(Context context){
|
||||
public CommunityBorderedImageView(Context context) {
|
||||
this(context, null, 0, 6);
|
||||
}
|
||||
|
||||
public CommunityBorderedImageView(Context context, AttributeSet attributeSet){
|
||||
public CommunityBorderedImageView(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0, 4);
|
||||
}
|
||||
|
||||
public CommunityBorderedImageView(Context context, AttributeSet attributeSet, int i, int i2){
|
||||
public CommunityBorderedImageView(Context context, AttributeSet attributeSet, int i, int i2) {
|
||||
this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i);
|
||||
}
|
||||
|
||||
public CommunityBorderedImageView(Context context, AttributeSet attributeSet, int i){
|
||||
public CommunityBorderedImageView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
this.g0 = VKThemeHelper.d((int) R.attr.accent);
|
||||
this.h0 = ContextExtKt.a(context, (int) R.color.gray_200);
|
||||
@@ -43,44 +42,44 @@ public final class CommunityBorderedImageView extends BorderedCircleImageView im
|
||||
this.j0 = new PorterDuffColorFilter(this.h0, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
|
||||
public final void c(int unread, int read){ // get unread and read resid
|
||||
public final void c(int unread, int read) { // get unread and read resid
|
||||
this.unread = unread;
|
||||
this.read = read;
|
||||
this.T = BitmapFactory.decodeResource(getResources(), this.unread);
|
||||
}
|
||||
|
||||
public final int getPrimaryColor(){
|
||||
public final int getPrimaryColor() {
|
||||
return this.g0;
|
||||
}
|
||||
|
||||
public final void setPrimaryColor(int i){
|
||||
public final void setPrimaryColor(int i) {
|
||||
this.g0 = i;
|
||||
this.i0 = new PorterDuffColorFilter(i, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
|
||||
public final int getWasViewedColor(){
|
||||
public final int getWasViewedColor() {
|
||||
return this.h0;
|
||||
}
|
||||
|
||||
public final void setWasViewedColor(int i){
|
||||
public final void setWasViewedColor(int i) {
|
||||
this.h0 = i;
|
||||
this.j0 = new PorterDuffColorFilter(i, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
|
||||
public final void o(){
|
||||
public final void o() {
|
||||
this.f0 = false;
|
||||
l();
|
||||
}
|
||||
|
||||
@Override // com.vk.stories.view.ClippedImageView, android.widget.ImageView, android.view.View
|
||||
public void onDraw(Canvas canvas){
|
||||
public void onDraw(Canvas canvas) {
|
||||
super.onDraw(canvas);
|
||||
if (this.f0) {
|
||||
a(canvas);
|
||||
}
|
||||
}
|
||||
|
||||
public final void setStoryContainer(StoriesContainer storiesContainer){
|
||||
public final void setStoryContainer(StoriesContainer storiesContainer) {
|
||||
if (storiesContainer.L1()) {
|
||||
this.f0 = true;
|
||||
m();
|
||||
@@ -101,6 +100,6 @@ public final class CommunityBorderedImageView extends BorderedCircleImageView im
|
||||
}
|
||||
|
||||
@Override // com.vk.core.ui.themes.Themable
|
||||
public void v(){
|
||||
public void v() {
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,13 @@
|
||||
package com.vk.sharing.view;
|
||||
|
||||
import static b.h.z.f.roboto_medium;
|
||||
import static ru.vtosters.lite.utils.ThemesUtils.getAccentColor;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapShader;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.LinearGradient;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.Shader;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.*;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
import androidx.annotation.UiThread;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import com.facebook.drawee.drawable.ScalingUtils;
|
||||
import com.facebook.drawee.generic.GenericDraweeHierarchy;
|
||||
import com.facebook.drawee.view.DraweeHolder;
|
||||
@@ -35,6 +22,9 @@ import ru.vtosters.lite.utils.Preferences;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import static b.h.z.f.roboto_medium;
|
||||
import static ru.vtosters.lite.utils.ThemesUtils.getAccentColor;
|
||||
|
||||
@UiThread
|
||||
public class TargetImageView extends VKMultiImageView {
|
||||
private static final int I = Screen.a(2);
|
||||
|
||||
@@ -129,23 +129,23 @@ public final class StickerDetailsAdapter extends RecyclerView.Adapter<RecyclerVi
|
||||
this.mImageBg.getHierarchy().a().setVisible(true, true);
|
||||
this.mImageBg.getHierarchy().a(0);
|
||||
this.mImageBg.getHierarchy().e(new ColorDrawable(VKThemeHelper.d(R.attr.placeholder_icon_background)));
|
||||
|
||||
|
||||
this.mPackImage.a(stickerStockItem.h(Screen.a(68)));
|
||||
this.mPackImage.getHierarchy().a().setVisible(true, true);
|
||||
this.mPackImage.getHierarchy().a(0);
|
||||
|
||||
|
||||
if (stickerStockItem.E1()) {
|
||||
ViewExtKt.r(this.mAnimPack);
|
||||
} else {
|
||||
ViewExtKt.p(this.mAnimPack);
|
||||
}
|
||||
|
||||
|
||||
this.mPackTitle.setText(stickerStockItem.getTitle());
|
||||
|
||||
|
||||
this.mPackAuthor.setText(stickerStockItem.v1());
|
||||
|
||||
|
||||
ViewExtKt.p(this.mPackSubtitle);
|
||||
|
||||
|
||||
this.mDescription.setText(stickerStockItem.C1());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,11 +11,9 @@ import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.ViewTreeObserver;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import com.airbnb.lottie.LottieComposition;
|
||||
import com.airbnb.lottie.LottieCompositionFactory;
|
||||
import com.airbnb.lottie.LottieDrawable;
|
||||
@@ -47,7 +45,7 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
public class StoryCircleImageView extends BorderedCircleImageView implements Themable{
|
||||
public class StoryCircleImageView extends BorderedCircleImageView implements Themable {
|
||||
private static final HashSet<Integer> B0 = new HashSet<>();
|
||||
private final PipelineDraweeControllerBuilder f0;
|
||||
private int A0;
|
||||
@@ -72,35 +70,35 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
private String y0;
|
||||
private LottieDrawable z0;
|
||||
|
||||
public StoryCircleImageView(Context context){
|
||||
public StoryCircleImageView(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public StoryCircleImageView(Context context, AttributeSet attributeSet){
|
||||
public StoryCircleImageView(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
public StoryCircleImageView(Context context, AttributeSet attributeSet, int i){
|
||||
public StoryCircleImageView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
this.f0 = FrescoWrapper.c.d();
|
||||
a(context, attributeSet, i);
|
||||
}
|
||||
|
||||
private void b(Canvas canvas){
|
||||
private void b(Canvas canvas) {
|
||||
this.z0.draw(canvas);
|
||||
}
|
||||
|
||||
private boolean o(){
|
||||
private boolean o() {
|
||||
return !this.u0 && !this.t0 && this.z0 == null && !this.w0 && !this.v0;
|
||||
}
|
||||
|
||||
private void p(){
|
||||
private void p() {
|
||||
this.z0.stop();
|
||||
this.z0 = null;
|
||||
invalidate();
|
||||
}
|
||||
|
||||
private void q(){
|
||||
private void q() {
|
||||
int i = this.j0;
|
||||
if (i != 0 && VKThemeHelper.k.a(i)) {
|
||||
this.k0 = VKThemeHelper.d(this.j0);
|
||||
@@ -132,19 +130,19 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
this.s0 = DrawableUtils.a(a4, i8, i8);
|
||||
}
|
||||
|
||||
private void r(){
|
||||
private void r() {
|
||||
this.c0 = Screen.a(o() ? 0 : 2);
|
||||
m();
|
||||
q();
|
||||
}
|
||||
|
||||
private void setUploadFailed(boolean z){
|
||||
private void setUploadFailed(boolean z) {
|
||||
this.u0 = z;
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@Override // com.vk.stories.view.ClippedImageView, android.widget.ImageView, android.view.View
|
||||
public void onDraw(Canvas canvas){
|
||||
public void onDraw(Canvas canvas) {
|
||||
super.onDraw(canvas);
|
||||
setBorderAlpha(255);
|
||||
if (this.u0) {
|
||||
@@ -170,13 +168,13 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
}
|
||||
|
||||
@Override // com.vk.stories.view.BorderedCircleImageView, android.view.View
|
||||
public void onSizeChanged(int i, int i2, int i3, int i4){
|
||||
public void onSizeChanged(int i, int i2, int i3, int i4) {
|
||||
super.onSizeChanged(i, i2, i3, i4);
|
||||
this.i0.setBounds(0, 0, i, i2);
|
||||
b(i);
|
||||
}
|
||||
|
||||
public void setStoryContainer(@Nullable StoriesContainer storiesContainer){
|
||||
public void setStoryContainer(@Nullable StoriesContainer storiesContainer) {
|
||||
boolean z = true;
|
||||
boolean z2 = storiesContainer != null && storiesContainer.Q1();
|
||||
this.v0 = storiesContainer != null && storiesContainer.S1() && !storiesContainer.L1();
|
||||
@@ -246,12 +244,12 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
}
|
||||
|
||||
@Override // com.vk.core.ui.themes.Themable
|
||||
public void v(){
|
||||
public void v() {
|
||||
r();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
private void b(int i){
|
||||
private void b(int i) {
|
||||
LottieDrawable lottieDrawable = this.z0;
|
||||
if (lottieDrawable == null || lottieDrawable.e() == null) {
|
||||
return;
|
||||
@@ -259,7 +257,7 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
this.z0.d(i / this.z0.e().a().width());
|
||||
}
|
||||
|
||||
protected void a(Context context, AttributeSet attributeSet, int i){
|
||||
protected void a(Context context, AttributeSet attributeSet, int i) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, com.vtosters.lite.a0.StoryCircleImageView, i, 0);
|
||||
a(context, attributeSet, obtainStyledAttributes);
|
||||
obtainStyledAttributes.recycle();
|
||||
@@ -267,7 +265,7 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
this.T = this.p0;
|
||||
}
|
||||
|
||||
public void b(@Nullable List<String> list){
|
||||
public void b(@Nullable List<String> list) {
|
||||
PipelineDraweeControllerBuilder pipelineDraweeControllerBuilder = this.f0;
|
||||
pipelineDraweeControllerBuilder.j();
|
||||
pipelineDraweeControllerBuilder.a(getController());
|
||||
@@ -277,7 +275,7 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
}
|
||||
|
||||
@SuppressLint("ResourceType")
|
||||
private void a(Context context, AttributeSet attributeSet, TypedArray typedArray){ // bullshit vk code is not working with custom bordered circle image
|
||||
private void a(Context context, AttributeSet attributeSet, TypedArray typedArray) { // bullshit vk code is not working with custom bordered circle image
|
||||
Drawable drawable;
|
||||
this.A0 = typedArray.getDimensionPixelSize(0, Screen.a(64.0f));
|
||||
if (typedArray.hasValue(2)) {
|
||||
@@ -344,13 +342,13 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
this.s0 = DrawableUtils.a(drawable4, i4, i4);
|
||||
}
|
||||
|
||||
public void a(StoriesContainer storiesContainer){
|
||||
public void a(StoriesContainer storiesContainer) {
|
||||
if (this.z0 == null) {
|
||||
LottieCompositionFactory.a(getContext(), this.y0).b(new a(storiesContainer));
|
||||
}
|
||||
}
|
||||
|
||||
public void a(StoriesContainer storiesContainer, LottieComposition lottieComposition){
|
||||
public void a(StoriesContainer storiesContainer, LottieComposition lottieComposition) {
|
||||
this.z0 = new LottieDrawable();
|
||||
this.z0.a(lottieComposition);
|
||||
this.z0.d(-1);
|
||||
@@ -363,7 +361,7 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
this.z0.stop();
|
||||
}
|
||||
|
||||
private void a(boolean z, boolean z2){
|
||||
private void a(boolean z, boolean z2) {
|
||||
k();
|
||||
this.t0 = z;
|
||||
if (!z2) {
|
||||
@@ -373,7 +371,7 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
}
|
||||
}
|
||||
|
||||
private void a(@NonNull PipelineDraweeControllerBuilder pipelineDraweeControllerBuilder, @Nullable final List<String> list){
|
||||
private void a(@NonNull PipelineDraweeControllerBuilder pipelineDraweeControllerBuilder, @Nullable final List<String> list) {
|
||||
pipelineDraweeControllerBuilder.b(null);
|
||||
pipelineDraweeControllerBuilder.a((Supplier<DataSource<CloseableReference<com.facebook.x.g.CloseableImage>>>) null);
|
||||
if (list != null && !list.isEmpty()) {
|
||||
@@ -390,7 +388,7 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
pipelineDraweeControllerBuilder.b(null);
|
||||
}
|
||||
|
||||
public DataSource<CloseableReference<CloseableImage>> a(@Nullable List<String> list){
|
||||
public DataSource<CloseableReference<CloseableImage>> a(@Nullable List<String> list) {
|
||||
ArrayList<Image> arrayList = new ArrayList<>();
|
||||
for (String o : Objects.requireNonNull(list)) {
|
||||
arrayList.add(new Image(-1, -1, o));
|
||||
@@ -398,15 +396,15 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
return AvatarDataSource.a(arrayList, this.A0, 0);
|
||||
}
|
||||
|
||||
public class a implements LottieListener<LottieComposition>{
|
||||
public class a implements LottieListener<LottieComposition> {
|
||||
final StoriesContainer a;
|
||||
|
||||
a(StoriesContainer storiesContainer){
|
||||
a(StoriesContainer storiesContainer) {
|
||||
this.a = storiesContainer;
|
||||
}
|
||||
|
||||
@Override // com.airbnb.lottie.LottieListener
|
||||
public void a(LottieComposition lottieComposition){
|
||||
public void a(LottieComposition lottieComposition) {
|
||||
if (StoryCircleImageView.this.getWidth() > 0) {
|
||||
StoryCircleImageView.this.a(this.a, lottieComposition);
|
||||
} else {
|
||||
@@ -414,15 +412,15 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
}
|
||||
}
|
||||
|
||||
public class ViewTreeObserver$OnGlobalLayoutListenerC0393a implements ViewTreeObserver.OnGlobalLayoutListener{
|
||||
public class ViewTreeObserver$OnGlobalLayoutListenerC0393a implements ViewTreeObserver.OnGlobalLayoutListener {
|
||||
final LottieComposition a;
|
||||
|
||||
ViewTreeObserver$OnGlobalLayoutListenerC0393a(LottieComposition lottieComposition){
|
||||
ViewTreeObserver$OnGlobalLayoutListenerC0393a(LottieComposition lottieComposition) {
|
||||
this.a = lottieComposition;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
|
||||
public void onGlobalLayout(){
|
||||
public void onGlobalLayout() {
|
||||
StoryCircleImageView.this.getViewTreeObserver().removeOnGlobalLayoutListener(this);
|
||||
a aVar = a.this;
|
||||
StoryCircleImageView.this.a(aVar.a, this.a);
|
||||
@@ -430,12 +428,12 @@ public class StoryCircleImageView extends BorderedCircleImageView implements The
|
||||
}
|
||||
}
|
||||
|
||||
public class b implements ValueAnimator.AnimatorUpdateListener{
|
||||
b(){
|
||||
public class b implements ValueAnimator.AnimatorUpdateListener {
|
||||
b() {
|
||||
}
|
||||
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public void onAnimationUpdate(ValueAnimator valueAnimator){
|
||||
public void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
StoryCircleImageView.this.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user