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

Commit 890422e7 authored by William Leshner's avatar William Leshner Committed by Android (Google) Code Review
Browse files

Merge "Remove size filter from communal widget picker." into main

parents 02d378da 95c4aca9
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"