Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
fixed games list orientation change crash bug and action bar styling
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesmadere committed Nov 4, 2013
1 parent 414689f commit 9ffed91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions projects/android/classygames/res/layout/action_bar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
android:layout_width="match_parent"
android:maxLines="1"
android:textColor="@color/white"
android:textSize="18sp"
custom:typefaceTextView="BlueHighway" />
4 changes: 2 additions & 2 deletions projects/android/classygames/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<item name="android:backgroundSplit">@drawable/bg_action_bar</item>
<item name="customNavigationLayout">@layout/action_bar</item>
<item name="android:customNavigationLayout">@layout/action_bar</item>
<item name="displayOptions">showCustom</item>
<item name="android:displayOptions">showCustom</item>
<item name="displayOptions">showCustom|showHome</item>
<item name="android:displayOptions">showCustom|showHome</item>
</style>
<style
name="Theme.Styled"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ public View getView(final int position, View convertView, final ViewGroup parent

if (game.isTypeGame())
{
if (convertView == null)
if (convertView == null || convertView.getTag() == null)
{
convertView = inflater.inflate(R.layout.games_list_fragment_listview_item, null);
final ViewHolder viewHolder = new ViewHolder(convertView);
Expand Down Expand Up @@ -922,6 +922,7 @@ else if (game.isGameChess())

convertView.setOnClickListener(null);
convertView.setOnLongClickListener(null);
convertView.setTag(null);
}

return convertView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.widget.ImageView;
import android.widget.Toast;
import com.actionbarsherlock.view.MenuItem;
import com.charlesmadere.android.classygames.utilities.Utilities;


public final class SharkActivity extends BaseActivity
Expand Down

0 comments on commit 9ffed91

Please sign in to comment.