Merge changes I24a85a37,I8ad97414
* changes: [Wi-Fi][Tethering] Update summary string of "Turn off hotspot automatically" [Wi-Fi] Update android R strings
This commit is contained in:
committed by
Android (Google) Code Review
commit
21acb2cd6f
@@ -904,7 +904,14 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
|
||||
*/
|
||||
@Override
|
||||
public void onDisconnectResult(@DisconnectStatus int status) {
|
||||
if (status != DisconnectCallback.DISCONNECT_STATUS_SUCCESS) {
|
||||
if (status == DisconnectCallback.DISCONNECT_STATUS_SUCCESS) {
|
||||
final Activity activity = mFragment.getActivity();
|
||||
if (activity != null) {
|
||||
Toast.makeText(activity,
|
||||
activity.getString(R.string.wifi_disconnected_from, mWifiEntry.getTitle()),
|
||||
Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
} else {
|
||||
Log.e(TAG, "Disconnect Wi-Fi network failed");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user