Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • Commit451/LabCoat
  • Iktwo/GitLabAndroid
  • jonduran3000/GitLabAndroid
  • steffandroid/GitLabAndroid
  • xiaoyanit/GitLabAndroid
  • scottolcott/GitLabAndroid
  • james.mu/GitLabAndroid
  • pushkarpandey27/GitLabAndroid
  • atomfrede/GitLabAndroid
  • burrito82/GitLabAndroid
  • txlong_onz/GitLabAndroid
  • ricardo.longa/GitLabAndroid
  • rubenroy/GitLabAndroid
  • remy_android/GitLabAndroid
  • mzestars/GitLabAndroid
  • theobisproject/LabCoat
  • tarek360/GitLabAndroid
  • TR4Android/LabCoat
  • lvsmart/LabCoat
  • buddybuild/LabCoat
  • tkuah/LabCoat
  • jay3126/LabCoat
  • rmad17/LabCoat
  • galvatron/LabCoat
  • lijianjian13/LabCoat
  • Cody2333/LabCoat
  • ajtfreitas/LabCoat
  • nestor.lobo/LabCoat
  • Microgamer/LabCoat
  • irvinwang/LabCoat
  • avallete/LabCoat
  • digicazter/LabCoat
  • lovexiaov/LabCoat
  • dineshkarpe/LabCoat
  • bak1an/LabCoat
  • loomis/LabCoat
  • sank20/LabCoat
  • Jawnnyfoo/LabCoat
  • scottyab/LabCoat
  • aleksandar-stefanovic/LabCoat
  • tfontana/LabCoat
  • fuzzmz/LabCoat
  • dipaksavaliya/LabCoat
  • adi.bk/LabCoat
  • andreea.voicu/LabCoat
  • H1ghT0p/LabCoat
  • indritqoku/LabCoat
  • armpogart/LabCoat
  • eyedol/LabCoat
  • khairulnizan/LabCoat
  • vadm.perspectiva/LabCoat
  • yiyoss1986/LabCoat
  • BRoy98/LabCoat
  • satyarth.23/LabCoat
  • victorpe76/LabCoat
  • canhnht/LabCoat
  • jinhu/LabCoat
  • weathery/LabCoat
  • gitlabproject_s/LabCoat
  • tfKamran/LabCoat
  • voxadam/LabCoat
  • nprail/LabCoat
  • terrakok/LabCoat
  • jungletian/LabCoat
  • goldins/LabCoat
  • insanum/LabCoat
  • lzrs/LabCoat
  • shankarg/LabCoat
  • rm3l/LabCoat
  • alamo_dev/LabCoat
  • insomniaqc/LabCoat
  • mrasif/LabCoat
  • Babasile/LabCoat
  • eeyoo/LabCoat
  • ditkin/LabCoat
  • unbubot/LabCoat
  • bschuhm/LabCoat
  • fanticker/LabCoat
  • colorwebdesigner/LabCoat
  • milouse/LabCoat
80 results
Show changes
Showing
with 134 additions and 71 deletions
Loading
@@ -43,17 +43,28 @@ class PipelineJobsFragment : ButterKnifeFragment() {
Loading
@@ -43,17 +43,28 @@ class PipelineJobsFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.root) lateinit var root: ViewGroup @BindView(R.id.root)
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout lateinit var root: ViewGroup
@BindView(R.id.text_number) lateinit var textName: TextView @BindView(R.id.swipe_layout)
@BindView(R.id.text_status) lateinit var textStatus: TextView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.text_duration) lateinit var textDuration: TextView @BindView(R.id.text_number)
@BindView(R.id.text_created) lateinit var textCreated: TextView lateinit var textName: TextView
@BindView(R.id.text_finished) lateinit var textFinished: TextView @BindView(R.id.text_status)
@BindView(R.id.text_ref) lateinit var textRef: TextView lateinit var textStatus: TextView
@BindView(R.id.text_sha) lateinit var textSha: TextView @BindView(R.id.text_duration)
@BindView(R.id.text_author) lateinit var textAuthor: TextView lateinit var textDuration: TextView
@BindView(R.id.text_message) lateinit var textMessage: TextView @BindView(R.id.text_created)
lateinit var textCreated: TextView
@BindView(R.id.text_finished)
lateinit var textFinished: TextView
@BindView(R.id.text_ref)
lateinit var textRef: TextView
@BindView(R.id.text_sha)
lateinit var textSha: TextView
@BindView(R.id.text_author)
lateinit var textAuthor: TextView
@BindView(R.id.text_message)
lateinit var textMessage: TextView
   
