mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +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()
|
private void setBackgroundColor()
|
||||||
{
|
{
|
||||||
|
View view = findViewById( R.id.board_root );
|
||||||
|
// Google's reported an NPE here, so test
|
||||||
|
if ( null != view ) {
|
||||||
int back = CommonPrefs.get( this )
|
int back = CommonPrefs.get( this )
|
||||||
.otherColors[CommonPrefs.COLOR_BACKGRND];
|
.otherColors[CommonPrefs.COLOR_BACKGRND];
|
||||||
findViewById(R.id.board_root).setBackgroundColor( back );
|
view.setBackgroundColor( back );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setKeepScreenOn()
|
private void setKeepScreenOn()
|
||||||
|
|
Loading…
Reference in a new issue