commit | c24a83bcc26ff0168f2f45e8d2bf291453316027 | [log] [tgz] |
---|---|---|
author | Wenyi Wang <wenyiw@google.com> | Tue Dec 15 13:10:01 2015 -0800 |
committer | Wenyi Wang <wenyiw@google.com> | Tue Dec 15 16:48:02 2015 -0800 |
tree | ccdbf48e8850481bd9f544d6aa74a2a93ea05ffc | |
parent | f76d293fa3cac9e7683084891ac29f0b95628ee0 [diff] |
Backport Context.getDrawable() Context.getDrawable() was added in API level 21. In order to backport it, we could use ContextCompat.getDrawable(). However, the code in PhoneCommon is built as part of master in packages/services/Telephony as well and it doesn't include the support library. Simply importing ContextCompat would break master, so we handle compatibility in the class itself. Bug: 25629359 Change-Id: I98a413a1b7e0a9a94a722059e18318e22939040d