OSDN Git Service

[Network Connection] Correct canceling dialog behavior
authorcosmohsieh <cosmohsieh@google.com>
Tue, 26 Mar 2019 07:22:08 +0000 (15:22 +0800)
committercosmohsieh <cosmohsieh@google.com>
Fri, 29 Mar 2019 02:15:21 +0000 (10:15 +0800)
commit03b8cd76ac526e551c5218e074c63cc703b489d4
treedaa75249718fb6957a9afa84cf5018d5b86084d4
parent7c49d1505fcbbf71e9cf6245e36f61a4ba82c7af
[Network Connection] Correct canceling dialog behavior

Use setCancelable() rather than setCanceledOnTouchOutside() for better
code smell and consisting with general not canceling behavior.
The back key and touching outside will not cancel this dialog for better
UX.

Bug: 128877712
Test: atest NetworkRequestDialogFragmentTest
Change-Id: I19bc5637a7307610e34db15d54c1d80d5b7e379b
src/com/android/settings/wifi/NetworkRequestDialogFragment.java