LineageParts: Reenable stats

Change-Id: I551112beba3278eb3a3101c20384339ca296f414
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a8ba90d..152ddd5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -190,7 +190,6 @@
         </activity-alias>
 
         <!-- Anonymous Statistics -->
-        <!--
         <receiver android:name=".lineagestats.ReportingServiceManager"
             android:enabled="true"
             android:exported="false"
@@ -214,7 +213,6 @@
                  android:label="ReportingService"
                  android:enabled="true"
                  android:exported="false" />
-        -->
 
         <!-- Weather settings -->
         <activity-alias
diff --git a/res/xml/privacy_settings.xml b/res/xml/privacy_settings.xml
index 74f2570..7ad0a3f 100644
--- a/res/xml/privacy_settings.xml
+++ b/res/xml/privacy_settings.xml
@@ -29,12 +29,4 @@
             android:targetClass="com.android.settings.applications.ProtectedAppsActivity" />
     </Preference>
 
-    <!-- Anonymous statistics - (LineageStats) -->
-    <PreferenceScreen
-        android:key="lineagestats"
-        android:title="@string/anonymous_statistics_title"
-        android:summary="@string/anonymous_statistics_summary"
-        android:fragment="org.lineageos.lineageparts.lineagestats.AnonymousStats" >
-    </PreferenceScreen>
-
 </PreferenceScreen>
diff --git a/src/org/lineageos/lineageparts/lineagestats/ReportingService.java b/src/org/lineageos/lineageparts/lineagestats/ReportingService.java
index d413150..473e76b 100644
--- a/src/org/lineageos/lineageparts/lineagestats/ReportingService.java
+++ b/src/org/lineageos/lineageparts/lineagestats/ReportingService.java
@@ -60,7 +60,7 @@
 
         // set job types
         lineageBundle.putInt(StatsUploadJobService.KEY_JOB_TYPE,
-                StatsUploadJobService.JOB_TYPE_LineageORG);
+                StatsUploadJobService.JOB_TYPE_LINEAGEORG);
 
         // schedule lineage stats upload
         js.schedule(new JobInfo.Builder(lineageOrgJobId, new ComponentName(getPackageName(),
diff --git a/src/org/lineageos/lineageparts/lineagestats/StatsUploadJobService.java b/src/org/lineageos/lineageparts/lineagestats/StatsUploadJobService.java
index 93b4d60..8526650 100644
--- a/src/org/lineageos/lineageparts/lineagestats/StatsUploadJobService.java
+++ b/src/org/lineageos/lineageparts/lineagestats/StatsUploadJobService.java
@@ -45,7 +45,7 @@
     private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
 
     public static final String KEY_JOB_TYPE = "job_type";
-    public static final int JOB_TYPE_LineageORG = 1;
+    public static final int JOB_TYPE_LINEAGEORG = 1;
 
     public static final String KEY_UNIQUE_ID = "uniqueId";
     public static final String KEY_DEVICE_NAME = "deviceName";
@@ -115,7 +115,7 @@
             int jobType = extras.getInt(KEY_JOB_TYPE, -1);
             if (!isCancelled()) {
                 switch (jobType) {
-                    case JOB_TYPE_LineageORG:
+                    case JOB_TYPE_LINEAGEORG:
                         try {
                             JSONObject json = buildStatsRequest(deviceId, deviceName,
                                     deviceVersion, deviceCountry, deviceCarrier, deviceCarrierId);