Hide button on edge flavor

This commit is contained in:
PabloG02 2023-01-12 12:24:41 +01:00
parent d6eab932a7
commit 411b79ed9e

View File

@ -151,8 +151,12 @@ class MainActivity : AppCompatActivity() {
Snackbar.make(this@MainActivity.findViewById(android.R.id.content), getString(R.string.logs_not_found), Snackbar.LENGTH_SHORT).show()
}
}
binding.checkUpdatesIcon.setOnClickListener {
AppUpdater.checkForUpdates(context)
if (BuildConfig.FLAVOR.equals("edge")) {
binding.checkUpdatesIcon.visibility = View.GONE
} else {
binding.checkUpdatesIcon.setOnClickListener {
AppUpdater.checkForUpdates(context)
}
}
binding.settingsIcon.setOnClickListener { settingsCallback.launch(Intent(context, SettingsActivity::class.java)) }
binding.refreshIcon.setOnClickListener { loadRoms(false) }