Loading app/src/main/java/foundation/e/apps/updates/UpdatesFragment.kt +7 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,13 @@ class UpdatesFragment : Fragment(R.layout.fragment_updates), FusedAPIInterface { listAdapter?.setData(it) binding.progressBar.visibility = View.GONE recyclerView.visibility = View.VISIBLE if (!it.isNullOrEmpty()) binding.button.isEnabled = true if (!it.isNullOrEmpty()) { binding.button.isEnabled = true binding.noUpdates.visibility = View.GONE } else { binding.noUpdates.visibility = View.VISIBLE binding.button.isEnabled = false } } } Loading app/src/main/res/drawable/ic_all_apps_updated.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2019-2021 E FOUNDATION ~ ~ This program is free software: you can redistribute it and/or modify ~ it under the terms of the GNU General Public License as published by ~ the Free Software Foundation, either version 3 of the License, or ~ (at your option) any later version. ~ ~ This program is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ~ GNU General Public License for more details. ~ ~ You should have received a copy of the GNU General Public License ~ along with this program. If not, see <https://www.gnu.org/licenses/>. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="80dp" android:height="80dp" android:viewportWidth="512" android:viewportHeight="512"> <path android:fillColor="@color/colorAccent" android:pathData="M435.848,83.466L172.804,346.51l-96.652,-96.652c-4.686,-4.686 -12.284,-4.686 -16.971,0l-28.284,28.284c-4.686,4.686 -4.686,12.284 0,16.971l133.421,133.421c4.686,4.686 12.284,4.686 16.971,0l299.813,-299.813c4.686,-4.686 4.686,-12.284 0,-16.971l-28.284,-28.284c-4.686,-4.686 -12.284,-4.686 -16.97,0z"/> </vector> app/src/main/res/layout/fragment_updates.xml +14 −0 Original line number Diff line number Diff line Loading @@ -85,4 +85,18 @@ app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@+id/guideline" /> <com.google.android.material.textview.MaterialTextView android:id="@+id/noUpdates" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_all_apps_updated" android:text="@string/all_apps_updated" android:textAlignment="center" android:textSize="18sp" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/guideline" /> </androidx.constraintlayout.widget.ConstraintLayout> No newline at end of file app/src/main/res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ </plurals> <string name="auto_updates_notification">App updates will be installed automatically</string> <string name="manual_updates_notification">App updates will not be installed automatically</string> <string name="all_apps_updated">All apps are up-to-date</string> <!-- Home Fragment --> <string name="discover">Discover</string> Loading Loading
app/src/main/java/foundation/e/apps/updates/UpdatesFragment.kt +7 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,13 @@ class UpdatesFragment : Fragment(R.layout.fragment_updates), FusedAPIInterface { listAdapter?.setData(it) binding.progressBar.visibility = View.GONE recyclerView.visibility = View.VISIBLE if (!it.isNullOrEmpty()) binding.button.isEnabled = true if (!it.isNullOrEmpty()) { binding.button.isEnabled = true binding.noUpdates.visibility = View.GONE } else { binding.noUpdates.visibility = View.VISIBLE binding.button.isEnabled = false } } } Loading
app/src/main/res/drawable/ic_all_apps_updated.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2019-2021 E FOUNDATION ~ ~ This program is free software: you can redistribute it and/or modify ~ it under the terms of the GNU General Public License as published by ~ the Free Software Foundation, either version 3 of the License, or ~ (at your option) any later version. ~ ~ This program is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ~ GNU General Public License for more details. ~ ~ You should have received a copy of the GNU General Public License ~ along with this program. If not, see <https://www.gnu.org/licenses/>. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="80dp" android:height="80dp" android:viewportWidth="512" android:viewportHeight="512"> <path android:fillColor="@color/colorAccent" android:pathData="M435.848,83.466L172.804,346.51l-96.652,-96.652c-4.686,-4.686 -12.284,-4.686 -16.971,0l-28.284,28.284c-4.686,4.686 -4.686,12.284 0,16.971l133.421,133.421c4.686,4.686 12.284,4.686 16.971,0l299.813,-299.813c4.686,-4.686 4.686,-12.284 0,-16.971l-28.284,-28.284c-4.686,-4.686 -12.284,-4.686 -16.97,0z"/> </vector>
app/src/main/res/layout/fragment_updates.xml +14 −0 Original line number Diff line number Diff line Loading @@ -85,4 +85,18 @@ app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@+id/guideline" /> <com.google.android.material.textview.MaterialTextView android:id="@+id/noUpdates" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_all_apps_updated" android:text="@string/all_apps_updated" android:textAlignment="center" android:textSize="18sp" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/guideline" /> </androidx.constraintlayout.widget.ConstraintLayout> No newline at end of file
app/src/main/res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ </plurals> <string name="auto_updates_notification">App updates will be installed automatically</string> <string name="manual_updates_notification">App updates will not be installed automatically</string> <string name="all_apps_updated">All apps are up-to-date</string> <!-- Home Fragment --> <string name="discover">Discover</string> Loading