Force carrier network change anim onto UI thread am: 035a82d264
am: ef5fac68df
* commit 'ef5fac68df8c1518b294dcb4fbeef54104b75018':
Force carrier network change anim onto UI thread
This commit is contained in:
@@ -23,6 +23,7 @@ import android.content.res.Resources;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Animatable;
|
||||
import android.graphics.drawable.AnimatedVectorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.telephony.SubscriptionInfo;
|
||||
import android.util.ArraySet;
|
||||
@@ -636,6 +637,9 @@ public class SignalClusterView
|
||||
|
||||
if (drawable instanceof Animatable) {
|
||||
Animatable ad = (Animatable) drawable;
|
||||
if (ad instanceof AnimatedVectorDrawable) {
|
||||
((AnimatedVectorDrawable) ad).forceAnimationOnUI();
|
||||
}
|
||||
if (!ad.isRunning()) {
|
||||
ad.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user