Commit 3c416c3a authored by Rohit's avatar Rohit
Browse files

LauncherDao: Add a query to get component name for given package

parent ffd43309
......@@ -20,6 +20,9 @@ public interface LauncherDao {
@Query("SELECT * FROM launcher_items ORDER BY container, screen_id, cell")
List<LauncherItem> getAllItems();
@Query("SELECT item_id FROM launcher_items WHERE package = :packageName")
String getComponentName(String packageName);
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAll(List<LauncherItem> launcherItems);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment