feat: Reimplement Caddy and App drawer folder
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
1 parent
5a42aa84f4
commit
accc3e8a10
4 files changed
+17
-3
No files matched your search
@@ -23,6 +23,7 @@ Compatibility list:
|
||||
* Disable OEM override on launcher settings, (reimplement `ENABLE_AUTO_INSTALLS_LAYOUT` | c51b2a221838aefb610b7146fc4ef7cb34e5e495)
|
||||
* [Lawnchair/Iconloaderlib] Reimplement custom app name
|
||||
* [Lawnchair] Reimplement Launcher3 debug page
|
||||
* [Lawnchair] Reimplement Caddy and App drawer folder
|
||||
|
||||
### Development 2
|
||||
|
||||
|
||||
@@ -19,5 +19,8 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/BaseIcon"
|
||||
android:textColor="?attr/folderTextColor"
|
||||
android:includeFontPadding="false"
|
||||
launcher:iconDisplay="drawer_folder" />
|
||||
android:hapticFeedbackEnabled="false"
|
||||
launcher:iconDisplay="drawer_folder"
|
||||
launcher:centerVertically="true" />
|
||||
@@ -25,8 +25,8 @@
|
||||
android:paddingLeft="@dimen/dynamic_grid_cell_padding_x"
|
||||
android:paddingRight="@dimen/dynamic_grid_cell_padding_x"
|
||||
android:focusable="true" >
|
||||
<com.android.launcher3.BubbleTextView
|
||||
style="@style/BaseIcon"
|
||||
<com.android.launcher3.views.DoubleShadowBubbleTextView
|
||||
style="@style/BaseIcon.AllApps"
|
||||
android:id="@+id/folder_icon_name"
|
||||
android:focusable="false"
|
||||
android:layout_gravity="top"
|
||||
|
||||
@@ -43,6 +43,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.android.launcher3.BubbleTextView;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.allapps.search.SearchAdapterProvider;
|
||||
import com.android.launcher3.folder.FolderIcon;
|
||||
import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.model.data.FolderInfo;
|
||||
import com.android.launcher3.views.ActivityContext;
|
||||
@@ -352,6 +353,15 @@ public abstract class BaseAllAppsAdapter<T extends Context & ActivityContext> ex
|
||||
case VIEW_TYPE_WORK_EDU_CARD:
|
||||
((WorkEduCard) holder.itemView).setPosition(position);
|
||||
break;
|
||||
case VIEW_TYPE_FOLDER:
|
||||
// LC: Caddy/Folder in allapps 86b2b025a4f23a068818274020f37ad6d5268363
|
||||
FolderInfo folderInfo = mApps.getAdapterItems().get(position).folderInfo;
|
||||
ViewGroup container = (ViewGroup) holder.itemView;
|
||||
container.removeAllViews();
|
||||
container.addView(
|
||||
FolderIcon.inflateFolderAndIcon(R.layout.all_apps_folder_icon, mActivityContext,
|
||||
container, folderInfo));
|
||||
break;
|
||||
default:
|
||||
if (mAdapterProvider.isViewSupported(holder.getItemViewType())) {
|
||||
mAdapterProvider.onBindView(holder, position);
|
||||
|
||||
Reference in new issue
Block a user