mirror of
https://gitlab.com/neothefox/LayTray
synced 2026-03-23 21:54:54 +03:00
Removed the ability to manually enter or change layouts
This commit is contained in:
parent
fcb7db7f3c
commit
051cb5d174
@ -18,6 +18,7 @@ import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
import android.util.Log;
|
||||
import android.widget.Space;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import java.util.Map;
|
||||
@ -38,9 +39,7 @@ implements View.OnClickListener, SharedPreferences.OnSharedPreferenceChangeListe
|
||||
updateLayouts();
|
||||
|
||||
FloatingActionButton addButton = findViewById(R.id.floatingActionButton);
|
||||
Button saveButton = findViewById(R.id.saveButton);
|
||||
addButton.setOnClickListener(this);
|
||||
saveButton.setOnClickListener(this);
|
||||
layouts.registerOnSharedPreferenceChangeListener(this);
|
||||
|
||||
if (!isAccessibilitySettingsOn(getApplicationContext())) {
|
||||
@ -106,6 +105,7 @@ implements View.OnClickListener, SharedPreferences.OnSharedPreferenceChangeListe
|
||||
|
||||
EditText layoutName = new EditText(getApplicationContext());
|
||||
layoutName.setText(name);
|
||||
layoutName.setEnabled(false);
|
||||
layoutLine.addView(layoutName);
|
||||
|
||||
EditText layoutIcon = new EditText(getApplicationContext());
|
||||
@ -211,11 +211,9 @@ implements View.OnClickListener, SharedPreferences.OnSharedPreferenceChangeListe
|
||||
switch(v.getId())
|
||||
{
|
||||
case R.id.floatingActionButton:
|
||||
addLine(layoutLister);
|
||||
break;
|
||||
case R.id.saveButton:
|
||||
saveLayouts(layoutLister);
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -46,17 +46,7 @@
|
||||
app:backgroundTint="?attr/colorPrimary"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:srcCompat="@android:drawable/ic_input_add" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/saveButton"
|
||||
android:layout_width="81dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="Save"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:srcCompat="@android:drawable/ic_menu_save" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user