merge android_branch

This commit is contained in:
Eric House 2014-10-14 06:57:52 -07:00
commit 52465b3e1e
5 changed files with 13 additions and 14 deletions

View file

@ -307,10 +307,6 @@
<PreferenceScreen android:title="@string/advanced"
android:summary="@string/advanced_summary"
>
<EditTextPreference android:title="@string/git_rev_title"
android:summary="@string/git_rev"
android:enabled="false"
/>
<CheckBoxPreference android:key="@string/key_logging_on"
android:title="@string/logging_on"
android:summary="@string/logging_on_summary"
@ -401,5 +397,10 @@
android:summary="Get intermediate builds"
android:defaultValue="false"
/>
<EditTextPreference android:title="@string/git_rev_title"
android:summary="@string/git_rev"
android:enabled="false"
/>
</PreferenceScreen>
</PreferenceScreen>

View file

@ -431,11 +431,6 @@ public class GameConfigDelegate extends DelegateBase
m_smartnessSpinner = (Spinner)findViewById( R.id.smart_robot );
} // init
protected void onStart()
{
loadGame();
}
@Override
protected void onResume()
{
@ -1112,7 +1107,10 @@ public class GameConfigDelegate extends DelegateBase
private void applyChanges( boolean forceNew )
{
GameUtils.applyChanges( m_activity, m_gi, m_car, m_gameLock, forceNew );
if ( null != m_gameLock ) {
GameUtils.applyChanges( m_activity, m_gi, m_car, m_gameLock,
forceNew );
}
}
private void launchGame()

View file

@ -80,7 +80,7 @@ for PACK_UNSIGNED in $FILES; do
rm -f $PACK_SIGNED
zipalign -v 4 $PACK_UNSIGNED $PACK_SIGNED
[ -n "$XW_WWW_PATH" ] && cp $PACK_SIGNED $XW_WWW_PATH
TARGET="${PACK_SIGNED%.apk}_$(git describe).apk"
TARGET="${PACK_SIGNED%.apk}_$(git rev-parse --verify HEAD)_$(git describe).apk"
cp $PACK_SIGNED "${TARGET}"
echo "created ${TARGET}" >&2
[ -n "$LIST_FILE" ] && echo ${TARGET} >> $LIST_FILE

View file

@ -1826,12 +1826,12 @@ XP_U16
model_getDividerLoc( const ModelCtxt* model, XP_S16 turn )
{
XP_ASSERT( turn >= 0 );
PlayerCtxt* player = &model->players[turn];
const PlayerCtxt* player = &model->players[turn];
return player->dividerLoc;
}
void
model_setDividerLoc( const ModelCtxt* model, XP_S16 turn, XP_U16 loc )
model_setDividerLoc( ModelCtxt* model, XP_S16 turn, XP_U16 loc )
{
XP_ASSERT( turn >= 0 );
PlayerCtxt* player = &model->players[turn];

View file

@ -153,7 +153,7 @@ void model_addPlayerTile( ModelCtxt* model, XP_S16 turn, XP_S16 index,
void model_moveTileOnTray( ModelCtxt* model, XP_S16 turn, XP_S16 indexCur,
XP_S16 indexNew );
XP_U16 model_getDividerLoc( const ModelCtxt* model, XP_S16 turn );
void model_setDividerLoc( const ModelCtxt* model, XP_S16 turn, XP_U16 loc );
void model_setDividerLoc( ModelCtxt* model, XP_S16 turn, XP_U16 loc );
/* As an optimization, return a pointer to the model's array of tiles for a
player. Don't even think about modifying the array!!!! */