clockwise icon indicating copy to clipboard operation
clockwise copied to clipboard

Switching between watchfaces causes Leaked Receiver exception

Open AdrianLxM opened this issue 9 years ago • 0 comments

When switching between watchfaces, often causes an exception:

06-09 16:47:00.203 6048-6048/com.dexdrip.stephenblack.nightwatch E/ActivityThread﹕ Service com.dexdrip.stephenblack.nightwatch.LargeHome has leaked IntentReceiver android.support.wearable.watchface.WatchFaceService$Engine$1@371daab0 that was originally registered here. Are you missing a call to unregisterReceiver()?

My idea why this could happen: Every time, a Watchface gets instantiated, it creates a new Engine (Line 56)

Aparently "onCreate()" is called as it registers the Receiver (Line 281), but "onDestroy()" might be not..

AdrianLxM avatar Jun 10 '15 11:06 AdrianLxM