Splitties icon indicating copy to clipboard operation
Splitties copied to clipboard

Add lint warning for AppCtx

Open LouisCAD opened this issue 8 years ago • 0 comments

A persistent lint warning should be present for any Context.injectAsAppCtx() usage since it's potentially unsafe to use. This should escalate to fatal if directly called with a subclass of the types know to Context.canLeakMemory().

There could also lint warnings when using appCtx to get resources that are commonly invalidated with common configuration changes (dimensions with screen rotation for example) or which rely on theme.

LouisCAD avatar Dec 18 '17 23:12 LouisCAD