Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/libraries/Gradle__com_android_support_support_v4_24_2_0.xml

This file was deleted.

8 changes: 4 additions & 4 deletions src/uk/ac/swansea/eduroamcat/EAPMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class EAPMetadata extends Activity {
//global clietn cert value for retry
static NodeList clientCert;
private static final int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE = 0;
private boolean configFileError = false;

public boolean testExternalStorage()
{
Expand All @@ -80,8 +81,9 @@ public void onRequestPermissionsResult(int requestCode, String permissions[], in
this.recreate();
} else {
Toast.makeText(this, this.getString(R.string.storagePermission), Toast.LENGTH_LONG).show();
configFileError = true;
finish();
}
return;
}
}
}
Expand All @@ -99,7 +101,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_eapmetadata);
Intent configIntent = getIntent();
InputStream configIn = null;
boolean configFileError = false;

String pathToDownload ="";
eduroamCAT.debug("Got eap-config:"+configIntent.getDataString());

Expand All @@ -109,8 +111,6 @@ protected void onCreate(Bundle savedInstanceState) {
ActivityCompat.requestPermissions(this,
new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},
MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE);
configFileError=true;
Toast.makeText(this, this.getString(R.string.storagePermission), Toast.LENGTH_LONG).show();
}
else configFileError=false;

Expand Down