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

Commit 25913f9e authored by Haijie Hong's avatar Haijie Hong
Browse files

Fix pending intent class loader

BUG: 343317785
Test: atest DeviceSettingPendingIntentActionTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ia67a511839d354cd212850a8d066dc259016b06a
parent cd4bc44f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.settingslib.bluetooth.devicesettings;

import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
@@ -47,7 +46,7 @@ public class DeviceSettingPendingIntentAction extends DeviceSettingAction implem
    /** Read a {@link DeviceSettingPendingIntentAction} instance from {@link Parcel} */
    @NonNull
    public static DeviceSettingPendingIntentAction readFromParcel(@NonNull Parcel in) {
        PendingIntent pendingIntent = in.readParcelable(Intent.class.getClassLoader());
        PendingIntent pendingIntent = in.readParcelable(PendingIntent.class.getClassLoader());
        Bundle extras = in.readBundle(Bundle.class.getClassLoader());
        return new DeviceSettingPendingIntentAction(pendingIntent, extras);
    }