This repository has been archived by the owner on Mar 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sprint/Dylan] (feat): Create App Status service and disable points a…
…nimation when on background (#28) * (fix): Refresh points counter when re-logging and add pull to refresh on wallet view (#19) * (feat): Re-sync discovery entity when loading full-screen (#17) * (feat): Be able to click post date to original post page (#16) * (fix): ios icon * (fix): Boost rejected notification typo (#21) * (fix) : Reminds don't take you to the original post (#23) * (fix): Link images and blogs on notifications (#20) * (fix): Wrong storage key for points animation toggle (#22) * (feat): Improve back button visibility (z-index and outline) (#18) * (fix): prevent navigation become dead when pop is happening * (chore): improve unread and online icons * (feat): Create App Status service and disable points animation when on background
- Loading branch information
1 parent
a7ff18b
commit 86132af
Showing
5 changed files
with
36 additions
and
8 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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Platform } from "ionic-angular"; | ||
|
||
@Injectable() | ||
export class AppStatusService { | ||
private _isActive: boolean = true; | ||
|
||
constructor(private platform: Platform) { } | ||
|
||
setUp() { | ||
this.platform.pause.subscribe(() => { | ||
this._isActive = false; | ||
}); | ||
|
||
this.platform.resume.subscribe(() => { | ||
this._isActive = true; | ||
}); | ||
} | ||
|
||
isActive() { | ||
return this._isActive; | ||
} | ||
} |
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
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