|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.keylesspalace.tusky.adapter; |
|
|
|
package com.keylesspalace.tusky.adapter; |
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context; |
|
|
|
import android.content.Context; |
|
|
|
|
|
|
|
import android.content.SharedPreferences; |
|
|
|
import android.graphics.drawable.Drawable; |
|
|
|
import android.graphics.drawable.Drawable; |
|
|
|
import android.preference.PreferenceManager; |
|
|
|
import android.preference.PreferenceManager; |
|
|
|
import android.support.annotation.DrawableRes; |
|
|
|
import android.support.annotation.DrawableRes; |
|
|
@ -226,8 +227,9 @@ class StatusBaseViewHolder extends RecyclerView.ViewHolder { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SharedPreferences pm = PreferenceManager.getDefaultSharedPreferences(context); |
|
|
|
if (sensitive) { |
|
|
|
Boolean isAlwayShowSensitive = pm.getBoolean("alwayShowSensitiveMedia",false); |
|
|
|
|
|
|
|
if (sensitive && (!isAlwayShowSensitive)) { |
|
|
|
sensitiveMediaWarning.setVisibility(showingSensitive ? View.GONE : View.VISIBLE); |
|
|
|
sensitiveMediaWarning.setVisibility(showingSensitive ? View.GONE : View.VISIBLE); |
|
|
|
sensitiveMediaWarning.setOnClickListener(new View.OnClickListener() { |
|
|
|
sensitiveMediaWarning.setOnClickListener(new View.OnClickListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|