Remove reference to R.id.summary_container.
It's deleted in another CL. Fixes: 123317946 Test: visual/robo Change-Id: I7b461ba68e8b56946e4effc26850776881236ec7
This commit is contained in:
@@ -21,7 +21,6 @@ import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.preference.CheckBoxPreference;
|
||||
import androidx.preference.PreferenceViewHolder;
|
||||
@@ -46,11 +45,6 @@ public class AppCheckBoxPreference extends CheckBoxPreference {
|
||||
public void onBindViewHolder(PreferenceViewHolder holder) {
|
||||
super.onBindViewHolder(holder);
|
||||
|
||||
final TextView appendix = (TextView) holder.findViewById(R.id.appendix);
|
||||
if (appendix != null) {
|
||||
appendix.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
final LinearLayout layout = (LinearLayout) holder.findViewById(R.id.summary_container);
|
||||
if (layout != null) {
|
||||
// If summary doesn't exist, make it gone
|
||||
|
||||
@@ -17,10 +17,7 @@
|
||||
package com.android.settings.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.preference.PreferenceViewHolder;
|
||||
import androidx.preference.SwitchPreference;
|
||||
|
||||
import com.android.settings.R;
|
||||
@@ -31,12 +28,4 @@ public class AppSwitchPreference extends SwitchPreference {
|
||||
super(context);
|
||||
setLayoutResource(R.layout.preference_app);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(PreferenceViewHolder view) {
|
||||
super.onBindViewHolder(view);
|
||||
|
||||
view.findViewById(R.id.summary_container)
|
||||
.setVisibility(TextUtils.isEmpty(getSummary()) ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user