tilfluktsrom/app/src/main/res/layout/dialog_civil_defense.xml
Ole-Morten Duesund c1ac68e746 Legg til om-side, personvernerklæring og sikkerheitsforbetring
Om-side (Android + PWA):
- Ny AboutDialog med personvernerklæring, datakjelder og opphavsrett
- Opphavsrett flytta frå sivilforsvardialogen til om-sida
- Tilgjengeleg via «Om denne appen»-lenke i sivilforsvarsdialogen (Android)
  og ny om-knapp i statuslinja (PWA)
- Lokalisert til en/nb/nn

Personvern og sikkerheit:
- Lagra GPS-posisjon utløper etter 24 timar (widget_prefs)
- Widget viser «Trykk for å oppdatere» når posisjon manglar eller er utløpt
- Eigendefinert User-Agent (Tilfluktsrom/1.6.1) i OkHttp
- Content Security Policy (CSP) meta-tag i PWA
- Tenararbeidar bufrar berre HTTP 200-svar (ikkje opake)
- Kartbuffer-metadata runda til ~11km presisjon i localStorage
- crossorigin="anonymous" på Leaflet CSS

i18n-opprydding:
- Unicode-escapes erstatta med UTF-8-teikn i nb.ts og nn.ts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 14:27:45 +01:00

129 lines
4.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/status_bar_bg"
android:padding="20dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Title -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="@string/civil_defense_title"
android:textColor="@color/shelter_primary"
android:textSize="20sp"
android:textStyle="bold" />
<!-- Step 1: The alarm signal -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/civil_defense_step1_title"
android:textColor="@color/text_primary"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:text="@string/civil_defense_step1_body"
android:textColor="@color/text_secondary"
android:textSize="14sp" />
<!-- Step 2: Go indoors -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/civil_defense_step2_title"
android:textColor="@color/text_primary"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:text="@string/civil_defense_step2_body"
android:textColor="@color/text_secondary"
android:textSize="14sp" />
<!-- Step 3: Find nearest shelter -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/civil_defense_step3_title"
android:textColor="@color/text_primary"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:text="@string/civil_defense_step3_body"
android:textColor="@color/text_secondary"
android:textSize="14sp" />
<!-- Step 4: Listen to NRK P1 -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/civil_defense_step4_title"
android:textColor="@color/text_primary"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:text="@string/civil_defense_step4_body"
android:textColor="@color/text_secondary"
android:textSize="14sp" />
<!-- Step 5: All clear signal -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/civil_defense_step5_title"
android:textColor="@color/text_primary"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="@string/civil_defense_step5_body"
android:textColor="@color/text_secondary"
android:textSize="14sp" />
<!-- Source attribution -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/civil_defense_source"
android:textColor="@color/text_secondary"
android:textSize="12sp"
android:textStyle="italic" />
<!-- About link -->
<TextView
android:id="@+id/aboutLink"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:gravity="center_vertical"
android:text="@string/action_about"
android:textColor="@color/shelter_primary"
android:textSize="14sp" />
</LinearLayout>
</ScrollView>