File tree Expand file tree Collapse file tree 3 files changed +32
-5
lines changed
app/src/main/java/net/kollnig/missioncontrol/data Expand file tree Collapse file tree 3 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,22 @@ public void loadSettings(Context c) {
99
99
subset .remove ("Uncategorised | Adobe Systems" );
100
100
subset .add ("Uncategorised | Adobe" );
101
101
}
102
+ if (subset .contains ("FingerprintingGeneral" )) {
103
+ subset .remove ("FingerprintingGeneral" );
104
+ subset .add ("Fingerprinting" );
105
+ }
106
+ if (subset .contains ("FingerprintingInvasive" )) {
107
+ subset .remove ("FingerprintingInvasive" );
108
+ subset .add ("Fingerprinting" );
109
+ }
110
+ if (subset .contains ("EmailStrict" )) {
111
+ subset .remove ("EmailStrict" );
112
+ subset .add ("Email" );
113
+ }
114
+ if (subset .contains ("EmailAggressive" )) {
115
+ subset .remove ("EmailAggressive" );
116
+ subset .add ("Email" );
117
+ }
102
118
103
119
// Retrieve uid
104
120
int uid = -1 ;
Original file line number Diff line number Diff line change @@ -76,18 +76,14 @@ public String getDisplayName(Context c) {
76
76
case "Analytics" :
77
77
return c .getString (R .string .tracker_analytics );
78
78
case "Content" :
79
- case "Anti-fraud" :
80
79
return c .getString (R .string .tracker_content );
81
80
case "Cryptomining" :
82
81
return c .getString (R .string .tracker_cryptomining );
83
- case "FingerprintingGeneral" :
84
- case "FingerprintingInvasive" :
82
+ case "Fingerprinting" :
85
83
return c .getString (R .string .tracker_fingerprinting );
86
84
case "Social" :
87
85
return c .getString (R .string .tracker_social );
88
86
case "Email" :
89
- case "EmailStrict" :
90
- case "EmailAggressive" :
91
87
return c .getString (R .string .tracker_email );
92
88
case UNCATEGORISED :
93
89
default :
Original file line number Diff line number Diff line change @@ -383,6 +383,21 @@ private void loadDisconnectTrackers(Context c) {
383
383
// Found tracker, now add to list
384
384
JSONObject jsonTracker = category .getJSONObject (i );
385
385
String trackerName = jsonTracker .keys ().next ();
386
+
387
+ switch (categoryName ) {
388
+ case "FingerprintingGeneral" :
389
+ case "FingerprintingInvasive" :
390
+ categoryName = "Fingerprinting" ;
391
+ break ;
392
+ case "EmailStrict" :
393
+ case "EmailAggressive" :
394
+ categoryName = "Email" ;
395
+ break ;
396
+ case "Anti-fraud" :
397
+ categoryName = "Content" ;
398
+ break ;
399
+ }
400
+
386
401
Tracker tracker = new Tracker (trackerName , categoryName );
387
402
388
403
// Parse tracker domains
You can’t perform that action at this time.
0 commit comments