File tree Expand file tree Collapse file tree
LogcatCoreLib/src/main/java/info/hannes/logcat/base Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,15 +64,12 @@ abstract class LogBaseFragment : Fragment() {
6464 }
6565
6666 private fun showLogContent () = lifecycle.coroutineScope.launch(Dispatchers .Main ) {
67- showLoadingDialog()
6867 val logEntries = withContext(Dispatchers .Default ) {
6968 readLogFile()
7069 }
7170 logListAdapter = LogListAdapter (logEntries, currentFilter)
7271 logsRecycler.adapter = logListAdapter
7372 logsRecycler.adapter?.itemCount?.minus(1 )?.let { logsRecycler.scrollToPosition(it) }
74-
75- dismissLoadingDialog()
7673 }
7774
7875 override fun onCreateOptionsMenu (menu : Menu , inflater : MenuInflater ) {
@@ -231,25 +228,10 @@ abstract class LogBaseFragment : Fragment() {
231228
232229 abstract fun readLogFile (): ArrayList <String >
233230
234- private fun showLoadingDialog () {
235- showProgress++
236- if (showProgress == 1 ) {
237-
238- }
239- }
240-
241- private fun dismissLoadingDialog () {
242- showProgress--
243- if (showProgress == 0 ) {
244-
245- }
246- }
247-
248231 companion object {
249232
250233 private const val MAIL_ATTACHMENT_TYPE = " text/plain"
251234
252- private var showProgress = 0
253235 const val FILE_NAME = " targetFilename"
254236 const val SEARCH_HINT = " search_hint"
255237 const val MAIL_LOGGER = " mail_logger"
You can’t perform that action at this time.
0 commit comments