Fix NPE
(cherry picked from commit 5c4bf9e466c0bffeca81e10e14bbc945d7f8ce0b)
This commit is contained in:
parent
5b394e1422
commit
51d2e86e48
1 changed files with 1 additions and 0 deletions
|
@ -1699,6 +1699,7 @@ public class ConversationFragment extends XmppFragment
|
|||
|
||||
|
||||
protected void newThreadTutorialToast(String s) {
|
||||
if (activity == null) return;
|
||||
final SharedPreferences p = PreferenceManager.getDefaultSharedPreferences(activity);
|
||||
final int tutorialCount = p.getInt("thread_tutorial", 0);
|
||||
if (tutorialCount < 5) {
|
||||
|
|
Loading…
Add table
Reference in a new issue