example/network: use correct app event filter

This change allows the example/network from gomobile to compile
correctly.

Change-Id: Id0f722796e0224ec4a7c06b163a25a4f3a5fbcb3
Reviewed-on: https://go-review.googlesource.com/12471
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Florin Patan 2015-07-21 15:56:58 +02:00 коммит произвёл Hyang-Ah Hana Kim
Родитель 5f9cda1c8a
Коммит 6256dc3e64
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -41,7 +41,6 @@ import (
"net/http"
"golang.org/x/mobile/app"
"golang.org/x/mobile/event"
"golang.org/x/mobile/event/config"
"golang.org/x/mobile/event/paint"
"golang.org/x/mobile/exp/app/debug"
@ -55,7 +54,7 @@ func main() {
app.Main(func(a app.App) {
var c config.Event
for e := range a.Events() {
switch e := event.Filter(e).(type) {
switch e := app.Filter(e).(type) {
case config.Event:
c = e
case paint.Event: