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

Commit

Permalink
some small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesmadere committed Nov 7, 2013
1 parent 9ffed91 commit a73851c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
Expand Up @@ -39,13 +39,6 @@ public final class ConfirmGameFragment extends SherlockFragment
private AlertDialog alertDialog;


/**
* The LayoutInflater object that was passed in to this Fragment in the
* onCreateView() method.
*/
private LayoutInflater inflater;


/**
* The Person object that will be shown on this Fragment's layout. The user
* must confirm whether or not they want to play against this friend.
Expand Down Expand Up @@ -133,7 +126,6 @@ public void onCreate(final Bundle savedInstanceState)
@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState)
{
this.inflater = inflater;
return inflater.inflate(R.layout.confirm_game_fragment, null);
}

Expand Down Expand Up @@ -220,6 +212,7 @@ private AlertDialog getAlertDialog()
{
if (alertDialog == null)
{
final LayoutInflater inflater = getSherlockActivity().getLayoutInflater();
final View dialogView = inflater.inflate(R.layout.choose_which_game_dialog, null);

if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB)
Expand Down
Expand Up @@ -3,7 +3,6 @@

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
Expand Down Expand Up @@ -64,7 +63,7 @@ protected void onCreate(final Bundle savedInstanceState)
}

final Button returnToGamesList = (Button) findViewById(R.id.game_over_activity_button_return);
returnToGamesList.setOnClickListener(new OnClickListener()
returnToGamesList.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(final View v)
Expand Down
Expand Up @@ -5,7 +5,6 @@
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuInflater;
Expand All @@ -29,7 +28,7 @@ public void onCreate(final Bundle savedInstanceState)
setContentView(R.layout.about_activity);

final ImageView logo = (ImageView) findViewById(R.id.about_activity_imageview_logo);
logo.setOnClickListener(new OnClickListener()
logo.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(final View v)
Expand Down

0 comments on commit a73851c

Please sign in to comment.