Search in sources :

Example 1 with TransfersFragment

use of com.frostwire.android.gui.fragments.TransfersFragment in project frostwire by frostwire.

the class MainController method showTransfers.

public void showTransfers(TransferStatus status) {
    if (!Ref.alive(activityRef)) {
        return;
    }
    MainActivity activity = activityRef.get();
    if (!(activity.getCurrentFragment() instanceof TransfersFragment)) {
        activity.runOnUiThread(() -> {
            TransfersFragment fragment = (TransfersFragment) activity.getFragmentByNavMenuId(R.id.menu_main_transfers);
            fragment.selectStatusTab(status);
            switchFragment(R.id.menu_main_transfers);
        });
    }
}
Also used : TransfersFragment(com.frostwire.android.gui.fragments.TransfersFragment) MainActivity(com.frostwire.android.gui.activities.MainActivity)

Aggregations

MainActivity (com.frostwire.android.gui.activities.MainActivity)1 TransfersFragment (com.frostwire.android.gui.fragments.TransfersFragment)1