Merge "Add summary for hostspot when airplane is on."

This commit is contained in:
TreeHugger Robot
2018-02-14 00:14:09 +00:00
committed by Android (Google) Code Review
3 changed files with 4 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ public class WifiTetherPreferenceController extends AbstractPreferenceController
boolean isAirplaneMode = Settings.Global.getInt(mContext.getContentResolver(),
Settings.Global.AIRPLANE_MODE_ON, 0) != 0;
if (isAirplaneMode) {
mPreference.setSummary(R.string.summary_placeholder);
mPreference.setSummary(R.string.wifi_tether_disabled_by_airplane);
}
}
//