Sha256: 6ba56be39770932d61b7b8e349c0cd931596dffc754789b2e5a94771cf658bf0
Contents?: true
Size: 842 Bytes
Versions: 8
Compression:
Stored size: 842 Bytes
Contents
package sh.calaba.instrumentationbackend.actions.search; import android.annotation.TargetApi; import android.os.Build; import android.widget.SearchView; import sh.calaba.instrumentationbackend.InstrumentationBackend; import sh.calaba.instrumentationbackend.Result; import sh.calaba.instrumentationbackend.actions.Action; @TargetApi(Build.VERSION_CODES.HONEYCOMB) public class EnterQueryByIndex implements Action { @Override public Result execute(String... args) { final String query = args[0]; final SearchView view = (SearchView) InstrumentationBackend.solo.getView( SearchView.class, Integer.parseInt(args[1]) - 1); view.setQuery(query, true); return Result.successResult(); } @Override public String key() { return "enter_query_into_numbered_field"; } }
Version data entries
8 entries across 8 versions & 1 rubygems