Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8346678b authored by Haijie Hong's avatar Haijie Hong
Browse files

Fix blank area at the bottom of device details page

BUG: 380003570
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ic69b3593e6fe7214004c17a5bc2371d319d58f58
parent 1cba219e
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -27,6 +27,8 @@ import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.background
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.shape.RoundedCornerShape
@@ -187,7 +189,12 @@ class DeviceDetailsFragmentFormatterImpl(
            }
            }
        }
        }
        // TODO(b/343317785): figure out how to remove the foot preference.
        // TODO(b/343317785): figure out how to remove the foot preference.
        fragment.preferenceScreen.addPreference(Preference(context).apply { order = 10000 })
        fragment.preferenceScreen.addPreference(ComposePreference(context).apply {
            order = 10000
            isEnabled = false
            isSelectable = false
            setContent { Spacer(modifier = Modifier.height(1.dp)) }
        })
    }
    }


    override fun getMenuItem(
    override fun getMenuItem(