mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-21 11:45:03 +01:00
Fix crash with app prefs missing
This commit is contained in:
parent
fafca26572
commit
2f7cc1cbe9
@ -526,8 +526,10 @@ public class SettingsController extends BaseController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
if (appPreferences != null) {
|
||||||
appPreferences.unregisterProxyTypeListener(proxyTypeChangeListener);
|
appPreferences.unregisterProxyTypeListener(proxyTypeChangeListener);
|
||||||
appPreferences.unregisterProxyCredentialsListener(proxyCredentialsChangeListener);
|
appPreferences.unregisterProxyCredentialsListener(proxyCredentialsChangeListener);
|
||||||
|
}
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user