Android Extensions: Fix KT-10969 (NullPointerException when finding view in Fragment if getView() is null)
(cherry picked from commit 80f5852)
This commit is contained in:
Vendored
+1
-1
@@ -5,5 +5,5 @@ import android.app.Activity
|
||||
|
||||
abstract class Fragment {
|
||||
open fun getActivity(): Activity = throw Exception("Function getActivity() is not overridden")
|
||||
open fun getView(): View = throw Exception("Function getView() is not overridden")
|
||||
open fun getView(): View? = throw Exception("Function getView() is not overridden")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user