am 17d262f2: Merge change I69220990 into eclair
Merge commit '17d262f2322258ab88ba2b012c10df37d207ba99' into eclair-plus-aosp * commit '17d262f2322258ab88ba2b012c10df37d207ba99': Fix for 2155255: Revert "Cache inflated view to avoid inflation of layouts in preferences"
This commit is contained in:
@@ -102,7 +102,6 @@ public class Preference implements Comparable<Preference>, OnDependencyChangeLis
|
||||
private int mLayoutResId = com.android.internal.R.layout.preference;
|
||||
private int mWidgetLayoutResId;
|
||||
private boolean mHasSpecifiedLayout = false;
|
||||
private View mLayoutView;
|
||||
|
||||
private OnPreferenceChangeInternalListener mListener;
|
||||
|
||||
@@ -337,7 +336,7 @@ public class Preference implements Comparable<Preference>, OnDependencyChangeLis
|
||||
if (!mHasSpecifiedLayout) {
|
||||
mHasSpecifiedLayout = true;
|
||||
}
|
||||
mLayoutView = null;
|
||||
|
||||
mLayoutResId = layoutResId;
|
||||
}
|
||||
|
||||
@@ -361,7 +360,6 @@ public class Preference implements Comparable<Preference>, OnDependencyChangeLis
|
||||
* @see #setLayoutResource(int)
|
||||
*/
|
||||
public void setWidgetLayoutResource(int widgetLayoutResId) {
|
||||
mLayoutView = null;
|
||||
mWidgetLayoutResId = widgetLayoutResId;
|
||||
}
|
||||
|
||||
@@ -389,10 +387,7 @@ public class Preference implements Comparable<Preference>, OnDependencyChangeLis
|
||||
*/
|
||||
public View getView(View convertView, ViewGroup parent) {
|
||||
if (convertView == null) {
|
||||
if (mLayoutView == null) {
|
||||
mLayoutView = onCreateView(parent);
|
||||
}
|
||||
convertView = mLayoutView;
|
||||
convertView = onCreateView(parent);
|
||||
}
|
||||
onBindView(convertView);
|
||||
return convertView;
|
||||
|
||||
Reference in New Issue
Block a user