Skip to content

Commit

Permalink
removed defaults and digit limit, allow hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
niccellular committed Jul 28, 2021
1 parent 783515d commit fd35d84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions app/src/main/java/org/FreeTak/FreeTAKUAS/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
});

FtsIpEditText = (EditText) findViewById(R.id.edittext_fts_ip);
FtsIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_IP, "204.48.30.216:19023"));
//FtsIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_IP, ""));
//FtsIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_IP, "204.48.30.216:19023"));
FtsIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_IP, ""));
FtsIpEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
Expand Down Expand Up @@ -251,8 +251,8 @@ public void afterTextChanged(Editable s) {
}
});
FtsApiEditText = (EditText) findViewById(R.id.edittext_fts_apikey);
FtsApiEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_API, "token"));
//FtsApiEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_API, ""));
//FtsApiEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_API, "token"));
FtsApiEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_FTS_API, ""));
FtsApiEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
Expand Down Expand Up @@ -293,8 +293,8 @@ public void afterTextChanged(Editable s) {
}
});
RtmpIpEditText = (EditText) findViewById(R.id.edittext_rtmp_ip);
RtmpIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_RTMP_IP, "64.227.70.49:1935"));
//RtmpIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_RTMP_IP, ""));
//RtmpIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_RTMP_IP, "64.227.70.49:1935"));
RtmpIpEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_RTMP_IP, ""));
RtmpIpEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
Expand Down Expand Up @@ -335,8 +335,8 @@ public void afterTextChanged(Editable s) {
}
});
DroneNameEditText = (EditText) findViewById(R.id.edittext_drone_name);
DroneNameEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_DRONE_NAME, "djcombo"));
//DroneNameEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_DRONE_NAME, ""));
//DroneNameEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_DRONE_NAME, "djcombo"));
DroneNameEditText.setText(PreferenceManager.getDefaultSharedPreferences(this).getString(LAST_USED_DRONE_NAME, ""));
DroneNameEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
android:layout_column="0"
android:layout_margin="10dp"
android:background="@color/gray"
android:digits="0123456789.:"

android:gravity="center"
android:hint="@string/fts_ip"
android:imeOptions="actionDone"
Expand All @@ -78,7 +78,7 @@
android:layout_column="0"
android:layout_margin="10dp"
android:background="@color/gray"
android:digits="0123456789.:"

android:gravity="center"
android:hint="@string/rtmp_ip"
android:imeOptions="actionDone"
Expand Down

0 comments on commit fd35d84

Please sign in to comment.