Skip to content

Commit 9689827

Browse files
author
Genkzsz11
committed
Revert "Network Traffic: remove statusbar animation"
This reverts commit df5554a.
1 parent 6e83dfa commit 9689827

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ private StatusBarMobileView onCreateStatusBarMobileView(String slot) {
332332

333333
private NetworkTrafficSB onCreateNetworkTraffic(String slot) {
334334
NetworkTrafficSB view = new NetworkTrafficSB(mContext);
335+
view.setPadding(4, 0, 4, 0);
335336
return view;
336337
}
337338

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,6 @@ public void applyToView(View view) {
426426
animationProperties = X_ANIMATION_PROPERTIES;
427427
}
428428

429-
// HACK: we dont want networktraffic to animate
430-
if (icon.getSlot() == "networktraffic") {
431-
animateVisibility = false;
432-
animationProperties = null;
433-
}
434-
435429
icon.setVisibleState(visibleState, animateVisibility);
436430
if (animationProperties != null) {
437431
animateTo(view, animationProperties);

0 commit comments

Comments
 (0)