Upgrade project, Fix NPE in search and when adding codes

This commit is contained in:
MrLetsplay 2024-07-10 19:23:24 +02:00
parent c2f2856304
commit ca0b9a0e5e
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
6 changed files with 10 additions and 8 deletions

View File

@ -10,12 +10,12 @@
<deviceKey> <deviceKey>
<Key> <Key>
<type value="VIRTUAL_DEVICE_PATH" /> <type value="VIRTUAL_DEVICE_PATH" />
<value value="$USER_HOME$/.android/avd/Pixel_2_API_34.avd" /> <value value="$USER_HOME$/.android/avd/Pixel_4_XL_API_34.avd" />
</Key> </Key>
</deviceKey> </deviceKey>
</Target> </Target>
</targetSelectedWithDropDown> </targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2024-04-21T10:28:14.063607866Z" /> <timeTargetWasSelectedWithDropDown value="2024-04-29T19:01:52.695697079Z" />
</State> </State>
</entry> </entry>
</value> </value>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="" vcs="Git" />
</component> </component>
</project> </project>

View File

@ -19,6 +19,8 @@ public class IconPack {
} }
public Icon findIconForIssuer(String issuer) { public Icon findIconForIssuer(String issuer) {
if(issuer == null) return null;
for(Icon icon : icons) { for(Icon icon : icons) {
for(String i : icon.getMetadata().getIssuer()) { for(String i : icon.getMetadata().getIssuer()) {
if(issuer.equalsIgnoreCase(i)) { if(issuer.equalsIgnoreCase(i)) {

View File

@ -245,8 +245,8 @@ public class OTPListAdapter extends RecyclerView.Adapter<OTPListItem> {
List<OTPData> filtered = new ArrayList<>(); List<OTPData> filtered = new ArrayList<>();
for(OTPData d : allOTPs) { for(OTPData d : allOTPs) {
if(d.getName().toLowerCase().contains(query) if((d.getName() != null && d.getName().toLowerCase().contains(query))
|| d.getIssuer().toLowerCase().contains(query)) filtered.add(d); || (d.getIssuer() != null && d.getIssuer().toLowerCase().contains(query))) filtered.add(d);
} }
filteredItems = filtered; filteredItems = filtered;

View File

@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins { plugins {
id 'com.android.application' version '8.3.2' apply false id 'com.android.application' version '8.5.0' apply false
id 'com.android.library' version '8.3.2' apply false id 'com.android.library' version '8.5.0' apply false
id 'com.google.protobuf' version '0.9.3' apply false id 'com.google.protobuf' version '0.9.3' apply false
} }

View File

@ -1,6 +1,6 @@
#Sat Jun 17 16:15:03 CEST 2023 #Sat Jun 17 16:15:03 CEST 2023
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists