Combineされていないドキュメントの場合はTabLayoutを隠すように

This commit is contained in:
r-ca 2024-01-28 13:30:33 +09:00
parent e1bc6466e7
commit 4649399ef9
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -12,6 +12,7 @@ import android.view.ViewGroup;
import android.widget.Toast;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.tabs.TabLayout;
import com.google.android.material.textfield.TextInputEditText;
import com.google.android.material.textfield.TextInputLayout;
@ -112,6 +113,8 @@ public class ViewerContainerFragment extends Fragment {
}
});
} else {
TabLayout tabLayout = view.findViewById(R.id.tab_layout);
tabLayout.setVisibility(View.GONE);
viewerViewPagerAdapter.addFragment(ViewerBodyFragment.newInstance(documentId, documentName), documentName);
}
}