Add tags field to the apps table
This commit is contained in:
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
||||
### 5.5.4
|
||||
|
||||
* Added `icon` meta tag
|
||||
* Added `private_mode` meta tag
|
||||
* Added `calendar:enabled_calendar_ids()` method
|
||||
|
||||
### 5.5.1
|
||||
|
||||
* Added `calendar:is_holiday()` method
|
||||
|
||||
### 5.5.0
|
||||
|
||||
* Added `aio:add_todo()` method
|
||||
|
||||
### 5.3.5
|
||||
|
||||
* Added `ai` module
|
||||
|
||||
19
README.md
19
README.md
@@ -26,6 +26,10 @@ The type of script is determined by the line (meta tag) at the beginning of the
|
||||
|
||||
# Changelog
|
||||
|
||||
### 5.7.1
|
||||
|
||||
* Added `tags` field to the app table
|
||||
|
||||
### 5.7.0
|
||||
|
||||
* Added `ui:show_image(uri)` method
|
||||
@@ -40,20 +44,6 @@ The type of script is determined by the line (meta tag) at the beginning of the
|
||||
* Added `ui:set_edit_mode_buttons()` method
|
||||
* Added size argument to `widgets:request_updates()` method
|
||||
|
||||
### 5.5.4
|
||||
|
||||
* Added `icon` meta tag
|
||||
* Added `private_mode` meta tag
|
||||
* Added `calendar:enabled_calendar_ids()` method
|
||||
|
||||
### 5.5.1
|
||||
|
||||
* Added `calendar:is_holiday()` method
|
||||
|
||||
### 5.5.0
|
||||
|
||||
* Added `aio:add_todo()` method
|
||||
|
||||
[Full changelog](CHANGELOG.md)
|
||||
|
||||
# Widget scripts
|
||||
@@ -469,6 +459,7 @@ The format of the apps table:
|
||||
`hidden` - true if the application is hidden;
|
||||
`suspended` - true if the application is suspended;
|
||||
`category_id` - category ID;
|
||||
`tags` - array of tags;
|
||||
`badge` - number on the badge;
|
||||
`icon` - icon of the application in the form of a link (can be used in the side menu scripts).
|
||||
```
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
all_apps = {}
|
||||
|
||||
function on_resume()
|
||||
all_apps = apps:get_list("launch_count")
|
||||
all_apps = apps:list("launch_count")
|
||||
|
||||
if (next(all_apps) == nil) then
|
||||
ui:show_text("The list of apps is not ready yet")
|
||||
|
||||
8
samples/apps-sample2.lua
Normal file
8
samples/apps-sample2.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
-- Dumps app info table
|
||||
|
||||
app_pkg = "com.android.calendar"
|
||||
|
||||
function on_load()
|
||||
local calendar_app = apps:app(app_pkg)
|
||||
ui:show_text("%%txt%%"..serialize(calendar_app))
|
||||
end
|
||||
Reference in New Issue
Block a user