Update launcher icon
|
@ -31,7 +31,7 @@ android {
|
|||
|
||||
ext {
|
||||
// https://gitlab.com/tslocum/gmitohtml
|
||||
gmitohtmlVersion = "v1.0.2"
|
||||
gmitohtmlVersion = "f71136c1a505794ecc79fe639d4c9b80258d7f08"
|
||||
}
|
||||
|
||||
task bindLibrary(type: Exec) {
|
||||
|
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 10 KiB |
|
@ -53,38 +53,35 @@ public class CertificatesActivity extends Activity {
|
|||
ListView listView = findViewById(R.id.certificatesList);
|
||||
listView.setAdapter(adapter);
|
||||
|
||||
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
||||
@Override
|
||||
public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
|
||||
String site = (String) adapterView.getItemAtPosition(position);
|
||||
listView.setOnItemClickListener((adapterView, view, position, id) -> {
|
||||
String site = (String) adapterView.getItemAtPosition(position);
|
||||
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(CertificatesActivity.this);
|
||||
builder.setTitle("Remove certificate");
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(CertificatesActivity.this);
|
||||
builder.setTitle("Remove certificate");
|
||||
|
||||
TextView tv = new TextView(CertificatesActivity.this);
|
||||
tv.setText("Are you sure you want to remove the certificate for " + site + "?");
|
||||
tv.setPadding(14, 14, 14, 14);
|
||||
builder.setView(tv);
|
||||
TextView tv = new TextView(CertificatesActivity.this);
|
||||
tv.setText("Are you sure you want to remove the certificate for " + site + "?");
|
||||
tv.setPadding(14, 14, 14, 14);
|
||||
builder.setView(tv);
|
||||
|
||||
builder.setPositiveButton("Remove", (dialog, which) -> {
|
||||
SharedPreferences prefs = getSharedPreferences("xenia", Context.MODE_PRIVATE);
|
||||
builder.setPositiveButton("Remove", (dialog, which) -> {
|
||||
SharedPreferences prefs = getSharedPreferences("xenia", Context.MODE_PRIVATE);
|
||||
|
||||
Set<String> sites = prefs.getStringSet("certs", new HashSet<String>());
|
||||
if (sites.contains(site)) {
|
||||
sites.remove(site);
|
||||
prefs.edit().putStringSet("certs", sites).apply();
|
||||
}
|
||||
Set<String> sites = prefs.getStringSet("certs", new HashSet<String>());
|
||||
if (sites.contains(site)) {
|
||||
sites.remove(site);
|
||||
prefs.edit().putStringSet("certs", sites).apply();
|
||||
}
|
||||
|
||||
prefs.edit().putString("cert_" + site, "").putString("key_" + site, "").apply();
|
||||
prefs.edit().putString("cert_" + site, "").putString("key_" + site, "").apply();
|
||||
|
||||
updateSiteList();
|
||||
updateSiteList();
|
||||
|
||||
Toast.makeText(CertificatesActivity.this, "Restart Xenia to apply changes", Toast.LENGTH_LONG).show();
|
||||
});
|
||||
builder.setNegativeButton("Cancel", (dialog, which) -> dialog.cancel());
|
||||
Toast.makeText(CertificatesActivity.this, "Restart Xenia to apply changes", Toast.LENGTH_LONG).show();
|
||||
});
|
||||
builder.setNegativeButton("Cancel", (dialog, which) -> dialog.cancel());
|
||||
|
||||
builder.show();
|
||||
}
|
||||
builder.show();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 903 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.7 KiB |
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#3DDC84</color>
|
||||
</resources>
|
||||
<color name="ic_launcher_background">#14AF1E</color>
|
||||
</resources>
|
||||
|
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 230 KiB |
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 175 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 22 KiB |