Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
InukaAsith authored Nov 15, 2023
1 parent e68503e commit 06e5077
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions app/src/main/java/com/ubetta/dtvfree/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,14 @@ public void nextView(int num){
panelViews[rowTemp][columnTemp].setBackground(ContextCompat.getDrawable(MainActivity.this, R.drawable.search_bar_background));
}else{
panelViews[rowTemp][columnTemp].setBackground(ContextCompat.getDrawable(MainActivity.this,R.drawable.voice_button_background_default));

}
}else {
panelViews[rowTemp][columnTemp].setBackground(ContextCompat.getDrawable(MainActivity.this, R.drawable.button_default_background));
if (nocursor) {
cursorButton.setBackground(ContextCompat.getDrawable(MainActivity.this,R.drawable.cursor_background));

}
}
if(row == 0 ){
if(column == 0) {
Expand All @@ -785,6 +790,10 @@ public void nextView(int num){
}
}else {
panelViews[row][column].setBackground(ContextCompat.getDrawable(MainActivity.this, R.drawable.button_focus_background));
if (nocursor) {
cursorButton.setBackground(ContextCompat.getDrawable(MainActivity.this,R.drawable.cursor_background));

}
}
}
public void dialogEvent(int keyCode){
Expand Down Expand Up @@ -1012,10 +1021,10 @@ public void onClick(DialogInterface dialog, int which) {
if (webClient.isFullScreen()) {
webClient.onHideCustomView();
} else {
if (nocursor) {
cursorButton.setBackground(ContextCompat.getDrawable(MainActivity.this,R.drawable.cursor_background));
// if (nocursor) {
// cursorButton.setBackground(ContextCompat.getDrawable(MainActivity.this,R.drawable.cursor_background));

}
//}
dialogBack.setVisibility(View.VISIBLE);
panelViews[row][column].requestFocus();
}
Expand Down

0 comments on commit 06e5077

Please sign in to comment.