feat(alarmas): replace one-line reliability button with full diagnostics screen
Surface all six DiagnosticoAlarmasAndroid fields instead of three: the battery-optimization exemption and native pending-alarm count were already collected but silently dropped by the old widget. Each failing signal now offers a "Fix this" action that opens the right system settings screen (exact alarms, notifications, full-screen intent, battery optimization), guarded by SDK level and never crashing when a ROM lacks that screen. Manufacturers known for aggressive background killing (Xiaomi/Redmi/POCO, Huawei, Oppo, Vivo, OnePlus, Samsung) get an honest explanation that Autostart must be enabled manually, since there is no API to detect or grant it. Notifications now deep-links straight to ACTION_APP_NOTIFICATION_SETTINGS via a new openNotificationSettings native method, instead of reusing the runtime permission popup meant for first-time alarm creation. New copy is added to all 13 ARB locales with real per-language translations (not Spanish copies), verified by the ARB parity and anti-copy tests plus the corruption scanner.
This commit is contained in:
@@ -1706,4 +1706,76 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get alarmCardVacationPausedBadge => 'Pausada por vacaciones';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsExactAlarmsTitle =>
|
||||
'Programación de alarma exacta';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsExactAlarmsHint =>
|
||||
'Permite que la alarma suene en el minuto exacto que elegiste, incluso con el teléfono en reposo.';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsNotificationsTitle => 'Notificaciones';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsNotificationsHint =>
|
||||
'Necesarias para mostrar la alarma y el aviso previo.';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsFullScreenTitle =>
|
||||
'Pantalla completa de la alarma';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsFullScreenHint =>
|
||||
'Permite que la pantalla de la alarma aparezca automáticamente, incluso con el teléfono bloqueado.';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsBatteryTitle => 'Optimización de batería';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsBatteryHint =>
|
||||
'Evita que el sistema cierre PluriWave en segundo plano para que la alarma pueda sonar.';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsNativeCountTitle =>
|
||||
'Alarmas registradas en Android';
|
||||
|
||||
@override
|
||||
String alarmDiagnosticsNativeCountValue(int count) {
|
||||
return 'Registradas ahora mismo: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsNativeCountAttentionHint =>
|
||||
'Tenés una alarma activada, pero todavía ninguna está registrada en el sistema. Volvé a abrir PluriWave o solucioná primero los puntos de arriba.';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsManufacturerLabel => 'Fabricante';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsSdkLabel => 'Versión de Android (SDK)';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsNeedsAttentionStatus => 'Necesita atención';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsAutostartTitle =>
|
||||
'Un paso manual más en este teléfono';
|
||||
|
||||
@override
|
||||
String alarmDiagnosticsAutostartBody(String manufacturer) {
|
||||
return 'Los teléfonos $manufacturer suelen cerrar las apps que están en segundo plano para ahorrar batería. No hay ningún ajuste que PluriWave pueda activar por su cuenta: tenés que activar vos mismo el Inicio automático (a veces llamado \"Autostart\" o \"Actividad en segundo plano\"). Buscalo en Ajustes, dentro de Apps o Batería, o en la app de Seguridad del teléfono.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsFixAction => 'Solucionar';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsIntentUnavailable =>
|
||||
'No se pudo abrir esa pantalla de ajustes en este teléfono. Buscala manualmente en Ajustes.';
|
||||
|
||||
@override
|
||||
String get alarmDiagnosticsUnavailableHint =>
|
||||
'Todavía no pudimos revisar tus ajustes de alarma.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user