update commons to 3.0.3

This commit is contained in:
tibbi
2017-11-29 23:24:00 +01:00
parent f9a64bf6cc
commit 0af6c7e5ba
6 changed files with 21 additions and 30 deletions

View File

@ -2,7 +2,8 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.simplemobiletools.flashlight">
package="com.simplemobiletools.flashlight"
android:installLocation="auto">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.FLASHLIGHT"/>

View File

@ -1,12 +1,10 @@
package com.simplemobiletools.flashlight.activities
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.simplemobiletools.commons.activities.BaseSplashActivity
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
class SplashActivity : BaseSplashActivity() {
override fun initActivity() {
startActivity(Intent(this, MainActivity::class.java))
finish()
}

View File

@ -6,7 +6,6 @@ import android.content.Intent
import android.graphics.Color
import android.graphics.PorterDuff
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.SeekBar
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
import com.simplemobiletools.commons.extensions.adjustAlpha
@ -15,13 +14,14 @@ import com.simplemobiletools.flashlight.extensions.config
import com.simplemobiletools.flashlight.helpers.MyWidgetProvider
import kotlinx.android.synthetic.main.widget_config.*
class WidgetConfigureActivity : AppCompatActivity() {
class WidgetConfigureActivity : SimpleActivity() {
private var mWidgetAlpha = 0f
private var mWidgetId = 0
private var mWidgetColor = 0
private var mWidgetColorWithoutTransparency = 0
public override fun onCreate(savedInstanceState: Bundle?) {
useDynamicTheme = false
super.onCreate(savedInstanceState)
setResult(Activity.RESULT_CANCELED)
setContentView(R.layout.widget_config)

View File

@ -17,7 +17,7 @@ internal class MarshmallowCamera constructor(val context: Context) {
init {
try {
cameraId = manager.cameraIdList[0]
cameraId = manager.cameraIdList[0] ?: "0"
} catch (ignored: CameraAccessException) {
}
}