[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-mobile/master] Changed Presenter as Class to Interface in MainActivity
commit 27483cec3f7a30e7849c07f579133a57b7341d23
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date: Thu Jul 30 20:46:35 2020 +0530
Changed Presenter as Class to Interface in MainActivity
---
app/src/main/java/org/torproject/snowflake/MainActivity.java | 2 +-
.../main/java/org/torproject/snowflake/mvp/MainActivityMVPContract.java | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/src/main/java/org/torproject/snowflake/MainActivity.java b/app/src/main/java/org/torproject/snowflake/MainActivity.java
index 4a2eb33..4664ae5 100644
--- a/app/src/main/java/org/torproject/snowflake/MainActivity.java
+++ b/app/src/main/java/org/torproject/snowflake/MainActivity.java
@@ -27,7 +27,7 @@ import org.torproject.snowflake.presenters.MainActivityPresenter;
public class MainActivity extends AppCompatActivity implements MainFragmentCallback, MainActivityMVPContract.View {
private static final String TAG = "MainActivity";
int currentFragment;
- MainActivityPresenter presenter;
+ MainActivityMVPContract.Presenter presenter;
//Indicates if model finished checking the date and reset served count if need be.
boolean isCheckDateFinished;
private Button settingsButton;
diff --git a/app/src/main/java/org/torproject/snowflake/mvp/MainActivityMVPContract.java b/app/src/main/java/org/torproject/snowflake/mvp/MainActivityMVPContract.java
index 4c76496..1bda683 100644
--- a/app/src/main/java/org/torproject/snowflake/mvp/MainActivityMVPContract.java
+++ b/app/src/main/java/org/torproject/snowflake/mvp/MainActivityMVPContract.java
@@ -29,6 +29,8 @@ public interface MainActivityMVPContract {
boolean isServiceRunning();
+ void detach();
+
void updateServedCount(int count);
void checkDate();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits