Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.meproject.newsstream.data.remote.dto.mediator | |
| import androidx.paging.ExperimentalPagingApi | |
| import androidx.paging.LoadType | |
| import androidx.paging.PagingState | |
| import androidx.paging.RemoteMediator | |
| import androidx.room.withTransaction | |
| import com.meproject.newsstream.data.local.NewsDatabase | |
| import com.meproject.newsstream.data.local.explore.AllNewsItemEntity | |
| import com.meproject.newsstream.data.mappers.toAllNewsItemEntity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MainActivity extends AppCompatActivity { | |
| private ActivityMainBinding binding; | |
| ActivityResultLauncher<String> mChoosePhoto; | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| binding = ActivityMainBinding.inflate(getLayoutInflater()); | |
| setContentView(binding.getRoot()); |