fix some lint warnings and Kotlin style issues (#1390)

This commit is contained in:
Konrad Pozniak 2019-07-16 19:26:55 +02:00 committed by GitHub
commit 83f9638aaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 42 deletions

View file

@ -20,6 +20,7 @@ import android.os.Bundle
import androidx.preference.EditTextPreference
import androidx.preference.PreferenceFragmentCompat
import com.keylesspalace.tusky.R
import kotlin.system.exitProcess
class ProxyPreferencesFragment : PreferenceFragmentCompat(), SharedPreferences.OnSharedPreferenceChangeListener {
@ -50,7 +51,7 @@ class ProxyPreferencesFragment : PreferenceFragmentCompat(), SharedPreferences.O
if (pendingRestart) {
pendingRestart = false
System.exit(0)
exitProcess(0)
}
}