Created
March 22, 2017 11:26
-
-
Save BadDaemon/7c74167f7622dc16f77a97bbe704acf2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final int PULLDOWN_DIR_NONE = 0; | |
private static final int PULLDOWN_DIR_RIGHT = 1; | |
private static final int PULLDOWN_DIR_LEFT = 2; | |
private void updateQuickPulldownSummary(int value) { | |
String summary; | |
switch (value) { | |
case PULLDOWN_DIR_NONE: | |
summary = getResources().getString( | |
R.string.status_bar_quick_qs_pulldown_off); | |
break; | |
case PULLDOWN_DIR_LEFT: | |
case PULLDOWN_DIR_RIGHT: | |
summary = getResources().getString( | |
R.string.status_bar_quick_qs_pulldown_summary, | |
value == PULLDOWN_DIR_LEFT | |
? R.string.status_bar_quick_qs_pulldown_summary_left | |
: R.string.status_bar_quick_qs_pulldown_summary_right); | |
break; | |
} | |
mQuickPulldown.setSummary(summary); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment