diff options
| author | Eric Holk <eholk@google.com> | 2019-05-23 18:18:04 +0000 |
|---|---|---|
| committer | Eric Holk <eholk@google.com> | 2019-05-23 18:18:04 +0000 |
| commit | d28e7215460948d4e2808ed6443cb73f2596da53 (patch) | |
| tree | 7d9d7059f499e446b9a901fb869ebe3c99972122 /core/java | |
| parent | cb694714f1427ac9b249d90b2aa8e4e0bc46e972 (diff) | |
Revert "LayoutInflater: Special case well-known View constructors"
This reverts commit cb694714f1427ac9b249d90b2aa8e4e0bc46e972.
Reason for revert: test failures (http://b/133342433)
Change-Id: I4967e21769a0e45038e9f0941909faec731b3124
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/policy/PhoneLayoutInflater.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/core/java/com/android/internal/policy/PhoneLayoutInflater.java b/core/java/com/android/internal/policy/PhoneLayoutInflater.java index 0781f1aba87a..991b6bba7396 100644 --- a/core/java/com/android/internal/policy/PhoneLayoutInflater.java +++ b/core/java/com/android/internal/policy/PhoneLayoutInflater.java @@ -53,11 +53,6 @@ public class PhoneLayoutInflater extends LayoutInflater { call through to our super class. */ @Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { - View fastView = fastCreateView(name, getContext(), attrs); - if (fastView != null) { - return fastView; - } - for (String prefix : sClassPrefixList) { try { View view = createView(name, prefix, attrs); @@ -73,67 +68,6 @@ public class PhoneLayoutInflater extends LayoutInflater { return super.onCreateView(name, attrs); } - private static final View fastCreateView(String name, Context context, AttributeSet attrs) { - switch (name) { - case "ActionMenuView": - return new android.widget.ActionMenuView(context, attrs); - case "AutoCompleteTextView": - return new android.widget.AutoCompleteTextView(context, attrs); - case "Button": - return new android.widget.Button(context, attrs); - case "CheckBox": - return new android.widget.CheckBox(context, attrs); - case "CheckedTextView": - return new android.widget.CheckedTextView(context, attrs); - case "EditText": - return new android.widget.EditText(context, attrs); - case "FrameLayout": - return new android.widget.FrameLayout(context, attrs); - case "ImageButton": - return new android.widget.ImageButton(context, attrs); - case "ImageView": - return new android.widget.ImageView(context, attrs); - case "LinearLayout": - return new android.widget.LinearLayout(context, attrs); - case "ListView": - return new android.widget.ListView(context, attrs); - case "MultiAutoCompleteTextView": - return new android.widget.AutoCompleteTextView(context, attrs); - case "ProgressBar": - return new android.widget.ProgressBar(context, attrs); - case "RadioButton": - return new android.widget.RadioButton(context, attrs); - case "RatingBar": - return new android.widget.RatingBar(context, attrs); - case "RelativeLayout": - return new android.widget.RelativeLayout(context, attrs); - case "ScrollView": - return new android.widget.ScrollView(context, attrs); - case "SeekBar": - return new android.widget.SeekBar(context, attrs); - case "Space": - return new android.widget.Space(context, attrs); - case "Spinner": - return new android.widget.Spinner(context, attrs); - case "TextureView": - return new android.view.TextureView(context, attrs); - case "TextView": - return new android.widget.TextView(context, attrs); - case "ToggleButton": - return new android.widget.ToggleButton(context, attrs); - case "Toolbar": - return new android.widget.Toolbar(context, attrs); - case "View": - return new android.view.View(context, attrs); - case "ViewFlipper": - return new android.widget.ViewFlipper(context, attrs); - case "ViewStub": - return new android.view.ViewStub(context, attrs); - default: - return null; - } - } - public LayoutInflater cloneInContext(Context newContext) { return new PhoneLayoutInflater(this, newContext); } |
