photo-editor fix

This commit is contained in:
tom79 2019-06-23 18:18:20 +02:00
parent 80fd1c8150
commit 759251c297
2 changed files with 2 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public class PhotoEditorActivity extends BaseActivity implements OnPhotoEditorL
if (requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
showLoading(getString(R.string.saving));
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
String myDir = sharedpreferences.getString(Helper.SET_FOLDER_RECORD, Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath());
String myDir = sharedpreferences.getString(Helper.SET_FOLDER_RECORD, getCacheDir().getAbsolutePath());
String filename = System.currentTimeMillis()+"_"+Helper.getFileName(PhotoEditorActivity.this, uri);
File file = new File(myDir+"/"+filename);

View File

@ -732,6 +732,7 @@ public class GNUAPI {
*/
private APIResponse getHomeTimeline(String max_id, String since_id, String min_id, int limit) {
apiResponse = new APIResponse();
HashMap<String, String> params = new HashMap<>();
if (max_id != null)
params.put("max_id", max_id);