Skip to content

Commit 518b3a5

Browse files
authored
Remove route change notification UI elements (#110)
This restores the intent of PR #105 which removed the route change notification feature. PR #100 accidentally reintroduced these elements due to a force push that overwrote PR #105 changes."
1 parent a660647 commit 518b3a5

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

app/src/main/java/io/netbird/client/ui/home/HomeFragment.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ public View onCreateView(@NonNull LayoutInflater inflater,
110110
});
111111

112112
if (PlatformUtils.isAndroidTV(requireContext())) {
113-
binding.btnRouteChanged.setFocusable(false);
114-
binding.btnRouteChanged.setFocusableInTouchMode(false);
115-
116113
root.postDelayed(() -> {
117114
if (buttonConnect != null && buttonConnect.isEnabled()) {
118115
buttonConnect.requestFocus();

app/src/main/res/layout/fragment_home.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,6 @@
100100
app:layout_constraintStart_toStartOf="parent"
101101
app:layout_constraintEnd_toEndOf="parent" />
102102

103-
<ImageButton
104-
android:id="@+id/btn_route_changed"
105-
android:layout_width="wrap_content"
106-
android:layout_height="wrap_content"
107-
android:layout_marginStart="8dp"
108-
android:background="@drawable/focus_highlight_button"
109-
android:contentDescription="@string/main_desc_new_route_notification"
110-
android:focusable="true"
111-
android:focusableInTouchMode="false"
112-
android:padding="8dp"
113-
android:src="@drawable/ic_menu_about"
114-
app:tint="@color/nb_orange"
115-
app:layout_constraintStart_toEndOf="@id/text_connection_status"
116-
app:layout_constraintTop_toTopOf="@id/text_connection_status"
117-
app:layout_constraintBottom_toBottomOf="@id/text_connection_status" />
118-
119103
</androidx.constraintlayout.widget.ConstraintLayout>
120104

121105
<View

app/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<string name="main_status_disconnected">Disconnected</string>
1616
<string name="main_desc_bg_mask">background mask</string>
1717
<string name="main_desc_connect">connect-disconnect</string>
18-
<string name="main_desc_new_route_notification">new route notification</string>
1918

2019
<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>
2120
<string name="fragment_firstinstall_continue">Continue</string>

0 commit comments

Comments
 (0)