Fixed deprecated Handler constructor
This commit is contained in:
parent
8b2bd0522c
commit
dc554eca2a
|
@ -31,6 +31,7 @@ import android.os.AsyncTask;
|
|||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.net.Uri;
|
||||
import android.view.View;
|
||||
import android.view.MenuItem;
|
||||
|
@ -293,7 +294,7 @@ public class TriviaGameActivity extends BaseActivity
|
|||
SoundUtil.playSound(this, guess ?
|
||||
SoundUtil.SOUND_ANSWER_CORRECT : SoundUtil.SOUND_ANSWER_WRONG);
|
||||
|
||||
new Handler().postDelayed(() -> {
|
||||
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
||||
if (game.isDone()) {
|
||||
Intent intent = new Intent(getApplicationContext(), TriviaGameResultsActivity.class);
|
||||
intent.putExtra(TriviaGameResultsActivity.EXTRA_TRIVIA_GAME, game);
|
||||
|
|
Loading…
Reference in New Issue