From 411b79ed9ea9bd273e35c0b75987686e4f93d3e8 Mon Sep 17 00:00:00 2001 From: PabloG02 Date: Thu, 12 Jan 2023 12:24:41 +0100 Subject: [PATCH] Hide button on edge flavor --- app/src/main/java/emu/skyline/MainActivity.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/emu/skyline/MainActivity.kt b/app/src/main/java/emu/skyline/MainActivity.kt index 9ce767ce..afcc33f8 100644 --- a/app/src/main/java/emu/skyline/MainActivity.kt +++ b/app/src/main/java/emu/skyline/MainActivity.kt @@ -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) }