Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java +32 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,10 @@ import com.android.systemui.statusbar.policy.NetworkController; import com.android.systemui.statusbar.policy.NetworkController.SignalCallback; import com.android.systemui.tuner.TunerService; import lineageos.providers.HIDE_NOTIFICATIONICON_LEFT_SYSTEM_ICON; import android.database.ContentObserver; import android.util.Log; /** * Contains the collapsed status bar and handles hiding/showing based on disable flags * and keyguard state. Also manages lifecycle to make sure the views it contains are being Loading Loading @@ -129,6 +133,9 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue super.onResume(); mCommandQueue.addCallback(this); mStatusBarStateController.addCallback(this); //register } @Override Loading @@ -145,6 +152,9 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue if (mNetworkController.hasEmergencyCryptKeeperText()) { mNetworkController.removeCallback(mSignalCallback); } //unRegister } @Override Loading Loading @@ -415,4 +425,26 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue public void onDozingChanged(boolean isDozing) { disable(getContext().getDisplayId(), mDisabled1, mDisabled1, false /* animate */); } private final class SettingObserver extends ContentObserver { public SettingObserver(Handler handler) { super(handler); } @Override public void onChange(boolean selfChange, Uri uri) { super.onChange(selfChange, uri); showHideNotificationIcon(); // // updateShowPercent(); // if (TextUtils.equals(uri.getLastPathSegment(), // Settings.Global.BATTERY_ESTIMATES_LAST_UPDATE_TIME)) { // // update the text for sure if the estimate in the cache was updated // updatePercentText(); // } } } } packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +5 −2 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ import com.android.systemui.statusbar.notification.stack.ViewState; import java.util.ArrayList; import java.util.List; import lineageos.providers.HIDE_NOTIFICATIONICON_LEFT_SYSTEM_ICON; import android.util.Log; /** * A container for Status bar system icons. Limits the number of system icons and handles overflow * similar to {@link NotificationIconContainer}. Loading Loading @@ -341,13 +344,13 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { Log.e("MoveLeftRightSystemIcon", "MoveLeftRightSystemIcon ......Testing "); for (int i = 0; i < getChildCount(); i++) { /* for (int i = 0; i < getChildCount(); i++) { View child = getChildAt(i); StatusIconState state = getViewStateFromChild(child); state.xTranslation = width - state.xTranslation - child.getWidth(); state.xTranslation = getWidth() - state.xTranslation - child.getWidth(); } */ } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java +32 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,10 @@ import com.android.systemui.statusbar.policy.NetworkController; import com.android.systemui.statusbar.policy.NetworkController.SignalCallback; import com.android.systemui.tuner.TunerService; import lineageos.providers.HIDE_NOTIFICATIONICON_LEFT_SYSTEM_ICON; import android.database.ContentObserver; import android.util.Log; /** * Contains the collapsed status bar and handles hiding/showing based on disable flags * and keyguard state. Also manages lifecycle to make sure the views it contains are being Loading Loading @@ -129,6 +133,9 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue super.onResume(); mCommandQueue.addCallback(this); mStatusBarStateController.addCallback(this); //register } @Override Loading @@ -145,6 +152,9 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue if (mNetworkController.hasEmergencyCryptKeeperText()) { mNetworkController.removeCallback(mSignalCallback); } //unRegister } @Override Loading Loading @@ -415,4 +425,26 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue public void onDozingChanged(boolean isDozing) { disable(getContext().getDisplayId(), mDisabled1, mDisabled1, false /* animate */); } private final class SettingObserver extends ContentObserver { public SettingObserver(Handler handler) { super(handler); } @Override public void onChange(boolean selfChange, Uri uri) { super.onChange(selfChange, uri); showHideNotificationIcon(); // // updateShowPercent(); // if (TextUtils.equals(uri.getLastPathSegment(), // Settings.Global.BATTERY_ESTIMATES_LAST_UPDATE_TIME)) { // // update the text for sure if the estimate in the cache was updated // updatePercentText(); // } } } }
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +5 −2 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ import com.android.systemui.statusbar.notification.stack.ViewState; import java.util.ArrayList; import java.util.List; import lineageos.providers.HIDE_NOTIFICATIONICON_LEFT_SYSTEM_ICON; import android.util.Log; /** * A container for Status bar system icons. Limits the number of system icons and handles overflow * similar to {@link NotificationIconContainer}. Loading Loading @@ -341,13 +344,13 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { Log.e("MoveLeftRightSystemIcon", "MoveLeftRightSystemIcon ......Testing "); for (int i = 0; i < getChildCount(); i++) { /* for (int i = 0; i < getChildCount(); i++) { View child = getChildAt(i); StatusIconState state = getViewStateFromChild(child); state.xTranslation = width - state.xTranslation - child.getWidth(); state.xTranslation = getWidth() - state.xTranslation - child.getWidth(); } */ } Loading