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
ab2f8348
Commit
ab2f8348
authored
Feb 13, 2017
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes a NPE
parent
10a5e85d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
MainActivity.java
.../main/java/chat/rocket/android/activity/MainActivity.java
+9
-2
No files found.
app/src/main/java/chat/rocket/android/activity/MainActivity.java
View file @
ab2f8348
...
@@ -75,13 +75,20 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
...
@@ -75,13 +75,20 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
protected
void
onResume
()
{
protected
void
onResume
()
{
isForeground
=
true
;
isForeground
=
true
;
super
.
onResume
();
super
.
onResume
();
presenter
.
bindView
(
this
);
if
(
presenter
!=
null
)
{
presenter
.
bindView
(
this
);
}
}
}
@Override
@Override
protected
void
onPause
()
{
protected
void
onPause
()
{
isForeground
=
false
;
isForeground
=
false
;
presenter
.
release
();
if
(
presenter
!=
null
)
{
presenter
.
release
();
}
super
.
onPause
();
super
.
onPause
();
}
}
...
...
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