mirror of
https://github.com/gsantner/dandelion
synced 2024-11-21 20:02:07 +01:00
setupUI before applying proxy settings to mitigate nullpointer on WebView
This commit is contained in:
parent
0b0b0198df
commit
916ee58690
1 changed files with 2 additions and 2 deletions
|
@ -187,6 +187,8 @@ public class MainActivity extends AppCompatActivity
|
|||
podUserProfile.setListener(this);
|
||||
urls = new DiasporaUrlHelper(appSettings);
|
||||
|
||||
setupUI(savedInstanceState);
|
||||
|
||||
if (appSettings.isProxyEnabled()) {
|
||||
if (!setProxy(appSettings.getProxyHost(), appSettings.getProxyPort())) {
|
||||
Log.d(App.TAG, "Could not enable Proxy");
|
||||
|
@ -195,8 +197,6 @@ public class MainActivity extends AppCompatActivity
|
|||
} else if (appSettings.wasProxyEnabled()) {
|
||||
resetProxy();
|
||||
}
|
||||
|
||||
setupUI(savedInstanceState);
|
||||
}
|
||||
|
||||
private void setupUI(Bundle savedInstanceState) {
|
||||
|
|
Loading…
Reference in a new issue