Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85ee3aab authored by narinder Rana's avatar narinder Rana
Browse files

bug fix: import Log

parent 3e2ac9d2
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -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
@@ -129,6 +133,9 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
        super.onResume();
        mCommandQueue.addCallback(this);
        mStatusBarStateController.addCallback(this);

        //register

    }

    @Override
@@ -145,6 +152,9 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
        if (mNetworkController.hasEmergencyCryptKeeperText()) {
            mNetworkController.removeCallback(mSignalCallback);
        }

        //unRegister

    }

    @Override
@@ -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();
//            }
        }
    }

}
+5 −2
Original line number Diff line number Diff line
@@ -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}.
@@ -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();
        }

*/

    }