diff --git a/res/layout/activity_updates.xml b/res/layout/activity_updates.xml index ea89dff8eed1c06222545f0d2c1409f4c1aa6b4c..229e649172abbf4d6ae7b8b0f26bd40b97631447 100644 --- a/res/layout/activity_updates.xml +++ b/res/layout/activity_updates.xml @@ -33,12 +33,22 @@ android:paddingStart="16dp" app:layout_collapseMode="parallax"> + + @@ -92,13 +102,32 @@ android:textColor="?android:textColorSecondary" /> - + android:orientation="vertical" + android:visibility="gone" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + + + + diff --git a/res/values-en-rAU/strings.xml b/res/values-en-rAU/strings.xml index 00a6db0c949ac4c1d0359388d30c9cbfc4bf98e3..cc356341582a8ab6ba9ba71da8581c1ec54bf554 100644 --- a/res/values-en-rAU/strings.xml +++ b/res/values-en-rAU/strings.xml @@ -68,7 +68,7 @@ %1$s of %2$s%3$s %1$s of %2$s (%3$s) • %4$s Verifying update - No new updates found. To manually check for new updates, use the Refresh button. + You are running the latest /e/OS version. To manually check for updates, use the Refresh button. Download Pause Resume diff --git a/res/values-en-rCA/strings.xml b/res/values-en-rCA/strings.xml index 66ec6b89e0f7be7cf3cbf021a996650517ae2691..045d1f8e269c8bed3f1e38a05b5975d03caa9060 100644 --- a/res/values-en-rCA/strings.xml +++ b/res/values-en-rCA/strings.xml @@ -68,7 +68,7 @@ %1$s of %2$s%3$s %1$s of %2$s (%3$s) • %4$s Verifying update - No new updates found. To manually check for new updates, use the Refresh button. + You are running the latest /e/OS version. To manually check for updates, use the Refresh button. Download Pause Resume diff --git a/res/values-en-rGB/strings.xml b/res/values-en-rGB/strings.xml index 0d632db249be8bbc91c3ef352362bcd798479fda..4f8c887657805ba050efee958af3797b9d3287e5 100644 --- a/res/values-en-rGB/strings.xml +++ b/res/values-en-rGB/strings.xml @@ -68,7 +68,7 @@ %1$s of %2$s%3$s %1$s of %2$s (%3$s) • %4$s Verifying update - No new updates found. To manually check for new updates, use the Refresh button. + You are running the latest /e/OS version. To manually check for updates, use the Refresh button. Download Pause Resume diff --git a/res/values-en-rIN/strings.xml b/res/values-en-rIN/strings.xml index 0d632db249be8bbc91c3ef352362bcd798479fda..4f8c887657805ba050efee958af3797b9d3287e5 100644 --- a/res/values-en-rIN/strings.xml +++ b/res/values-en-rIN/strings.xml @@ -68,7 +68,7 @@ %1$s of %2$s%3$s %1$s of %2$s (%3$s) • %4$s Verifying update - No new updates found. To manually check for new updates, use the Refresh button. + You are running the latest /e/OS version. To manually check for updates, use the Refresh button. Download Pause Resume diff --git a/res/values/strings.xml b/res/values/strings.xml index 8269a8615de87e222e6b40e744a703f05bdc67c0..bdcb97a711d324daeaf055355baed32989f357b5 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -98,7 +98,7 @@ %1$s of %2$s%3$s %1$s of %2$s (%3$s) • %4$s Verifying update - No new updates found. To manually check for new updates, use the Refresh button. + You are running the latest /e/OS version. To manually check for updates, use the Refresh button. Download Pause @@ -155,4 +155,7 @@ New updates Ongoing downloads Update failed + + Available updates: + Current version: diff --git a/src/org/lineageos/updater/UpdatesActivity.java b/src/org/lineageos/updater/UpdatesActivity.java index ffb476bb871edb33bea1b5b660c8665326a92893..5da06c858abebbfe4d4c4532128037e8a69a3f89 100644 --- a/src/org/lineageos/updater/UpdatesActivity.java +++ b/src/org/lineageos/updater/UpdatesActivity.java @@ -288,10 +288,10 @@ public class UpdatesActivity extends UpdatesListActivity { List sortedUpdates = controller.getUpdates(); if (sortedUpdates.isEmpty()) { findViewById(R.id.no_new_updates_view).setVisibility(View.VISIBLE); - findViewById(R.id.recycler_view).setVisibility(View.GONE); + findViewById(R.id.content).setVisibility(View.GONE); } else { findViewById(R.id.no_new_updates_view).setVisibility(View.GONE); - findViewById(R.id.recycler_view).setVisibility(View.VISIBLE); + findViewById(R.id.content).setVisibility(View.VISIBLE); sortedUpdates.sort((u1, u2) -> Long.compare(u2.getTimestamp(), u1.getTimestamp())); for (UpdateInfo update : sortedUpdates) { updateIds.add(update.getDownloadId()); @@ -431,7 +431,7 @@ public class UpdatesActivity extends UpdatesListActivity { mRefreshIconView.setEnabled(false); } } else { - findViewById(R.id.recycler_view).setVisibility(View.GONE); + findViewById(R.id.content).setVisibility(View.GONE); findViewById(R.id.no_new_updates_view).setVisibility(View.GONE); findViewById(R.id.refresh_progress).setVisibility(View.VISIBLE); } @@ -446,7 +446,7 @@ public class UpdatesActivity extends UpdatesListActivity { } else { findViewById(R.id.refresh_progress).setVisibility(View.GONE); if (mAdapter.getItemCount() > 0) { - findViewById(R.id.recycler_view).setVisibility(View.VISIBLE); + findViewById(R.id.content).setVisibility(View.VISIBLE); } else { findViewById(R.id.no_new_updates_view).setVisibility(View.VISIBLE); }