git replace getFragmentManager() with getFM()
This commit is contained in:
parent
4a19c78fa5
commit
a817d8cbf9
|
@ -156,9 +156,7 @@ public abstract class BaseListFragment<I, N> extends BaseStateFragment<I> implem
|
||||||
public void selected(ChannelInfoItem selectedItem) {
|
public void selected(ChannelInfoItem selectedItem) {
|
||||||
try {
|
try {
|
||||||
onItemSelected(selectedItem);
|
onItemSelected(selectedItem);
|
||||||
NavigationHelper.openChannelFragment(useAsFrontPage ?
|
NavigationHelper.openChannelFragment(getFM(),
|
||||||
getParentFragment().getFragmentManager()
|
|
||||||
: getFragmentManager(),
|
|
||||||
selectedItem.getServiceId(),
|
selectedItem.getServiceId(),
|
||||||
selectedItem.getUrl(),
|
selectedItem.getUrl(),
|
||||||
selectedItem.getName());
|
selectedItem.getName());
|
||||||
|
@ -173,10 +171,7 @@ public abstract class BaseListFragment<I, N> extends BaseStateFragment<I> implem
|
||||||
public void selected(PlaylistInfoItem selectedItem) {
|
public void selected(PlaylistInfoItem selectedItem) {
|
||||||
try {
|
try {
|
||||||
onItemSelected(selectedItem);
|
onItemSelected(selectedItem);
|
||||||
NavigationHelper.openPlaylistFragment(
|
NavigationHelper.openPlaylistFragment(getFM(),
|
||||||
useAsFrontPage
|
|
||||||
? getParentFragment().getFragmentManager()
|
|
||||||
: getFragmentManager(),
|
|
||||||
selectedItem.getServiceId(),
|
selectedItem.getServiceId(),
|
||||||
selectedItem.getUrl(),
|
selectedItem.getUrl(),
|
||||||
selectedItem.getName());
|
selectedItem.getName());
|
||||||
|
@ -197,9 +192,7 @@ public abstract class BaseListFragment<I, N> extends BaseStateFragment<I> implem
|
||||||
|
|
||||||
private void onStreamSelected(StreamInfoItem selectedItem) {
|
private void onStreamSelected(StreamInfoItem selectedItem) {
|
||||||
onItemSelected(selectedItem);
|
onItemSelected(selectedItem);
|
||||||
NavigationHelper.openVideoDetailFragment(useAsFrontPage
|
NavigationHelper.openVideoDetailFragment(getFM(),
|
||||||
? getParentFragment().getFragmentManager()
|
|
||||||
: getFragmentManager(),
|
|
||||||
selectedItem.getServiceId(), selectedItem.getUrl(), selectedItem.getName());
|
selectedItem.getServiceId(), selectedItem.getUrl(), selectedItem.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,9 +140,7 @@ public class StatisticsPlaylistFragment
|
||||||
public void selected(LocalItem selectedItem) {
|
public void selected(LocalItem selectedItem) {
|
||||||
if (selectedItem instanceof StreamStatisticsEntry) {
|
if (selectedItem instanceof StreamStatisticsEntry) {
|
||||||
final StreamStatisticsEntry item = (StreamStatisticsEntry) selectedItem;
|
final StreamStatisticsEntry item = (StreamStatisticsEntry) selectedItem;
|
||||||
NavigationHelper.openVideoDetailFragment(useAsFrontPage
|
NavigationHelper.openVideoDetailFragment(getFM(),
|
||||||
? getParentFragment().getFragmentManager()
|
|
||||||
: getFragmentManager(),
|
|
||||||
item.serviceId,
|
item.serviceId,
|
||||||
item.url,
|
item.url,
|
||||||
item.title);
|
item.title);
|
||||||
|
|
|
@ -322,7 +322,7 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
|
||||||
infoListAdapter.setOnChannelSelectedListener(new OnClickGesture<ChannelInfoItem>() {
|
infoListAdapter.setOnChannelSelectedListener(new OnClickGesture<ChannelInfoItem>() {
|
||||||
@Override
|
@Override
|
||||||
public void selected(ChannelInfoItem selectedItem) {
|
public void selected(ChannelInfoItem selectedItem) {
|
||||||
FragmentManager fragmentManager = getFM();
|
final FragmentManager fragmentManager = getFM();
|
||||||
NavigationHelper.openChannelFragment(fragmentManager,
|
NavigationHelper.openChannelFragment(fragmentManager,
|
||||||
selectedItem.getServiceId(),
|
selectedItem.getServiceId(),
|
||||||
selectedItem.getUrl(),
|
selectedItem.getUrl(),
|
||||||
|
|
Loading…
Reference in New Issue