1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-30 18:44:52 +01:00

クラッシュレポート対応

This commit is contained in:
tateisu 2019-10-09 07:43:45 +09:00
parent f3c342f118
commit acf514e465

View File

@ -180,7 +180,15 @@ class HeaderGridView : GridView {
itemHeight = itemHeight,
view = v,
viewContainer = FullWidthFixedViewLayout(context)
.apply { addView(v) },
.apply {
try {
// remove from old parent
(v.parent as? ViewGroup)?.removeView(v)
}catch(ex:Throwable){
Log.w(TAG,"can't remove from old parent",ex)
}
addView(v)
},
data = data,
isSelectable = isSelectable
)