mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
fix reported NPE (by inspection, as I can't repro)
This commit is contained in:
parent
2629c07256
commit
3499af3ac4
1 changed files with 7 additions and 3 deletions
|
@ -2132,9 +2132,13 @@ public class BoardActivity extends XWActivity
|
|||
|
||||
private void setBackgroundColor()
|
||||
{
|
||||
int back = CommonPrefs.get( this )
|
||||
.otherColors[CommonPrefs.COLOR_BACKGRND];
|
||||
findViewById(R.id.board_root).setBackgroundColor( back );
|
||||
View view = findViewById( R.id.board_root );
|
||||
// Google's reported an NPE here, so test
|
||||
if ( null != view ) {
|
||||
int back = CommonPrefs.get( this )
|
||||
.otherColors[CommonPrefs.COLOR_BACKGRND];
|
||||
view.setBackgroundColor( back );
|
||||
}
|
||||
}
|
||||
|
||||
private void setKeepScreenOn()
|
||||
|
|
Loading…
Reference in a new issue