Commit 1268752f authored by Isira Seneviratne's avatar Isira Seneviratne

Set hamburger button color to white.

parent ae8d3098
......@@ -46,10 +46,7 @@ import edu.berkeley.boinc.client.IMonitor
import edu.berkeley.boinc.client.Monitor
import edu.berkeley.boinc.databinding.MainBinding
import edu.berkeley.boinc.ui.eventlog.EventLogActivity
import edu.berkeley.boinc.utils.Logging
import edu.berkeley.boinc.utils.RUN_MODE_AUTO
import edu.berkeley.boinc.utils.RUN_MODE_NEVER
import edu.berkeley.boinc.utils.writeClientModeAsync
import edu.berkeley.boinc.utils.*
import kotlinx.coroutines.launch
class BOINCActivity : AppCompatActivity() {
......@@ -131,6 +128,7 @@ class BOINCActivity : AppCompatActivity() {
invalidateOptionsMenu()
}
}
mDrawerToggle.drawerArrowDrawable.color = getColorCompat(R.color.white)
binding.drawerLayout.addDrawerListener(mDrawerToggle)
// pre-select fragment
......
......@@ -25,9 +25,11 @@ import android.graphics.Bitmap
import android.net.ConnectivityManager
import android.os.Build
import android.os.RemoteException
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.appcompat.app.AppCompatDelegate
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.content.ContextCompat
import androidx.core.graphics.drawable.toBitmap
import edu.berkeley.boinc.BOINCActivity
import edu.berkeley.boinc.R
......@@ -113,3 +115,6 @@ fun Context.translateRPCReason(reason: Int) = when (reason) {
inline fun Long.secondsToLocalDateTime(
zoneId: ZoneId = ZoneId.systemDefault()
): LocalDateTime = LocalDateTime.ofInstant(Instant.ofEpochSecond(this), zoneId)
@Suppress("NOTHING_TO_INLINE")
inline fun Context.getColorCompat(@ColorRes colorId: Int) = ContextCompat.getColor(this, colorId)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment