Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d07d7d9 authored by Austin Tankiang's avatar Austin Tankiang
Browse files

Fix id extra field name in progress broadcasts

The extra's name should include the package prefix.

Bug: 407675188
Test: build documentsui
Flag: com.android.documentsui.flags.visual_signals_ro
Change-Id: Ia808a4bb9f787ed30c9f35fda154a97c8cb74b3d
parent 7c8ae62c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ public class FileOperationService extends Service implements Job.Listener {

    public static final String ACTION_PROGRESS = "com.android.documentsui.action.PROGRESS";
    public static final String EXTRA_PROGRESS = "com.android.documentsui.PROGRESS";
    public static final String EXTRA_PROGRESS_ID = "com.android.documentsui.PROGRESS_ID";

    @IntDef({
            OPERATION_UNKNOWN,
@@ -629,7 +630,7 @@ public class FileOperationService extends Service implements Job.Listener {
            Intent intent = new Intent();
            intent.setPackage(getPackageName());
            intent.setAction(ACTION_PROGRESS);
            intent.putExtra("id", mLastId++);
            intent.putExtra(EXTRA_PROGRESS_ID, mLastId++);
            intent.putParcelableArrayListExtra(EXTRA_PROGRESS, progress);
            sendBroadcast(intent);
        }