OSDN Git Service

Activity selections not always persisted by AcitivtyChooserView.
authorSvetoslav Ganov <svetoslavganov@google.com>
Thu, 21 Jul 2011 18:36:33 +0000 (11:36 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Thu, 21 Jul 2011 18:36:36 +0000 (11:36 -0700)
commit8dbace2dc970208e03c3cee02a7902a5bb9827ef
treebfe8d26614e9588b1fac22cde490adfeb8d506bf
parentb5d4f97126d1b64630af659f90d40f6516a494f6
Activity selections not always persisted by AcitivtyChooserView.

1. ActivityChooserModel was delegating the rsponsibility for reading
   and persisting data to its clients i.e. ActivityChooserView and
   the latter was persisting on detach from window. However, it is
   not guaranteed that this callback will be received leading to
   lack of presistence sometimes. Now the model is responsible for
   loading and persisting thus voiding the posisbility a misbehaved
   client to cause data loss.

bug:5061638

Change-Id: Ia2b7bb659f7b9abe8869c94b3eaa726ddd4e4fad
core/java/android/widget/ActivityChooserModel.java
core/java/android/widget/ActivityChooserView.java