Fix some kotlin warnings

pull/996/head
Alex Baker 4 years ago
parent 2d5aef13d5
commit 9cc21a3386

@ -65,7 +65,7 @@ class PlaceSettingsActivity : BaseListSettingsActivity(), MapFragment.MapFragmen
|| selectedIcon != place.icon
@OnTextChanged(R.id.name)
fun onNameChanged(text: CharSequence?) {
fun onNameChanged() {
nameLayout.error = null
}

@ -25,7 +25,6 @@ import org.tasks.injection.ActivityComponent
import org.tasks.injection.ThemedInjectingAppCompatActivity
import org.tasks.locale.Locale
import timber.log.Timber
import java.lang.String
import javax.inject.Inject
private const val EXTRA_MONTHLY = "extra_monthly"

@ -25,7 +25,7 @@ object GeoUtils {
fun Geo.equalish(other: Geo?): Boolean {
return latitude.truncate() == other?.latitude?.truncate()
&& longitude.truncate() == other?.longitude?.truncate()
&& longitude.truncate() == other.longitude?.truncate()
}
private fun String.numDecimalPlaces(): Int {

@ -108,7 +108,7 @@ class LookAndFeel : InjectingPreferenceFragment(), Preference.OnPreferenceChange
true
}
findPreference(R.string.p_desaturate_colors).setOnPreferenceChangeListener { _, newValue ->
findPreference(R.string.p_desaturate_colors).setOnPreferenceChangeListener { _, _ ->
if (context?.resources?.configuration?.uiMode?.and(Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES) {
activity?.recreate()
}

Loading…
Cancel
Save