summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-10-14 13:23:51 +0200
committercyBerta <richy@cyborgsociety.org>2013-11-16 00:30:07 +0100
commita904408946b058496e6c34e4987212ede32e469a (patch)
tree714bf67c0e682afa4e44d391672aa9445f839b80 /src/se/leap
parentdf580ff4ca160bee13bb071e1db86c0a0945557e (diff)
Going back from providerdetails show all providers
I missed a notifyDataSetChanged.
Diffstat (limited to 'src/se/leap')
-rw-r--r--src/se/leap/bitmaskclient/Dashboard.java8
-rw-r--r--src/se/leap/bitmaskclient/EipServiceFragment.java5
-rw-r--r--src/se/leap/bitmaskclient/ProviderListAdapter.java (renamed from src/se/leap/leapclient/ProviderListAdapter.java)2
-rw-r--r--src/se/leap/bitmaskclient/ProviderListFragment.java4
4 files changed, 12 insertions, 7 deletions
diff --git a/src/se/leap/bitmaskclient/Dashboard.java b/src/se/leap/bitmaskclient/Dashboard.java
index 5066f286..103310bb 100644
--- a/src/se/leap/bitmaskclient/Dashboard.java
+++ b/src/se/leap/bitmaskclient/Dashboard.java
@@ -89,7 +89,7 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
app = this;
PRNGFixes.apply();
- mProgressBar = (ProgressBar) findViewById(R.id.progressbar_dashboard);
+ //mProgressBar = (ProgressBar) findViewById(R.id.progressbar_dashboard);
providerAPI_broadcast_receiver_update = new ProviderAPIBroadcastReceiver_Update();
@@ -434,7 +434,13 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
public static Context getAppContext() {
return app;
}
+
+ @Override
+ public void startActivityForResult(Intent intent, int requestCode) {
+ intent.putExtra(Dashboard.REQUEST_CODE, requestCode);
+ super.startActivityForResult(intent, requestCode);
+ }
/**
* Send a command to EIP
*
diff --git a/src/se/leap/bitmaskclient/EipServiceFragment.java b/src/se/leap/bitmaskclient/EipServiceFragment.java
index 0d73f544..4d778b1a 100644
--- a/src/se/leap/bitmaskclient/EipServiceFragment.java
+++ b/src/se/leap/bitmaskclient/EipServiceFragment.java
@@ -178,11 +178,8 @@ public class EipServiceFragment extends Fragment implements StateListener, OnCli
String statusMessage = "";
String prefix = getString(localizedResId);
if (state.equals("CONNECTED")){
-<<<<<<< HEAD
+
statusMessage = getString(R.string.eip_state_connected);
-=======
- statusMessage = getResources().getString(R.string.connection_secure);
->>>>>>> Dashboard asks for real VPN state.
getActivity().findViewById(R.id.eipProgress).setVisibility(View.GONE);
mEipStartPending = false;
} else if (state.equals("BYTECOUNT")) {
diff --git a/src/se/leap/leapclient/ProviderListAdapter.java b/src/se/leap/bitmaskclient/ProviderListAdapter.java
index baaa10ba..19c4f72c 100644
--- a/src/se/leap/leapclient/ProviderListAdapter.java
+++ b/src/se/leap/bitmaskclient/ProviderListAdapter.java
@@ -1,4 +1,4 @@
-package se.leap.leapclient;
+package se.leap.bitmaskclient;
import java.util.List;
diff --git a/src/se/leap/bitmaskclient/ProviderListFragment.java b/src/se/leap/bitmaskclient/ProviderListFragment.java
index 61ed040a..84d46a11 100644
--- a/src/se/leap/bitmaskclient/ProviderListFragment.java
+++ b/src/se/leap/bitmaskclient/ProviderListFragment.java
@@ -203,8 +203,10 @@ public class ProviderListFragment extends ListFragment {
}
public void unhideAll() {
- if(content_adapter != null)
+ if(content_adapter != null) {
content_adapter.unHideAll();
+ content_adapter.notifyDataSetChanged();
+ }
}
/**