lateinit var project: Project lateinit var project: Project
lateinit var pipeline: Pipeline lateinit var pipeline: Pipeline
Loading
@@ -127,7 +138,7 @@ class PipelineJobsFragment : ButterKnifeFragment() {
Loading
@@ -127,7 +138,7 @@ class PipelineJobsFragment : ButterKnifeFragment() {
textDuration.text = duration textDuration.text = duration
   
val ref = String.format(getString(R.string.pipeline_ref), pipeline.ref) val ref = String.format(getString(R.string.pipeline_ref), pipeline.ref)
textRef.text = ref textRef.text = ref
   
val sha = String.format(getString(R.string.pipeline_sha), pipeline.sha) val sha = String.format(getString(R.string.pipeline_sha), pipeline.sha)
textSha.text = sha textSha.text = sha
Loading
Loading
Loading
@@ -42,11 +42,16 @@ class PipelinesFragment : ButterKnifeFragment() {
Loading
@@ -42,11 +42,16 @@ class PipelinesFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.root) lateinit var root: ViewGroup @BindView(R.id.root)
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout lateinit var root: ViewGroup
@BindView(R.id.list) lateinit var listPipelines: RecyclerView @BindView(R.id.swipe_layout)
@BindView(R.id.message_text) lateinit var textMessage: TextView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.issue_spinner) lateinit var spinnerIssue: Spinner @BindView(R.id.list)
lateinit var listPipelines: RecyclerView
@BindView(R.id.message_text)
lateinit var textMessage: TextView
@BindView(R.id.issue_spinner)
lateinit var spinnerIssue: Spinner
   
lateinit var adapterPipelines: PipelineAdapter lateinit var adapterPipelines: PipelineAdapter
lateinit var layoutManagerPipelines: LinearLayoutManager lateinit var layoutManagerPipelines: LinearLayoutManager
Loading
Loading
Loading
@@ -44,11 +44,16 @@ class ProjectFragment : ButterKnifeFragment() {
Loading
@@ -44,11 +44,16 @@ class ProjectFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout @BindView(R.id.swipe_layout)
@BindView(R.id.creator) lateinit var textCreator: TextView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.star_count) lateinit var textStarCount: TextView @BindView(R.id.creator)
@BindView(R.id.forks_count) lateinit var textForksCount: TextView lateinit var textCreator: TextView
@BindView(R.id.overview_text) lateinit var textOverview: TextView @BindView(R.id.star_count)
lateinit var textStarCount: TextView
@BindView(R.id.forks_count)
lateinit var textForksCount: TextView
@BindView(R.id.overview_text)
lateinit var textOverview: TextView
   
var project: Project? = null var project: Project? = null
var branchName: String? = null var branchName: String? = null
Loading
Loading
Loading
@@ -43,11 +43,16 @@ class ProjectMembersFragment : ButterKnifeFragment() {
Loading
@@ -43,11 +43,16 @@ class ProjectMembersFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.root) lateinit var root: View @BindView(R.id.root)
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout lateinit var root: View
@BindView(R.id.list) lateinit var listMembers: RecyclerView @BindView(R.id.swipe_layout)
@BindView(R.id.message_text) lateinit var textMessage: TextView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.add_user_button) lateinit var buttonAddUser: FloatingActionButton @BindView(R.id.list)
lateinit var listMembers: RecyclerView
@BindView(R.id.message_text)
lateinit var textMessage: TextView
@BindView(R.id.add_user_button)
lateinit var buttonAddUser: FloatingActionButton
   
