Skip to content

Commit

Permalink
Fixed bug that caused the app to crash when receiving shared list int…
Browse files Browse the repository at this point in the history
…ernally
  • Loading branch information
OmGodse committed Oct 22, 2020
1 parent c02c977 commit e75f72c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit e75f72c

Please sign in to comment.