fixed issues from prevoius merge

This commit is contained in:
Christian Schabesberger 2018-02-12 00:43:12 +01:00
parent 0ba6f8b39f
commit ba0be665ae
3 changed files with 4 additions and 9 deletions

View File

@ -547,16 +547,11 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo> implement
private View.OnTouchListener getOnControlsTouchListener() {
return (View view, MotionEvent motionEvent) -> {
view.performClick();
if (!PreferenceManager.getDefaultSharedPreferences(activity).getBoolean(getString(R.string.show_hold_to_append_key), true)) return false;
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
animateView(appendControlsDetail, true, 250, 0, new Runnable() {
@Override
public void run() {
animateView(appendControlsDetail, false, 1500, 1000);
}
});
animateView(appendControlsDetail, true, 250, 0, () ->
animateView(appendControlsDetail, false, 1500, 1000));
}
return false;
};

View File

@ -364,7 +364,7 @@
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:contentDescription="@string/controls_download_desg"
android:contentDescription="@string/controls_download_desc"
android:drawableTop="?attr/download"
android:gravity="center"
android:paddingBottom="6dp"

View File

@ -13,7 +13,7 @@
<string name="open_in_popup_mode">Open in popup mode</string>
<string name="share">Share</string>
<string name="download">Download</string>
<string name="controls_download_desg">Download stream file.</string>
<string name="controls_download_desc">Download stream file.</string>
<string name="search">Search</string>
<string name="settings">Settings</string>
<string name="did_you_mean">Did you mean: %1$s ?</string>