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

Commit 95c4aca9 authored by Will Leshner's avatar Will Leshner
Browse files

Remove size filter from communal widget picker.

Bug: 341099105
Test: Manually by showing widget picker and seeing that all widgets are
displayed regardless of size.
Flag: com.android.systemui.communal_hub

Change-Id: Ia3b2d5b848f781a39678411970b6a6c04b2345c3
parent aed53697
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -913,10 +913,6 @@
        obvious when corner radii differ.-->
    <dimen name="communal_enforced_rounded_corner_max_radius">28dp</dimen>

    <!-- Width and height used to filter widgets displayed in the communal widget picker -->
    <dimen name="communal_widget_picker_desired_width">360dp</dimen>
    <dimen name="communal_widget_picker_desired_height">240dp</dimen>

    <!-- The width/height of the unlock icon view on keyguard. -->
    <dimen name="keyguard_lock_height">42dp</dimen>
    <dimen name="keyguard_lock_padding">20dp</dimen>
+0 −11
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ import com.android.systemui.log.core.Logger
import com.android.systemui.log.dagger.CommunalLog
import com.android.systemui.media.controls.ui.view.MediaHost
import com.android.systemui.media.dagger.MediaModule
import com.android.systemui.res.R
import javax.inject.Inject
import javax.inject.Named
import kotlinx.coroutines.CoroutineDispatcher
@@ -137,14 +136,6 @@ constructor(

        return Intent(Intent.ACTION_PICK).apply {
            setPackage(packageName)
            putExtra(
                EXTRA_DESIRED_WIDGET_WIDTH,
                resources.getDimensionPixelSize(R.dimen.communal_widget_picker_desired_width)
            )
            putExtra(
                EXTRA_DESIRED_WIDGET_HEIGHT,
                resources.getDimensionPixelSize(R.dimen.communal_widget_picker_desired_height)
            )
            putExtra(
                AppWidgetManager.EXTRA_CATEGORY_FILTER,
                communalSettingsInteractor.communalWidgetCategories.value
@@ -170,8 +161,6 @@ constructor(
    companion object {
        private const val TAG = "CommunalEditModeViewModel"

        private const val EXTRA_DESIRED_WIDGET_WIDTH = "desired_widget_width"
        private const val EXTRA_DESIRED_WIDGET_HEIGHT = "desired_widget_height"
        private const val EXTRA_UI_SURFACE_KEY = "ui_surface"
        private const val EXTRA_UI_SURFACE_VALUE = "widgets_hub"
        const val EXTRA_ADDED_APP_WIDGETS_KEY = "added_app_widgets"