OSDN Git Service

Fix a crash in the print service settigns.
authorSvetoslav <svetoslavganov@google.com>
Tue, 8 Oct 2013 19:08:14 +0000 (12:08 -0700)
committerSvetoslav <svetoslavganov@google.com>
Tue, 8 Oct 2013 19:08:18 +0000 (12:08 -0700)
commit39392ef9b0434ec704b52178f8dbb3adcfef58f7
tree61253916908815792ea570c7345051f74dd053bb
parent1955bf1bb3147a06d1856ac002f8cd5aab4f535e
Fix a crash in the print service settigns.

 When the search view is attached and detached we announce that
 for accessibility. The trouble is that if the activity is being
 torn down we are trying to access resources from a fragment that
 is detached and the qcrash occurs. This change does not try to
 access resources if the activity is finishing and also we do not
 load resource strings if accessibility is not enabled.

bug:11127814

Change-Id: If3e97b6e94687775386a43c8fa54fd45140306eb
src/com/android/settings/print/PrintServiceSettingsFragment.java