Lines Matching defs:tag
378 public FragmentTransaction add(Fragment fragment, String tag) {
379 doAddOp(0, fragment, tag, OP_ADD);
388 public FragmentTransaction add(int containerViewId, Fragment fragment, String tag) {
389 doAddOp(containerViewId, fragment, tag, OP_ADD);
393 private void doAddOp(int containerViewId, Fragment fragment, String tag, int opcmd) {
396 if (tag != null) {
397 if (fragment.mTag != null && !tag.equals(fragment.mTag)) {
398 throw new IllegalStateException("Can't change tag of fragment "
400 + " now " + tag);
402 fragment.mTag = tag;
424 public FragmentTransaction replace(int containerViewId, Fragment fragment, String tag) {
429 doAddOp(containerViewId, fragment, tag, OP_REPLACE);