Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java

Issue 29356463: Issue 4512 - Move preferences file to xml directory (Closed)
Patch Set: Created Oct. 10, 2016, 2:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « res/xml/preferences_main.xml ('k') | src/org/adblockplus/sbrowser/contentblocker/Preferences.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java
===================================================================
--- a/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java
+++ b/src/org/adblockplus/sbrowser/contentblocker/MainPreferences.java
@@ -51,17 +51,17 @@ public class MainPreferences extends Pre
{
return PreferenceManager.getDefaultSharedPreferences(this.getApplicationContext());
}
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
- PreferenceManager.setDefaultValues(this, R.layout.preferences_main, false);
+ PreferenceManager.setDefaultValues(this, R.xml.preferences_main, false);
this.getFragmentManager()
.beginTransaction()
.replace(android.R.id.content, new Preferences())
.commit();
// This try/catch block is a workaround for a preference mismatch
// issue. We check for a type mismatch in one particular key and,
« no previous file with comments | « res/xml/preferences_main.xml ('k') | src/org/adblockplus/sbrowser/contentblocker/Preferences.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld