Skip to content

Commit

Permalink
SuppressLint
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Sep 9, 2016
1 parent b76f410 commit 35cb273
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_arrow_drop_down.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_content_add.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_content_copy.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_content_create.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_content_paste.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_device_nfc.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_done_all.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_image_camera_alt.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions src/main/res/drawable/ic_social_share.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
3 changes: 2 additions & 1 deletion src/main/res/drawable/ic_start_busy.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand All @@ -11,4 +12,4 @@
<path
android:fillColor="#fff"
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" />
</vector>
</vector>
3 changes: 2 additions & 1 deletion src/main/res/drawable/ic_start_connected.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand All @@ -11,4 +12,4 @@
<path
android:fillColor="#fff"
android:pathData="M 9.45 17.56 L 12.09 18.41 L 9.46 22 L 9.45 17.56 Z" />
</vector>
</vector>
3 changes: 2 additions & 1 deletion src/main/res/drawable/ic_start_idle.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!--suppress NewApi -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand All @@ -22,4 +23,4 @@
<path
android:fillColor="#fff"
android:pathData="M8.56,8.56L0,12.8l6.83,2.57,4.64-3.9ZM6.44,13.08L5,12.55l5-2.47Z" />
</vector>
</vector>
1 change: 1 addition & 0 deletions src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</style>

<style name="Theme.Material" parent="Theme.AppCompat.Light.NoActionBar">
<!--suppress NewApi -->
<item name="android:navigationBarColor">@color/material_accent_700</item>
<item name="colorAccent">@color/material_accent_500</item>
<item name="colorButtonNormal">@color/material_accent_500</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ package com.github.shadowsocks
import java.io.File
import java.util.Locale

import android.annotation.SuppressLint
import android.content._
import android.content.pm.PackageManager.NameNotFoundException
import android.net.VpnService
Expand Down Expand Up @@ -325,6 +326,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
pdnsdProcess = new GuardedProcess(cmd).start()
}

@SuppressLint(Array("NewApi"))
def startVpn(): Int = {

val builder = new Builder()
Expand Down

0 comments on commit 35cb273

Please sign in to comment.