GithubHelp home page GithubHelp logo

Comments (3)

mathieuzen avatar mathieuzen commented on June 15, 2024 2

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):

screenshotpopcorntime-numberpicker

from popcorn-android.

imurreflection avatar imurreflection commented on June 15, 2024

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

from popcorn-android.

team-pct avatar team-pct commented on June 15, 2024

This issue was moved to https://discuss.popcorntime.sh/t/weird-thing-is-happening-with-subtitle-time-settings/111

from popcorn-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.