use of com.frostwire.android.gui.activities.MainActivity in project frostwire by frostwire.
the class MainController method startWizardActivity.
public void startWizardActivity() {
if (!Ref.alive(activityRef)) {
return;
}
MainActivity activity = activityRef.get();
ConfigurationManager.instance().resetToDefaults();
Intent i = new Intent(activity, WizardActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
activity.startActivity(i);
}
use of com.frostwire.android.gui.activities.MainActivity in project frostwire by frostwire.
the class MainController method setTitle.
public void setTitle(CharSequence title) {
if (!Ref.alive(activityRef)) {
return;
}
MainActivity activity = activityRef.get();
activity.setTitle(title);
}
use of com.frostwire.android.gui.activities.MainActivity in project frostwire by frostwire.
the class MainController method switchFragment.
public void switchFragment(int itemId) {
if (!Ref.alive(activityRef)) {
return;
}
MainActivity activity = activityRef.get();
Fragment fragment = activity.getFragmentByNavMenuId(itemId);
if (fragment != null) {
activity.switchContent(fragment);
}
}
use of com.frostwire.android.gui.activities.MainActivity in project frostwire by frostwire.
the class MainController method syncNavigationMenu.
public void syncNavigationMenu() {
if (!Ref.alive(activityRef)) {
return;
}
MainActivity activity = activityRef.get();
activity.syncNavigationMenu();
}
use of com.frostwire.android.gui.activities.MainActivity in project frostwire by frostwire.
the class MainController method showShutdownDialog.
public void showShutdownDialog() {
if (!Ref.alive(activityRef)) {
return;
}
MainActivity activity = activityRef.get();
activity.showShutdownDialog();
}
Aggregations