-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[As reported by the Duos on our Slack](https://2dimensions.slack.com/archives/C029X99PETE/p1697729811100089), it looks like we weren't re-initializing the surface/EGLSurface when the size changed. I tried adding a test for this, but I'm not quite sure how flaky that's going to be. If our bots freak out we can think of something else. Diffs= 5347f24f2 Re-init surface on resize (#6127) Co-authored-by: Umberto Sonnino <[email protected]>
- Loading branch information
1 parent
f169a91
commit ee3933a
Showing
4 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
d65b239c5c6ce44c3b58cd71ff17721d874a4ab1 | ||
5347f24f289451c5861943bf3a8e0d8468d189ba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
app/src/main/java/app/rive/runtime/example/SimpleActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
package app.rive.runtime.example | ||
|
||
import android.os.Bundle | ||
import android.util.Log | ||
import android.widget.Button | ||
import android.widget.Toast | ||
import androidx.appcompat.app.AppCompatActivity | ||
import androidx.core.view.updateLayoutParams | ||
import app.rive.runtime.example.databinding.SimpleBinding | ||
|
||
class SimpleActivity : AppCompatActivity() { | ||
|
||
private lateinit var binding : SimpleBinding | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.simple) | ||
binding = SimpleBinding.inflate(layoutInflater) | ||
setContentView(binding.root) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters