Skip to content

Commit 647c3c6

Browse files
committed
beta 0.1.1
1 parent aebcba3 commit 647c3c6

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

codeview/src/main/java/com/asd/codeview/CodeView.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ public CodeView(Context context, int BackgroundColor, int keywordsColor, int Num
7676
initialize(context);
7777
}
7878
private void initialize(Context context) {
79-
setBgColor(theme.getBackgroundColor());
80-
setKeywordsColor(theme.getKeywordsColor());
81-
setNumbersColor(theme.getNumberColor());
82-
setSpecialCharsColor(theme.getSpecialCharColors());
83-
setPrintStatmentsColor(theme.getPrintStatmentsColor());
84-
setAnnotationsColor(theme.getAnnotationsColor());
8579
bg=findViewById(R.id.bg);
8680
v=findViewById(R.id.line);
8781
line=findViewById(R.id.line_text);
@@ -92,6 +86,14 @@ private void initialize(Context context) {
9286
display.getSize(p);
9387
W=p.x;
9488
H=p.y;
89+
90+
setBgColor(theme.getBackgroundColor());
91+
setKeywordsColor(theme.getKeywordsColor());
92+
setNumbersColor(theme.getNumberColor());
93+
setSpecialCharsColor(theme.getSpecialCharColors());
94+
setPrintStatmentsColor(theme.getPrintStatmentsColor());
95+
setAnnotationsColor(theme.getAnnotationsColor());
96+
9597
line.setTextSize(TypedValue.COMPLEX_UNIT_DIP,fontDP);
9698
code.setTextSize(TypedValue.COMPLEX_UNIT_DIP,fontDP);
9799
code.addTextChangedListener(new TextWatcher() {

0 commit comments

Comments
 (0)