Commit 70bb6778 authored by Tiago Cunha's avatar Tiago Cunha

Close view

parent 4fcd0b13
...@@ -85,7 +85,7 @@ public class LoginActivity extends AbstractFragmentActivity implements LoginCont ...@@ -85,7 +85,7 @@ public class LoginActivity extends AbstractFragmentActivity implements LoginCont
} }
@Override @Override
public void close() { public void closeView() {
finish(); finish();
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
} }
......
...@@ -9,7 +9,7 @@ public interface LoginContract { ...@@ -9,7 +9,7 @@ public interface LoginContract {
void showRetryLogin(String hostname); void showRetryLogin(String hostname);
void close(); void closeView();
} }
interface Presenter extends BaseContract.Presenter<View> { interface Presenter extends BaseContract.Presenter<View> {
......
...@@ -31,7 +31,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.View> ...@@ -31,7 +31,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.View>
connectivityManagerApi.keepAliveServer(); connectivityManagerApi.keepAliveServer();
if (hostname == null || hostname.length() == 0) { if (hostname == null || hostname.length() == 0) {
view.close(); view.closeView();
return; return;
} }
...@@ -52,7 +52,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.View> ...@@ -52,7 +52,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.View>
view.showRetryLogin(hostname); view.showRetryLogin(hostname);
break; break;
case VALID: case VALID:
view.close(); view.closeView();
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment