|
@@ -75,29 +75,7 @@ class StampTabView : ConstraintLayout {
|
|
|
val standardStampView = layoutInflater.inflate(R.layout.view_viewer_edit_item_stamp_standard, container, false)
|
|
|
val recyclerView = standardStampView.recyclerView_shapeStandard
|
|
|
recyclerView.layoutManager = GridLayoutManager(context, 3)
|
|
|
- val resourceIds = arrayOf(
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_APPROVED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_NOTAPPROVED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_DRAFT.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_FINAL.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_COMPLETED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_CONFIDENTIAL.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_FORPUBLICRELEASE.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_NOTFORPUBLICRELEASE.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_FORCOMMENT.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_VOID.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_PRELIMINARYRESULTS.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_INFORMATIONONLY.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_WITNESS.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_INITIALHERE.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_SIGNHERE.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_REVISED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_ACCEPTED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_REJECTED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_PRIVATEACCEPTED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_PRIVATEREJECTED.resId,
|
|
|
- STANDARD_STAMP_RES.PDF_STAMP_PRIVATERADIOMARK.resId)
|
|
|
- val adapter = StandardStampAdapter(context, resourceIds)
|
|
|
+ val adapter = StandardStampAdapter(context, STANDARD_STAMP_RES.values())
|
|
|
adapter.setOnStampClickListener(object : OnStampClickListener {
|
|
|
override fun onStampClick(index: Int) {
|
|
|
selectedStandardStampIndex = index
|