Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / base / mvp / FragmentPresenter.java
diff --git a/Android/app/src/main/java/com/moiseum/wolnelektury/base/mvp/FragmentPresenter.java b/Android/app/src/main/java/com/moiseum/wolnelektury/base/mvp/FragmentPresenter.java
new file mode 100644 (file)
index 0000000..ac4587a
--- /dev/null
@@ -0,0 +1,21 @@
+package com.moiseum.wolnelektury.base.mvp;
+
+public class FragmentPresenter<V> extends FragmentLifecyclePresenter {
+
+       private V view;
+
+       public FragmentPresenter(V view) {
+               this.view = view;
+       }
+
+       @Override
+       public void onDestroy() {
+               super.onDestroy();
+               this.view = null;
+       }
+
+       protected V getView() {
+               return view;
+       }
+
+}