Skip to content
Commit 7c77b2d1 authored by Jin Seok Park's avatar Jin Seok Park
Browse files

Fix logic for storing MediaButtonReceiver

Currently, MediaButtonReceiverHolder stores the
ComponentName.toString() value and tries to unflatten it with
ComponentName.unflattenFromString(String).
This causes restoring a stored MediaButtonReceiver to fail.

This CL changes it MediaButtonRecieverHolder store
ComponentName.flattenToString() value instead.

Bug: 169246173
Test: 1. Play music on YT Music.
      2. Reboot phone.
      3. Send media key event (PLAY)

Change-Id: I33449c0affd7f79e5988e7709cbbe45218766bf8
parent d5d39ae2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment