我收到错误找不到符号
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
View row = mInflater.inflate(R.layout.theme_item, parent, false);
row.setTag(new ViewHolder(row));
return row;
}
@SuppressWarnings("deprecation")
@Override
public void bindView(View view, Context context, Cursor cursor) {
ThemeItem themeItem = mDAOItem;
ViewHolder holder = (ViewHolder) view.getTag();
// int orientation =
// context.getResources().getConfiguration().orientation;
// holder.preview.setImageURI(themeItem.getPreviewUri(orientation));
String hash = themeItem.getPreviewHash(); (this line seems to be the error)
if (mBitmaps.containsKey(hash)) {
holder.preview.setImageBitmap(mBitmaps.get(hash));
} else {
Log.w("Theme","Hit else");
// make sure it is not null to fix bug caused by a shitty theme
// provider
if (hash == null || hash.isEmpty()) {// holder.preview.getDrawable()==null){
// TODO: find a more suitable image
holder.preview
.setImageResource(android.R.drawable.ic_delete);
} else {
byte[] bitmap = Base64.decode(hash, 0);
holder.preview.setImageBitmap(BitmapFactory
.decodeByteArray(bitmap, 0, bitmap.length));
答案 0 :(得分:1)
vendor / tmobile / apps / ThemeChooser / src / com / tmobile / themechooser / ThemeChooser.java:345:找不到符号 符号:方法getPreviewHash() location:class com.tmobile.themes.provider.ThemeItem String hash = themeItem.getPreviewHash(); ^