1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Upgrade cached weather old style dialog to Material 3 dialog

This commit is contained in:
Arjan Schrijver 2023-08-20 22:17:34 +02:00
parent 50f962c520
commit 7c55f5df86

View File

@ -115,7 +115,6 @@ import nodomain.freeyourgadget.gadgetbridge.model.NotificationType;
import nodomain.freeyourgadget.gadgetbridge.model.RecordedDataTypes;
import nodomain.freeyourgadget.gadgetbridge.model.Weather;
import nodomain.freeyourgadget.gadgetbridge.model.WeatherSpec;
import nodomain.freeyourgadget.gadgetbridge.model.WeatherSpec.Forecast;
import nodomain.freeyourgadget.gadgetbridge.service.serial.GBDeviceProtocol;
import nodomain.freeyourgadget.gadgetbridge.util.DeviceHelper;
import nodomain.freeyourgadget.gadgetbridge.util.GB;
@ -383,7 +382,7 @@ public class DebugActivity extends AbstractGBActivity {
public void onClick(View v) {
String weatherInfo = getWeatherInfo();
new AlertDialog.Builder(DebugActivity.this)
new MaterialAlertDialogBuilder(DebugActivity.this)
.setCancelable(true)
.setTitle("Cached Weather Data")
.setMessage(weatherInfo)