|
|
|
@ -63,6 +63,9 @@ namespace QuickPlay
|
|
|
|
|
// Initialize the RecyclerView
|
|
|
|
|
// Since this is rather complicated, it is in a separate method
|
|
|
|
|
InitializeRecyclerView();
|
|
|
|
|
|
|
|
|
|
// Refresh player info
|
|
|
|
|
OnPlayerUpdate();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void InitializeRecyclerView()
|
|
|
|
@ -108,7 +111,12 @@ namespace QuickPlay
|
|
|
|
|
/// </summary>
|
|
|
|
|
public void OnPlayerUpdate()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException("Activity should update.");
|
|
|
|
|
TextView playerName = FindViewById<TextView>(Resource.Id.playerNameText);
|
|
|
|
|
playerName.Text = currentPlayer.PlayerName;
|
|
|
|
|
Toolbar tb = FindViewById<Toolbar>(Resource.Id.toolbar);
|
|
|
|
|
// This code is seriously lovely. FML.
|
|
|
|
|
tb.SetBackgroundColor(currentPlayer.IsReady ? new Android.Graphics.Color(Android.Support.V4.Content.ContextCompat.GetColor(this, Resource.Color.colorPrimary)) : Android.Graphics.Color.Red);
|
|
|
|
|
// throw new NotImplementedException("Activity should update.");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|