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