Skip to content

Commit

Permalink
Fix for bug with location permissions update
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethAyres committed Nov 9, 2018
1 parent 1312624 commit a66b306
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="uk.ac.swansea.eduroamcat"
android:versionCode="51"
android:versionName="1.2.6">
android:versionCode="52"
android:versionName="1.2.7">

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
Expand Down
4 changes: 3 additions & 1 deletion src/uk/ac/swansea/eduroamcat/SCAD.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import android.text.Html;
import android.text.Spanned;
import android.view.View;
import android.widget.Toast;

//Supplicant Configuration Discovery Process
public class SCAD extends AsyncTask<String, Integer, String> {
Expand All @@ -51,7 +52,7 @@ public class SCAD extends AsyncTask<String, Integer, String> {
Activity activity;
GEOIP geoip;
String search="";

public SCAD(Activity activity,String search)
{
//set location
Expand Down Expand Up @@ -85,6 +86,7 @@ public void startLocationService()
eduroamCAT.debug("Location Service setup....");
locationManager = (LocationManager) activity.getSystemService(activity.LOCATION_SERVICE);
// Define a listener that responds to location updates

locationListener = new LocationListener() {
public void onLocationChanged(Location location) {
// Called when a new location is found by the network location provider.
Expand Down
3 changes: 1 addition & 2 deletions src/uk/ac/swansea/eduroamcat/ViewProfiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ public void onResume() {
super.onResume(); // Always call the superclass method first
eduroamCAT.debug("resumed viewProfiles");
if (adapter.getCount()>0) {
adapter.clear();
adapter.notifyDataSetChanged();
}
adapter.notifyDataSetChanged();
}

@Override
Expand Down

0 comments on commit a66b306

Please sign in to comment.