diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-03 15:51:36 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-03 15:51:36 -0700 |
commit | 8ec65f55f85c730e97d5521c1443819435b98208 (patch) | |
tree | 6bd4350b3f6e5eda03c95c4a13fd7b7c7f50f2ac /app/src/main/kotlin/com/pitchedapps/frost/utils | |
parent | a5aa87bbaef7d2c937cc89295942882d050c3b5c (diff) | |
download | frost-8ec65f55f85c730e97d5521c1443819435b98208.tar.gz frost-8ec65f55f85c730e97d5521c1443819435b98208.tar.bz2 frost-8ec65f55f85c730e97d5521c1443819435b98208.zip |
Add toolbar title listeners
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/ContextUtils.kt | 1 | ||||
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/Interfaces.kt | 12 |
2 files changed, 1 insertions, 12 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/ContextUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/ContextUtils.kt index 31055c4e..b87eaa8f 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/ContextUtils.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/ContextUtils.kt @@ -30,6 +30,7 @@ fun Activity.cookies(): ArrayList<CookieModel> { fun Context.launchWebOverlay(url: String) { val intent = Intent(this, WebOverlayActivity::class.java) + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_NEW_TASK) intent.putExtra(ARG_URL, url) val bundle = ActivityOptionsCompat.makeCustomAnimation(this, R.anim.slide_in_right, R.anim.slide_out_right).toBundle() ContextCompat.startActivity(this, intent, bundle) diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Interfaces.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Interfaces.kt deleted file mode 100644 index 1e42f59f..00000000 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Interfaces.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.pitchedapps.frost.utils - -import io.reactivex.subjects.Subject - -/** - * Created by Allan Wang on 2017-05-29. - */ -interface ObservableContainer<T> { - val progressObservable: Subject<T> -} - -interface KeyPairObservable : ObservableContainer<Pair<Int, Int>>
\ No newline at end of file |