From e75f72c811b2e656ef91236eddb5972d2beacb28 Mon Sep 17 00:00:00 2001 From: Om Godse Date: Thu, 22 Oct 2020 21:21:05 +0530 Subject: [PATCH] Fixed bug that caused the app to crash when receiving shared list internally --- app/build.gradle | 4 ++-- app/src/main/java/com/omgodse/notally/activities/TakeNote.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 583e87d6..3092b9a6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "com.omgodse.notally" minSdkVersion rootProject.ext.minSDKVersion targetSdkVersion rootProject.ext.targetSDKVersion - versionCode 25 - versionName "3.0" + versionCode 26 + versionName "3.1" resConfigs 'en', 'de', 'es', 'fr', 'in', 'it', 'nb', 'pt-rBR', 'ru', 'sv', 'tl', 'uk' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/com/omgodse/notally/activities/TakeNote.kt b/app/src/main/java/com/omgodse/notally/activities/TakeNote.kt index 874c0776..d6ad1108 100644 --- a/app/src/main/java/com/omgodse/notally/activities/TakeNote.kt +++ b/app/src/main/java/com/omgodse/notally/activities/TakeNote.kt @@ -61,7 +61,7 @@ class TakeNote : NotallyActivity() { val title = intent.getStringExtra(Intent.EXTRA_SUBJECT) val plainTextBody = intent.getStringExtra(Intent.EXTRA_TEXT) - val spannableBody = intent.getCharSequenceExtra(EXTRA_SPANNABLE) as Spannable? + val spannableBody = intent.getCharSequenceExtra(EXTRA_SPANNABLE) as? Spannable? val body = spannableBody ?: plainTextBody body?.let { model.body = Editable.Factory.getInstance().newEditable(it) }