Merge branch 'master' into trifonov/selected-item

This commit is contained in:
Dimitar Topuzov
2020-03-13 14:18:34 +02:00
committed by GitHub

View File

@@ -107,6 +107,14 @@ function initializeNativeClasses() {
this.owner._originalBackground = this.owner.backgroundColor || new Color("White");
this.owner.nativeViewProtected.setBackgroundDrawable(bitmapDrawable);
this.backgroundBitmap = null;
let thisView = this.getView();
if (thisView) {
let thisViewParent = thisView.getParent();
if (thisViewParent && thisViewParent instanceof android.view.ViewGroup) {
thisViewParent.removeView(thisView);
}
}
}
super.onDestroyView();