mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
fix reported NPE (by inspection, as I can't repro)
This commit is contained in:
parent
a1300e9fe2
commit
37a79b25f6
1 changed files with 7 additions and 3 deletions
|
@ -2081,9 +2081,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…
Add table
Reference in a new issue