OSDN Git Service

Provide some compatibility story for devs in the past
authorJason Monk <jmonk@google.com>
Fri, 24 Feb 2017 21:57:40 +0000 (16:57 -0500)
committerJason Monk <jmonk@google.com>
Mon, 27 Feb 2017 14:21:53 +0000 (09:21 -0500)
commitbd9836496cc4fb7ba5ae14c6a3091ec06ee40e35
treedb60667bbdb8d05471bf5fba2050ed65dc570b59
parent194f375979c6d92bf8ce54d21a342acccbfc7530
Provide some compatibility story for devs in the past

They should be providing themes when resolving certain resources,
but they aren't anyway, so try to provide it free of charge, when
possible. Also, nothing is ever free.

Test: Open app that uses old/bad resource methods
Change-Id: Icd57aadf1202ddffb1dd73ab45119fae7e5d6130
Fixes: 35656110
core/java/android/app/ContextImpl.java
core/java/android/content/res/CompatResources.java [new file with mode: 0644]