Prevent crash

pull/212/head
M66B 2 years ago
parent 14fa14ea91
commit 75f25cd434

@ -4922,7 +4922,8 @@ public class FragmentMessages extends FragmentBase
@Override @Override
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
if ("pro".equals(key) || "banner_hidden".equals(key)) { if (grpSupport != null &&
("pro".equals(key) || "banner_hidden".equals(key))) {
boolean pro = ActivityBilling.isPro(getContext()); boolean pro = ActivityBilling.isPro(getContext());
long banner_hidden = prefs.getLong("banner_hidden", 0); long banner_hidden = prefs.getLong("banner_hidden", 0);
grpSupport.setVisibility( grpSupport.setVisibility(

Loading…
Cancel
Save