Merge pull request #1684 from mfietz/issue/1683-video-npe-longpress
Video player: Do not NPE when rewind or fast-forward time is changed
This commit is contained in:
commit
0d03125c54
|
@ -792,7 +792,9 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O
|
|||
builder.setNegativeButton(R.string.cancel_label, null);
|
||||
builder.setPositiveButton(R.string.confirm_label, (dialog, which) -> {
|
||||
UserPreferences.setPrefRewindSecs(choice);
|
||||
if(txtvRev != null){
|
||||
txtvRev.setText(String.valueOf(choice));
|
||||
}
|
||||
});
|
||||
builder.create().show();
|
||||
return true;
|
||||
|
@ -833,7 +835,9 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O
|
|||
builder.setNegativeButton(R.string.cancel_label, null);
|
||||
builder.setPositiveButton(R.string.confirm_label, (dialog, which) -> {
|
||||
UserPreferences.setPrefFastForwardSecs(choice);
|
||||
if(txtvFF != null) {
|
||||
txtvFF.setText(String.valueOf(choice));
|
||||
}
|
||||
});
|
||||
builder.create().show();
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue