File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
app/src/main/java/org/kabiri/android/usbterminal/model Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 11package org.kabiri.android.usbterminal.model
22
3- import android.content.Context
4- import android.text.style.TextAppearanceSpan
5-
63/* *
74 * Created by Ali Kabiri on 21.04.20.
85 */
@@ -15,16 +12,4 @@ data class OutputText(
1512 TYPE_INFO ,
1613 TYPE_ERROR ,
1714 }
18-
19- fun getAppearance (context : Context ): TextAppearanceSpan =
20- when (this .type) {
21- OutputType .TYPE_NORMAL ->
22- TextAppearanceSpan (context, android.R .style.TextAppearance_Material )
23-
24- OutputType .TYPE_INFO ->
25- TextAppearanceSpan (context, android.R .style.TextAppearance_Material_Small )
26-
27- OutputType .TYPE_ERROR ->
28- TextAppearanceSpan (context, android.R .style.TextAppearance_Material_Large )
29- }
3015}
You can’t perform that action at this time.
0 commit comments