diff --git a/app/src/main/java/protect/card_locker/MainActivity.java b/app/src/main/java/protect/card_locker/MainActivity.java index c22c64649..bf48e3512 100644 --- a/app/src/main/java/protect/card_locker/MainActivity.java +++ b/app/src/main/java/protect/card_locker/MainActivity.java @@ -23,7 +23,10 @@ import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; +import com.google.common.collect.ImmutableMap; + import java.util.Calendar; +import java.util.Map; public class MainActivity extends AppCompatActivity { @@ -160,18 +163,18 @@ public class MainActivity extends AppCompatActivity private void displayAboutDialog() { - final String[][] USED_LIBRARIES = new String[][] - { - new String[] {"Commons CSV", "https://commons.apache.org/proper/commons-csv/"}, - new String[] {"Guava", "https://github.com/google/guava"}, - new String[] {"ZXing", "https://github.com/zxing/zxing"}, - new String[] {"ZXing Android Embedded", "https://github.com/journeyapps/zxing-android-embedded"}, - }; + final Map USED_LIBRARIES = ImmutableMap.of + ( + "Commons CSV", "https://commons.apache.org/proper/commons-csv/", + "Guava", "https://github.com/google/guava", + "ZXing", "https://github.com/zxing/zxing", + "ZXing Android Embedded", "https://github.com/journeyapps/zxing-android-embedded" + ); StringBuilder libs = new StringBuilder().append("");