mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 23:13:46 +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
|
linked_accounts_text_space = 60.0
|
||||||
|
|
||||||
show_achievements_button = (
|
show_achievements_button = (
|
||||||
self._signed_in
|
self._signed_in and account_type
|
||||||
and account_type in ('Google Play', 'Alibaba', 'Local', 'OUYA'))
|
in ('Google Play', 'Alibaba', 'Local', 'OUYA', 'V2'))
|
||||||
achievements_button_space = 60.0
|
achievements_button_space = 60.0
|
||||||
|
|
||||||
show_achievements_text = (self._signed_in
|
show_achievements_text = (self._signed_in
|
||||||
|
|||||||
@ -133,8 +133,15 @@ class ContinuesWindow(ba.Window):
|
|||||||
ba.WeakCall(self._tick),
|
ba.WeakCall(self._tick),
|
||||||
repeat=True,
|
repeat=True,
|
||||||
timetype=ba.TimeType.REAL)
|
timetype=ba.TimeType.REAL)
|
||||||
|
|
||||||
|
# If there is foreground activity, suspend it.
|
||||||
|
ba.app.pause()
|
||||||
self._tick()
|
self._tick()
|
||||||
|
|
||||||
|
def __del__(self) -> None:
|
||||||
|
# If there is suspended foreground activity, resume it.
|
||||||
|
ba.app.resume()
|
||||||
|
|
||||||
def _tick(self) -> None:
|
def _tick(self) -> None:
|
||||||
# if our target activity is gone or has ended, go away
|
# if our target activity is gone or has ended, go away
|
||||||
activity = self._activity()
|
activity = self._activity()
|
||||||
|
|||||||
@ -236,7 +236,7 @@ class CreditsListWindow(ba.Window):
|
|||||||
'${NAME}', 'the Khronos Group') + '\n'
|
'${NAME}', 'the Khronos Group') + '\n'
|
||||||
'\n'
|
'\n'
|
||||||
' '
|
' '
|
||||||
' www.froemling.net\n')
|
' www.ballistica.net\n')
|
||||||
|
|
||||||
txt = credits_text
|
txt = credits_text
|
||||||
lines = txt.splitlines()
|
lines = txt.splitlines()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user