Skip to content

Commit

Permalink
PIE: support for expandable notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
iGio90 committed Feb 28, 2013
1 parent 2ef2e9a commit 4dcce25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/SystemUI/res/layout/pie_expanded_panel.xml
Expand Up @@ -13,7 +13,7 @@
limitations under the License.
-->

<LinearLayout
<com.android.systemui.statusbar.view.PieExpandPanel
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
android:id="@+id/content_frame"
Expand All @@ -32,4 +32,4 @@
android:fadingEdge="none"
android:overScrollMode="ifContentScrolls"/>

</LinearLayout>
</com.android.systemui.statusbar.view.PieExpandPanel>
Expand Up @@ -100,6 +100,7 @@
import com.android.systemui.statusbar.policy.NotificationRowLayout;
import com.android.systemui.statusbar.tablet.StatusBarPanel;
import com.android.systemui.statusbar.view.PieStatusPanel;
import com.android.systemui.statusbar.view.PieExpandPanel;
import com.android.systemui.statusbar.WidgetView;

import java.util.ArrayList;
Expand Down Expand Up @@ -156,7 +157,7 @@ public abstract class BaseStatusBar extends SystemUI implements
// Pie controls
public PieControlPanel mPieControlPanel;
public View mPieControlsTrigger;
public View mContainer;
public PieExpandPanel mContainer;
int mIndex;

// Policy
Expand Down Expand Up @@ -522,7 +523,8 @@ private void attachPie() {
// Add panel window, one to be used by all pies that is
LayoutInflater inflater = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
mContainer = inflater.inflate(R.layout.pie_expanded_panel, null);
mContainer = (PieExpandPanel)inflater.inflate(R.layout.pie_expanded_panel, null);
mContainer.init(mPile);
mWindowManager.addView(mContainer, PieStatusPanel.getFlipPanelLayoutParams());
}

Expand Down

0 comments on commit 4dcce25

Please sign in to comment.