mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
Combineされていないドキュメントの場合はTabLayoutを隠すように
This commit is contained in:
parent
e1bc6466e7
commit
4649399ef9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user