(fix) misc fixes
also ensure ui consistency Signed-off-by: androidacy-user <opensource@androidacy.com>master
parent
f2d36547c9
commit
3b115044b7
@ -0,0 +1,28 @@
|
||||
package com.fox2code.mmm.utils
|
||||
import com.fox2code.mmm.BuildConfig
|
||||
import com.fox2code.mmm.MainApplication
|
||||
import com.fox2code.mmm.MainApplication.ReleaseTree
|
||||
import io.sentry.Sentry
|
||||
import io.sentry.SentryLevel
|
||||
import io.sentry.android.timber.SentryTimberTree
|
||||
import timber.log.Timber
|
||||
import timber.log.Timber.Forest.plant
|
||||
|
||||
@Suppress("UnstableApiUsage")
|
||||
object TimberUtils {
|
||||
|
||||
@JvmStatic
|
||||
fun configTimber() {
|
||||
// init timber
|
||||
// init timber
|
||||
if (BuildConfig.DEBUG) {
|
||||
plant(Timber.DebugTree())
|
||||
} else {
|
||||
if (MainApplication.isCrashReportingEnabled()) {
|
||||
plant(SentryTimberTree(Sentry.getCurrentHub(), SentryLevel.ERROR, SentryLevel.ERROR))
|
||||
} else {
|
||||
plant(ReleaseTree())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<vector android:autoMirrored="true" android:height="24dp"
|
||||
android:tint="?attr/colorControlNormal" android:viewportHeight="24"
|
||||
android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>
|
||||
</vector>
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/back_installer"
|
||||
android:icon="@drawable/baseline_arrow_back_24"
|
||||
android:title="@string/back"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/install_terminal_reboot_fab"
|
||||
android:icon="@drawable/ic_reboot_24"
|
||||
android:title="@string/install_terminal_reboot_now"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/install_terminal_config"
|
||||
android:icon="@drawable/ic_baseline_settings_24"
|
||||
android:title="@string/config"
|
||||
android:visible="false"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
</menu>
|
Loading…
Reference in New Issue