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

Commit 6c3e5601 authored by Joe Onorato's avatar Joe Onorato
Browse files

The whole title area of the notification panel should toggle the settings view.

Bug: 3313452
Change-Id: I8240e76367a6608849bbeb69af6ca8f206475d8d
parent 059a2f86
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -81,11 +81,10 @@ public class NotificationPanel extends LinearLayout implements StatusBarPanel,

        mContentParent = (ViewGroup)findViewById(R.id.content_parent);
        mTitleArea = findViewById(R.id.title_area);
        mTitleArea.setOnClickListener(this);

        mSettingsButton = (ImageView)findViewById(R.id.settings_button);
        mSettingsButton.setOnClickListener(this);
        mNotificationButton = (ImageView)findViewById(R.id.notification_button);
        mNotificationButton.setOnClickListener(this);

        mNotificationScroller = findViewById(R.id.notification_scroller);
        mNotificationGlow = findViewById(R.id.notification_glow);
@@ -178,12 +177,14 @@ public class NotificationPanel extends LinearLayout implements StatusBarPanel,
    }

    public void onClick(View v) {
        if (v == mSettingsButton) {
        if (v == mTitleArea) {
            if (mSettingsView == null) {
                switchToSettingsMode();
        } else if (v == mNotificationButton) {
            } else {
                switchToNotificationMode();
            }
        }
    }

    public void switchToSettingsMode() {
        removeSettingsView();