|
@@ -28,7 +28,8 @@ public class uploadSettingActivity extends AppCompatActivity {
|
|
|
boolean compress = true;
|
|
boolean compress = true;
|
|
|
int retry_count = 2;
|
|
int retry_count = 2;
|
|
|
|
|
|
|
|
- SharedPreferences preferences = getSharedPreferences("uploadSetting", Context.MODE_PRIVATE);
|
|
|
|
|
|
|
+// SharedPreferences preferences = getSharedPreferences("uploadSetting", Context.MODE_PRIVATE);
|
|
|
|
|
+ SharedPreferences preferences = RedAntApplication.getInstance().getSharedPreferences("UploadManager", 0);
|
|
|
if (preferences != null) {
|
|
if (preferences != null) {
|
|
|
|
|
|
|
|
auto_upload = preferences.getBoolean("auto_upload",true);
|
|
auto_upload = preferences.getBoolean("auto_upload",true);
|
|
@@ -53,7 +54,8 @@ public class uploadSettingActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
public void saveSetting() {
|
|
public void saveSetting() {
|
|
|
|
|
|
|
|
- SharedPreferences preferences = getSharedPreferences("uploadSetting",Context.MODE_PRIVATE);
|
|
|
|
|
|
|
+// SharedPreferences preferences = getSharedPreferences("uploadSetting",Context.MODE_PRIVATE);
|
|
|
|
|
+ SharedPreferences preferences = RedAntApplication.getInstance().getSharedPreferences("UploadManager", 0);
|
|
|
SharedPreferences.Editor editor = preferences.edit();
|
|
SharedPreferences.Editor editor = preferences.edit();
|
|
|
|
|
|
|
|
boolean auto_upload = auto_start_swt.isChecked();
|
|
boolean auto_upload = auto_start_swt.isChecked();
|