mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Implement LauncherLayoutSnapshot pulled atom callback.
This change will pull only the workspace items but not the launcher settings such as grid layout etc. Future CLs will address it. Bug: 181703659 Test: Manual-`statsd_testdrive 10108` http://gpaste/4894958784872448 Change-Id: I0e7d7da62034c411edb26ff9205a81b0e2e891a0
This commit is contained in:
@@ -40,19 +40,21 @@ public class ModelDelegate implements ResourceBasedOverride {
|
||||
* Creates and initializes a new instance of the delegate
|
||||
*/
|
||||
public static ModelDelegate newInstance(
|
||||
Context context, LauncherAppState app, AllAppsList appsList, BgDataModel dataModel) {
|
||||
Context context, LauncherAppState app, AllAppsList appsList, BgDataModel dataModel,
|
||||
boolean isPrimaryInstance) {
|
||||
ModelDelegate delegate = Overrides.getObject(
|
||||
ModelDelegate.class, context, R.string.model_delegate_class);
|
||||
|
||||
delegate.mApp = app;
|
||||
delegate.mAppsList = appsList;
|
||||
delegate.mDataModel = dataModel;
|
||||
delegate.mIsPrimaryInstance = isPrimaryInstance;
|
||||
return delegate;
|
||||
}
|
||||
|
||||
protected LauncherAppState mApp;
|
||||
protected AllAppsList mAppsList;
|
||||
protected BgDataModel mDataModel;
|
||||
protected boolean mIsPrimaryInstance;
|
||||
|
||||
public ModelDelegate() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user