Commit 763da836 authored by Tiago Cunha's avatar Tiago Cunha

Show unread mode

Source code organized with new rules
Renamed methods: While the Realm mapping it 1-to-1, the method name can be anything. Let's use it
parent 5496ae00
...@@ -36,6 +36,6 @@ public class RocketChatApplication extends MultiDexApplication { ...@@ -36,6 +36,6 @@ public class RocketChatApplication extends MultiDexApplication {
InstabugWrapper.build(this, getString(R.string.instabug_api_key)); InstabugWrapper.build(this, getString(R.string.instabug_api_key));
//TODO: add periodic trigger for RocketChatService.keepalive(this) here! //TODO: add periodic trigger for RocketChatService.keepAlive(this) here!
} }
} }
...@@ -71,7 +71,7 @@ public class RocketChatService extends Service { ...@@ -71,7 +71,7 @@ public class RocketChatService extends Service {
if (webSocketThreads.containsKey(serverConfigId)) { if (webSocketThreads.containsKey(serverConfigId)) {
RocketChatWebSocketThread thread = webSocketThreads.get(serverConfigId); RocketChatWebSocketThread thread = webSocketThreads.get(serverConfigId);
if (thread != null) { if (thread != null) {
thread.keepalive(); thread.keepAlive();
} }
} }
} }
...@@ -110,7 +110,7 @@ public class RocketChatService extends Service { ...@@ -110,7 +110,7 @@ public class RocketChatService extends Service {
.onSuccessTask(task -> { .onSuccessTask(task -> {
RocketChatWebSocketThread thread = task.getResult(); RocketChatWebSocketThread thread = task.getResult();
if (thread != null) { if (thread != null) {
thread.keepalive(); thread.keepAlive();
} }
return ServerConfig.updateState(serverConfigId, ServerConfig.STATE_CONNECTED); return ServerConfig.updateState(serverConfigId, ServerConfig.STATE_CONNECTED);
}).continueWith(new LogcatIfError()); }).continueWith(new LogcatIfError());
......
...@@ -33,4 +33,5 @@ ...@@ -33,4 +33,5 @@
<string name="add_server_activity_waiting_server">Connecting to server…</string> <string name="add_server_activity_waiting_server">Connecting to server…</string>
<string name="server_config_activity_authenticating">Authenticating…</string> <string name="server_config_activity_authenticating">Authenticating…</string>
<string name="home_fragment_title">Rocket.Chat - Home</string> <string name="home_fragment_title">Rocket.Chat - Home</string>
<string name="fragment_sidebar_main_unread_rooms_title">UNREAD ROOMS</string>
</resources> </resources>
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