-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58be7a9
commit ce68d89
Showing
2 changed files
with
28 additions
and
47 deletions.
There are no files selected for viewing
47 changes: 0 additions & 47 deletions
47
app/src/main/java/com/jtechme/jumpgo/browser/fragment/TabViewModel.java
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
app/src/main/java/com/jtechme/jumpgo/browser/fragment/TabViewModel.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.jtechme.jumpgo.browser.fragment | ||
|
||
/** | ||
* Created by joeho on 9/8/2017. | ||
*/ | ||
|
||
import android.graphics.Bitmap | ||
|
||
import com.jtechme.jumpgo.view.LightningView | ||
|
||
/** | ||
* A view model representing the visual state of a tab. | ||
*/ | ||
internal class TabViewModel(private val mLightningView: LightningView) { | ||
val title: String | ||
val favicon: Bitmap | ||
val isForegroundTab: Boolean | ||
|
||
init { | ||
title = mLightningView.title | ||
favicon = mLightningView.favicon | ||
isForegroundTab = mLightningView.isForegroundTab | ||
} | ||
|
||
override fun equals(obj: Any?): Boolean { | ||
return obj is TabViewModel && obj.mLightningView == mLightningView | ||
} | ||
} |