Skip to content

Commit

Permalink
chore: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Sep 9, 2024
1 parent 5760d84 commit cebcc9a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down Expand Up @@ -168,7 +168,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down Expand Up @@ -228,7 +228,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down
6 changes: 3 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down Expand Up @@ -167,7 +167,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down Expand Up @@ -227,7 +227,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-action/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-recognizer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down
2 changes: 1 addition & 1 deletion examples/quick-start/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {

deviceFinder := toolkit.NewAdbDeviceFinder()
deviceFinder.Find()
device := deviceFinder.Get(0)
device := deviceFinder.List()[0]
ctrl := maa.NewAdbController(
device.GetAdbPath(),
device.GetAddress(),
Expand Down

0 comments on commit cebcc9a

Please sign in to comment.