mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 20:37:12 +01:00
Disable nsfw warning in ViewUserDetailActivity.
This commit is contained in:
parent
37fd52bed1
commit
8cbc24b532
@ -184,7 +184,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
private String mMessageFullname;
|
private String mMessageFullname;
|
||||||
private String mNewAccountName;
|
private String mNewAccountName;
|
||||||
private SlidrInterface mSlidrInterface;
|
private SlidrInterface mSlidrInterface;
|
||||||
private MaterialAlertDialogBuilder nsfwWarningBuilder;
|
//private MaterialAlertDialogBuilder nsfwWarningBuilder;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
@ -435,7 +435,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
descriptionTextView.setText(userData.getDescription());
|
descriptionTextView.setText(userData.getDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userData.isNSFW()) {
|
/*if (userData.isNSFW()) {
|
||||||
if (nsfwWarningBuilder == null
|
if (nsfwWarningBuilder == null
|
||||||
&& !mNsfwAndSpoilerSharedPreferences.getBoolean((mAccountName == null ? "" : mAccountName) + SharedPreferencesUtils.NSFW_BASE, false)) {
|
&& !mNsfwAndSpoilerSharedPreferences.getBoolean((mAccountName == null ? "" : mAccountName) + SharedPreferencesUtils.NSFW_BASE, false)) {
|
||||||
nsfwWarningBuilder = new MaterialAlertDialogBuilder(this, R.style.MaterialAlertDialogTheme)
|
nsfwWarningBuilder = new MaterialAlertDialogBuilder(this, R.style.MaterialAlertDialogTheme)
|
||||||
@ -448,7 +448,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
.setNegativeButton(R.string.dismiss, null);
|
.setNegativeButton(R.string.dismiss, null);
|
||||||
nsfwWarningBuilder.show();
|
nsfwWarningBuilder.show();
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user