Skip to content

Commit 3ec38cd

Browse files
committed
Cleanup
1 parent 1095c37 commit 3ec38cd

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

LogcatCoreLib/src/main/java/info/hannes/logcat/base/LogBaseFragment.kt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)