From c44db4eb8178a9446191c4c37c7866a41a78c457 Mon Sep 17 00:00:00 2001 From: Sergey Nikolaienkov Date: Tue, 7 Apr 2020 15:16:08 +0200 Subject: [PATCH] Add PipControlsView constructors PipControlsView is lacking contructors that are used to initiate the object when inflating from an xmk layout file. Fixing it by adding 2 new contructors. Bug: 153428630 Test: manually Change-Id: I852aa18d2044e50e0ddee6f2a9dc65dc0d8b3a37 --- .../src/com/android/systemui/pip/tv/PipControlsView.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/pip/tv/PipControlsView.java b/packages/SystemUI/src/com/android/systemui/pip/tv/PipControlsView.java index 9c175bc2b7565..8efeef1ffa0a4 100644 --- a/packages/SystemUI/src/com/android/systemui/pip/tv/PipControlsView.java +++ b/packages/SystemUI/src/com/android/systemui/pip/tv/PipControlsView.java @@ -30,6 +30,14 @@ import com.android.systemui.R; */ public class PipControlsView extends LinearLayout { + public PipControlsView(Context context, AttributeSet attrs) { + this(context, attrs, 0); + } + + public PipControlsView(Context context, AttributeSet attrs, int defStyleAttr) { + this(context, attrs, defStyleAttr, 0); + } + public PipControlsView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); LayoutInflater layoutInflater = (LayoutInflater) getContext().getSystemService(