mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Remove unnecessary casts and result tracking in starting itemlist activities.
This commit is contained in:
parent
d396d63bd3
commit
33bd1996fc
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
|
|||
public void onClick(View v) {
|
||||
Intent i = new Intent(context, GlobalSharedStoriesItemsList.class);
|
||||
i.putExtra(GlobalSharedStoriesItemsList.EXTRA_STATE, currentState);
|
||||
((Activity) context).startActivityForResult(i, Activity.RESULT_OK);
|
||||
context.startActivity(i);
|
||||
}
|
||||
});
|
||||
} else if (groupPosition == ALL_SHARED_STORIES_GROUP_POSITION) {
|
||||
|
@ -122,7 +122,7 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
|
|||
public void onClick(View v) {
|
||||
Intent i = new Intent(context, AllSharedStoriesItemsList.class);
|
||||
i.putExtra(AllStoriesItemsList.EXTRA_STATE, currentState);
|
||||
((Activity) context).startActivityForResult(i, Activity.RESULT_OK);
|
||||
context.startActivity(i);
|
||||
}
|
||||
});
|
||||
if (currentState == StateFilter.BEST || (totalSocialNeutCount == 0)) {
|
||||
|
@ -164,7 +164,7 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
|
|||
Intent i = new Intent(v.getContext(), FolderItemsList.class);
|
||||
i.putExtra(FolderItemsList.EXTRA_FOLDER_NAME, canonicalFolderName);
|
||||
i.putExtra(FolderItemsList.EXTRA_STATE, currentState);
|
||||
((Activity) context).startActivity(i);
|
||||
context.startActivity(i);
|
||||
}
|
||||
});
|
||||
int countPosition = convertGroupPositionToActiveFolderIndex(groupPosition);
|
||||
|
|
Loading…
Add table
Reference in a new issue