Android extensions: Fix onDestroy in Fragments
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ public class AndroidExpressionCodegenExtension : ExpressionCodegenExtension {
|
||||
private val PROPERTY_NAME = "_\$_findViewCache"
|
||||
private val CACHED_FIND_VIEW_BY_ID_METHOD_NAME = "_\$_findCachedViewById"
|
||||
val CLEAR_CACHE_METHOD_NAME = "_\$_clearFindViewByIdCache"
|
||||
val ON_DESTROY_METHOD_NAME = "onDestroy"
|
||||
val ON_DESTROY_METHOD_NAME = "onDestroyView"
|
||||
|
||||
fun isCacheSupported(descriptor: ClassifierDescriptor) = descriptor.source is KotlinSourceElement
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,6 +18,6 @@ public class MyFragment2 : Fragment() {
|
||||
|
||||
}
|
||||
|
||||
// 2 public onDestroy\(\)V
|
||||
// 2 public onDestroyView\(\)V
|
||||
// 1 INVOKEVIRTUAL test/MyFragment\._\$_clearFindViewByIdCache
|
||||
// 1 INVOKEVIRTUAL test/MyFragment2\._\$_clearFindViewByIdCache
|
||||
Reference in New Issue
Block a user