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 --- .../main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt | 8 ++++++++ sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt (limited to 'sample/src/main/kotlin/ca') diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt new file mode 100644 index 0000000..8a23192 --- /dev/null +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/ImagePickerActivity.kt @@ -0,0 +1,8 @@ +package ca.allanwang.kau.sample + +import ca.allanwang.kau.imagepicker.ImagePickerActivityBase + +/** + * Created by Allan Wang on 2017-07-23. + */ +class ImagePickerActivity : ImagePickerActivityBase() \ No newline at end of file diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt index 4711701..ecfef04 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -165,7 +165,7 @@ class MainActivity : KPrefActivity() { } plainText(R.string.gallery_showcase) { - onClick = { _, _, _ -> 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 -- cgit v1.2.3