universal7885: SamsungParts: This param can be NULL too

Change-Id: I5f69895b5f7c0c56d84ccea674ee8429c3600419
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2021-11-16 04:11:49 +00:00
commit 32f38f0651
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -216,7 +216,7 @@ open class CustomSeekBarPreference @JvmOverloads constructor(
// dont need too much shit about initial and default values
// its all done in constructor already
override fun onSetInitialValue(restoreValue: Boolean, defaultValue: Any) {
override fun onSetInitialValue(restoreValue: Boolean, defaultValue: Any?) {
if (restoreValue) mValue = getPersistedInt(mValue)
}
@ -320,4 +320,4 @@ open class CustomSeekBarPreference @JvmOverloads constructor(
mSeekBar = SeekBar(context, attrs)
layoutResource = com.eurekateam.samsungextras.R.layout.preference_custom_seekbar
}
}
}