Skip to content

Commit

Permalink
Fix obfuscate optimize and RememberSaveable for TextField
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashinch committed Jan 1, 2023
1 parent 826e56b commit c0ff8ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
-keep class org.xmlpull.v1.* {*;}

# Rome
-keep class com.rometools.** { *; }
-keep class com.rometools.** { *; }

# Provider API
-keep class me.ash.reader.data.provider.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import androidx.compose.material3.Icon
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalFocusManager
Expand Down Expand Up @@ -45,9 +46,9 @@ fun AddFeverAccountDialog(
val focusManager = LocalFocusManager.current
val uiState = viewModel.additionUiState.collectAsStateValue()

var serverUrl by remember { mutableStateOf("") }
var username by remember { mutableStateOf("") }
var password by remember { mutableStateOf("") }
var serverUrl by rememberSaveable { mutableStateOf("") }
var username by rememberSaveable { mutableStateOf("") }
var password by rememberSaveable { mutableStateOf("") }

RYDialog(
modifier = Modifier.padding(horizontal = 44.dp),
Expand Down

0 comments on commit c0ff8ba

Please sign in to comment.