Skip to content

Commit caf8a62

Browse files
committed
remove unused manageSession parameter
1 parent a385661 commit caf8a62

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

WordPressAnalytics/src/main/java/org/wordpress/android/analytics/AnalyticsTracker.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,15 @@ private AnalyticsTracker() {
128128
}
129129

130130
public static void init(Context context) {
131-
loadPrefHasUserOptedOut(context, false);
131+
loadPrefHasUserOptedOut(context);
132132
}
133133

134-
public static void loadPrefHasUserOptedOut(Context context, boolean manageSession) {
134+
public static void loadPrefHasUserOptedOut(Context context) {
135135
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
136136

137137
boolean hasUserOptedOut = !prefs.getBoolean("wp_pref_send_usage_stats", true);
138-
if (hasUserOptedOut != mHasUserOptedOut && manageSession) {
138+
if (hasUserOptedOut != mHasUserOptedOut) {
139139
mHasUserOptedOut = hasUserOptedOut;
140-
if (mHasUserOptedOut) {
141-
endSession(true);
142-
clearAllData();
143-
}
144140
}
145141
}
146142

0 commit comments

Comments
 (0)