mirror of
https://gitea.mayex.net/mayekkuzu/Audinaut.git
synced 2025-01-23 19:54:54 +03:00
Fix settings
Regression introduced in 66db8db769fef79016430d29d754591fa9b82609#diff-42baa789cd56fcc4c53bd06c910ff285
This commit is contained in:
parent
a334494186
commit
3ebb48682b
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package net.nullsum.audinaut.fragments;
|
package net.nullsum.audinaut.fragments;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
@ -32,8 +33,6 @@ import android.view.View;
|
|||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
|
||||||
|
|
||||||
import net.nullsum.audinaut.R;
|
import net.nullsum.audinaut.R;
|
||||||
import net.nullsum.audinaut.util.Constants;
|
import net.nullsum.audinaut.util.Constants;
|
||||||
|
|
||||||
@ -216,7 +215,7 @@ public abstract class PreferenceCompatFragment extends SubsonicFragment {
|
|||||||
|
|
||||||
private PreferenceManager createPreferenceManager() {
|
private PreferenceManager createPreferenceManager() {
|
||||||
try {
|
try {
|
||||||
Constructor<PreferenceManager> c = PreferenceManager.class.getDeclaredConstructor(AppCompatActivity.class, int.class);
|
Constructor<PreferenceManager> c = PreferenceManager.class.getDeclaredConstructor(Activity.class, int.class);
|
||||||
c.setAccessible(true);
|
c.setAccessible(true);
|
||||||
return c.newInstance(this.getActivity(), FIRST_REQUEST_CODE);
|
return c.newInstance(this.getActivity(), FIRST_REQUEST_CODE);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user