Skip to content

Commit

Permalink
further m-prefixing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger committed Aug 20, 2015
1 parent ee85bf9 commit a46eb27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public class AccountActionsDialogFragment extends DialogFragment implements
private static final String ARG_FILE_POSITION = "FILE_POSITION";
public static final String FTAG_FILE_ACTIONS = "FILE_ACTIONS_FRAGMENT";

private List<MenuItemParcelable> menuItems;
private List<MenuItemParcelable> mMenuItems;

private int filePosition;
private int mFilePosition;

private ListView mListView;

Expand Down Expand Up @@ -92,13 +92,13 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);

filePosition = getArguments().getInt(ARG_FILE_POSITION);
mFilePosition = getArguments().getInt(ARG_FILE_POSITION);

MenuParcelable menu = getArguments().getParcelable(ARG_ITEM_LIST);
menuItems = menu.getMenuItems();
mMenuItems = menu.getMenuItems();
List<String> stringList = new ArrayList<String>();
for (int i = 0; i < menuItems.size(); i++) {
stringList.add(menuItems.get(i).getMenuText());
for (int i = 0; i < mMenuItems.size(); i++) {
stringList.add(mMenuItems.get(i).getMenuText());
}

ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),
Expand All @@ -115,7 +115,7 @@ public void onActivityCreated(Bundle savedInstanceState) {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
dismiss();
((FileActionsDialogFragmentListener) getTargetFragment()).onFileActionChosen(menuItems.get(position).getMenuItemId(), filePosition);
((FileActionsDialogFragmentListener) getTargetFragment()).onFileActionChosen(mMenuItems.get(position).getMenuItemId(), mFilePosition);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public MenuItemParcelable() {}
public MenuItemParcelable(MenuItem menuItem) {
mMenuItemId = menuItem.getItemId();
mMenuText = menuItem.getTitle().toString();
menuItem.getMenuInfo();
}

public MenuItemParcelable(Parcel read) {
Expand Down

0 comments on commit a46eb27

Please sign in to comment.