Fix settings

Regression introduced in 66db8db769fef79016430d29d754591fa9b82609#diff-42baa789cd56fcc4c53bd06c910ff285
This commit is contained in:
Andrew Rabert 2019-08-25 23:55:30 -04:00
parent a334494186
commit 3ebb48682b
1 changed files with 2 additions and 3 deletions

View File

@ -19,6 +19,7 @@
package net.nullsum.audinaut.fragments;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
@ -32,8 +33,6 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import androidx.appcompat.app.AppCompatActivity;
import net.nullsum.audinaut.R;
import net.nullsum.audinaut.util.Constants;
@ -216,7 +215,7 @@ public abstract class PreferenceCompatFragment extends SubsonicFragment {
private PreferenceManager createPreferenceManager() {
try {
Constructor<PreferenceManager> c = PreferenceManager.class.getDeclaredConstructor(AppCompatActivity.class, int.class);
Constructor<PreferenceManager> c = PreferenceManager.class.getDeclaredConstructor(Activity.class, int.class);
c.setAccessible(true);
return c.newInstance(this.getActivity(), FIRST_REQUEST_CODE);
} catch (Exception e) {