package net.squanchy.about.licenses;

import android.support.annotation.StringRes;

import net.squanchy.R;

enum License {
    APACHE_2("Apache 2.0", R.string.license_notice_apache_2),
    GLIDE("BSD, part MIT and Apache 2.0", R.string.license_notice_glide),
    ECLIPSE_PUBLIC_LICENSE("Eclipse Public License 1.0", R.string.license_notice_eclipse_public_license),
    MIT("MIT", R.string.license_notice_mit),
    OPEN_FONT_LICENSE("Open Font License", R.string.license_notice_open_font_license);

    private final String label;

    @StringRes
    private final int noticeResId;

    License(String label, int noticeResId) {
        this.label = label;
        this.noticeResId = noticeResId;
    }

    public String label() {
        return label;
    }

    @StringRes
    public int noticeResId() {
        return noticeResId;
    }
}

@@ -132,32 +132,40 @@
 HE_2(%22Apache 2.0
+ License
 %22, R.string.lice
@@ -225,16 +225,25 @@
 ache 2.0
+ licenses
 %22, R.str
@@ -387,16 +387,24 @@
 MIT(%22MIT
+ License
 %22, R.str
@@ -460,32 +460,36 @@
 pen Font License
+ 1.1
 %22, R.string.lice

Tweak license labels for consistency