Touch: fix library info

This commit is contained in:
Felix 2019-02-26 19:06:38 +01:00
parent b7964f7cd5
commit 872aad1955
4 changed files with 9 additions and 12 deletions

View file

@ -9,7 +9,6 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "de.nicidienase.chaosflix"
minSdkVersion rootProject.ext.minSDK
targetSdkVersion rootProject.ext.targetSDK
manifestPlaceholders = [label: appName]

View file

@ -66,4 +66,10 @@
-keepclassmembers public class com.cypressworks.kotlinreflectionproguard.** {
public *;
}
# aboutlibraries
-keep class .R
-keep class **.R$* {
<fields>;
}

View file

@ -24,12 +24,7 @@ class AboutActivity : AppCompatActivity() {
val showLibs = Element()
showLibs.title = resources.getString(R.string.showLibs)
showLibs.onClickListener = object : View.OnClickListener {
override fun onClick(p0: View?) {
LibsFragment().show(supportFragmentManager, null)
}
}
showLibs.onClickListener = View.OnClickListener { LibsFragment().show(supportFragmentManager, null) }
val pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
val version = pInfo.versionName;

View file

@ -19,11 +19,8 @@ class LibsFragment: DialogFragment(){
}
private fun getLibsFragment(): LibsSupportFragment {
val aboutLibs: LibsSupportFragment = LibsBuilder()
// .withAboutIconShown(true)
// .withAboutVersionShown(true)
// .withAboutDescription(resources.getString(R.string.description))
return LibsBuilder()
.withFields(R.string::class.java.fields)
.supportFragment()
return aboutLibs
}
}