Commit 37586be8 authored by Tiago Cunha's avatar Tiago Cunha Committed by GitHub

Merge branch 'develop' into feature/gcm-push

parents 06326eb3 0b7927a0
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
android:windowSoftInputMode="adjustResize" /> android:windowSoftInputMode="adjustResize" />
<activity <activity
android:name=".activity.ServerConfigActivity" android:name=".activity.ServerConfigActivity"
android:windowSoftInputMode="adjustResize" /> android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize"/>
<service android:name=".service.RocketChatService" /> <service android:name=".service.RocketChatService" />
......
...@@ -60,20 +60,20 @@ public class ServerConfigActivity extends AbstractFragmentActivity { ...@@ -60,20 +60,20 @@ public class ServerConfigActivity extends AbstractFragmentActivity {
setContentView(R.layout.simple_screen); setContentView(R.layout.simple_screen);
showFragment(new WaitingFragment()); showFragment(new WaitingFragment());
serverConfigErrorObserver.sub();
} }
@Override @Override
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
RocketChatService.keepAlive(this); RocketChatService.keepAlive(this);
serverConfigErrorObserver.sub();
} }
@Override @Override
protected void onPause() { protected void onDestroy() {
sessionObserver.unsub(); sessionObserver.unsub();
serverConfigErrorObserver.unsub(); serverConfigErrorObserver.unsub();
super.onPause(); super.onDestroy();
} }
private void onRenderServerConfigError(ServerConfig config) { private void onRenderServerConfigError(ServerConfig config) {
......
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