File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/org/wordpress/android/editor/gutenberg Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ android {
4242 targetSdkVersion rootProject. targetSdkVersion
4343 }
4444
45+ kotlinOptions {
46+ allWarningsAsErrors = true
47+ }
48+
4549 // Avoid 'duplicate files during packaging of APK' errors
4650 packagingOptions {
4751 exclude ' LICENSE.txt'
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
1111class GutenbergDialogFragment : AppCompatDialogFragment () {
1212 private lateinit var mTag: String
1313 private lateinit var mMessage: CharSequence
14- private lateinit var mPositiveButtonLabel: CharSequence
14+ private var mPositiveButtonLabel: CharSequence? = null
1515 private var mTitle: CharSequence? = null
1616 private var mNegativeButtonLabel: CharSequence? = null
1717 private var mId: Int = 0
@@ -56,7 +56,7 @@ class GutenbergDialogFragment : AppCompatDialogFragment() {
5656 mTag = requireNotNull(savedInstanceState.getString(STATE_KEY_TAG ))
5757 mTitle = savedInstanceState.getCharSequence(STATE_KEY_TITLE )
5858 mMessage = requireNotNull(savedInstanceState.getCharSequence(STATE_KEY_MESSAGE ))
59- mPositiveButtonLabel = requireNotNull( savedInstanceState.getCharSequence(STATE_KEY_POSITIVE_BUTTON_LABEL ) )
59+ mPositiveButtonLabel = savedInstanceState.getCharSequence(STATE_KEY_POSITIVE_BUTTON_LABEL )
6060 mNegativeButtonLabel = savedInstanceState.getCharSequence(STATE_KEY_NEGATIVE_BUTTON_LABEL )
6161 mId = savedInstanceState.getInt(STATE_KEY_ID )
6262 }
You can’t perform that action at this time.
0 commit comments