|
|
|
@ -317,15 +317,21 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
intent.removeExtra(Intent.EXTRA_PROCESS_TEXT);
|
|
|
|
|
setIntent(intent);
|
|
|
|
|
|
|
|
|
|
if (Helper.isPro(this)) {
|
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
|
args.putString("search", search);
|
|
|
|
|
|
|
|
|
|
new SimpleTask<Long>() {
|
|
|
|
|
@Override
|
|
|
|
|
protected Long onLoad(Context context, Bundle args) {
|
|
|
|
|
EntityFolder archive = DB.getInstance(context).folder().getPrimaryArchive();
|
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
|
|
|
|
|
|
EntityFolder archive = db.folder().getPrimaryArchive();
|
|
|
|
|
if (archive == null)
|
|
|
|
|
throw new IllegalArgumentException(getString(R.string.title_no_archive));
|
|
|
|
|
|
|
|
|
|
db.message().deleteFoundMessages();
|
|
|
|
|
|
|
|
|
|
return archive.id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -348,6 +354,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
Helper.unexpectedError(ActivityView.this, ex);
|
|
|
|
|
}
|
|
|
|
|
}.load(this, args);
|
|
|
|
|
} else {
|
|
|
|
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, new FragmentPro()).addToBackStack("pro");
|
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|