|
|
@@ -7,6 +7,7 @@ import android.os.Handler
|
|
|
import android.os.Looper
|
|
|
import android.view.MotionEvent
|
|
|
import android.view.View
|
|
|
+import androidx.appcompat.widget.AppCompatButton
|
|
|
import androidx.core.os.bundleOf
|
|
|
import androidx.navigation.Navigation
|
|
|
import com.yingyangfly.baselib.base.BaseFragment
|
|
|
@@ -52,6 +53,16 @@ class StructureOrganizationFragment : BaseFragment<FragmentStructureOrganization
|
|
|
override fun onResume() {
|
|
|
super.onResume()
|
|
|
loadData()
|
|
|
+ if(questionId == 128){
|
|
|
+ binding.tvObservationTheSec.setVisibility(View.VISIBLE);
|
|
|
+ }else {
|
|
|
+
|
|
|
+ binding{
|
|
|
+ tvObservationTheSec.setVisibility(View.GONE);
|
|
|
+ tvImmediateObservation.visibility = View.GONE;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private fun showImage() {
|
|
|
@@ -81,7 +92,9 @@ class StructureOrganizationFragment : BaseFragment<FragmentStructureOrganization
|
|
|
question = questionsDao?.getQuestion(questionId)
|
|
|
if (question != null) {
|
|
|
binding {
|
|
|
- question?.reviewDesc = ""
|
|
|
+ if (questionId == 128){
|
|
|
+ question?.reviewDesc = ""
|
|
|
+ }
|
|
|
data = question
|
|
|
}
|
|
|
}
|
|
|
@@ -137,6 +150,14 @@ class StructureOrganizationFragment : BaseFragment<FragmentStructureOrganization
|
|
|
bundle
|
|
|
)
|
|
|
}
|
|
|
+ if (questionId == 129) {
|
|
|
+ val controller = Navigation.findNavController(v)
|
|
|
+ val bundle = bundleOf("questionId" to 128)
|
|
|
+ controller.navigate(
|
|
|
+ R.id.action_structureOrganizationFragment_to_pictureRecognitionJudgmentFragment,
|
|
|
+ bundle
|
|
|
+ )
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -144,7 +165,7 @@ class StructureOrganizationFragment : BaseFragment<FragmentStructureOrganization
|
|
|
*/
|
|
|
private fun nextPage(v: View) {
|
|
|
val bundle = Bundle()
|
|
|
- bundle.putInt("questionId", 128)
|
|
|
+ bundle.putInt("questionId", questionId)
|
|
|
val bitmap: Bitmap = binding.signatureView.getCachebBitmaps()
|
|
|
bundle.putParcelable("bitmap", bitmap)
|
|
|
val controller = Navigation.findNavController(v)
|