mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-13 09:48:47 +00:00
Added back old code for splash screen as a backup
This commit is contained in:
parent
c42bd9a572
commit
aee8596a0a
@ -22,4 +22,36 @@ class SplashActivity : AppCompatActivity() {
|
||||
@JvmField
|
||||
var showSplash = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*package com.example.listify;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
public class SplashActivity extends AppCompatActivity {
|
||||
public static boolean showSplash = true;
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {}
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_splashscreen);
|
||||
|
||||
new Handler().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
showSplash = false;
|
||||
Intent intent = new Intent(SplashActivity.this, MainActivity.class);
|
||||
intent.putExtra("prev", "Splash");
|
||||
startActivity(intent);
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
}*/
|
||||
Loading…
Reference in New Issue
Block a user