Search in sources :

Example 1 with ScrollContainer

use of com.android.systemui.statusbar.stack.ScrollContainer in project platform_frameworks_base by android.

the class RemoteInputView method findScrollContainer.

private void findScrollContainer() {
    if (mScrollContainer == null) {
        mScrollContainerChild = null;
        ViewParent p = this;
        while (p != null) {
            if (mScrollContainerChild == null && p instanceof ExpandableView) {
                mScrollContainerChild = (View) p;
            }
            if (p.getParent() instanceof ScrollContainer) {
                mScrollContainer = (ScrollContainer) p.getParent();
                if (mScrollContainerChild == null) {
                    mScrollContainerChild = (View) p;
                }
                break;
            }
            p = p.getParent();
        }
    }
}
Also used : ViewParent(android.view.ViewParent) ScrollContainer(com.android.systemui.statusbar.stack.ScrollContainer) ExpandableView(com.android.systemui.statusbar.ExpandableView)

Example 2 with ScrollContainer

use of com.android.systemui.statusbar.stack.ScrollContainer in project android_frameworks_base by crdroidandroid.

the class RemoteInputView method findScrollContainer.

private void findScrollContainer() {
    if (mScrollContainer == null) {
        mScrollContainerChild = null;
        ViewParent p = this;
        while (p != null) {
            if (mScrollContainerChild == null && p instanceof ExpandableView) {
                mScrollContainerChild = (View) p;
            }
            if (p.getParent() instanceof ScrollContainer) {
                mScrollContainer = (ScrollContainer) p.getParent();
                if (mScrollContainerChild == null) {
                    mScrollContainerChild = (View) p;
                }
                break;
            }
            p = p.getParent();
        }
    }
}
Also used : ViewParent(android.view.ViewParent) ScrollContainer(com.android.systemui.statusbar.stack.ScrollContainer) ExpandableView(com.android.systemui.statusbar.ExpandableView)

Example 3 with ScrollContainer

use of com.android.systemui.statusbar.stack.ScrollContainer in project android_frameworks_base by AOSPA.

the class RemoteInputView method findScrollContainer.

private void findScrollContainer() {
    if (mScrollContainer == null) {
        mScrollContainerChild = null;
        ViewParent p = this;
        while (p != null) {
            if (mScrollContainerChild == null && p instanceof ExpandableView) {
                mScrollContainerChild = (View) p;
            }
            if (p.getParent() instanceof ScrollContainer) {
                mScrollContainer = (ScrollContainer) p.getParent();
                if (mScrollContainerChild == null) {
                    mScrollContainerChild = (View) p;
                }
                break;
            }
            p = p.getParent();
        }
    }
}
Also used : ViewParent(android.view.ViewParent) ScrollContainer(com.android.systemui.statusbar.stack.ScrollContainer) ExpandableView(com.android.systemui.statusbar.ExpandableView)

Example 4 with ScrollContainer

use of com.android.systemui.statusbar.stack.ScrollContainer in project android_frameworks_base by DirtyUnicorns.

the class RemoteInputView method findScrollContainer.

private void findScrollContainer() {
    if (mScrollContainer == null) {
        mScrollContainerChild = null;
        ViewParent p = this;
        while (p != null) {
            if (mScrollContainerChild == null && p instanceof ExpandableView) {
                mScrollContainerChild = (View) p;
            }
            if (p.getParent() instanceof ScrollContainer) {
                mScrollContainer = (ScrollContainer) p.getParent();
                if (mScrollContainerChild == null) {
                    mScrollContainerChild = (View) p;
                }
                break;
            }
            p = p.getParent();
        }
    }
}
Also used : ViewParent(android.view.ViewParent) ScrollContainer(com.android.systemui.statusbar.stack.ScrollContainer) ExpandableView(com.android.systemui.statusbar.ExpandableView)

Example 5 with ScrollContainer

use of com.android.systemui.statusbar.stack.ScrollContainer in project android_frameworks_base by ResurrectionRemix.

the class RemoteInputView method findScrollContainer.

private void findScrollContainer() {
    if (mScrollContainer == null) {
        mScrollContainerChild = null;
        ViewParent p = this;
        while (p != null) {
            if (mScrollContainerChild == null && p instanceof ExpandableView) {
                mScrollContainerChild = (View) p;
            }
            if (p.getParent() instanceof ScrollContainer) {
                mScrollContainer = (ScrollContainer) p.getParent();
                if (mScrollContainerChild == null) {
                    mScrollContainerChild = (View) p;
                }
                break;
            }
            p = p.getParent();
        }
    }
}
Also used : ViewParent(android.view.ViewParent) ScrollContainer(com.android.systemui.statusbar.stack.ScrollContainer) ExpandableView(com.android.systemui.statusbar.ExpandableView)

Aggregations

ViewParent (android.view.ViewParent)5 ExpandableView (com.android.systemui.statusbar.ExpandableView)5 ScrollContainer (com.android.systemui.statusbar.stack.ScrollContainer)5