|
@ -1,6 +1,4 @@ |
|
|
package com.nivesh.production.bajajfd.ui.activity |
|
|
package com.nivesh.production.bajajfd.ui.activity |
|
|
|
|
|
|
|
|
import android.R |
|
|
|
|
|
import android.graphics.drawable.Drawable |
|
|
import android.graphics.drawable.Drawable |
|
|
import android.os.Bundle |
|
|
import android.os.Bundle |
|
|
import android.util.Log |
|
|
import android.util.Log |
|
@ -8,7 +6,6 @@ import androidx.appcompat.app.AppCompatActivity |
|
|
import androidx.lifecycle.ViewModelProvider |
|
|
import androidx.lifecycle.ViewModelProvider |
|
|
import androidx.viewpager.widget.ViewPager |
|
|
import androidx.viewpager.widget.ViewPager |
|
|
import com.google.gson.Gson |
|
|
import com.google.gson.Gson |
|
|
import com.nivesh.production.bajajfd.R |
|
|
|
|
|
import com.nivesh.production.bajajfd.adapter.SectionsPagerAdapter |
|
|
import com.nivesh.production.bajajfd.adapter.SectionsPagerAdapter |
|
|
import com.nivesh.production.bajajfd.api.ApiClient |
|
|
import com.nivesh.production.bajajfd.api.ApiClient |
|
|
import com.nivesh.production.bajajfd.databinding.ActivityBajajFdBinding |
|
|
import com.nivesh.production.bajajfd.databinding.ActivityBajajFdBinding |
|
@ -454,7 +451,11 @@ class BajajFdMainActivity : AppCompatActivity(), BajajFDInterface ,SendData{ |
|
|
override fun sendDataFragment(message: String?) { |
|
|
override fun sendDataFragment(message: String?) { |
|
|
val tag = "android:switcher:" + com.nivesh.production.bajajfd.R.id.viewPager.toString() + ":" + 1 |
|
|
val tag = "android:switcher:" + com.nivesh.production.bajajfd.R.id.viewPager.toString() + ":" + 1 |
|
|
val f: StepFourBajajFDFragment? = supportFragmentManager.findFragmentByTag(tag) as StepFourBajajFDFragment? |
|
|
val f: StepFourBajajFDFragment? = supportFragmentManager.findFragmentByTag(tag) as StepFourBajajFDFragment? |
|
|
f.displayReceivedData(message) |
|
|
|
|
|
|
|
|
if (f != null) { |
|
|
|
|
|
if (message != null) { |
|
|
|
|
|
f.displayReceivedData(message) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|