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 {
42
42
targetSdkVersion rootProject. targetSdkVersion
43
43
}
44
44
45
+ kotlinOptions {
46
+ allWarningsAsErrors = true
47
+ }
48
+
45
49
// Avoid 'duplicate files during packaging of APK' errors
46
50
packagingOptions {
47
51
exclude ' LICENSE.txt'
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
11
11
class GutenbergDialogFragment : AppCompatDialogFragment () {
12
12
private lateinit var mTag: String
13
13
private lateinit var mMessage: CharSequence
14
- private lateinit var mPositiveButtonLabel: CharSequence
14
+ private var mPositiveButtonLabel: CharSequence? = null
15
15
private var mTitle: CharSequence? = null
16
16
private var mNegativeButtonLabel: CharSequence? = null
17
17
private var mId: Int = 0
@@ -56,7 +56,7 @@ class GutenbergDialogFragment : AppCompatDialogFragment() {
56
56
mTag = requireNotNull(savedInstanceState.getString(STATE_KEY_TAG ))
57
57
mTitle = savedInstanceState.getCharSequence(STATE_KEY_TITLE )
58
58
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 )
60
60
mNegativeButtonLabel = savedInstanceState.getCharSequence(STATE_KEY_NEGATIVE_BUTTON_LABEL )
61
61
mId = savedInstanceState.getInt(STATE_KEY_ID )
62
62
}
You can’t perform that action at this time.
0 commit comments