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
}
@Override
public void close() {
public void closeView() {
finish();
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}
......
......@@ -9,7 +9,7 @@ public interface LoginContract {
void showRetryLogin(String hostname);
void close();
void closeView();
}
interface Presenter extends BaseContract.Presenter<View> {
......
......@@ -31,7 +31,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.View>
connectivityManagerApi.keepAliveServer();
if (hostname == null || hostname.length() == 0) {
view.close();
view.closeView();
return;
}
......@@ -52,7 +52,7 @@ public class LoginPresenter extends BasePresenter<LoginContract.View>
view.showRetryLogin(hostname);
break;
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