diff --git a/SharkNet-Api-Android b/SharkNet-Api-Android
index bed4af4..851a1b4 160000
--- a/SharkNet-Api-Android
+++ b/SharkNet-Api-Android
@@ -1 +1 @@
-Subproject commit bed4af4e65b56125846c1206e50c2d1305428e15
+Subproject commit 851a1b4bd92268ea19e8eee3f590d6daa327bfef
diff --git a/app/app.iml b/app/app.iml
index 69f36a2..b4ea24d 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -62,13 +62,6 @@
-
-
-
-
-
-
-
@@ -76,6 +69,13 @@
+
+
+
+
+
+
+
@@ -90,6 +90,7 @@
+
@@ -117,13 +118,35 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 4161f8b..4f7ad1a 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -61,6 +61,5 @@ dependencies {
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
- compile 'com.facebook.stetho:stetho:1.5.0'
compile project(':api')
}
diff --git a/app/src/main/java/net/sharksystem/sharknet/SharkApp.java b/app/src/main/java/net/sharksystem/sharknet/SharkApp.java
index 8f791a5..bb6f707 100644
--- a/app/src/main/java/net/sharksystem/sharknet/SharkApp.java
+++ b/app/src/main/java/net/sharksystem/sharknet/SharkApp.java
@@ -4,8 +4,6 @@
import android.support.multidex.MultiDex;
import android.support.multidex.MultiDexApplication;
-import com.facebook.stetho.Stetho;
-
import net.sharksystem.api.models.Chat;
import net.sharksystem.api.models.Contact;
import net.sharksystem.api.models.Message;
@@ -30,12 +28,6 @@ public SharkApp() {
MultiDex.install(this);
}
- @Override
- public void onCreate() {
- super.onCreate();
- Stetho.initializeWithDefaults(this);
- }
-
public static Context getContext() {
return instance;
}
@@ -84,11 +76,11 @@ public void resetMessage() {
this.message = null;
}
- public void activateDummy(){
+ public void activateDummy() {
isDummy = true;
}
- public boolean isDummy(){
+ public boolean isDummy() {
return isDummy;
}
}
diff --git a/app/src/main/java/net/sharksystem/sharknet/main/MainActivity.java b/app/src/main/java/net/sharksystem/sharknet/main/MainActivity.java
index 67f6d74..e9e2881 100644
--- a/app/src/main/java/net/sharksystem/sharknet/main/MainActivity.java
+++ b/app/src/main/java/net/sharksystem/sharknet/main/MainActivity.java
@@ -78,6 +78,10 @@ public void onClick(DialogInterface dialog,int id) {
} else {
if(getSharkApp().isDummy()) onCreateDummyDataSelected();
}
+
+ if(mApi.getAccount()!=null){
+ mStartupFragment.showOldUSerButton();
+ }
}
@@ -144,7 +148,7 @@ public void onError(Throwable error) {
@Override
public void onUsePreviousProfileSelected() {
- Toast.makeText(this, "This is not yet supported.", Toast.LENGTH_SHORT).show();
+ onSuccess();
}
@Override
@@ -168,6 +172,7 @@ public void onCreateProfile(final Contact contact) {
Single