|
@ -26,24 +26,26 @@ public class AboutFragment extends BasePreferencesFragment { |
|
|
generalCategory.addPreference(getRepoPreference()); |
|
|
generalCategory.addPreference(getRepoPreference()); |
|
|
generalCategory.addPreference(getFeedbackPreference()); |
|
|
generalCategory.addPreference(getFeedbackPreference()); |
|
|
|
|
|
|
|
|
|
|
|
final PreferenceCategory licenseCategory = new PreferenceCategory(context); |
|
|
|
|
|
screen.addPreference(licenseCategory); |
|
|
|
|
|
licenseCategory.setTitle(R.string.about_category_license); |
|
|
|
|
|
licenseCategory.setIconSpaceReserved(false); |
|
|
|
|
|
licenseCategory.addPreference(getLicensePreference()); |
|
|
|
|
|
licenseCategory.addPreference(getLiabilityPreference()); |
|
|
|
|
|
|
|
|
final PreferenceCategory thirdPartyCategory = new PreferenceCategory(context); |
|
|
final PreferenceCategory thirdPartyCategory = new PreferenceCategory(context); |
|
|
screen.addPreference(thirdPartyCategory); |
|
|
screen.addPreference(thirdPartyCategory); |
|
|
thirdPartyCategory.setTitle(R.string.about_category_3pt); |
|
|
thirdPartyCategory.setTitle(R.string.about_category_3pt); |
|
|
//thirdPartyCategory.setSummary(R.string.about_category_3pt_summary); |
|
|
//thirdPartyCategory.setSummary(R.string.about_category_3pt_summary); |
|
|
thirdPartyCategory.setIconSpaceReserved(false); |
|
|
thirdPartyCategory.setIconSpaceReserved(false); |
|
|
// alphabetical order!!! |
|
|
// alphabetical order!!! |
|
|
|
|
|
thirdPartyCategory.addPreference(getAutolinkPreference()); |
|
|
thirdPartyCategory.addPreference(getExoPlayerPreference()); |
|
|
thirdPartyCategory.addPreference(getExoPlayerPreference()); |
|
|
thirdPartyCategory.addPreference(getFrescoPreference()); |
|
|
thirdPartyCategory.addPreference(getFrescoPreference()); |
|
|
|
|
|
thirdPartyCategory.addPreference(getIcafePreference()); |
|
|
thirdPartyCategory.addPreference(getJsoupPreference()); |
|
|
thirdPartyCategory.addPreference(getJsoupPreference()); |
|
|
thirdPartyCategory.addPreference(getMDIPreference()); |
|
|
thirdPartyCategory.addPreference(getMDIPreference()); |
|
|
thirdPartyCategory.addPreference(getRetrofitPreference()); |
|
|
thirdPartyCategory.addPreference(getRetrofitPreference()); |
|
|
|
|
|
|
|
|
final PreferenceCategory licenseCategory = new PreferenceCategory(context); |
|
|
|
|
|
screen.addPreference(licenseCategory); |
|
|
|
|
|
licenseCategory.setTitle(R.string.about_category_license); |
|
|
|
|
|
licenseCategory.setIconSpaceReserved(false); |
|
|
|
|
|
licenseCategory.addPreference(getLicensePreference()); |
|
|
|
|
|
licenseCategory.addPreference(getLiabilityPreference()); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private Preference getDocsPreference() { |
|
|
private Preference getDocsPreference() { |
|
@ -174,6 +176,38 @@ public class AboutFragment extends BasePreferencesFragment { |
|
|
return preference; |
|
|
return preference; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Preference getAutolinkPreference() { |
|
|
|
|
|
final Context context = getContext(); |
|
|
|
|
|
if (context == null) return null; |
|
|
|
|
|
final Preference preference = new Preference(context); |
|
|
|
|
|
preference.setTitle("AutoLinkTextViewV2"); |
|
|
|
|
|
preference.setSummary("Copyright (C) 2019 Arman Chatikyan. Apache Version 2.0."); |
|
|
|
|
|
preference.setIconSpaceReserved(false); |
|
|
|
|
|
preference.setOnPreferenceClickListener(p -> { |
|
|
|
|
|
final Intent intent = new Intent(Intent.ACTION_VIEW); |
|
|
|
|
|
intent.setData(Uri.parse("https://github.com/armcha/AutoLinkTextViewV2")); |
|
|
|
|
|
startActivity(intent); |
|
|
|
|
|
return true; |
|
|
|
|
|
}); |
|
|
|
|
|
return preference; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Preference getIcafePreference() { |
|
|
|
|
|
final Context context = getContext(); |
|
|
|
|
|
if (context == null) return null; |
|
|
|
|
|
final Preference preference = new Preference(context); |
|
|
|
|
|
preference.setTitle("ICAFE"); |
|
|
|
|
|
preference.setSummary("Copyright (C) 2014-2019 Wen Yu. Eclipse Version 2.0."); |
|
|
|
|
|
preference.setIconSpaceReserved(false); |
|
|
|
|
|
preference.setOnPreferenceClickListener(p -> { |
|
|
|
|
|
final Intent intent = new Intent(Intent.ACTION_VIEW); |
|
|
|
|
|
intent.setData(Uri.parse("https://github.com/dragon66/icafe")); |
|
|
|
|
|
startActivity(intent); |
|
|
|
|
|
return true; |
|
|
|
|
|
}); |
|
|
|
|
|
return preference; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private Preference getLicensePreference() { |
|
|
private Preference getLicensePreference() { |
|
|
final Context context = getContext(); |
|
|
final Context context = getContext(); |
|
|
if (context == null) return null; |
|
|
if (context == null) return null; |
|
|