Clean up unused fields from EntityHeaderController
Bug: 295260929 Test: manual - on pages with header Test: robo test Change-Id: Icebd63dbb5d3d44b4b46d3bececb8b65b30b4883
This commit is contained in:
@@ -89,8 +89,7 @@ public class ConversationHeaderPreferenceController extends NotificationPreferen
|
||||
.setButtonActions(EntityHeaderController.ActionType.ACTION_NOTIF_PREFERENCE,
|
||||
EntityHeaderController.ActionType.ACTION_NONE)
|
||||
.setHasAppInfoLink(true)
|
||||
.setRecyclerView(mFragment.getListView(), mFragment.getSettingsLifecycle())
|
||||
.done(activity, mContext);
|
||||
.done(mContext);
|
||||
|
||||
pref.findViewById(R.id.entity_header).setVisibility(View.VISIBLE);
|
||||
pref.findViewById(R.id.entity_header).setBackground(null);
|
||||
|
||||
@@ -25,7 +25,6 @@ import android.text.SpannableStringBuilder;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.lifecycle.LifecycleObserver;
|
||||
import androidx.lifecycle.OnLifecycleEvent;
|
||||
import androidx.preference.Preference;
|
||||
@@ -90,8 +89,7 @@ public class HeaderPreferenceController extends NotificationPreferenceController
|
||||
.setButtonActions(EntityHeaderController.ActionType.ACTION_NOTIF_PREFERENCE,
|
||||
EntityHeaderController.ActionType.ACTION_NONE)
|
||||
.setHasAppInfoLink(true)
|
||||
.setRecyclerView(mFragment.getListView(), mFragment.getSettingsLifecycle())
|
||||
.done(activity, mContext);
|
||||
.done(mContext);
|
||||
pref.findViewById(R.id.entity_header).setVisibility(View.VISIBLE);
|
||||
pref.findViewById(R.id.entity_header).setBackground(null);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ public class ZenAutomaticRuleHeaderPreferenceController extends AbstractZenModeP
|
||||
|
||||
mController.setIcon(getIcon())
|
||||
.setLabel(mRule.getName())
|
||||
.done(mFragment.getActivity(), false /* rebindActions */);
|
||||
.done(false /* rebindActions */);
|
||||
}
|
||||
|
||||
private Drawable getIcon() {
|
||||
|
||||
Reference in New Issue
Block a user