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

Commit 8961e02d authored by narinder Rana's avatar narinder Rana
Browse files

implement notificationIconArea hide and show logic

parent 74cf5b06
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue

    private SettingObserver mSettingObserver;
    private int mUser;
    private ViewGroup notificationIconArea
    private SignalCallback mSignalCallback = new SignalCallback() {
        @Override
        public void setIsAirplaneMode(NetworkController.IconState icon) {
@@ -186,7 +187,7 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue

    public void initNotificationIconArea(NotificationIconAreaController
            notificationIconAreaController) {
        ViewGroup notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area);
        notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area);
        mNotificationIconAreaInner =
                notificationIconAreaController.getNotificationInnerAreaView();
        if (mNotificationIconAreaInner.getParent() != null) {
@@ -209,12 +210,19 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue



    public void showHideNotificationIcon(){
    public void showHideNotificationIcon(int ishide_notificationIcon){

        Log.e("showHideNotificationIcon", "showHideNotificationIcon ......Testing....Observer...................... ");

        ViewGroup notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area);
        if(null==notificationIconArea){
            notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area);
        }

        if(ishide_notificationIcon==1){
            notificationIconArea.setVisibility(View.GONE);
        }else {
            notificationIconArea.setVisibility(View.VISIBLE);
        }

    }

@@ -466,7 +474,7 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
            Log.e("showHideNotificationIcon", "onChange................hide_notificationIcon_left_system_icon..... "+hide_notificationIcon_left_system_icon);


            showHideNotificationIcon();
            showHideNotificationIcon(hide_notificationIcon_left_system_icon);
//
//            updateShowPercent();
//            if (TextUtils.equals(uri.getLastPathSegment(),