mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01:00
Use fileID for passing to the files app
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
550b46c454
commit
71de8a5245
@ -118,7 +118,7 @@ public class MagicPreviewMessageViewHolder extends MessageHolders.IncomingImageM
|
||||
filesAppIntent.setPackage(context.getString(R.string.nc_import_accounts_from));
|
||||
Bundle options = new Bundle();
|
||||
options.putString(BundleKeys.KEY_ACCOUNT, accountString);
|
||||
options.putString(BundleKeys.KEY_FILE_PATH, "/" + message.getSelectedIndividualHashMap().get("path"));
|
||||
options.putString(BundleKeys.KEY_FILE_ID, message.getSelectedIndividualHashMap().get("id"));
|
||||
context.startActivity(filesAppIntent, options);
|
||||
} else {
|
||||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(message.getSelectedIndividualHashMap().get("link")));
|
||||
|
@ -54,5 +54,5 @@ public class BundleKeys {
|
||||
public static final String KEY_BROWSER_TYPE = "KEY_BROWSER_TYPE";
|
||||
public static final String KEY_FILE_PATHS = "KEY_FILE_PATHS";
|
||||
public static final String KEY_ACCOUNT = "KEY_ACCOUNT";
|
||||
public static final String KEY_FILE_PATH = "KEY_FILE_PATH";
|
||||
public static final String KEY_FILE_ID = "KEY_FILE_ID";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user