diff options
author | euxane | 2024-09-18 23:41:13 +0200 |
---|---|---|
committer | euxane | 2024-09-18 23:41:13 +0200 |
commit | 86941d837d0fd4368b8a1daabece300a3ec1e0e2 (patch) | |
tree | 95c8257ca9a7366a31b2a74be06c9d3f6c98edd9 /app/src | |
parent | e930bcb9688c2fecd92482e482e10fe25e4d07b6 (diff) | |
download | tincapp-86941d837d0fd4368b8a1daabece300a3ec1e0e2.tar.gz |
activities/basefragment: allow access to parent activity
Useful to show error dialogs from fragments.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt index 7306d4b..45c6832 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt | |||
@@ -23,4 +23,6 @@ import androidx.fragment.app.Fragment | |||
23 | /** | 23 | /** |
24 | * @author euxane | 24 | * @author euxane |
25 | */ | 25 | */ |
26 | abstract class BaseFragment : Fragment() | 26 | abstract class BaseFragment : Fragment() { |
27 | protected val parentActivity by lazy { activity as BaseActivity } | ||
28 | } \ No newline at end of file | ||