Added Script file chooser. Fixed the issue that background image setting not working

This commit is contained in:
hyb1996
2017-04-03 16:28:07 +08:00
parent bfabef6a0e
commit 59811a4a5d
53 changed files with 1465 additions and 530 deletions

View File

@@ -1,5 +1,7 @@
package com.stardust.automator.filter;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.view.accessibility.AccessibilityNodeInfo;
import java.util.HashMap;
@@ -147,6 +149,7 @@ public class BooleanFilter extends DfsFilter {
public static final BooleanSupplier CONTEXT_CLICKABLE = new BooleanSupplier() {
@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public boolean get(AccessibilityNodeInfo node) {
return node.isContextClickable();
@@ -169,14 +172,6 @@ public class BooleanFilter extends DfsFilter {
}
};
public static final BooleanSupplier importantForAccessibility = new BooleanSupplier() {
@Override
public boolean get(AccessibilityNodeInfo node) {
return node.isImportantForAccessibility();
}
};
private BooleanSupplier mBooleanSupplier;
private boolean mExceptedValue;