diff --git a/app/src/main/java/com/github/libretube/Home.kt b/app/src/main/java/com/github/libretube/Home.kt index 9c78c562a..aeea5434f 100644 --- a/app/src/main/java/com/github/libretube/Home.kt +++ b/app/src/main/java/com/github/libretube/Home.kt @@ -9,6 +9,7 @@ import android.widget.ProgressBar import android.widget.Toast import androidx.fragment.app.Fragment import androidx.lifecycle.lifecycleScope +import androidx.navigation.fragment.findNavController import androidx.preference.PreferenceManager import androidx.recyclerview.widget.GridLayoutManager import androidx.recyclerview.widget.RecyclerView @@ -40,6 +41,11 @@ class Home : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) + val searchButton = view.findViewById(R.id.search_fab) + searchButton.setOnClickListener { + findNavController().navigate(R.id.searchFragment) + } val recyclerView = view.findViewById(R.id.recview) val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(requireContext()) val grid = sharedPreferences.getString( diff --git a/app/src/main/res/drawable/ic_arrow_down2.xml b/app/src/main/res/drawable/ic_arrow_down2.xml deleted file mode 100644 index e8123164a..000000000 --- a/app/src/main/res/drawable/ic_arrow_down2.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_close2.xml b/app/src/main/res/drawable/ic_close2.xml deleted file mode 100644 index 3d79675c2..000000000 --- a/app/src/main/res/drawable/ic_close2.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_wifi_off.xml b/app/src/main/res/drawable/ic_no_wifi.xml similarity index 100% rename from app/src/main/res/drawable/ic_wifi_off.xml rename to app/src/main/res/drawable/ic_no_wifi.xml diff --git a/app/src/main/res/drawable/ic_search2.xml b/app/src/main/res/drawable/ic_search2.xml deleted file mode 100644 index 5188b2a93..000000000 --- a/app/src/main/res/drawable/ic_search2.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/layout/activity_nointernet.xml b/app/src/main/res/layout/activity_nointernet.xml index 9303bc516..69874d73e 100644 --- a/app/src/main/res/layout/activity_nointernet.xml +++ b/app/src/main/res/layout/activity_nointernet.xml @@ -22,7 +22,7 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:srcCompat="@drawable/ic_wifi_off" /> + app:srcCompat="@drawable/ic_no_wifi" /> - +