Weird thing is happening with subtitle time settings


#1

From @candh on Sun Feb 28 2016 11:39:34 GMT+0000 (UTC)

When the subtitle timing is set to a negative number such as -15 or something. It works good.
But, when the timing settings is opened again to reconfigure the timing, it somehow jumps to a big negative number starting with the first two integers that was first set. Like -1500…

For Example
I set it to -16 initially…


and when I opened it again, it jumped to a big negative number.



Copied from original issue: https://github.com/popcorn-official/popcorn-android/issues/13


#2

From @mathieuzen on Tue Sep 06 2016 18:31:30 GMT+0000 (UTC)

Managed to find a workaround when running on the nexus player (i was unable to delay subtitles before that) by using an EditText widget instead of NumberPicker in NumberPickerDialogFragment.java as shown below:

import android.widget.EditText;

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());

    if (getArguments() == null || !getArguments().containsKey(TITLE) || mOnResultListener == null) {
        return builder.create();
    }

    final EditText numberPicker = new EditText(getActivity());

    final int currentValue = getArguments().getInt(DEFAULT_VALUE);

    builder
            .setView(numberPicker)
            .setTitle(getArguments().getString(TITLE))
            .setPositiveButton(R.string.ok,
                    new DialogInterface.OnClickListener() {
                        @Override
                        public void onClick(DialogInterface dialog, int which) {
                            mOnResultListener.onNewValue(Integer.parseInt(numberPicker.getText().toString()));
                            dialog.dismiss();
                        }
                    })
            .setNegativeButton(R.string.cancel,
                    new DialogInterface.OnClickListener() {
                        @Override
                        public void onClick(DialogInterface dialog, int which) {
                            dialog.dismiss();
                        }
                    }
            );

    return builder.create();
}

then rebuild the apk and install to get this (not so nice though but it works):


#3

From @imurreflection on Tue Aug 14 2018 16:54:01 GMT+0000 (UTC)

Hi mate, I know its quite late to ask this question but looking at the response above, I can see that you are the man. Please help, I have been requesting these developers for a long time but its of no use. All I am looking for is to include subtitles position in subtitles settings as they kind of come in between movie and its like hell. Please help me or teach me how to accomplish this task as I m sure these people will never listen. Please help