Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
quick_max
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e0153557
authored
5 years ago
by
likorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the bug with saving values
parent
d6d9a2b4
master
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app/src/main/java/com/example/quickmax/MainActivity.kt
app/src/main/java/com/example/quickmax/MainActivity.kt
View file @
e0153557
...
...
@@ -36,6 +36,7 @@ class MainActivity : AppCompatActivity() {
val
cardM
=
card
as
MaterialCardView
if
(!
cardM
.
isChecked
)
{
cardM
.
isChecked
=
true
checkedCard
=
cardM
numDigits
=
getTextView
(
card
).
text
.
toString
().
toInt
()
listOf
(
card_2_digits
,
card_3_digits
,
card_4_digits
).
forEach
{
c
->
if
(
c
.
id
!=
cardM
.
id
)
...
...
@@ -56,6 +57,7 @@ class MainActivity : AppCompatActivity() {
private
fun
saveSelectedValues
()
{
val
editor
=
getSharedPreferences
(
"my_prefs"
,
Context
.
MODE_PRIVATE
).
edit
()
editor
.
putInt
(
"sec_to_solve"
,
secToSolve
)
editor
.
putInt
(
"checked_num_id"
,
checkedCard
.
id
)
editor
.
apply
()
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment