From 4706b8f6a8d08a6961da6ab34d15881b63356d79 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 23 Jul 2017 13:13:36 -0700 Subject: Update kpref-activity's min-sdk and other minor changes (#11) * Move some resources to public * Lower kpref minsdk * Remove excess kauUtils annotations * Allow nullable throwable * Do not throw null throwable * Make image picker base abstract again * Migrate about strings to private * Update readme * Update readme * Update sample tagging * Update adapter readme --- sample/build.gradle | 2 +- sample/src/main/AndroidManifest.xml | 2 +- .../ca/allanwang/kau/sample/ImagePickerActivity.kt | 8 ++++++++ .../main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 3 +-- sample/src/main/res/xml/kau_changelog.xml | 16 ++++++++++------ 5 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt (limited to 'sample') diff --git a/sample/build.gradle b/sample/build.gradle index a31385d..b318174 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -16,7 +16,7 @@ android { buildToolsVersion project.BUILD_TOOLS androidGitVersion { - codeFormat = 'MMNNBBBB' + codeFormat = 'MMNNPPBB' } defaultConfig { diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index d041a3e..da26bdf 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -29,7 +29,7 @@ android:name=".AboutActivity" android:theme="@style/Kau.About" /> kauLaunchImagePicker(REQUEST_IMAGE); false } + onClick = { _, _, _ -> kauLaunchImagePicker(ImagePickerActivity::class.java, REQUEST_IMAGE); false } } plainText(R.string.adapter_showcase) { @@ -235,7 +235,6 @@ class MainActivity : KPrefActivity() { when (item.itemId) { R.id.action_settings -> startActivity(AnimActivity::class.java) R.id.action_email -> sendEmail(R.string.your_email, R.string.your_subject) - R.id.test -> kauLaunchImagePicker(REQUEST_IMAGE) else -> return super.onOptionsItemSelected(item) } return true diff --git a/sample/src/main/res/xml/kau_changelog.xml b/sample/src/main/res/xml/kau_changelog.xml index 488e01b..76aee36 100644 --- a/sample/src/main/res/xml/kau_changelog.xml +++ b/sample/src/main/res/xml/kau_changelog.xml @@ -6,18 +6,22 @@ --> - - - - + + - - + + + + + + + + -- cgit v1.2.3