mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 18:59:18 +03:00
Use extension for null files
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
05cde13428
commit
3bc37e7097
2 changed files with 4 additions and 2 deletions
|
@ -52,6 +52,7 @@ import com.nextcloud.client.jobs.upload.FileUploadHelper;
|
|||
import com.nextcloud.client.jobs.upload.FileUploadWorker;
|
||||
import com.nextcloud.client.preferences.AppPreferences;
|
||||
import com.nextcloud.utils.extensions.BundleExtensionsKt;
|
||||
import com.nextcloud.utils.extensions.FileExtensionsKt;
|
||||
import com.nextcloud.utils.extensions.IntentExtensionsKt;
|
||||
import com.owncloud.android.MainApp;
|
||||
import com.owncloud.android.R;
|
||||
|
@ -264,7 +265,7 @@ public class ReceiveExternalFilesActivity extends FileActivity
|
|||
|
||||
@Override
|
||||
protected void onSaveInstanceState(@NonNull Bundle outState) {
|
||||
Log_OC.d(TAG, "onSaveInstanceState " + mFile.getFileLength());
|
||||
FileExtensionsKt.logFileSize(mFile, TAG);
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putString(KEY_PARENTS, generatePath(mParents));
|
||||
outState.putParcelable(KEY_FILE, mFile);
|
||||
|
|
|
@ -33,6 +33,7 @@ import com.nextcloud.client.di.Injectable;
|
|||
import com.nextcloud.client.jobs.upload.FileUploadWorker;
|
||||
import com.nextcloud.client.preferences.AppPreferences;
|
||||
import com.nextcloud.utils.extensions.ActivityExtensionsKt;
|
||||
import com.nextcloud.utils.extensions.FileExtensionsKt;
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.databinding.UploadFilesLayoutBinding;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
|
@ -410,7 +411,7 @@ public class UploadFilesActivity extends DrawerActivity implements LocalFileList
|
|||
protected void onSaveInstanceState(@NonNull Bundle outState) {
|
||||
// responsibility of restore is preferred in onCreate() before than in
|
||||
// onRestoreInstanceState when there are Fragments involved
|
||||
Log_OC.d(TAG, "onSaveInstanceState " + mCurrentDir.length());
|
||||
FileExtensionsKt.logFileSize(mCurrentDir, TAG);
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putString(UploadFilesActivity.KEY_DIRECTORY_PATH, mCurrentDir.getAbsolutePath());
|
||||
if (mOptionsMenu != null && mOptionsMenu.findItem(R.id.action_select_all) != null) {
|
||||
|
|
Loading…
Reference in a new issue