mirror of
https://github.com/IllusionMan1212/NPS-Browser.git
synced 2026-10-24 18:12:38 +00:00
Stylize apps list and single app activities (not the final look ofc)
This commit is contained in:
@@ -21,10 +21,10 @@ class AppsListActivity : AppCompatActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
val binding = ActivityAppsListBinding.inflate(layoutInflater);
|
||||
val binding = ActivityAppsListBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
|
||||
viewAdapter = AppAdapter(apps)
|
||||
viewAdapter = AppAdapter(apps, applicationContext)
|
||||
|
||||
recyclerView = binding.appsRecycler
|
||||
recyclerView.apply {
|
||||
|
||||
@@ -86,7 +86,7 @@ class MainActivity : AppCompatActivity() {
|
||||
fileSize ?: 0, sha256 ?: "MISSING", minFW)
|
||||
apps.add(app)
|
||||
}
|
||||
apps.sortBy { it.Title }
|
||||
apps.sortBy { it.title }
|
||||
AppsListActivity.apps = apps
|
||||
startActivity(myIntent)
|
||||
}
|
||||
|
||||
@@ -11,10 +11,10 @@ class SingleAppActivity: AppCompatActivity() {
|
||||
}
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
val binding = ActivitySingleAppBinding.inflate(layoutInflater);
|
||||
val binding = ActivitySingleAppBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
|
||||
binding.titleID.text = app.TitleID
|
||||
binding.gameTitle.text = app.Title;
|
||||
binding.titleID.text = app.titleID
|
||||
binding.gameTitle.text = app.title
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user