Skip to content

Commit

Permalink
shuffle album after loading photos
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilgore90 committed Jul 25, 2021
1 parent f05bc5a commit 7861f2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 2021-07-25

### photos-app:0.3.1
* Enhancement: #1 - if enabled, shuffle album after loading photos (for first iteration)

## 2021-06-11

### photos-app:0.3.0
Expand Down
2 changes: 1 addition & 1 deletion packageManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"required": true,
"oauth": true,
"primary": true,
"version": "0.3.0"
"version": "0.3.1"
}
],
"drivers": [
Expand Down
5 changes: 4 additions & 1 deletion photos-app.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import groovy.json.JsonSlurper
* from the copyright holder
* Software is provided without warranty and your use of it is at your own risk.
*
* version: 0.3.0
* version: 0.3.1
*/

definition(
Expand Down Expand Up @@ -417,6 +417,9 @@ def handlePhotosList(resp, data) {
state.index = 0
if (respJson.nextPageToken) {
loadPhotos(false, respJson.nextPageToken)
} else if (shuffle) {
logDebug('Shuffling photo order...')
Collections.shuffle(state.photos)
}
}
}
Expand Down

0 comments on commit 7861f2a

Please sign in to comment.