From 7c55f5df8619439b2f3b2cceaf5d5e390e0ad679 Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Sun, 20 Aug 2023 22:17:34 +0200 Subject: [PATCH] Upgrade cached weather old style dialog to Material 3 dialog --- .../freeyourgadget/gadgetbridge/activities/DebugActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java index bb439435d..86acf3c71 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java @@ -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)