New issue
Advanced search Search tips

Issue 812094 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Last-used Android app is not picked as the default app when no explicit default is chosen

Project Member Reported by yamaguchi@chromium.org, Feb 14 2018

Issue description

Chrome Version: 65.0.3325.67
Chrome OS Version: 10323.31.0

Steps To Reproduce:
(1) Install 2 or more Android apps that can handle an audio file.
    For example, "VLC for Android" and "Play Music".
(2) Open a .wav file in the Files app by double-clicking it.
(3) See the task chooser dialog is shown. (This will no longer appear if you have ran any of the apps. So this needs to be tested with a clean user profile.)
(4) Choose the Play Music app. Close Play Music.
(5) Select the .wav file and "Open with.."
(6) Choose the VLC app. Close the app.
(7) Double-click the .wav file in the Files app.

Expected Result:
The file opens with VLC app.

Actual Result:
The file opens with Play Music.

How frequently does this problem reproduce?
Not sure. May depend on the environment.

What is the impact to the user, and is there a workaround? If so, what is
it?
User can choose the default app with "change default..." menu to explicitly change the default. After that, that choice will always be applied.


Background:
https://bugs.chromium.org/p/chromium/issues/detail?id=751950#c9

When the explicit "default" app has not chosen yet for the file type/ext., it will pick the last-used app among candidates. If no one was used before, it will show the task chooser dialog box.

It seems lastExecutedTime_ passed to FileTasks.getDefaultTask is not sorted by descending order in case of Android apps.
 
yamaguchi@ - Based on our conversation yesterday, the correct behavior here should be -

For an Audio file, if no default app is specified, the native CrOS audio player should open the file. Otherwise, the user can specify and explicit default.
Yes, we'll add the audio player and the Office Editing extension to be the  default initially, for the file types handled by those. ( Issue 810986 )
However we will need to examine this for other types of files that is not covered by them. I don't have a verified concrete example, but for example, a binary .stl file (surface list data for 3D models) would not be supported by none of built-in apps but there can be multiple Android apps that handles this type.

Comment 3 by sashab@chromium.org, Feb 22 2018

Labels: CrOS-FilesApp-FileIntents

Comment 4 by sashab@chromium.org, Feb 28 2018

Labels: -CrOS-FilesApp-FileIntents CrOSFilesFeature-FileIntents

Comment 5 by sashab@chromium.org, Mar 15 2018

Status: Available (was: Untriaged)

Sign in to add a comment