Loading src/com/android/settings/applications/manageapplications/ApplicationViewHolder.java +3 −1 Original line number Diff line number Diff line Loading @@ -73,8 +73,8 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder { static View newView(ViewGroup parent, boolean twoTarget) { ViewGroup view = (ViewGroup) LayoutInflater.from(parent.getContext()) .inflate(R.layout.preference_app, parent, false); if (twoTarget) { final ViewGroup widgetFrame = view.findViewById(android.R.id.widget_frame); if (twoTarget) { if (widgetFrame != null) { LayoutInflater.from(parent.getContext()) .inflate(R.layout.preference_widget_master_switch, widgetFrame, true); Loading @@ -84,6 +84,8 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder { // second to last, before widget frame view.addView(divider, view.getChildCount() - 1); } } else if (widgetFrame != null) { widgetFrame.setVisibility(View.GONE); } return view; } Loading Loading
src/com/android/settings/applications/manageapplications/ApplicationViewHolder.java +3 −1 Original line number Diff line number Diff line Loading @@ -73,8 +73,8 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder { static View newView(ViewGroup parent, boolean twoTarget) { ViewGroup view = (ViewGroup) LayoutInflater.from(parent.getContext()) .inflate(R.layout.preference_app, parent, false); if (twoTarget) { final ViewGroup widgetFrame = view.findViewById(android.R.id.widget_frame); if (twoTarget) { if (widgetFrame != null) { LayoutInflater.from(parent.getContext()) .inflate(R.layout.preference_widget_master_switch, widgetFrame, true); Loading @@ -84,6 +84,8 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder { // second to last, before widget frame view.addView(divider, view.getChildCount() - 1); } } else if (widgetFrame != null) { widgetFrame.setVisibility(View.GONE); } return view; } Loading