0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-30 23:23:01 +00:00

Bypass lint errors

This commit is contained in:
Marvin W 2016-09-25 02:49:40 +02:00
parent 27ec511f5f
commit 63fd64f540
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
6 changed files with 11 additions and 5 deletions

View file

@ -8,14 +8,14 @@ before_script:
- echo sdk.dir $ANDROID_HOME > local.properties - echo sdk.dir $ANDROID_HOME > local.properties
script: script:
- export TERM=dumb - export TERM=dumb
- export JAVA_OPTS="-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m" - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m"
- ./gradlew build - ./gradlew build
android: android:
components: components:
- platform-tools - platform-tools
- tools - tools
- build-tools-23.0.3 - build-tools-24.0.2
- android-23 - android-24
- extra-android-m2repository - extra-android-m2repository
before_cache: before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

View file

@ -338,6 +338,7 @@ public class LoginActivity extends AssistantActivity {
} }
private class JsBridge { private class JsBridge {
@SuppressWarnings("MissingPermission")
@JavascriptInterface @JavascriptInterface
public final String getAccounts() { public final String getAccounts() {
Account[] accountsByType = accountManager.getAccountsByType(accountType); Account[] accountsByType = accountManager.getAccountsByType(accountType);

View file

@ -36,6 +36,7 @@ import java.util.List;
public class CheckinManager { public class CheckinManager {
private static final long MIN_CHECKIN_INTERVAL = 3 * 60 * 60 * 1000; // 3 hours private static final long MIN_CHECKIN_INTERVAL = 3 * 60 * 60 * 1000; // 3 hours
@SuppressWarnings("MissingPermission")
public static synchronized LastCheckinInfo checkin(Context context, boolean force) throws IOException { public static synchronized LastCheckinInfo checkin(Context context, boolean force) throws IOException {
LastCheckinInfo info = LastCheckinInfo.read(context); LastCheckinInfo info = LastCheckinInfo.read(context);
if (!force && info.lastCheckin > System.currentTimeMillis() - MIN_CHECKIN_INTERVAL) if (!force && info.lastCheckin > System.currentTimeMillis() - MIN_CHECKIN_INTERVAL)

View file

@ -48,6 +48,7 @@ public class CheckinService extends IntentService {
super(TAG); super(TAG);
} }
@SuppressWarnings("MissingPermission")
@Override @Override
protected void onHandleIntent(Intent intent) { protected void onHandleIntent(Intent intent) {
try { try {

View file

@ -46,6 +46,7 @@ public class PeopleServiceImpl extends IPeopleService.Stub {
this.context = context; this.context = context;
} }
@SuppressWarnings("MissingPermission")
@Override @Override
public void loadOwners(final IPeopleCallbacks callbacks, boolean var2, boolean var3, final String accountName, String var5, int sortOrder) { public void loadOwners(final IPeopleCallbacks callbacks, boolean var2, boolean var3, final String accountName, String var5, int sortOrder) {
Log.d(TAG, "loadOwners: " + var2 + ", " + var3 + ", " + accountName + ", " + var5 + ", " + sortOrder); Log.d(TAG, "loadOwners: " + var2 + ", " + var3 + ", " + accountName + ", " + var5 + ", " + sortOrder);

View file

@ -15,12 +15,14 @@
~ limitations under the License. ~ limitations under the License.
--> -->
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<item <item
android:id="@+id/menu_action_search" android:id="@+id/menu_action_search"
android:icon="@drawable/ic_magnify" android:icon="@drawable/ic_magnify"
android:title="@android:string/search_go" android:title="@android:string/search_go"
app:actionViewClass="android.support.v7.widget.SearchView" app:actionViewClass="android.support.v7.widget.SearchView"
app:showAsAction="ifRoom|collapseActionView"/> app:showAsAction="ifRoom|collapseActionView"
tools:ignore="AppCompatResource"/>
</menu> </menu>