Skip to content

Commit 42a178f

Browse files
koushGodFox
authored andcommitted
NfcTile: rename setState/updateTileState to setTileState. Submitting on behalf of dvtonder.
Change-Id: I9628e260acf10fb06523c7cb9362ae4eb34a057b
1 parent 655cb83 commit 42a178f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

  • packages/SystemUI/src/com/android/systemui/quicksettings

packages/SystemUI/src/com/android/systemui/quicksettings/NfcTile.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public NfcTile(Context context, LayoutInflater inflater,
2323
QuickSettingsController qsc) {
2424
super(context, inflater, container, qsc);
2525

26-
setState(NFC_ADAPTER_UNKNOWN);
26+
setTileState(NFC_ADAPTER_UNKNOWN);
2727

2828
mOnClick = new View.OnClickListener() {
2929
@Override
@@ -53,7 +53,7 @@ public void onReceive(Context context, Intent intent) {
5353
}
5454

5555
private void applyNfcChanges() {
56-
updateTileState();
56+
setTileState(getNfcState());
5757
updateQuickSettings();
5858
}
5959

@@ -71,13 +71,10 @@ protected void toggleState() {
7171
}
7272
}
7373

74-
private void updateTileState() {
74+
private void setTileState(int state) {
7575
// Get the initial label
7676
mLabel = mContext.getString(R.string.quick_settings_nfc);
77-
setState(getNfcState());
78-
}
7977

80-
private void setState(int state) {
8178
switch (state) {
8279
case NfcAdapter.STATE_TURNING_ON:
8380
case NfcAdapter.STATE_ON:

0 commit comments

Comments
 (0)