Commit e9f583aa authored by Tiago Cunha's avatar Tiago Cunha

Fixes clean up room id

parent 533ba976
......@@ -74,7 +74,12 @@ abstract class AbstractAuthedActivity extends AbstractFragmentActivity {
recoverFromHostnameError(prefs);
}
} else {
if (!hostname.equals(newHostname) && assertServerRealmStoreExists(newHostname)) {
if (hostname.equals(newHostname)) {
// we are good
return;
}
if (assertServerRealmStoreExists(newHostname)) {
updateHostname(newHostname);
} else {
recoverFromHostnameError(prefs);
......
......@@ -14,9 +14,8 @@ import com.trello.rxlifecycle.components.support.RxFragment;
public abstract class AbstractFragment extends RxFragment {
protected View rootView;
protected abstract
@LayoutRes
int getLayout();
protected abstract int getLayout();
protected abstract void onSetupView();
......
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