title: ROOM livedata not emitting results of ROOM.CALLBACK.onCreate() after fresh install
body: <p>I created a simple ROOM DB and am trying to prepopulate it with some data when the database is being created for the first time.</p>
  <p>The results of ROOM's Callback are being shown in the Database Inspector but is not being updated when I'm trying to observe the live data.</p>
  <p>Also when I open the app the second time, The livedata is getting properly populated.</p>
  <p>and If I change the value in the Database inspector after a fresh install, the livedata gets the result.</p>
  <p><em><strong>Observer in Fragment</strong></em></p>
  <pre><code>viewModel.listOfData.observe(viewLifecycleOwner){
              Log.i(TAG, &quot;onCreateView: $it&quot;)
              adapter.submitList(it)
          }
  </code></pre>
  <p><em><strong>ViewModel</strong></em></p>
  <pre><code>class DummyViewModel(context: Application) : AndroidViewModel(context) {
  
      private val repo :DummyRepo = DummyRepo.getInstance(context.applicationContext)
      
      val listOfData : LiveData&lt;List&lt;Dummy&gt;&gt; = repo.getAll()
      
  }
  
  </code></pre>
  <p><em><strong>Dao Method I'm calling</strong></em></p>
  <pre><code>@Query(&quot;SELECT * FROM Dummy&quot;)
      fun getAll(): LiveData&lt;List&lt;Dummy&gt;&gt;
  </code></pre>
  <p><em><strong>My Database</strong></em></p>
  <pre><code>
  @Database(entities = [Dummy::class], version = 1)
  abstract class DummyDB : RoomDatabase() {
  
  
      //add your dao's here
      abstract fun dummyDao(): DummyDao
  
      companion object {
          @Volatile
          private var dbInstance: DummyDB? = null
  
          fun getInstance(context: Context) = dbInstance ?: synchronized(this) {
              Room.databaseBuilder(context, DummyDB::class.java, &quot;DummyDB&quot;)
                  .addCallback(RoomCallback(context))
                  .build()
          }
  
          suspend fun prePopulateDB(context: Context) {
  
              val dao = getInstance(context).dummyDao()
  
              dao.insertAll(
                  listOf(
                      Dummy(c1 = &quot;something&quot;, c2 = 1, c3 = false),
                      Dummy(c1 = &quot;something1&quot;, c2 = 11, c3 = false),
                      Dummy(c1 = &quot;something2&quot;, c2 = 12, c3 = false),
                      Dummy(c1 = &quot;something3&quot;, c2 = 13, c3 = false),
                      Dummy(c1 = &quot;something4&quot;, c2 = 14, c3 = false),
                      Dummy(c1 = &quot;something5&quot;, c2 = 51, c3 = false),
                      Dummy(c1 = &quot;something6&quot;, c2 = 16, c3 = false),
                  )
              )
          }
      }
  
      private class RoomCallback(val context: Context):RoomDatabase.Callback(){
          override fun onCreate(db: SupportSQLiteDatabase) {
              GlobalScope.launch {
                  prePopulateDB(context)
              }
          }
      }
  
  </code></pre>