mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-26 16:41:43 +01:00
Upgrade cached weather old style dialog to Material 3 dialog
This commit is contained in:
parent
50f962c520
commit
7c55f5df86
@ -115,7 +115,6 @@ import nodomain.freeyourgadget.gadgetbridge.model.NotificationType;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.model.RecordedDataTypes;
|
import nodomain.freeyourgadget.gadgetbridge.model.RecordedDataTypes;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.model.Weather;
|
import nodomain.freeyourgadget.gadgetbridge.model.Weather;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.model.WeatherSpec;
|
import nodomain.freeyourgadget.gadgetbridge.model.WeatherSpec;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.model.WeatherSpec.Forecast;
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.service.serial.GBDeviceProtocol;
|
import nodomain.freeyourgadget.gadgetbridge.service.serial.GBDeviceProtocol;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.util.DeviceHelper;
|
import nodomain.freeyourgadget.gadgetbridge.util.DeviceHelper;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
||||||
@ -383,7 +382,7 @@ public class DebugActivity extends AbstractGBActivity {
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String weatherInfo = getWeatherInfo();
|
String weatherInfo = getWeatherInfo();
|
||||||
|
|
||||||
new AlertDialog.Builder(DebugActivity.this)
|
new MaterialAlertDialogBuilder(DebugActivity.this)
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setTitle("Cached Weather Data")
|
.setTitle("Cached Weather Data")
|
||||||
.setMessage(weatherInfo)
|
.setMessage(weatherInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user