Skip to content

Commit

Permalink
Merge pull request #838 from divadsn/settings-backup
Browse files Browse the repository at this point in the history
Fix settings backup options
  • Loading branch information
divadsn authored Oct 14, 2017
2 parents 555714e + c0e3b40 commit 788acea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public static void importDB(Activity activity) {
public static void exportPrefs(Activity activity) {
ApplicationInfo info = activity.getApplicationInfo();
String dir = new ContextWrapper(activity).getCacheDir().getParent();
File prefs = new File(dir, "shared_prefs/" + info.packageName + ".prefs.xml");
File prefs = new File(dir, "shared_prefs/" + LauncherFiles.SHARED_PREFERENCES_KEY + ".xml");
exportFile(prefs, activity);
}

public static void importPrefs(Activity activity) {
ApplicationInfo info = activity.getApplicationInfo();
String dir = new ContextWrapper(activity).getCacheDir().getParent();
File prefs = new File(dir, "shared_prefs/" + info.packageName + ".prefs.xml");
File prefs = new File(dir, "shared_prefs/" + LauncherFiles.SHARED_PREFERENCES_KEY + ".xml");
importFile(prefs, activity);
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/ch/deletescape/lawnchair/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ protected void onCreate(Bundle savedInstanceState) {

setScreenOrientation();

if (!BuildConfig.MOBILE_CENTER_KEY.equalsIgnoreCase("null"))
if (BuildConfig.MOBILE_CENTER_KEY != null)
MobileCenter.start(getApplication(), BuildConfig.MOBILE_CENTER_KEY, Analytics.class, Crashes.class, Distribute.class);

LauncherAppState app = LauncherAppState.getInstance();
Expand Down

0 comments on commit 788acea

Please sign in to comment.