OSDN Git Service

SecuritySettings: Fix KeyStore related NPE's
authorMarcos Marado <mmarado@cyngn.com>
Mon, 17 Oct 2016 18:31:46 +0000 (19:31 +0100)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Fri, 28 Oct 2016 10:03:00 +0000 (03:03 -0700)
commit7955711d5f9f55e889f65a8ec48c812ff900c4b3
tree398faee53402f091645c9a9a4406c23848b6a307
parenta12c0a3ff1fdaecf15813de454a5db2de966d5e5
SecuritySettings: Fix KeyStore related NPE's

Both "Show password" and "Credential storage" options depend on having
a KeyStore. However, KeyStore assumes that there's an
android.security.keystore service around. Let's validate if it indeed
exists and not show those two sections if it doesn't, in order to
avoid breakage.

Issue: BUGDUMP-7995106

Change-Id: I30b74057aae42e72387087d1c1d847dd8524f87f
src/com/android/settings/SecuritySettings.java