diff --git a/app/src/main/java/com/github/droidworksstudio/mlauncher/ui/HomeFragment.kt b/app/src/main/java/com/github/droidworksstudio/mlauncher/ui/HomeFragment.kt index c5cf3f11..e540a9c2 100644 --- a/app/src/main/java/com/github/droidworksstudio/mlauncher/ui/HomeFragment.kt +++ b/app/src/main/java/com/github/droidworksstudio/mlauncher/ui/HomeFragment.kt @@ -480,12 +480,12 @@ class HomeFragment : Fragment(), View.OnClickListener, View.OnLongClickListener requireActivity().runOnUiThread { try { deviceManager.lockNow() - } catch (e: SecurityException) { + } catch (_: SecurityException) { showToastLong( requireContext(), "App does not have the permission to lock the device" ) - } catch (e: Exception) { + } catch (_: Exception) { showToastLong( requireContext(), "mLauncher failed to lock device.\nPlease check your app settings."