mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-30 18:44:52 +01:00
クラッシュレポート対応
This commit is contained in:
parent
f3c342f118
commit
acf514e465
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user