This repository has been archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/dev_channel' into develop
- Loading branch information
Showing
20 changed files
with
198 additions
and
89 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
50 changes: 50 additions & 0 deletions
50
app/src/main/java/org/cnodejs/android/md/model/entity/Tab.java
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,50 @@ | ||
package org.cnodejs.android.md.model.entity; | ||
|
||
import android.support.annotation.StringRes; | ||
|
||
import org.cnodejs.android.md.BuildConfig; | ||
import org.cnodejs.android.md.R; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public enum Tab { | ||
|
||
all(R.string.app_name), | ||
|
||
good(R.string.tab_good), | ||
|
||
unknown(R.string.tab_unknown), | ||
|
||
share(R.string.tab_share), | ||
|
||
ask(R.string.tab_ask), | ||
|
||
job(R.string.tab_job), | ||
|
||
dev(R.string.tab_dev); | ||
|
||
@StringRes | ||
private final int nameId; | ||
|
||
Tab(@StringRes int nameId) { | ||
this.nameId = nameId; | ||
} | ||
|
||
@StringRes | ||
public int getNameId() { | ||
return nameId; | ||
} | ||
|
||
public static List<Tab> getPublishableTabList() { | ||
List<Tab> tabList = new ArrayList<>(); | ||
if (BuildConfig.DEBUG) { | ||
tabList.add(dev); | ||
} | ||
tabList.add(share); | ||
tabList.add(ask); | ||
tabList.add(job); | ||
return tabList; | ||
} | ||
|
||
} |
33 changes: 0 additions & 33 deletions
33
app/src/main/java/org/cnodejs/android/md/model/entity/TabType.java
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.