Exploit databaseDownload repository ZIP
GH-1615919550439d2f818f9bf6b428941b
8081knights/knights-8081-power-play-2022
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
8081knights/knights-8081-power-play-2022Revision 5dcd00c2546a
- ↑..Parent directory
- Category.java
- NumberCategory.java
- OptionMenu.java
- SingleSelectCategory.java
- TextCategory.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/RecordTests/options/TextCategory.java
Java · 1,470 bytespackage org.firstinspires.ftc.teamcode.RecordTests.options;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
/**
* A simple text entry category
*/
public class TextCategory implements Category {
String name;
View view;
int id;
public TextCategory(String name) {
this.name = name;
}
/**
* @inheritDoc Constructs an EditText object with simple text input
*/
@Override
public View getView(Context context) {
//Create row
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout row = new LinearLayout(context);
row.setOrientation(LinearLayout.HORIZONTAL);
//Create TextView
TextView t = (TextView) inflater.inflate(android.R.layout.simple_list_item_1, null);
t.setText(name);
row.addView(t);
//Create EditText
EditText text = new EditText(context);
text.setId(id);
row.addView(text);
view = row;
return view;
}
/**
* @inheritDoc Return value of EditText
*/
@Override
public String getResult() {
EditText edit = (EditText) view.findViewById(id);
return edit.getText().toString();
}
@Override
public String getName() {
return name;
}
}