Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lutsenko-yuriy committed Mar 5, 2018
1 parent 0eb5130 commit ee4b8a1
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 218 deletions.
6 changes: 5 additions & 1 deletion app-kotlin/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.gun0912.app_kotlin">

<uses-permission android:name="android.permission.READ_CONTACTS" />
Expand All @@ -8,13 +9,16 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />

<!-- It is supposed to be a demo. It is not supposed to be indexed by Google Play -->
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:fullBackupContent="true"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class MainActivity : AppCompatActivity() {
}

onProceedingToSettings {
closeButtonText("Go to settings")
closeButtonText(R.string.custom_close_text)
}

}
Expand Down
34 changes: 0 additions & 34 deletions app-kotlin/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

170 changes: 0 additions & 170 deletions app-kotlin/src/main/res/drawable/ic_launcher_background.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app-kotlin/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion app-kotlin/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<resources>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:ignore="UnusedResources">

<string name="app_name">TedPermissionDemoKotlinDsl</string>

Expand Down
20 changes: 20 additions & 0 deletions tedpermission/src/main/res/values-v11/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>

<style name="Theme.Transparent.Permission"
parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>

<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>


</style>
</resources>
1 change: 0 additions & 1 deletion tedpermission/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>

<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
Expand Down

0 comments on commit ee4b8a1

Please sign in to comment.