fix not updating sharee list after creating a new link

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-12-16 10:23:29 +01:00 committed by Andy Scherzinger
parent 00e1af0b7a
commit 09a0a6ef7d
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -104,7 +104,6 @@ import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction; import androidx.fragment.app.FragmentTransaction;
import static com.owncloud.android.ui.activity.FileDisplayActivity.TAG_PUBLIC_LINK; import static com.owncloud.android.ui.activity.FileDisplayActivity.TAG_PUBLIC_LINK;
import static com.owncloud.android.ui.activity.FileDisplayActivity.TAG_SECOND_FRAGMENT;
/** /**
@ -805,7 +804,7 @@ public abstract class FileActivity extends DrawerActivity
copyAndShareFileLink(this, file, link); copyAndShareFileLink(this, file, link);
if (sharingFragment != null) { if (sharingFragment != null) {
sharingFragment.onUpdateShareInformation(result, getFile()); sharingFragment.onUpdateShareInformation(result, file);
} }
} else { } else {
// Detect Failure (403) --> maybe needs password // Detect Failure (403) --> maybe needs password
@ -849,7 +848,7 @@ public abstract class FileActivity extends DrawerActivity
Fragment fragment = getSupportFragmentManager().findFragmentByTag(ShareActivity.TAG_SHARE_FRAGMENT); Fragment fragment = getSupportFragmentManager().findFragmentByTag(ShareActivity.TAG_SHARE_FRAGMENT);
if (fragment == null) { if (fragment == null) {
fragment = getSupportFragmentManager().findFragmentByTag(TAG_SECOND_FRAGMENT); fragment = getSupportFragmentManager().findFragmentByTag(FileDisplayActivity.TAG_LIST_OF_FILES);
} }
if (fragment instanceof FileDetailSharingFragment) { if (fragment instanceof FileDetailSharingFragment) {