mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-25 00:13:27 +08:00
Merge pull request #497 from vishal332008/master
Pause/Resume Current Activity
This commit is contained in:
commit
57eb3187fb
@ -231,8 +231,8 @@ class AccountSettingsWindow(ba.Window):
|
||||
linked_accounts_text_space = 60.0
|
||||
|
||||
show_achievements_button = (
|
||||
self._signed_in
|
||||
and account_type in ('Google Play', 'Alibaba', 'Local', 'OUYA'))
|
||||
self._signed_in and account_type
|
||||
in ('Google Play', 'Alibaba', 'Local', 'OUYA', 'V2'))
|
||||
achievements_button_space = 60.0
|
||||
|
||||
show_achievements_text = (self._signed_in
|
||||
|
||||
@ -133,8 +133,15 @@ class ContinuesWindow(ba.Window):
|
||||
ba.WeakCall(self._tick),
|
||||
repeat=True,
|
||||
timetype=ba.TimeType.REAL)
|
||||
|
||||
# If there is foreground activity, suspend it.
|
||||
ba.app.pause()
|
||||
self._tick()
|
||||
|
||||
def __del__(self) -> None:
|
||||
# If there is suspended foreground activity, resume it.
|
||||
ba.app.resume()
|
||||
|
||||
def _tick(self) -> None:
|
||||
# if our target activity is gone or has ended, go away
|
||||
activity = self._activity()
|
||||
|
||||
@ -236,7 +236,7 @@ class CreditsListWindow(ba.Window):
|
||||
'${NAME}', 'the Khronos Group') + '\n'
|
||||
'\n'
|
||||
' '
|
||||
' www.froemling.net\n')
|
||||
' www.ballistica.net\n')
|
||||
|
||||
txt = credits_text
|
||||
lines = txt.splitlines()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user