Fix some lint problems

This commit is contained in:
CappielloAntonio 2021-04-27 11:47:23 +02:00
parent c5ad7f282e
commit 81581c623d
4 changed files with 133 additions and 162 deletions

View file

@ -8,7 +8,6 @@ import androidx.preference.PreferenceManager;
import com.cappielloantonio.play.helper.ThemeHelper;
import com.cappielloantonio.play.util.PreferenceUtil;
import com.melegy.redscreenofdeath.RedScreenOfDeath;
import org.jellyfin.apiclient.AppInfo;
import org.jellyfin.apiclient.Jellyfin;
@ -27,7 +26,6 @@ public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
RedScreenOfDeath.init(this);
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);

View file

@ -171,10 +171,8 @@ public class MainActivity extends BaseActivity {
public void onStateChanged(@NonNull View view, int state) {
switch (state) {
case BottomSheetBehavior.STATE_SETTLING | BottomSheetBehavior.STATE_COLLAPSED:
Log.i(TAG, "onStateChanged: IS_SETTLING | IS_COLLAPSING");
PlayerBottomSheetFragment playerBottomSheetFragment = (PlayerBottomSheetFragment) getSupportFragmentManager().findFragmentByTag("PlayerBottomSheet");
if (playerBottomSheetFragment == null) break;
playerBottomSheetFragment.scrollOnTop();
break;
case BottomSheetBehavior.STATE_HIDDEN: