Don't NPE
This commit is contained in:
parent
d4446e6dbb
commit
c5762fa475
|
@ -792,7 +792,9 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O
|
||||||
builder.setNegativeButton(R.string.cancel_label, null);
|
builder.setNegativeButton(R.string.cancel_label, null);
|
||||||
builder.setPositiveButton(R.string.confirm_label, (dialog, which) -> {
|
builder.setPositiveButton(R.string.confirm_label, (dialog, which) -> {
|
||||||
UserPreferences.setPrefRewindSecs(choice);
|
UserPreferences.setPrefRewindSecs(choice);
|
||||||
|
if(txtvRev != null){
|
||||||
txtvRev.setText(String.valueOf(choice));
|
txtvRev.setText(String.valueOf(choice));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
builder.create().show();
|
builder.create().show();
|
||||||
return true;
|
return true;
|
||||||
|
@ -833,7 +835,9 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O
|
||||||
builder.setNegativeButton(R.string.cancel_label, null);
|
builder.setNegativeButton(R.string.cancel_label, null);
|
||||||
builder.setPositiveButton(R.string.confirm_label, (dialog, which) -> {
|
builder.setPositiveButton(R.string.confirm_label, (dialog, which) -> {
|
||||||
UserPreferences.setPrefFastForwardSecs(choice);
|
UserPreferences.setPrefFastForwardSecs(choice);
|
||||||
|
if(txtvFF != null) {
|
||||||
txtvFF.setText(String.valueOf(choice));
|
txtvFF.setText(String.valueOf(choice));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
builder.create().show();
|
builder.create().show();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue