diff --git a/app/build.gradle b/app/build.gradle index a33ad829c..c97e62b51 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,7 +47,9 @@ android { } } packagingOptions { - exclude 'lib/armeabi-v7a/*_neon.so' + jniLibs { + excludes += ['lib/armeabi-v7a/*_neon.so'] + } } } @@ -56,9 +58,9 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.3' - implementation 'com.google.android.material:material:1.6.0-alpha02' - implementation 'androidx.navigation:navigation-fragment-ktx:2.4.1' - implementation 'androidx.navigation:navigation-ui-ktx:2.4.1' + implementation 'com.google.android.material:material:1.6.0-beta01' + implementation 'androidx.navigation:navigation-fragment-ktx:2.4.2' + implementation 'androidx.navigation:navigation-ui-ktx:2.4.2' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.preference:preference-ktx:1.2.0' @@ -77,5 +79,11 @@ dependencies { implementation 'com.arthenica:ffmpeg-kit-min:4.5.1.LTS' + coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5" + implementation 'com.google.android.exoplayer:extension-cronet:2.17.1' + implementation 'org.chromium.net:cronet-embedded:98.4758.101' + + implementation 'com.blankj:utilcode:1.30.0' + } \ No newline at end of file diff --git a/app/src/main/java/com/github/libretube/CreatePlaylistDialog.kt b/app/src/main/java/com/github/libretube/CreatePlaylistDialog.kt index f977eacb6..dc6ece7bf 100644 --- a/app/src/main/java/com/github/libretube/CreatePlaylistDialog.kt +++ b/app/src/main/java/com/github/libretube/CreatePlaylistDialog.kt @@ -19,22 +19,21 @@ class CreatePlaylistDialog : DialogFragment() { // Get the layout inflater val inflater = requireActivity().layoutInflater; val sharedPref = context?.getSharedPreferences("token", Context.MODE_PRIVATE) - val token = sharedPref?.getString("token", "") - Log.e("dafaq", token!!) - - assert(token != "") - - val sharedPref2 = context?.getSharedPreferences("username", Context.MODE_PRIVATE) - val user = sharedPref2?.getString("username", "") - val view: View = inflater.inflate(R.layout.dialog_logout, null) - view.findViewById(R.id.user).text = - view.findViewById(R.id.user).text.toString() + " (" + user + ")" - view.findViewById