Browser: fix force close in rotating set-homepage dialog

When user opens other item in set-homepage of setting,
an alert dialog will show,long press EditText and rotate
screen,force close will happen. This issue is because
the alert dialog has detached from WindowManager when
activity is recreated after rotate screen.

We will use DialogFragment method to make activity manage
the alert dialog's lifecycle and then no force close.

CRs-Fixed: 556636

Change-Id: I6957325447b38231d257dabb5e5230b3ad0be5c9
1 file changed