Page MenuHomeGitPull.it

D140.1776243733.diff
No OneTemporary

Size
3 KB
Referenced Files
None
Subscribers
None

D140.1776243733.diff

diff --git a/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java b/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java
--- a/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java
+++ b/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java
@@ -421,20 +421,23 @@
resetListAdapter(adapter);
final ArrayList<String> routesWithNoPassages = lastUpdatedPalina.getRoutesNamesWithNoPassages();
- Collections.sort(routesWithNoPassages, new LinesNameSorter());
- noArrivalsAdapter = new RouteOnlyLineAdapter(routesWithNoPassages, null);
- if(noArrivalsRecyclerView!=null){
- noArrivalsRecyclerView.setAdapter(noArrivalsAdapter);
+ if(routesWithNoPassages.isEmpty()){
//hide the views if there are no empty routes
- if(routesWithNoPassages.isEmpty()){
- noArrivalsRecyclerView.setVisibility(View.GONE);
- noArrivalsTitleView.setVisibility(View.GONE);
- } else {
+ noArrivalsRecyclerView.setVisibility(View.GONE);
+ noArrivalsTitleView.setVisibility(View.GONE);
+ }else{
+ Collections.sort(routesWithNoPassages, new LinesNameSorter());
+ noArrivalsAdapter = new RouteOnlyLineAdapter(routesWithNoPassages, null);
+ if(noArrivalsRecyclerView!=null){
+ noArrivalsRecyclerView.setAdapter(noArrivalsAdapter);
+
noArrivalsRecyclerView.setVisibility(View.VISIBLE);
noArrivalsTitleView.setVisibility(View.VISIBLE);
+
}
}
+
//canaryEndView.setVisibility(View.VISIBLE);
//check if canaryEndView is visible
//boolean isCanaryVisibile = ViewUtils.Companion.isViewPartiallyVisibleInScroll(canaryEndView, theScrollView);
diff --git a/app/src/main/res/layout/entry_bus_line_passage.xml b/app/src/main/res/layout/entry_bus_line_passage.xml
--- a/app/src/main/res/layout/entry_bus_line_passage.xml
+++ b/app/src/main/res/layout/entry_bus_line_passage.xml
@@ -6,7 +6,8 @@
android:paddingTop="8dip"
android:paddingBottom="8dip"
android:paddingLeft="10dip"
- android:paddingRight="16dip">
+ android:paddingRight="16dip"
+>
<androidx.cardview.widget.CardView
@@ -19,7 +20,9 @@
android:layout_gravity="center_vertical"
app:cardBackgroundColor="@color/orange_500"
android:layout_marginEnd="6dp"
-
+ android:foreground="?android:attr/selectableItemBackground"
+ android:clickable="true"
+ android:focusable="true"
>
<RelativeLayout
android:layout_width="wrap_content"
diff --git a/app/src/main/res/layout/fragment_arrivals.xml b/app/src/main/res/layout/fragment_arrivals.xml
--- a/app/src/main/res/layout/fragment_arrivals.xml
+++ b/app/src/main/res/layout/fragment_arrivals.xml
@@ -117,6 +117,7 @@
android:layout_marginStart="12dp"
android:layout_marginEnd="12dp"
android:layout_marginRight="12dp"
+ android:visibility="gone"
/>

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 15, 11:02 (3 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1850533
Default Alt Text
D140.1776243733.diff (3 KB)

Event Timeline