diff options
author | Parménides GV <parmegv@sdf.org> | 2015-03-13 15:44:24 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-03-13 15:44:24 +0100 |
commit | b9120adba28b5d691375ece5a919357e54e86a7f (patch) | |
tree | 66eda60eaed4bce6e25e3107b16907c4601b875e | |
parent | 429295bd6ee5f2caa57c287e74392c80aed25f20 (diff) |
Restore provider from sharedconfs if necessary
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/Dashboard.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java index 74a87e63..face6ced 100644 --- a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java +++ b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java @@ -99,9 +99,9 @@ public class Dashboard extends Activity implements SessionDialog.SessionDialogIn if (savedInstanceState != null) { if(savedInstanceState.containsKey(Provider.KEY)) provider = savedInstanceState.getParcelable(Provider.KEY); - if(provider == null && preferences.getBoolean(Constants.PROVIDER_CONFIGURED, false)) - provider = getSavedProviderFromSharedPreferences(); } + if(provider == null && preferences.getBoolean(Constants.PROVIDER_CONFIGURED, false)) + provider = getSavedProviderFromSharedPreferences(); } private void restoreSessionStatus(Bundle savedInstanceState) { |