I am importing a source code, and i've this error in two place of code:
Error:(86, 60) error: incomparable types: Object and 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);
And this one :
if (passwordFrameLayout.getTag() != 0) {
// ^Here
t = (Integer) passwordFrameLayout.getTag();
}
What changes should I do with these ones?
I've searched in Stack but I couldn't fix them. I'm a newbie at this, please help.
I am using Android Studio Last Version by the way!
I am developing the main Telegram source with no changes.
And get tag function :
@ViewDebug.ExportedProperty
public Object getTag() {
return mTag;
}
is in android-23/android/view/View.java
if (passwordFrameLayout.getTag() instanceOf Integer && (Integer)passwordFrameLayout.getTag() != 0) {
//
t = (Integer) passwordFrameLayout.getTag();
}
Should do the trick. getTag()
returns an Object, you have to
to compare it to another Integer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With