diff options
author | Andrew Dolgov <[email protected]> | 2014-11-03 18:22:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-11-03 18:22:40 +0300 |
commit | b44d895165f5e804eeeed85ca1ba27eecca36d49 (patch) | |
tree | 8e9ab1468bcc6c9d8f3a9ae438cabee382b6caf1 /org.fox.ttrss/src/main/java | |
parent | e0909900a48a11389e3218ed0ba5bfbecc22760f (diff) |
fix crash while logging out
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java index a590f006..244f40a4 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java @@ -1201,8 +1201,13 @@ public class OnlineActivity extends CommonActivity { protected void logout() { setSessionId(null); - - findViewById(R.id.loading_container).setVisibility(View.VISIBLE); + + View loadingContainer = findViewById(R.id.loading_container); + + if (loadingContainer != null) { + loadingContainer.setVisibility(View.VISIBLE); + } + setLoadingStatus(R.string.login_ready, false); initMenu(); |