desc:lint

main
xiaowusky 2 years ago
parent 04cf34dcfe
commit eda19438ac

@ -111,26 +111,6 @@
android:screenOrientation="landscape"
android:exported="false"
android:theme="@style/FullscreenTheme" />
<activity
android:name=".MainActivity"
android:exported="false"
android:launchMode="singleInstance" />
<activity
android:name=".UVCActivity"
android:exported="false"
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
</activity>
</application>
</manifest>

@ -1,6 +1,5 @@
package com.yinuo.safetywatcher.watcher.utils
import android.R
import android.content.Context
import android.graphics.drawable.StateListDrawable
import android.view.View
@ -12,7 +11,7 @@ fun Context.showToast(msg: String) {
CommonToast(this).makeCommonText(this, msg, Toast.LENGTH_SHORT).show()
}
private val focusableStateKey: IntArray = intArrayOf(R.attr.state_focused)
private val focusableStateKey: IntArray = intArrayOf(android.R.attr.state_focused)
fun View?.trySetCommonBg() {
this?.apply {
val bg = StateListDrawable()

@ -40,7 +40,6 @@
android:layout_margin="3dp"
android:clickable="true"
android:gravity="center"
android:onClick="onTakePictureThumbClicked"
android:padding="3dp"
android:scaleType="centerCrop"
android:visibility="invisible" />

Loading…
Cancel
Save