OSDN Git Service

Don't instantiate non-Fragments in Fragment.instantiate
authorAmith Yamasani <yamasani@google.com>
Thu, 26 Sep 2013 23:14:36 +0000 (16:14 -0700)
committerAmith Yamasani <yamasani@google.com>
Fri, 27 Sep 2013 17:28:09 +0000 (10:28 -0700)
commit427864188dfc5dd803b15797379b9dc6673abd16
tree1b9980738775f95bbfe99b22be67817b6a4d79ff
parent32c990044f027542a034a7606cf010dca6df252f
Don't instantiate non-Fragments in Fragment.instantiate

Backport...

Fix for PreferenceActivities being invoked with non-Fragment class
names via extras in the intent. Make sure that the constructor
doesn't get called if the class name is not for a Fragment type.
Bug: 9901133
Change-Id: I227756fb4246deac796cee09077e482237bb5b0d
core/java/android/app/Fragment.java