Update launcher icon

This commit is contained in:
Trevor Slocum 2020-11-28 10:43:38 -08:00
parent 77a85b917a
commit ba1b9a1cc7
25 changed files with 24 additions and 27 deletions

View File

@ -31,7 +31,7 @@ android {
ext {
// https://gitlab.com/tslocum/gmitohtml
gmitohtmlVersion = "v1.0.2"
gmitohtmlVersion = "f71136c1a505794ecc79fe639d4c9b80258d7f08"
}
task bindLibrary(type: Exec) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -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();
});
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 22 KiB