lateinit var adapterProjectMembers: ProjectMembersAdapter lateinit var adapterProjectMembers: ProjectMembersAdapter
lateinit var layoutManagerMembers: GridLayoutManager lateinit var layoutManagerMembers: GridLayoutManager
Loading
Loading
Loading
@@ -70,9 +70,12 @@ class ProjectsFragment : ButterKnifeFragment() {
Loading
@@ -70,9 +70,12 @@ class ProjectsFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout @BindView(R.id.swipe_layout)
@BindView(R.id.list) lateinit var listProjects: RecyclerView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.message_text) lateinit var textMessage: TextView @BindView(R.id.list)
lateinit var listProjects: RecyclerView
@BindView(R.id.message_text)
lateinit var textMessage: TextView
   
lateinit var layoutManagerProjects: LinearLayoutManager lateinit var layoutManagerProjects: LinearLayoutManager
lateinit var adapterProjects: ProjectAdapter lateinit var adapterProjects: ProjectAdapter
Loading
@@ -159,7 +162,8 @@ class ProjectsFragment : ButterKnifeFragment() {
Loading
@@ -159,7 +162,8 @@ class ProjectsFragment : ButterKnifeFragment() {
} }
MODE_GROUP -> { MODE_GROUP -> {
showLoading() showLoading()
val group = arguments?.getParcelerParcelable<Group>(EXTRA_GROUP) ?: throw IllegalStateException("You must also pass a group if you want to show a groups projects") val group = arguments?.getParcelerParcelable<Group>(EXTRA_GROUP)
?: throw IllegalStateException("You must also pass a group if you want to show a groups projects")
actuallyLoadIt(getGitLab().getGroupProjects(group.id)) actuallyLoadIt(getGitLab().getGroupProjects(group.id))
} }
else -> throw IllegalStateException(mode.toString() + " is not defined") else -> throw IllegalStateException(mode.toString() + " is not defined")
Loading
Loading
Loading
@@ -39,11 +39,16 @@ class SnippetsFragment : ButterKnifeFragment() {
Loading
@@ -39,11 +39,16 @@ class SnippetsFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.root) lateinit var root: ViewGroup @BindView(R.id.root)
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout lateinit var root: ViewGroup
@BindView(R.id.list) lateinit var listSnippets: RecyclerView @BindView(R.id.swipe_layout)
@BindView(R.id.message_text) lateinit var textMessage: TextView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.state_spinner) lateinit var spinnerState: Spinner @BindView(R.id.list)
lateinit var listSnippets: RecyclerView
@BindView(R.id.message_text)
lateinit var textMessage: TextView
@BindView(R.id.state_spinner)
lateinit var spinnerState: Spinner
   
lateinit var adapterSnippets: SnippetAdapter lateinit var adapterSnippets: SnippetAdapter
lateinit var layoutManagerSnippets: LinearLayoutManager lateinit var layoutManagerSnippets: LinearLayoutManager
Loading
Loading
Loading
@@ -42,9 +42,12 @@ class TodoFragment : ButterKnifeFragment() {
Loading
@@ -42,9 +42,12 @@ class TodoFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout @BindView(R.id.swipe_layout)
@BindView(R.id.list) lateinit var listTodos: RecyclerView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.message_text) lateinit var textMessage: TextView @BindView(R.id.list)
lateinit var listTodos: RecyclerView
@BindView(R.id.message_text)
lateinit var textMessage: TextView
   
