mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-28 09:27:38 +01:00
Merge pull request #188 from ultrasonic/fix_wrong_server_settings
Fix inconsistent behaviour when adding new server on debug build.
This commit is contained in:
commit
2ac346441b
@ -131,9 +131,6 @@ public final class Constants
|
|||||||
public static final String PREFERENCES_KEY_SCAN_MEDIA = "scanMedia";
|
public static final String PREFERENCES_KEY_SCAN_MEDIA = "scanMedia";
|
||||||
public static final String PREFERENCES_KEY_IMAGE_LOADER_CONCURRENCY = "imageLoaderConcurrency";
|
public static final String PREFERENCES_KEY_IMAGE_LOADER_CONCURRENCY = "imageLoaderConcurrency";
|
||||||
|
|
||||||
// Name of the preferences file.
|
|
||||||
public static final String PREFERENCES_FILE_NAME = "org.moire.ultrasonic_preferences";
|
|
||||||
|
|
||||||
// Number of free trial days for non-licensed servers.
|
// Number of free trial days for non-licensed servers.
|
||||||
public static final int FREE_TRIAL_DAYS = 30;
|
public static final int FREE_TRIAL_DAYS = 30;
|
||||||
|
|
||||||
|
@ -398,10 +398,9 @@ public class Util extends DownloadActivity
|
|||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SharedPreferences getPreferences(Context context)
|
public static SharedPreferences getPreferences(Context context) {
|
||||||
{
|
return PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
return context.getSharedPreferences(Constants.PREFERENCES_FILE_NAME, 0);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static int getRemainingTrialDays(Context context)
|
public static int getRemainingTrialDays(Context context)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user