File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
app/src/main/java/com/android/calculator2/util Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 11package com.android.calculator2.util
22
3- import com.android.calculator2.util.NumPadUtils.NUMBER_RAW_FILES
3+ import com.android.calculator2.util.NumPadUtils.DIGIT_TAGS
44
55/* *
66 * Created by GSC on 12/11/2016.
77 */
88object NumPadUtils {
99 const val RAW_FILE_EQUALS : String = " equals"
1010
11- val NUMBER_RAW_FILES : Array <String > = arrayOf<String >(
11+ val DIGIT_TAGS : Array <String > = arrayOf<String >(
1212 " digit_0" ,
1313 " digit_1" ,
1414 " digit_2" ,
@@ -24,16 +24,16 @@ object NumPadUtils {
2424
2525fun String.tagToSpokenText (): String {
2626 return when (this ) {
27- NUMBER_RAW_FILES [0 ] -> " 0"
28- NUMBER_RAW_FILES [1 ] -> " 1"
29- NUMBER_RAW_FILES [2 ] -> " 2"
30- NUMBER_RAW_FILES [3 ] -> " 3"
31- NUMBER_RAW_FILES [4 ] -> " 4"
32- NUMBER_RAW_FILES [5 ] -> " 5"
33- NUMBER_RAW_FILES [6 ] -> " 6"
34- NUMBER_RAW_FILES [7 ] -> " 7"
35- NUMBER_RAW_FILES [8 ] -> " 8"
36- NUMBER_RAW_FILES [9 ] -> " 9"
27+ DIGIT_TAGS [0 ] -> " 0"
28+ DIGIT_TAGS [1 ] -> " 1"
29+ DIGIT_TAGS [2 ] -> " 2"
30+ DIGIT_TAGS [3 ] -> " 3"
31+ DIGIT_TAGS [4 ] -> " 4"
32+ DIGIT_TAGS [5 ] -> " 5"
33+ DIGIT_TAGS [6 ] -> " 6"
34+ DIGIT_TAGS [7 ] -> " 7"
35+ DIGIT_TAGS [8 ] -> " 8"
36+ DIGIT_TAGS [9 ] -> " 9"
3737 else -> this
3838 }
3939}
You can’t perform that action at this time.
0 commit comments