Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2953833b authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Adding a utility method to iterate over folder contents

Change-Id: I9f17ade7dc06819587290387b811d828da57b2fb
parent 5df98da8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 {