disabled retweet if status is protected
This commit is contained in:
parent
2db066f467
commit
4424f4cd85
|
@ -88,6 +88,7 @@ import com.squareup.otto.Subscribe;
|
|||
|
||||
import org.mariotaku.querybuilder.Expression;
|
||||
import org.mariotaku.twidere.R;
|
||||
import org.mariotaku.twidere.activity.iface.IControlBarActivity;
|
||||
import org.mariotaku.twidere.activity.iface.IThemedActivity;
|
||||
import org.mariotaku.twidere.activity.support.AccountSelectorActivity;
|
||||
import org.mariotaku.twidere.activity.support.ColorPickerDialogActivity;
|
||||
|
@ -1180,7 +1181,8 @@ public class UserFragment extends BaseSupportFragment implements OnClickListener
|
|||
@Override
|
||||
protected void fitSystemWindows(Rect insets) {
|
||||
final ThemedAppCompatActivity activity = (ThemedAppCompatActivity) getActivity();
|
||||
mHeaderDrawerLayout.setPadding(insets.left, insets.top, insets.right, insets.bottom);
|
||||
mHeaderDrawerLayout.setPadding(insets.left, Utils.getInsetsTopWithoutActionBarHeight(activity, insets.top),
|
||||
insets.right, insets.bottom);
|
||||
final String backgroundOption = activity.getCurrentThemeBackgroundOption();
|
||||
final boolean isTransparentBackground = ThemeUtils.isTransparentBackground(backgroundOption);
|
||||
mHeaderDrawerLayout.setClipToPadding(isTransparentBackground);
|
||||
|
@ -1495,6 +1497,8 @@ public class UserFragment extends BaseSupportFragment implements OnClickListener
|
|||
profileBannerContainer.setTranslationY(-offset);
|
||||
profileBannerView.setTranslationY(offset / 2);
|
||||
|
||||
final ThemedAppCompatActivity activity = (ThemedAppCompatActivity) getActivity();
|
||||
|
||||
if (mActionBarBackground != null && mTintedStatusContent != null) {
|
||||
mActionBarBackground.setFactor(factor);
|
||||
mTintedStatusContent.setFactor(factor);
|
||||
|
@ -1508,8 +1512,6 @@ public class UserFragment extends BaseSupportFragment implements OnClickListener
|
|||
}
|
||||
mActionBarBackground.setOutlineAlphaFactor(tabOutlineAlphaFactor);
|
||||
|
||||
final ThemedAppCompatActivity activity = (ThemedAppCompatActivity) getActivity();
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
setCompatToolbarOverlayAlpha(activity, factor * tabOutlineAlphaFactor);
|
||||
}
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
android:layout_alignParentStart="true"
|
||||
android:clickable="true"
|
||||
android:paddingBottom="@dimen/element_spacing_msmall"
|
||||
android:paddingEnd="@dimen/element_spacing_msmall"
|
||||
android:paddingLeft="@dimen/element_spacing_msmall"
|
||||
android:paddingRight="@dimen/element_spacing_msmall"
|
||||
android:paddingStart="@dimen/element_spacing_msmall"
|
||||
android:paddingTop="@dimen/element_spacing_msmall">
|
||||
|
||||
<org.mariotaku.twidere.view.SquareShapedImageView
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/comment_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
|
|
@ -30,15 +30,15 @@
|
|||
android:title="@string/trends"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:enabled="false"
|
||||
android:key="cat_streaming"
|
||||
android:title="@string/streaming">
|
||||
<!--<PreferenceCategory-->
|
||||
<!--android:enabled="false"-->
|
||||
<!--android:key="cat_streaming"-->
|
||||
<!--android:title="@string/streaming">-->
|
||||
|
||||
<org.mariotaku.twidere.preference.AutoFixSwitchPreference
|
||||
android:key="enable_streaming"
|
||||
android:title="@string/enable_streaming"/>
|
||||
<!--<org.mariotaku.twidere.preference.AutoFixSwitchPreference-->
|
||||
<!--android:key="enable_streaming"-->
|
||||
<!--android:title="@string/enable_streaming"/>-->
|
||||
|
||||
</PreferenceCategory>
|
||||
<!--</PreferenceCategory>-->
|
||||
|
||||
</PreferenceScreen>
|
Loading…
Reference in New Issue