summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/layout/fragment_learn.xml
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-04-11 08:31:11 +0000
committerClaude <noreply@anthropic.com>2026-04-11 08:31:11 +0000
commit45f56beef36a9888aef3773ac10f089c3d2c3b00 (patch)
tree3b79f6165ab80125292544a4f327ddee1dafea8f /android-app/app/src/main/res/layout/fragment_learn.xml
parentd5e819e869f3b15da0f28ba2d8525e825afeb5a0 (diff)
Remove bad ASA external links; fix conditions not loading on startup
- Strip all three unverified external link cards (ASA courses, ASA online, Quizlet flashcards) from the Learn tab — asa.com is a Brazilian financial site, not the American Sailing Association - Remove dead openUrl() click handlers and unused Intent/Uri imports from LearnFragment - Parallelize the two sequential API calls in fetchCurrentConditions so the HUD populates in ~half the time (weather + marine fetched concurrently via async/await) - Add onFailure logging in loadConditions so errors are visible in logcat instead of silently swallowed - Eagerly call loadConditions in the setStyle callback as a startup backstop: the camera-idle listener fires before GPS fixes and the initial position may be (0,0), so this guarantees a real fetch once the style is ready with a valid camera position https://claude.ai/code/session_01HXPjBsogsJVRwCiekDGkJX
Diffstat (limited to 'android-app/app/src/main/res/layout/fragment_learn.xml')
-rw-r--r--android-app/app/src/main/res/layout/fragment_learn.xml154
1 files changed, 1 insertions, 153 deletions
diff --git a/android-app/app/src/main/res/layout/fragment_learn.xml b/android-app/app/src/main/res/layout/fragment_learn.xml
index 8813ba2..fa18c5d 100644
--- a/android-app/app/src/main/res/layout/fragment_learn.xml
+++ b/android-app/app/src/main/res/layout/fragment_learn.xml
@@ -158,7 +158,7 @@
android:id="@+id/card_sailing_reference"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="24dp"
+ android:layout_marginBottom="8dp"
app:cardCornerRadius="12dp"
app:cardElevation="2dp">
@@ -201,157 +201,5 @@
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
- <!-- ── ASA Training &amp; Practice (external links) ──────────── -->
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="ASA TRAINING &amp; PRACTICE"
- android:textSize="11sp"
- android:textAllCaps="true"
- android:letterSpacing="0.12"
- android:textColor="?attr/colorOnSurfaceVariant"
- android:layout_marginBottom="8dp" />
-
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card_asa_courses"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- app:cardCornerRadius="12dp"
- app:cardElevation="2dp">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="16dp"
- android:gravity="center_vertical">
-
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="ASA Course Catalog"
- android:textAppearance="?attr/textAppearanceTitleSmall" />
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="ASA 101–114: keelboat through offshore passagemaking"
- android:textSize="12sp"
- android:textColor="?attr/colorOnSurfaceVariant"
- android:layout_marginTop="2dp" />
-
- </LinearLayout>
-
- <ImageView
- android:layout_width="18dp"
- android:layout_height="18dp"
- android:src="@drawable/ic_open_in_new"
- android:tint="?attr/colorOnSurfaceVariant"
- android:contentDescription="Opens in browser" />
-
- </LinearLayout>
- </com.google.android.material.card.MaterialCardView>
-
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card_asa_online"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- app:cardCornerRadius="12dp"
- app:cardElevation="2dp">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="16dp"
- android:gravity="center_vertical">
-
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="ASA Online Learning"
- android:textAppearance="?attr/textAppearanceTitleSmall" />
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Self-paced online courses and study guides"
- android:textSize="12sp"
- android:textColor="?attr/colorOnSurfaceVariant"
- android:layout_marginTop="2dp" />
-
- </LinearLayout>
-
- <ImageView
- android:layout_width="18dp"
- android:layout_height="18dp"
- android:src="@drawable/ic_open_in_new"
- android:tint="?attr/colorOnSurfaceVariant"
- android:contentDescription="Opens in browser" />
-
- </LinearLayout>
- </com.google.android.material.card.MaterialCardView>
-
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card_flashcards"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- app:cardCornerRadius="12dp"
- app:cardElevation="2dp">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="16dp"
- android:gravity="center_vertical">
-
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Sailing Flashcards"
- android:textAppearance="?attr/textAppearanceTitleSmall" />
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Quizlet decks for knots, rules, lights &amp; signals"
- android:textSize="12sp"
- android:textColor="?attr/colorOnSurfaceVariant"
- android:layout_marginTop="2dp" />
-
- </LinearLayout>
-
- <ImageView
- android:layout_width="18dp"
- android:layout_height="18dp"
- android:src="@drawable/ic_open_in_new"
- android:tint="?attr/colorOnSurfaceVariant"
- android:contentDescription="Opens in browser" />
-
- </LinearLayout>
- </com.google.android.material.card.MaterialCardView>
-
</LinearLayout>
</ScrollView>