Refactor: Moved the Adapters to there correct locations.

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-06-17 17:01:33 +01:00
parent f8d729e5ad
commit ff990ba7ef
8 changed files with 12 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
package com.github.droidworksstudio.launcher.ui.drawer
package com.github.droidworksstudio.launcher.adapter.drawer
import android.annotation.SuppressLint
import android.view.LayoutInflater
@@ -9,6 +9,7 @@ import com.github.droidworksstudio.launcher.data.entities.AppInfo
import com.github.droidworksstudio.launcher.databinding.ItemDrawBinding
import com.github.droidworksstudio.launcher.helper.PreferenceHelper
import com.github.droidworksstudio.launcher.listener.OnItemClickedListener
import com.github.droidworksstudio.launcher.ui.drawer.DrawViewHolder
class DrawAdapter(
private val onAppClickedListener: OnItemClickedListener.OnAppsClickedListener,

View File

@@ -1,4 +1,4 @@
package com.github.droidworksstudio.launcher.ui.favorite
package com.github.droidworksstudio.launcher.adapter.favorite
import android.util.Log
import android.view.LayoutInflater
@@ -10,6 +10,7 @@ import com.github.droidworksstudio.launcher.databinding.ItemFavoriteBinding
import com.github.droidworksstudio.launcher.helper.PreferenceHelper
import com.github.droidworksstudio.launcher.listener.OnItemClickedListener
import com.github.droidworksstudio.launcher.listener.OnItemMoveListener
import com.github.droidworksstudio.launcher.ui.favorite.FavoriteViewHolder
class FavoriteAdapter(
private val onAppClickedListener:

View File

@@ -1,4 +1,4 @@
package com.github.droidworksstudio.launcher.ui.hidden
package com.github.droidworksstudio.launcher.adapter.hidden
import android.util.Log
import android.view.LayoutInflater
@@ -9,6 +9,7 @@ import com.github.droidworksstudio.launcher.data.entities.AppInfo
import com.github.droidworksstudio.launcher.databinding.ItemHiddenBinding
import com.github.droidworksstudio.launcher.helper.PreferenceHelper
import com.github.droidworksstudio.launcher.listener.OnItemClickedListener
import com.github.droidworksstudio.launcher.ui.hidden.HiddenViewHolder
class HiddenAdapter(
private val onAppClickedListener: OnItemClickedListener.OnAppsClickedListener,

View File

@@ -1,4 +1,4 @@
package com.github.droidworksstudio.launcher.ui.home
package com.github.droidworksstudio.launcher.adapter.home
import android.annotation.SuppressLint
import android.view.LayoutInflater
@@ -9,6 +9,7 @@ import com.github.droidworksstudio.launcher.data.entities.AppInfo
import com.github.droidworksstudio.launcher.databinding.ItemHomeBinding
import com.github.droidworksstudio.launcher.helper.PreferenceHelper
import com.github.droidworksstudio.launcher.listener.OnItemClickedListener
import com.github.droidworksstudio.launcher.ui.home.HomeViewHolder
import javax.inject.Inject
class HomeAdapter @Inject constructor(

View File

@@ -24,6 +24,7 @@ import com.github.droidworksstudio.common.searchOnPlayStore
import com.github.droidworksstudio.common.showKeyboard
import com.github.droidworksstudio.common.showLongToast
import com.github.droidworksstudio.launcher.R
import com.github.droidworksstudio.launcher.adapter.drawer.DrawAdapter
import com.github.droidworksstudio.launcher.data.entities.AppInfo
import com.github.droidworksstudio.launcher.databinding.FragmentDrawBinding
import com.github.droidworksstudio.launcher.helper.AppHelper

View File

@@ -19,6 +19,7 @@ import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.github.droidworksstudio.common.launchApp
import com.github.droidworksstudio.common.showLongToast
import com.github.droidworksstudio.launcher.R
import com.github.droidworksstudio.launcher.adapter.favorite.FavoriteAdapter
import com.github.droidworksstudio.launcher.data.entities.AppInfo
import com.github.droidworksstudio.launcher.databinding.FragmentFavoriteBinding
import com.github.droidworksstudio.launcher.helper.AppHelper

View File

@@ -16,6 +16,7 @@ import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.github.droidworksstudio.common.launchApp
import com.github.droidworksstudio.common.showLongToast
import com.github.droidworksstudio.launcher.R
import com.github.droidworksstudio.launcher.adapter.hidden.HiddenAdapter
import com.github.droidworksstudio.launcher.data.entities.AppInfo
import com.github.droidworksstudio.launcher.databinding.FragmentHiddenBinding
import com.github.droidworksstudio.launcher.helper.AppHelper

View File

@@ -31,6 +31,7 @@ import com.github.droidworksstudio.common.openBatteryManager
import com.github.droidworksstudio.common.showLongToast
import com.github.droidworksstudio.launcher.R
import com.github.droidworksstudio.launcher.accessibility.ActionService
import com.github.droidworksstudio.launcher.adapter.home.HomeAdapter
import com.github.droidworksstudio.launcher.data.entities.AppInfo
import com.github.droidworksstudio.launcher.databinding.FragmentHomeBinding
import com.github.droidworksstudio.launcher.helper.AppHelper