Skip to content

Commit

Permalink
Merge pull request #682 from stakwork/aa/fix/large-heap
Browse files Browse the repository at this point in the history
General Fixes
  • Loading branch information
tomastiminskas authored Nov 17, 2023
2 parents 2cb9b97 + 2723cd2 commit 95f8e86
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:theme="@style/AppLaunchTheme"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="portrait"
android:largeHeap="true"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
1 change: 1 addition & 0 deletions sphinx/application/sphinx/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
android:label="@string/app_name"
android:resizeableActivity="false"
android:roundIcon="@mipmap/ic_launcher_round"
android:largeHeap="true"
tools:replace="android:allowBackup"
tools:targetApi="n" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@
app:layout_constraintBottom_toBottomOf="@id/button_attachment_file_download"
app:layout_constraintEnd_toEndOf="@id/button_attachment_file_download"
app:layout_constraintStart_toStartOf="@id/button_attachment_file_download"
app:layout_constraintTop_toTopOf="@id/button_attachment_file_download"
tools:visibility="visible" />
app:layout_constraintTop_toTopOf="@id/button_attachment_file_download" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@

<include
android:id="@+id/include_chat_contact_selected_message"
layout="@layout/layout_selected_message"
tools:visibility="gone" />
layout="@layout/layout_selected_message"/>

<include
android:id="@+id/include_chat_contact_attachment_send_preview"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ internal class DashboardViewModel @Inject constructor(
MutableStateFlow(null)
}

private val _networkStateFlow: MutableStateFlow<Pair<LoadResponse<Boolean, ResponseError>, Boolean>> by lazy {
MutableStateFlow(Pair(LoadResponse.Loading, true))
}
val networkStateFlow: StateFlow<Pair<LoadResponse<Boolean, ResponseError>, Boolean>>
get() = _networkStateFlow.asStateFlow()


private lateinit var signerManager: SignerManager

init {
Expand Down Expand Up @@ -1031,10 +1038,6 @@ internal class DashboardViewModel @Inject constructor(
}
}

private val _networkStateFlow: MutableStateFlow<Pair<LoadResponse<Boolean, ResponseError>, Boolean>> by lazy {
MutableStateFlow(Pair(LoadResponse.Loading, true))
}

private val _restoreProgressStateFlow: MutableStateFlow<RestoreProgressViewState?> by lazy {
MutableStateFlow(null)
}
Expand All @@ -1049,9 +1052,6 @@ internal class DashboardViewModel @Inject constructor(
}
}

val networkStateFlow: StateFlow<Pair<LoadResponse<Boolean, ResponseError>, Boolean>>
get() = _networkStateFlow.asStateFlow()

val restoreProgressStateFlow: StateFlow<RestoreProgressViewState?>
get() = _restoreProgressStateFlow.asStateFlow()

Expand Down

0 comments on commit 95f8e86

Please sign in to comment.