Make the ShareBoardFragment's text view ineditable
This commit is contained in:
parent
86f8e3df01
commit
364bb80778
2 changed files with 4 additions and 2 deletions
|
@ -129,8 +129,6 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
|
|
||||||
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -147,6 +145,8 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
GameType gameType = GameType.Unspecified;
|
GameType gameType = GameType.Unspecified;
|
||||||
GameDifficulty gameDifficulty = GameDifficulty.Unspecified;
|
GameDifficulty gameDifficulty = GameDifficulty.Unspecified;
|
||||||
int loadLevelID = 0;
|
int loadLevelID = 0;
|
||||||
|
@ -712,6 +712,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
|
||||||
DialogFragmentShareBoardBinding binding = DialogFragmentShareBoardBinding.inflate(inflater);
|
DialogFragmentShareBoardBinding binding = DialogFragmentShareBoardBinding.inflate(inflater);
|
||||||
|
|
||||||
binding.ver3DisplaySudokuTextView.setText(displayCode);
|
binding.ver3DisplaySudokuTextView.setText(displayCode);
|
||||||
|
binding.ver3DisplaySudokuTextView.setEnabled(false);
|
||||||
binding.ver3CopySudokuToClipboardButton.setOnClickListener(copyClickListener);
|
binding.ver3CopySudokuToClipboardButton.setOnClickListener(copyClickListener);
|
||||||
builder.setView(binding.getRoot());
|
builder.setView(binding.getRoot());
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
android:layout_marginRight="8dp"
|
android:layout_marginRight="8dp"
|
||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:inputType="textPersonName"
|
android:inputType="textPersonName"
|
||||||
|
android:textColor="?attr/standardVectorGraphic"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/ver3_copy_sudoku_to_clipboard_button"
|
app:layout_constraintBottom_toBottomOf="@+id/ver3_copy_sudoku_to_clipboard_button"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/ver3_copy_sudoku_to_clipboard_button"
|
app:layout_constraintEnd_toStartOf="@+id/ver3_copy_sudoku_to_clipboard_button"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
|
Loading…
Reference in a new issue