Revert "Add support for custom manta cling"
This reverts commit 68255cbabe.
This commit is contained in:
1 parent
8b4d91455a
commit
2ebcf509f0
5 files changed
+2
-56
No files matched your search
@@ -3732,18 +3732,6 @@ public final class Launcher extends Activity
|
||||
if (isClingsEnabled() &&
|
||||
!mSharedPrefs.getBoolean(Cling.WORKSPACE_CLING_DISMISSED_KEY, false) &&
|
||||
!skipCustomClingIfNoAccounts() ) {
|
||||
// If we're not using the default workspace layout, replace workspace cling
|
||||
// with a custom workspace cling (usually specified in an overlay)
|
||||
if (mSharedPrefs.getInt(LauncherProvider.DEFAULT_WORKSPACE_RESOURCE_ID, 0) != 0) {
|
||||
// Use a custom cling
|
||||
View cling = findViewById(R.id.workspace_cling);
|
||||
ViewGroup clingParent = (ViewGroup) cling.getParent();
|
||||
int clingIndex = clingParent.indexOfChild(cling);
|
||||
clingParent.removeViewAt(clingIndex);
|
||||
View customCling = mInflater.inflate(R.layout.custom_workspace_cling, clingParent, false);
|
||||
clingParent.addView(customCling, clingIndex);
|
||||
customCling.setId(R.id.workspace_cling);
|
||||
}
|
||||
initCling(R.id.workspace_cling, null, false, 0);
|
||||
} else {
|
||||
removeCling(R.id.workspace_cling);
|
||||
|
||||
Reference in new issue
Block a user