Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
4737dfbc
Commit
4737dfbc
authored
Jan 07, 2017
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename variable.
parent
78a69c45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MainActivity.java
.../main/java/chat/rocket/android/activity/MainActivity.java
+6
-6
No files found.
app/src/main/java/chat/rocket/android/activity/MainActivity.java
View file @
4737dfbc
...
...
@@ -30,7 +30,7 @@ public class MainActivity extends AbstractAuthedActivity {
private
RealmObjectObserver
<
Session
>
sessionObserver
;
private
boolean
isForeground
;
private
StatusTicker
tipViewManag
er
;
private
StatusTicker
statusTick
er
;
@Override
protected
int
getLayoutContainerForFragment
()
{
...
...
@@ -42,7 +42,7 @@ public class MainActivity extends AbstractAuthedActivity {
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
tipViewManag
er
=
new
StatusTicker
();
statusTick
er
=
new
StatusTicker
();
setupSidebar
();
if
(
roomId
==
null
)
{
showFragment
(
new
HomeFragment
());
...
...
@@ -158,9 +158,9 @@ public class MainActivity extends AbstractAuthedActivity {
if
(
isForeground
)
{
LaunchUtil
.
showLoginActivity
(
this
,
serverConfigId
);
}
tipViewManag
er
.
updateStatus
(
StatusTicker
.
STATUS_DISMISS
,
null
);
statusTick
er
.
updateStatus
(
StatusTicker
.
STATUS_DISMISS
,
null
);
}
else
if
(!
TextUtils
.
isEmpty
(
session
.
getError
()))
{
tipViewManag
er
.
updateStatus
(
StatusTicker
.
STATUS_CONNECTION_ERROR
,
statusTick
er
.
updateStatus
(
StatusTicker
.
STATUS_CONNECTION_ERROR
,
Snackbar
.
make
(
findViewById
(
getLayoutContainerForFragment
()),
R
.
string
.
fragment_retry_login_error_title
,
Snackbar
.
LENGTH_INDEFINITE
)
.
setAction
(
R
.
string
.
fragment_retry_login_retry_title
,
view
->
...
...
@@ -176,11 +176,11 @@ public class MainActivity extends AbstractAuthedActivity {
return
null
;
}).
continueWith
(
new
LogcatIfError
())));
}
else
if
(!
session
.
isTokenVerified
())
{
tipViewManag
er
.
updateStatus
(
StatusTicker
.
STATUS_TOKEN_LOGIN
,
statusTick
er
.
updateStatus
(
StatusTicker
.
STATUS_TOKEN_LOGIN
,
Snackbar
.
make
(
findViewById
(
getLayoutContainerForFragment
()),
R
.
string
.
server_config_activity_authenticating
,
Snackbar
.
LENGTH_INDEFINITE
));
}
else
{
tipViewManag
er
.
updateStatus
(
StatusTicker
.
STATUS_DISMISS
,
null
);
statusTick
er
.
updateStatus
(
StatusTicker
.
STATUS_DISMISS
,
null
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment