inflateAndAdd logic fixed

This commit is contained in:
Gavriil Sitnikov 2016-04-06 16:08:57 +03:00
parent 2bb46eaca6
commit 8b45d9a97a
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ public final class UiUtils {
@NonNull
public static View inflateAndAdd(@LayoutRes final int layoutId, @NonNull final ViewGroup parent) {
return LayoutInflater.from(parent.getContext()).inflate(layoutId, parent, true);
LayoutInflater.from(parent.getContext()).inflate(layoutId, parent, true);
return parent.getChildAt(parent.getChildCount() - 1);
}
public static boolean tryForeachFragment(@NonNull final FragmentManager fragmentManager,