Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void updateDrawState(@NonNull TextPaint ds) {
binding.txtLicense.setHighlightColor(Color.TRANSPARENT);

if (PlatformUtils.isAndroidTV(requireContext())) {
binding.txtAndroidtvBeta.setVisibility(View.VISIBLE);
binding.btnContinue.postDelayed(() -> binding.btnContinue.requestFocus(), 200);
}
}
Expand Down
16 changes: 15 additions & 1 deletion app/src/main/res/layout/fragment_firstinstall.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

<TextView
android:id="@+id/txt_androidtv_beta"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:textAlignment="center"
android:textColor="@color/nb_orange"
android:textStyle="italic"
android:text="@string/fragment_firstinstall_androidtv_beta"
android:visibility="gone"
app:layout_constraintTop_toBottomOf="@id/txt_license"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

<Button
android:id="@+id/btn_continue"
android:layout_width="0dp"
Expand All @@ -50,7 +64,7 @@
android:focusable="true"
android:focusableInTouchMode="false"
android:foreground="@drawable/focus_highlight"
app:layout_constraintTop_toBottomOf="@id/txt_license"
app:layout_constraintTop_toBottomOf="@id/txt_androidtv_beta"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<string name="fragment_firstinstall_txt">By default you will connect to NetBird\'s cloud servers. You can access the change_server menu to use another server.</string>
<string name="fragment_firstinstall_continue">Continue</string>
<string name="fragment_firstinstall_desc_logo">NetBird logo</string>
<string name="fragment_firstinstall_androidtv_beta">Android TV support is currently in beta. Some features may not work as expected.</string>


<string name="about_version">Version:&#160;</string>
Expand Down
Loading