lateinit var layoutManagerTodos: LinearLayoutManager lateinit var layoutManagerTodos: LinearLayoutManager
lateinit var adapterTodos: TodoAdapter lateinit var adapterTodos: TodoAdapter
Loading
Loading
Loading
@@ -27,7 +27,8 @@ class UsersFragment : ButterKnifeFragment() {
Loading
@@ -27,7 +27,8 @@ class UsersFragment : ButterKnifeFragment() {
   
private val EXTRA_QUERY = "extra_query" private val EXTRA_QUERY = "extra_query"
   
@JvmOverloads fun newInstance(query: String? = null): UsersFragment { @JvmOverloads
fun newInstance(query: String? = null): UsersFragment {
val args = Bundle() val args = Bundle()
if (query != null) { if (query != null) {
args.putString(EXTRA_QUERY, query) args.putString(EXTRA_QUERY, query)
Loading
@@ -41,9 +42,12 @@ class UsersFragment : ButterKnifeFragment() {
Loading
@@ -41,9 +42,12 @@ class UsersFragment : ButterKnifeFragment() {
} }
} }
   
@BindView(R.id.swipe_layout) lateinit var swipeRefreshLayout: SwipeRefreshLayout @BindView(R.id.swipe_layout)
@BindView(R.id.list) lateinit var listUsers: RecyclerView lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.message_text) lateinit var textMessage: TextView @BindView(R.id.list)
lateinit var listUsers: RecyclerView
@BindView(R.id.message_text)
lateinit var textMessage: TextView
   
lateinit var adapterUser: UserAdapter lateinit var adapterUser: UserAdapter
lateinit var layoutManagerUser: GridLayoutManager lateinit var layoutManagerUser: GridLayoutManager
Loading
Loading
Loading
@@ -37,7 +37,8 @@ open class Issue {
Loading
@@ -37,7 +37,8 @@ open class Issue {
var description: String? = null var description: String? = null
@field:Json(name = "state") @field:Json(name = "state")
@State @State
@get:State var state: String? = null @get:State
var state: String? = null
@field:Json(name = "created_at") @field:Json(name = "created_at")
var createdAt: Date? = null var createdAt: Date? = null
@field:Json(name = "updated_at") @field:Json(name = "updated_at")
Loading
Loading
Loading
@@ -31,7 +31,8 @@ open class MergeRequest {
Loading
@@ -31,7 +31,8 @@ open class MergeRequest {
var description: String? = null var description: String? = null
@field:Json(name = "state") @field:Json(name = "state")
@State @State
@get:State var state: String? = null @get:State
var state: String? = null
@field:Json(name = "updated_at") @field:Json(name = "updated_at")
var updatedAt: Date? = null var updatedAt: Date? = null
@field:Json(name = "created_at") @field:Json(name = "created_at")
Loading
Loading
Loading
@@ -32,7 +32,8 @@ open class Note {
Loading
@@ -32,7 +32,8 @@ open class Note {
var noteableId: Long = 0 var noteableId: Long = 0
@field:Json(name = "noteable_type") @field:Json(name = "noteable_type")
@Type @Type
@get:Type var noteableType: String? = null @get:Type
var noteableType: String? = null
@field:Json(name = "upvote?") @field:Json(name = "upvote?")
var isUpvote: Boolean = false var isUpvote: Boolean = false
@field:Json(name = "downvote?") @field:Json(name = "downvote?")
Loading
Loading
Loading
@@ -6,6 +6,13 @@ import java.util.*
Loading
@@ -6,6 +6,13 @@ import java.util.*
   
@Parcel(Parcel.Serialization.BEAN) @Parcel(Parcel.Serialization.BEAN)
open class Project { open class Project {
companion object {
const val VISIBILITY_PRIVATE = "private"
const val VISIBILITY_INTERNAL = "internal"
const val VISIBILITY_PUBLIC = "public"
}
@field:Json(name = "id") @field:Json(name = "id")
var id: Long = 0 var id: Long = 0
@field:Json(name = "description") @field:Json(name = "description")
Loading
@@ -14,12 +21,10 @@ open class Project {
Loading
@@ -14,12 +21,10 @@ open class Project {
var defaultBranch: String? = null var defaultBranch: String? = null
@field:Json(name = "tag_list") @field:Json(name = "tag_list")
var tagList: List<String>? = null var tagList: List<String>? = null
@field:Json(name = "public")
var isPublic: Boolean = false
@field:Json(name = "archived") @field:Json(name = "archived")
var isArchived: Boolean = false var isArchived: Boolean = false
@field:Json(name = "visibility_level") @field:Json(name = "visibility")
var visibilityLevel: Int = 0 var visibility: String? = null
@field:Json(name = "ssh_url_to_repo") @field:Json(name = "ssh_url_to_repo")
var sshUrlToRepo: String? = null var sshUrlToRepo: String? = null
@field:Json(name = "http_url_to_repo") @field:Json(name = "http_url_to_repo")
Loading
Loading
Loading
@@ -24,7 +24,8 @@ open class RepositoryTreeObject {
Loading
@@ -24,7 +24,8 @@ open class RepositoryTreeObject {
var name: String? = null var name: String? = null
@field:Json(name = "type") @field:Json(name = "type")
@Type @Type
@get:Type var type: String? = null @get:Type
var type: String? = null
@field:Json(name = "mode") @field:Json(name = "mode")
var mode: String? = null var mode: String? = null
} }
Loading
@@ -189,6 +189,7 @@ object Navigator {
Loading
@@ -189,6 +189,7 @@ object Navigator {
val intent = BuildActivity.newIntent(activity, project, build) val intent = BuildActivity.newIntent(activity, project, build)
activity.startActivity(intent) activity.startActivity(intent)
} }
fun navigateToPipeline(activity: Activity, project: Project, pipeline: com.commit451.gitlab.model.api.Pipeline) { fun navigateToPipeline(activity: Activity, project: Project, pipeline: com.commit451.gitlab.model.api.Pipeline) {
val intent = PipelineActivity.newIntent(activity, project, pipeline) val intent = PipelineActivity.newIntent(activity, project, pipeline)
activity.startActivity(intent) activity.startActivity(intent)
Loading
Loading
Loading
@@ -2,4 +2,4 @@ package com.commit451.gitlab.rx
Loading
@@ -2,4 +2,4 @@ package com.commit451.gitlab.rx
   
import com.commit451.reptar.ComposableCompletableObserver import com.commit451.reptar.ComposableCompletableObserver
   
abstract class CustomCompleteObserver: ComposableCompletableObserver() abstract class CustomCompleteObserver : ComposableCompletableObserver()
\ No newline at end of file \ No newline at end of file
Loading
@@ -77,7 +77,7 @@ public class CustomKeyManager extends X509ExtendedKeyManager {
Loading
@@ -77,7 +77,7 @@ public class CustomKeyManager extends X509ExtendedKeyManager {
   
@Override @Override
public String[] getClientAliases(String keyType, Principal[] issuers) { public String[] getClientAliases(String keyType, Principal[] issuers) {
return new String[] { entry.alias }; return new String[]{entry.alias};
} }
   
@Override @Override
Loading
@@ -108,6 +108,7 @@ public class CustomKeyManager extends X509ExtendedKeyManager {
Loading
@@ -108,6 +108,7 @@ public class CustomKeyManager extends X509ExtendedKeyManager {
   
public interface KeyCallback { public interface KeyCallback {
void onSuccess(KeyEntry entry); void onSuccess(KeyEntry entry);
void onError(Exception e); void onError(Exception e);
} }
} }
Loading
@@ -8,22 +8,22 @@ import java.util.regex.Pattern
Loading
@@ -8,22 +8,22 @@ import java.util.regex.Pattern
*/ */
object GitLabMarkdownParser { object GitLabMarkdownParser {
   
private val patternIssue by lazy { private val patternIssue by lazy {
//starts with #, followed by any number of digits //starts with #, followed by any number of digits
Pattern.compile("#\\d+") Pattern.compile("#\\d+")
} }
   
private val patternMergeRequest by lazy { private val patternMergeRequest by lazy {
//starts with !, followed by any number of digits //starts with !, followed by any number of digits
Pattern.compile("!\\d+") Pattern.compile("!\\d+")
} }
   
private val patternLabel by lazy { private val patternLabel by lazy {
//starts with ~, followed by any number of digits //starts with ~, followed by any number of digits
Pattern.compile("~\\d+") Pattern.compile("~\\d+")
} }
   
private val patternMilestone by lazy { private val patternMilestone by lazy {
//starts with %, followed by any number of digits //starts with %, followed by any number of digits
Pattern.compile("%\\d+") Pattern.compile("%\\d+")
} }
Loading
@@ -33,22 +33,22 @@ object GitLabMarkdownParser {
Loading
@@ -33,22 +33,22 @@ object GitLabMarkdownParser {
} }
   
fun parseIssues(text: String): String { fun parseIssues(text: String): String {
val matcher = patternIssue.matcher(text) val matcher = patternIssue.matcher(text)
return matcher.replaceAll("hi") return matcher.replaceAll("hi")
} }
   
fun parseMergeRequests(text: String): String { fun parseMergeRequests(text: String): String {
val matcher = patternMergeRequest.matcher(text) val matcher = patternMergeRequest.matcher(text)
return matcher.replaceAll("hi") return matcher.replaceAll("hi")
} }
   
fun parseLabels(text: String): String { fun parseLabels(text: String): String {
val matcher = patternLabel.matcher(text) val matcher = patternLabel.matcher(text)
return matcher.replaceAll("hi") return matcher.replaceAll("hi")
} }
   
fun parseMilestones(text: String): String { fun parseMilestones(text: String): String {
val matcher = patternMilestone.matcher(text) val matcher = patternMilestone.matcher(text)
return matcher.replaceAll("hi") return matcher.replaceAll("hi")
} }
} }
\ No newline at end of file
Loading
@@ -83,6 +83,7 @@ public class PicassoImageGetter implements Html.ImageGetter {
Loading
@@ -83,6 +83,7 @@ public class PicassoImageGetter implements Html.ImageGetter {
   
/** /**
* Set the {@link SourceModifier} * Set the {@link SourceModifier}
*
* @param sourceModifier the new source modifier * @param sourceModifier the new source modifier
*/ */
public void setSourceModifier(SourceModifier sourceModifier) { public void setSourceModifier(SourceModifier sourceModifier) {
Loading
@@ -95,6 +96,7 @@ public class PicassoImageGetter implements Html.ImageGetter {
Loading
@@ -95,6 +96,7 @@ public class PicassoImageGetter implements Html.ImageGetter {
public interface SourceModifier { public interface SourceModifier {
/** /**
* Modify the source url, adding to it in any way you need to * Modify the source url, adding to it in any way you need to
*
* @param source the source url from the markdown * @param source the source url from the markdown
* @return the modified url which will be loaded by Picasso * @return the modified url which will be loaded by Picasso
*/ */
Loading
Loading
Loading
@@ -42,11 +42,16 @@ import java.util.*
Loading
@@ -42,11 +42,16 @@ import java.util.*
*/ */
class LabCoatNavigationView : NavigationView { class LabCoatNavigationView : NavigationView {
   
@BindView(R.id.profile_image) lateinit var imageProfile: ImageView @BindView(R.id.profile_image)
@BindView(R.id.profile_user) lateinit var textUserName: TextView lateinit var imageProfile: ImageView
@BindView(R.id.profile_email) lateinit var textEmail: TextView @BindView(R.id.profile_user)
@BindView(R.id.arrow) lateinit var iconArrow: View lateinit var textUserName: TextView
@BindView(R.id.button_debug) lateinit var buttonDebug: View @BindView(R.id.profile_email)
lateinit var textEmail: TextView
@BindView(R.id.arrow)
lateinit var iconArrow: View
@BindView(R.id.button_debug)
lateinit var buttonDebug: View
   
lateinit var listAccounts: RecyclerView lateinit var listAccounts: RecyclerView
lateinit var adapterAccounts: AccountAdapter lateinit var adapterAccounts: AccountAdapter
Loading
@@ -225,7 +230,6 @@ class LabCoatNavigationView : NavigationView {
Loading
@@ -225,7 +230,6 @@ class LabCoatNavigationView : NavigationView {
override fun responseNonNullSuccess(userFull: User) { override fun responseNonNullSuccess(userFull: User) {
//Store the newly retrieved user to the account so that it stays up to date //Store the newly retrieved user to the account so that it stays up to date
// in local storage // in local storage
this@LabCoatNavigationView.user = user
bindUser(userFull) bindUser(userFull)
} }
}) })
Loading
Loading
Loading
@@ -29,10 +29,14 @@ class AccountViewHolder(view: View) : RecyclerView.ViewHolder(view) {
Loading
@@ -29,10 +29,14 @@ class AccountViewHolder(view: View) : RecyclerView.ViewHolder(view) {
} }
} }
   
@BindView(R.id.account_image) lateinit var image: ImageView @BindView(R.id.account_image)
@BindView(R.id.account_username) lateinit var textUsername: TextView lateinit var image: ImageView
@BindView(R.id.account_server) lateinit var textServer: TextView @BindView(R.id.account_username)
@BindView(R.id.account_more) lateinit var buttonMore: View lateinit var textUsername: TextView
@BindView(R.id.account_server)
lateinit var textServer: TextView
@BindView(R.id.account_more)
lateinit var buttonMore: View
   
val popupMenu: PopupMenu val popupMenu: PopupMenu
   
Loading
Loading