Crash fix

This commit is contained in:
Grishka 2024-02-22 23:15:03 +03:00
parent 5cf222379a
commit b8a5346631
1 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,6 @@ import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.UUID;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
@ -158,7 +157,9 @@ public class ProfileQrCodeFragment extends AppKitFragment{
@Override @Override
public void onDismiss(DialogInterface dialog){ public void onDismiss(DialogInterface dialog){
super.onDismiss(dialog); super.onDismiss(dialog);
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); Activity activity=getActivity();
if(activity!=null)
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
} }
@Override @Override