Fix Restore Backup -> Crash Problem

init the Reference to SharedPerference so that the AppLock won't crash when there is dialog return from System UI(Open Document).
This commit is contained in:
jabber_rogue 2024-02-25 17:32:53 +00:00
parent 375cf9f115
commit 62f8bcdfef

View file

@ -107,6 +107,7 @@ import eu.siacs.conversations.xmpp.OnKeyStatusUpdated;
import eu.siacs.conversations.xmpp.OnUpdateBlocklist;
import eu.siacs.conversations.xmpp.XmppConnection;
import me.drakeet.support.toast.ToastCompat;
import p32929.easypasscodelock.Utils.FayazSP;
import pl.droidsonroids.gif.GifDrawable;
import android.util.Pair;
import net.java.otr4j.session.SessionID;
@ -493,6 +494,7 @@ public abstract class XmppActivity extends ActionBarActivity {
@SuppressLint("UnsupportedChromeOsCameraSystemFeature")
@Override
protected void onCreate(Bundle savedInstanceState) {
FayazSP.init(getApplicationContext());
super.onCreate(savedInstanceState);
this.mTheme = findTheme();
setTheme(this.mTheme);