Skip to content
Commit 06b8dcb5 authored by Andrii Kulian's avatar Andrii Kulian
Browse files

Encapsulate savedState updates in ActivityRecord

ActivityRecord#icicle and ActivityRecord#haveState values should
always be in sync. Since they were package-private, this creates an
opportunity for making error by updating one without the other.

This CL adds getters and a setter (for updates from package) that
always updates both values simultaneously, and makes the fields
private. It also hides ActivityRecord#persistentState and exposes a
package-private getter instead.

Test: ActivityRecordTests
Change-Id: Ie6cf248bf58f8d447ab321bb4348a4a69d547b19
parent 39f27442
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