OSDN Git Service

Fix crash in TetherSettings.
authorDoris Ling <dling@google.com>
Fri, 24 Mar 2017 20:10:09 +0000 (13:10 -0700)
committerDoris Ling <dling@google.com>
Fri, 24 Mar 2017 20:10:09 +0000 (13:10 -0700)
commitdd5693c6f4640de657b27ecd7758b23c663d64ab
tree51db572af3e474efb747cb67671ba6af02e3a68d
parent60ec4d64ae6d6e6041758ded5805b6e46506ec0c
Fix crash in TetherSettings.

In onCreate(), it checkes whether ui is restricted, and try to show an
empty screen by creating a new preference screen. However, when the
preference is not attached, it failed to get the next preference id.
Instead of replacing the current screen with a new one, remove all the
preferences on the screen.

Change-Id: I085bee025cfeabaf4aefacb717d145e668bd85e1
Fix: 36589767
Test: manual
src/com/android/settings/TetherSettings.java