Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / base / mvp / Presenter.java
diff --git a/Android/app/src/main/java/com/moiseum/wolnelektury/base/mvp/Presenter.java b/Android/app/src/main/java/com/moiseum/wolnelektury/base/mvp/Presenter.java
new file mode 100644 (file)
index 0000000..acad92f
--- /dev/null
@@ -0,0 +1,24 @@
+package com.moiseum.wolnelektury.base.mvp;
+
+/**
+ * Created by Piotr Ostrowski on 13.06.2018.
+ */
+public class Presenter<V> extends LifecyclePresenter {
+
+    private V view;
+
+    public Presenter(V view) {
+        this.view = view;
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.view = null;
+    }
+
+    protected V getView() {
+        return view;
+    }
+
+}