Skip to content

Commit

Permalink
!
Browse files Browse the repository at this point in the history
  • Loading branch information
yashk2000 committed Jun 26, 2019
1 parent 4cda45c commit 8f501d3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/src/main/java/org/fossasia/badgemagic/ui/DrawerActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package org.fossasia.badgemagic.ui
import android.Manifest
import android.app.Activity
import android.app.AlertDialog
import android.bluetooth.BluetoothManager
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.ActivityInfo
Expand Down Expand Up @@ -249,14 +247,6 @@ class DrawerActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedLi
return packageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)
}

private fun disableBluetooth() {
val btManager = getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager
val btAdapter = btManager.adapter
if (btAdapter.isEnabled) {
btAdapter.disable()
}
}

private fun saveImportFile(uri: Uri?) {
if (StorageUtils.copyFileToDirectory(this, uri)) {
Toast.makeText(this, R.string.success_import_json, Toast.LENGTH_SHORT).show()
Expand Down Expand Up @@ -297,10 +287,6 @@ class DrawerActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedLi
return super.onOptionsItemSelected(item)
}

override fun onDestroy() {
super.onDestroy()
}

override fun onBackPressed() {
val drawerLayout: DrawerLayout = findViewById(R.id.drawer_layout)
if (drawerLayout.isDrawerOpen(GravityCompat.START)) {
Expand Down

0 comments on commit 8f501d3

Please sign in to comment.