diff --git a/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt b/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt index 4fc6d3c830..74aee0db92 100644 --- a/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt +++ b/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt @@ -21,6 +21,7 @@ import android.view.LayoutInflater import android.view.MenuItem import android.view.View import android.view.ViewGroup +import android.widget.Button import android.widget.ProgressBar import android.widget.TextView import androidx.appcompat.app.AppCompatActivity @@ -48,6 +49,7 @@ class PeriodicSyncFragment : Fragment() { setUpActionBar() setHasOptionsMenu(true) refreshPeriodicSynUi() + setUpSyncButtons(view) } override fun onOptionsItemSelected(item: MenuItem): Boolean { @@ -67,6 +69,30 @@ class PeriodicSyncFragment : Fragment() { } } + private fun setUpSyncButtons(view: View) { + val syncNowButton = view.findViewById