设备重启后的启动,延迟进行

streaming
Matthew 4 months ago
parent 3d4aa720d9
commit 84597d0108

@ -183,8 +183,13 @@ public class MainActivity extends AppCompatActivity {
}
};
long timeout = 500;
if (SystemClock.elapsedRealtime() < 180000) {
// In 3 minutes
timeout = 30000; // in 30 seconds
}
Handler handler = new Handler();
handler.postDelayed(runnable, 500);
handler.postDelayed(runnable, timeout);
}
}

Loading…
Cancel
Save