@@ -170,7 +170,7 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions, in
170
170
&& grantResults [0 ] == PackageManager .PERMISSION_GRANTED ) {
171
171
initAfterPermissionSuccess ();
172
172
} else {
173
- final AlertDialog d = new AlertDialog .Builder (this )
173
+ AlertDialog d = new AlertDialog .Builder (this )
174
174
.setPositiveButton (android .R .string .ok , new DialogInterface .OnClickListener () {
175
175
@ Override
176
176
public void onClick (DialogInterface dialog , int which ) {
@@ -900,7 +900,7 @@ private void readPrefs() {
900
900
pgnOptions .exp .playerAction = false ;
901
901
pgnOptions .exp .clockInfo = false ;
902
902
903
- ColorTheme .instance ().readColors (preferences );
903
+ ColorTheme .instance ().readColors (this , preferences );
904
904
cb .setColors ();
905
905
906
906
String engineName = preferences .getString (ANALYSIS_ENGINE , engineManager
@@ -1281,7 +1281,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
1281
1281
case RESULT_PREFERENCES :
1282
1282
readPrefs ();
1283
1283
String theme = preferences .getString ("colorTheme" , "0" );
1284
- ColorTheme .instance ().setTheme (preferences , Integer .parseInt (theme ));
1284
+ ColorTheme .instance ().setTheme (this , preferences , Integer .parseInt (theme ));
1285
1285
cb .setColors ();
1286
1286
setGameMode ();
1287
1287
break ;
@@ -1429,7 +1429,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
1429
1429
ANALYSIS_ENGINE , null );
1430
1430
if (analysisEngine != null
1431
1431
&& analysisEngine .equals (_engineName )) {
1432
- final EngineManager .EngineChangeListener _listener = new EngineManager .EngineChangeListener () {
1432
+ EngineManager .EngineChangeListener _listener = new EngineManager .EngineChangeListener () {
1433
1433
1434
1434
@ Override
1435
1435
public void engineChanged (EngineChangeEvent event ) {
@@ -1534,7 +1534,7 @@ private void loadScidFile(String fileName) {
1534
1534
private void addNewEngine (final String engineName , String executable ,
1535
1535
final String enginePackage , final int engineVersion , boolean makeCurrentEngine , boolean copied ) {
1536
1536
if (makeCurrentEngine ) {
1537
- final EngineManager .EngineChangeListener _listener = new EngineManager .EngineChangeListener () {
1537
+ EngineManager .EngineChangeListener _listener = new EngineManager .EngineChangeListener () {
1538
1538
1539
1539
@ Override
1540
1540
public void engineChanged (EngineChangeEvent event ) {
@@ -1578,7 +1578,7 @@ public void setFromSelection(int sq) {
1578
1578
}
1579
1579
1580
1580
@ Override
1581
- public void setStatusString (final String str ) {
1581
+ public void setStatusString (String str ) {
1582
1582
String prefix = "" ;
1583
1583
if (getScidAppContext ().isDeleted ()) {
1584
1584
prefix = "<font color='red'><b>DELETED</b></font> " ;
@@ -1766,7 +1766,7 @@ private void showAboutDialog() {
1766
1766
}
1767
1767
1768
1768
private AlertDialog createCreateDatabaseDialog () {
1769
- final AlertDialog .Builder builder = new AlertDialog .Builder (this );
1769
+ AlertDialog .Builder builder = new AlertDialog .Builder (this );
1770
1770
final EditText input = new EditText (this );
1771
1771
builder .setTitle (getText (R .string .create_db_title ));
1772
1772
builder .setMessage (getText (R .string .create_db_message ));
@@ -1804,8 +1804,8 @@ private AlertDialog createSearchDialog() {
1804
1804
final int SEARCH_CURRENT_BOARD = 1 ;
1805
1805
final int SEARCH_HEADER = 2 ;
1806
1806
final int SHOW_FAVORITES = 3 ;
1807
- List <CharSequence > lst = new ArrayList <CharSequence >();
1808
- List <Integer > actions = new ArrayList <Integer >();
1807
+ List <CharSequence > lst = new ArrayList <>();
1808
+ List <Integer > actions = new ArrayList <>();
1809
1809
lst .add (getString (R .string .reset_filter ));
1810
1810
actions .add (RESET_FILTER );
1811
1811
lst .add (getString (R .string .search_current_board ));
@@ -2088,7 +2088,7 @@ private void saveCurrentGameId() {
2088
2088
}
2089
2089
2090
2090
private void resetFilter () {
2091
- final String fileName = getScidAppContext ().getCurrentFileName ();
2091
+ String fileName = getScidAppContext ().getCurrentFileName ();
2092
2092
if (fileName .length () != 0 ) {
2093
2093
DataBaseView dbv = setDataBaseViewFromFile ();
2094
2094
if (dbv != null ) {
@@ -2144,7 +2144,7 @@ private DataBaseView setDataBaseViewFromFile() {
2144
2144
* if set to false only reset the dbv if the file name changes or the current dbv is null
2145
2145
*/
2146
2146
private DataBaseView setDataBaseViewFromFile (boolean alwaysResetDbView ) {
2147
- final String currentScidFile = preferences .getString ("currentScidFile" , "" );
2147
+ String currentScidFile = preferences .getString ("currentScidFile" , "" );
2148
2148
if (currentScidFile .length () == 0 ) {
2149
2149
return null ;
2150
2150
}
0 commit comments