title: How to properly reload liveData manually in Android?
body: <p>My app is a basic news app which fetches data from JSON provided by Guardian API.
  I parsed the values from JSON using raw java code (not using retrofit).</p>
  
  <p>Then I get the LiveData in NewsFeedViewModel class which extends as AndroidViewModel.</p>
  
  <p>And then in the fragment, I submit list to adapter.</p>
  
  <p>These are the issues I'm facing:
  1) at first, if the articles to show is set to 10, then if i go to settings and change it to 2, then the last 8 articles are disappearing but the white space /gap is not going. I can still scroll through the empty gap.
  2) if i change the number of articles value constantly, then app is becoming un-scrollable.</p>
  
  <p>And i have a few more doubts, how to refresh the data manually when swipeToRefresh is happened?</p>
  
  <p>This is my project github link: <a href="https://github.com/sdzshn3/News24-7-RV" rel="nofollow noreferrer">https://github.com/sdzshn3/News24-7-RV</a></p>
  
  <p>Video sample of the issue happening in app: <a href="https://drive.google.com/file/d/1gr_fabS2rqREuyecvGSG3IQ_jXOowlW7/view?usp=drivesdk" rel="nofollow noreferrer">https://drive.google.com/file/d/1gr_fabS2rqREuyecvGSG3IQ_jXOowlW7/view?usp=drivesdk</a></p>