mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
set background color of board root view from prefs on creation and
whenever pref color might have changed.
This commit is contained in:
parent
9cc2dfca34
commit
d0f0fa04ce
1 changed files with 9 additions and 0 deletions
|
@ -293,6 +293,7 @@ public class BoardActivity extends XWActivity
|
||||||
if ( m_path.charAt(0) == '/' ) {
|
if ( m_path.charAt(0) == '/' ) {
|
||||||
m_path = m_path.substring( 1 );
|
m_path = m_path.substring( 1 );
|
||||||
}
|
}
|
||||||
|
setBackgroundColor();
|
||||||
} // onCreate
|
} // onCreate
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -334,6 +335,7 @@ public class BoardActivity extends XWActivity
|
||||||
if ( null != m_jniThread ) {
|
if ( null != m_jniThread ) {
|
||||||
m_jniThread.handle( JNIThread.JNICmd.CMD_PREFS_CHANGE );
|
m_jniThread.handle( JNIThread.JNICmd.CMD_PREFS_CHANGE );
|
||||||
}
|
}
|
||||||
|
setBackgroundColor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1272,4 +1274,11 @@ public class BoardActivity extends XWActivity
|
||||||
m_toolbar.update( Toolbar.BUTTON_CHAT, m_gsi.gameIsConnected );
|
m_toolbar.update( Toolbar.BUTTON_CHAT, m_gsi.gameIsConnected );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void setBackgroundColor()
|
||||||
|
{
|
||||||
|
int back = CommonPrefs.get(this)
|
||||||
|
.otherColors[CommonPrefs.COLOR_BACKGRND];
|
||||||
|
m_view.getRootView().setBackgroundColor( back );
|
||||||
|
}
|
||||||
|
|
||||||
} // class BoardActivity
|
} // class BoardActivity
|
||||||
|
|
Loading…
Reference in a new issue