Skip to content

Commit

Permalink
Interface: Fix for Double Preference Files
Browse files Browse the repository at this point in the history
  • Loading branch information
aviraxp committed Apr 11, 2017
1 parent 5ddca61 commit 0533580
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceCategory;
import android.preference.PreferenceManager;
import android.provider.Settings;

import com.aviraxp.adblocker.continued.BuildConfig;
Expand Down Expand Up @@ -77,7 +78,7 @@ private void analysisSDKInit() {
}

private void showUpdateLog() {
SharedPreferences sp = getSharedPreferences("VERSION", MODE_WORLD_READABLE);
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
if (sp.getInt("VERSION", 0) != BuildConfig.VERSION_CODE) {
new LicensesDialog(SettingsActivity.this, getLocalUpdateLog())
.setTitle(R.string.updatelog)
Expand Down

0 comments on commit 0533580

Please sign in to comment.