Skip to content

Commit 35cb273

Browse files
committed
SuppressLint
1 parent b76f410 commit 35cb273

14 files changed

+18
-3
lines changed

Diff for: src/main/res/drawable/ic_arrow_drop_down.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_content_add.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_content_copy.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_content_create.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_content_paste.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_device_nfc.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_done_all.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_image_camera_alt.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_social_share.xml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress NewApi -->
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"

Diff for: src/main/res/drawable/ic_start_busy.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--suppress NewApi -->
23
<vector xmlns:android="http://schemas.android.com/apk/res/android"
34
android:width="24dp"
45
android:height="24dp"
@@ -11,4 +12,4 @@
1112
<path
1213
android:fillColor="#fff"
1314
android:pathData="M 9.45 17.56 L 9.46 22 L 12.09 18.41 L 9.45 17.56 L 9.45 17.56 Z" />
14-
</vector>
15+
</vector>

Diff for: src/main/res/drawable/ic_start_connected.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--suppress NewApi -->
23
<vector xmlns:android="http://schemas.android.com/apk/res/android"
34
android:width="24dp"
45
android:height="24dp"
@@ -11,4 +12,4 @@
1112
<path
1213
android:fillColor="#fff"
1314
android:pathData="M 9.45 17.56 L 12.09 18.41 L 9.46 22 L 9.45 17.56 Z" />
14-
</vector>
15+
</vector>

Diff for: src/main/res/drawable/ic_start_idle.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--suppress NewApi -->
23
<vector xmlns:android="http://schemas.android.com/apk/res/android"
34
android:width="24dp"
45
android:height="24dp"
@@ -22,4 +23,4 @@
2223
<path
2324
android:fillColor="#fff"
2425
android:pathData="M8.56,8.56L0,12.8l6.83,2.57,4.64-3.9ZM6.44,13.08L5,12.55l5-2.47Z" />
25-
</vector>
26+
</vector>

Diff for: src/main/res/values/styles.xml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</style>
88

99
<style name="Theme.Material" parent="Theme.AppCompat.Light.NoActionBar">
10+
<!--suppress NewApi -->
1011
<item name="android:navigationBarColor">@color/material_accent_700</item>
1112
<item name="colorAccent">@color/material_accent_500</item>
1213
<item name="colorButtonNormal">@color/material_accent_500</item>

Diff for: src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ package com.github.shadowsocks
4242
import java.io.File
4343
import java.util.Locale
4444

45+
import android.annotation.SuppressLint
4546
import android.content._
4647
import android.content.pm.PackageManager.NameNotFoundException
4748
import android.net.VpnService
@@ -325,6 +326,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
325326
pdnsdProcess = new GuardedProcess(cmd).start()
326327
}
327328

329+
@SuppressLint(Array("NewApi"))
328330
def startVpn(): Int = {
329331

330332
val builder = new Builder()

0 commit comments

Comments
 (0)