Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F12958147
D140.1776243733.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D140.1776243733.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D140: Fix useless message showing when not necessary in arrivals
Attached
Detach File
Event Timeline
Log In to Comment