我正在导入源代码,我在两个代码位置出现此错误:
错误:(86,60)错误:无法比较的类型:Object和int
if (selectedPhotos.containsKey(photoEntry.imageId)) {
selectedPhotos.remove(photoEntry.imageId);
v.setChecked(false, true);
photoEntry.imagePath = null;
photoEntry.thumbPath = null;
v.setPhotoEntry(photoEntry, v.getTag() == MediaController.allPhotosAlbumEntry.photos.size() - 1);
// ^-here-^
} else {
selectedPhotos.put(photoEntry.imageId, photoEntry);
v.setChecked(true, true);
Run Code Online (Sandbox Code Playgroud)
还有这个 :
if (passwordFrameLayout.getTag() != 0) {
// ^Here
t = (Integer) passwordFrameLayout.getTag();
}
Run Code Online (Sandbox Code Playgroud)
我应该对这些做些什么改变?
我在Stack中搜索但我无法修复它们.我是新手,请帮忙.
我顺便使用Android Studio Last Version!
我正在开发主要的Telegram源,没有任何变化.
并获得标签功能:
@ViewDebug.ExportedProperty
public Object getTag() {
return mTag;
}
Run Code Online (Sandbox Code Playgroud)
在android-23/android/view/View.java中