summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-12-22 09:08:01 -0800
committerd34d <clark@cyngn.com>2015-12-22 09:10:43 -0800
commit8f6d97672d16df5ec37b5e1ce44923025c2ab2e7 (patch)
treed197022362484fbca6ac641631704f5006df1e8e
parent59167a41b6a7d469ae3b864d3f0d9a8caef7ba33 (diff)
downloadandroid_packages_providers_ThemesProvider-8f6d97672d16df5ec37b5e1ce44923025c2ab2e7.tar.gz
android_packages_providers_ThemesProvider-8f6d97672d16df5ec37b5e1ce44923025c2ab2e7.tar.bz2
android_packages_providers_ThemesProvider-8f6d97672d16df5ec37b5e1ce44923025c2ab2e7.zip
Use CmLockPatternUtils instead of LockPatternUtils
Change-Id: Ia7fda2761fb851fa70eee3dbf72c469957245b53
-rw-r--r--Android.mk3
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java5
2 files changed, 6 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index a763f72..ebce088 100644
--- a/Android.mk
+++ b/Android.mk
@@ -3,6 +3,9 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ org.cyanogenmod.platform.internal
+
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := ThemesProvider
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index 8e73843..2716b65 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -35,7 +35,8 @@ import android.provider.ThemesContract.MixnMatchColumns;
import android.provider.ThemesContract.ThemesColumns;
import android.provider.ThemesContract.ThemesColumns.InstallState;
import android.util.Log;
-import com.android.internal.widget.LockPatternUtils;
+
+import org.cyanogenmod.internal.util.CmLockPatternUtils;
import org.cyanogenmod.themes.provider.util.ProviderUtils;
import java.io.IOException;
@@ -389,7 +390,7 @@ public class ThemePackageHelper {
}
}
- LockPatternUtils lockPatternUtils = new LockPatternUtils(context);
+ CmLockPatternUtils lockPatternUtils = new CmLockPatternUtils(context);
if (lockPatternUtils.isThirdPartyKeyguardEnabled()) {
String[] projection = {MixnMatchColumns.COL_VALUE};
String selection = MixnMatchColumns.COL_KEY + "=?";