mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Adding a utility method to iterate over folder contents
Change-Id: I9f17ade7dc06819587290387b811d828da57b2fb
This commit is contained in:
@@ -120,6 +120,7 @@ import java.io.PrintWriter;
|
||||
import java.text.DateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
@@ -4878,6 +4879,14 @@ public class Launcher extends Activity
|
||||
}.executeOnExecutor(Utilities.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
}
|
||||
|
||||
public static List<View> getFolderContents(View icon) {
|
||||
if (icon instanceof FolderIcon) {
|
||||
return ((FolderIcon) icon).getFolder().getItemsInReadingOrder();
|
||||
} else {
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface DebugIntents {
|
||||
|
||||
Reference in New Issue
Block a user