Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#173640667] Remove tablet block from Android #2005

Merged
merged 1 commit into from
Jul 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions android/app/src/main/java/it/pagopa/io/app/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,8 @@ protected String getMainComponentName() {
// https://github.com/crazycodeboy/react-native-splash-screen#third-stepplugin-configuration
@Override
protected void onCreate(Bundle savedInstanceState) {
/*
* When the app starts, a check is made on the "isTablet" flag in the bools.xml
* file. The value changes automatically depending on the device dp. Starting
* from 600dp it is set to true.
*/
if (getResources().getBoolean(R.bool.isTablet)) {
super.onCreate(savedInstanceState);
showAlertDialog(getString(R.string.dialog_attention), getString(R.string.tablet_not_supported));
} else {
SplashScreen.show(this, R.style.SplashScreenTheme);
super.onCreate(savedInstanceState);
}
SplashScreen.show(this, R.style.SplashScreenTheme);
super.onCreate(savedInstanceState);
// Fix the problem described here:
// https://stackoverflow.com/questions/48072438/java-lang-illegalstateexception-only-fullscreen-opaque-activities-can-request-o
if (android.os.Build.VERSION.SDK_INT != Build.VERSION_CODES.O) {
Expand Down