Skip to content

Commit

Permalink
[#1467] Activity resizing according to soft keyboard
Browse files Browse the repository at this point in the history
Closes #1467
  • Loading branch information
Milan-Cerovsky committed Jul 19, 2024
1 parent 0bc7757 commit 210e818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui-lib/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
<activity
android:name=".MainActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:label="@string/app_name"
android:theme="@style/Theme.App.Starting" />

</application>

</manifest>
</manifest>
2 changes: 2 additions & 0 deletions ui-lib/src/main/java/co/electriccoin/zcash/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.imePadding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
Expand Down Expand Up @@ -133,6 +134,7 @@ class MainActivity : AppCompatActivity() {
Modifier
.fillMaxWidth()
.fillMaxHeight()
.imePadding()
) {
BindCompLocalProvider {
MainContent()
Expand Down

0 comments on commit 210e818

Please # to comment.