File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
app/src/main/java/fr/free/nrw/commons/settings Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11package fr.free.nrw.commons.settings
22
33import android.Manifest.permission
4+ import android.annotation.SuppressLint
45import android.app.Activity
56import android.app.Dialog
67import android.content.Context.MODE_PRIVATE
@@ -303,6 +304,11 @@ class SettingsFragment : PreferenceFragmentCompat() {
303304 )
304305 }
305306
307+ // Remove the space for icons in the settings menu.
308+ // This uses an internal API that shouldn't be used in app code,
309+ // but it appears to be the most robust way to do this at the moment,
310+ // disable the warning.
311+ @SuppressLint(" RestrictedApi" )
306312 override fun onCreateAdapter (preferenceScreen : PreferenceScreen ): Adapter <PreferenceViewHolder >
307313 {
308314 return object : PreferenceGroupAdapter (preferenceScreen) {
You can’t perform that action at this time.
0 commit comments