Commit 4737dfbc authored by Yusuke Iwaki's avatar Yusuke Iwaki

rename variable.

parent 78a69c45
...@@ -30,7 +30,7 @@ public class MainActivity extends AbstractAuthedActivity { ...@@ -30,7 +30,7 @@ public class MainActivity extends AbstractAuthedActivity {
private RealmObjectObserver<Session> sessionObserver; private RealmObjectObserver<Session> sessionObserver;
private boolean isForeground; private boolean isForeground;
private StatusTicker tipViewManager; private StatusTicker statusTicker;
@Override @Override
protected int getLayoutContainerForFragment() { protected int getLayoutContainerForFragment() {
...@@ -42,7 +42,7 @@ public class MainActivity extends AbstractAuthedActivity { ...@@ -42,7 +42,7 @@ public class MainActivity extends AbstractAuthedActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
tipViewManager = new StatusTicker(); statusTicker = new StatusTicker();
setupSidebar(); setupSidebar();
if (roomId == null) { if (roomId == null) {
showFragment(new HomeFragment()); showFragment(new HomeFragment());
...@@ -158,9 +158,9 @@ public class MainActivity extends AbstractAuthedActivity { ...@@ -158,9 +158,9 @@ public class MainActivity extends AbstractAuthedActivity {
if (isForeground) { if (isForeground) {
LaunchUtil.showLoginActivity(this, serverConfigId); LaunchUtil.showLoginActivity(this, serverConfigId);
} }
tipViewManager.updateStatus(StatusTicker.STATUS_DISMISS, null); statusTicker.updateStatus(StatusTicker.STATUS_DISMISS, null);
} else if (!TextUtils.isEmpty(session.getError())) { } else if (!TextUtils.isEmpty(session.getError())) {
tipViewManager.updateStatus(StatusTicker.STATUS_CONNECTION_ERROR, statusTicker.updateStatus(StatusTicker.STATUS_CONNECTION_ERROR,
Snackbar.make(findViewById(getLayoutContainerForFragment()), Snackbar.make(findViewById(getLayoutContainerForFragment()),
R.string.fragment_retry_login_error_title, Snackbar.LENGTH_INDEFINITE) R.string.fragment_retry_login_error_title, Snackbar.LENGTH_INDEFINITE)
.setAction(R.string.fragment_retry_login_retry_title, view -> .setAction(R.string.fragment_retry_login_retry_title, view ->
...@@ -176,11 +176,11 @@ public class MainActivity extends AbstractAuthedActivity { ...@@ -176,11 +176,11 @@ public class MainActivity extends AbstractAuthedActivity {
return null; return null;
}).continueWith(new LogcatIfError()))); }).continueWith(new LogcatIfError())));
} else if (!session.isTokenVerified()) { } else if (!session.isTokenVerified()) {
tipViewManager.updateStatus(StatusTicker.STATUS_TOKEN_LOGIN, statusTicker.updateStatus(StatusTicker.STATUS_TOKEN_LOGIN,
Snackbar.make(findViewById(getLayoutContainerForFragment()), Snackbar.make(findViewById(getLayoutContainerForFragment()),
R.string.server_config_activity_authenticating, Snackbar.LENGTH_INDEFINITE)); R.string.server_config_activity_authenticating, Snackbar.LENGTH_INDEFINITE));
} else { } else {
tipViewManager.updateStatus(StatusTicker.STATUS_DISMISS, null); statusTicker.updateStatus(StatusTicker.STATUS_DISMISS, null);
} }
} }
......
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