move the text coloring function into the fragment

This commit is contained in:
tibbi 2017-03-11 22:31:14 +01:00
parent 0a22f396cd
commit 067fa79ef6
2 changed files with 5 additions and 7 deletions

View file

@ -10,7 +10,10 @@ import android.support.v4.app.ActivityCompat
import android.view.Menu
import android.view.MenuItem
import com.simplemobiletools.commons.dialogs.StoragePickerDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.extensions.getInternalStoragePath
import com.simplemobiletools.commons.extensions.hasWriteStoragePermission
import com.simplemobiletools.commons.extensions.storeStoragePaths
import com.simplemobiletools.commons.extensions.toast
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
import com.simplemobiletools.commons.helpers.LICENSE_MULTISELECT
import com.simplemobiletools.commons.models.FileDirItem
@ -45,11 +48,6 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
storeStoragePaths()
}
override fun onResume() {
super.onResume()
updateTextColors(main_screen)
}
override fun onDestroy() {
super.onDestroy()
config.isFirstRun = false

View file

@ -2,7 +2,6 @@ package com.simplemobiletools.filemanager.fragments
import android.content.ActivityNotFoundException
import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import android.os.Parcelable
@ -51,6 +50,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
items_swipe_refresh.setOnRefreshListener({ fillItems() })
items_fab.setOnClickListener { createNewItem() }
context.updateTextColors(items_holder)
}
override fun onResume() {