Skip to content

Commit

Permalink
fix shell.config lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokito-Kun authored and Tokito-Kun committed Jun 29, 2023
1 parent 7d7f7f9 commit ff14655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/mattecarra/accapp/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.annotation.SuppressLint
import android.app.Application
import androidx.multidex.MultiDexApplication
import androidx.preference.PreferenceManager.getDefaultSharedPreferences
import com.topjohnwu.superuser.Shell
import com.topjohnwu.superuser.Shell.Config
import mattecarra.accapp.utils.LogExt

class MainApplication: MultiDexApplication()
Expand All @@ -28,4 +28,4 @@ class MainApplication: MultiDexApplication()
mDEBUG = (getDefaultSharedPreferences(applicationContext).getString("appdebug", "0") ?: "0").toInt()
LogExt().s(javaClass.simpleName, "DEBUG=$mDEBUG " +when(mDEBUG) {0->"[NONE]" 1->"[CONSOLE]" 2->"[FILE]" else->"[UNKNOWN]"})
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import androidx.core.content.ContextCompat
import androidx.core.graphics.drawable.DrawableCompat
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.ItemTouchHelper.ACTION_STATE_SWIPE
import androidx.recyclerview.widget.LinearLayoutManager
Expand Down Expand Up @@ -101,7 +100,7 @@ class ProfilesFragment : ScopedFragment(),
profilesRecycler.adapter = mProfilesAdapter
profilesRecycler.layoutManager = LinearLayoutManager(mContext)

mProfilesViewModel = ViewModelProviders(this).get(ProfilesViewModel::class.java)
mProfilesViewModel = ViewModelProvider(this).get(ProfilesViewModel::class.java)

// Observe data
mProfilesViewModel.getLiveData().observe(viewLifecycleOwner, Observer { profiles ->
Expand Down

0 comments on commit ff14655

Please sign in to comment.