summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-04-30 04:42:27 (GMT)
committerSteve Kondik <steve@cyngn.com>2016-04-30 05:53:43 (GMT)
commit488da61b690e8271d357720b9d8a2904b2e5bd58 (patch)
treeaba8456d8749dde28d1c7a2b539b268eec8cd3a0 /src
parent66df087af526f38ef9aa1fa12043e3132cc3d868 (diff)
downloadandroid_packages_providers_ThemesProvider-488da61b690e8271d357720b9d8a2904b2e5bd58.zip
android_packages_providers_ThemesProvider-488da61b690e8271d357720b9d8a2904b2e5bd58.tar.gz
android_packages_providers_ThemesProvider-488da61b690e8271d357720b9d8a2904b2e5bd58.tar.bz2
themesprovider: Fix priority of verifier thread
* Thread.MIN_PRIORITY is not the same as an Android background process. The former has a nice of 1, and the latter as a nice of 10. Change-Id: Ic4d77f40915490a95cee01f57a9cf7f61c715d55
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemesProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemesProvider.java b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
index 930517f..f263881 100644
--- a/src/org/cyanogenmod/themes/provider/ThemesProvider.java
+++ b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
@@ -31,6 +31,7 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.os.Handler;
+import android.os.Process;
import android.preference.PreferenceManager;
import android.util.Log;
@@ -493,7 +494,7 @@ public class ThemesProvider extends ContentProvider {
}
public void run() {
- android.os.Process.setThreadPriority(Thread.MIN_PRIORITY);
+ Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
long start;