Removing unnecessary work adapter wrapper
Simplifying view type constants to make it easier to add new view types Bug: 234008165 Test: Verified on device Change-Id: I96589ceba362ea7e75afdfc3fe8da3be214aa682
This commit is contained in:
1 parent
6c057718ac
commit
cba5f9a64e
8 files changed
+87
-172
No files matched your search
@@ -30,7 +30,6 @@ import androidx.recyclerview.widget.RecyclerView.ViewHolder;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.allapps.ActivityAllAppsContainerView;
|
||||
import com.android.launcher3.allapps.AllAppsPagedView;
|
||||
import com.android.launcher3.allapps.WorkAdapterProvider;
|
||||
import com.android.launcher3.allapps.WorkEduCard;
|
||||
import com.android.launcher3.allapps.WorkPausedCard;
|
||||
import com.android.launcher3.allapps.WorkProfileManager;
|
||||
@@ -155,7 +154,7 @@ public class WorkProfileTest extends AbstractLauncherUiTest {
|
||||
public void testEdu() {
|
||||
waitForWorkTabSetup();
|
||||
executeOnLauncher(l -> {
|
||||
l.getSharedPrefs().edit().putInt(WorkAdapterProvider.KEY_WORK_EDU_STEP, 0).commit();
|
||||
l.getSharedPrefs().edit().putInt(WorkProfileManager.KEY_WORK_EDU_STEP, 0).commit();
|
||||
((AllAppsPagedView) l.getAppsView().getContentView()).setCurrentPage(WORK_PAGE);
|
||||
l.getAppsView().getWorkManager().reset();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user