mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Some Samsung phones were allowing graph widgets to occupy 1x2 or 2x1 grid cells, leading to very small text. This commit bumps up the minimum widget size to 100x100 to ensure they always occupy at least 2x2 cells. Tested on Pixel 4, Pixel 7 and Samsung Galaxy S24. Closes #2118
33 lines
1.5 KiB
XML
33 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2016-2021 Álinson Santos Xavier <git@axavier.org>
|
|
~
|
|
~ This file is part of Loop Habit Tracker.
|
|
~
|
|
~ Loop Habit Tracker is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by the
|
|
~ Free Software Foundation, either version 3 of the License, or (at your
|
|
~ option) any later version.
|
|
~
|
|
~ Loop Habit Tracker is distributed in the hope that it will be useful, but
|
|
~ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
~ more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License along
|
|
~ with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:minHeight="100dp"
|
|
android:minWidth="100dp"
|
|
android:minResizeWidth="100dp"
|
|
android:minResizeHeight="100dp"
|
|
android:initialLayout="@layout/widget_graph"
|
|
android:previewImage="@drawable/widget_preview_streaks"
|
|
android:resizeMode="vertical|horizontal"
|
|
android:updatePeriodMillis="3600000"
|
|
android:configure="org.isoron.uhabits.widgets.activities.BooleanHabitPickerDialog"
|
|
android:widgetCategory="home_screen">
|
|
|
|
</appwidget-provider> |