Clear cache on fragment onDestroy()

This commit is contained in:
Yan Zhulanow
2015-09-08 19:27:59 +03:00
parent 5dc9557650
commit fbc769b0e9
10 changed files with 272 additions and 67 deletions
@@ -0,0 +1,23 @@
package com.myapp
import android.app.Fragment
import java.io.File
import kotlinx.android.synthetic.layout.*
public class MyFragment : Fragment() {
init {login}
}
public class MyFragment2 : Fragment() {
override fun onDestroy() {
super.onDestroy()
}
public open fun onDestroy(n: Int) {}
}
// 2 public onDestroy\(\)V
// 1 INVOKEVIRTUAL com/myapp/MyFragment\._\$_clearFindViewByIdCache
// 1 INVOKEVIRTUAL com/myapp/MyFragment2\._\$_clearFindViewByIdCache
@@ -0,0 +1,17 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<Button
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>