diff --git a/app/src/main/java/org/openobservatory/ooniprobe/activity/OnboardingActivity.java b/app/src/main/java/org/openobservatory/ooniprobe/activity/OnboardingActivity.java index 40891e78d..7b24b3831 100644 --- a/app/src/main/java/org/openobservatory/ooniprobe/activity/OnboardingActivity.java +++ b/app/src/main/java/org/openobservatory/ooniprobe/activity/OnboardingActivity.java @@ -4,12 +4,14 @@ import androidx.annotation.Nullable; +import org.openobservatory.ooniprobe.R; import org.openobservatory.ooniprobe.fragment.onboarding.Onboarding1Fragment; public class OnboardingActivity extends AbstractActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); - getSupportFragmentManager().beginTransaction().replace(android.R.id.content, new Onboarding1Fragment()).commit(); + setContentView(R.layout.activity_blank); + getSupportFragmentManager().beginTransaction().replace(R.id.content, new Onboarding1Fragment()).commit(); } } diff --git a/app/src/main/java/org/openobservatory/ooniprobe/activity/PreferenceActivity.java b/app/src/main/java/org/openobservatory/ooniprobe/activity/PreferenceActivity.java index a2753455b..026da39de 100644 --- a/app/src/main/java/org/openobservatory/ooniprobe/activity/PreferenceActivity.java +++ b/app/src/main/java/org/openobservatory/ooniprobe/activity/PreferenceActivity.java @@ -28,8 +28,9 @@ public static Intent newIntent(Context context, @XmlRes int preferenceResId, Str @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); - fragment = PreferenceFragment.newInstance(getIntent().getIntExtra(PreferenceFragment.ARG_PREFERENCES_RES_ID, 0), android.R.id.content, getIntent().getStringExtra(PreferenceFragment.ARG_PREFERENCE_ROOT)); - getSupportFragmentManager().beginTransaction().replace(android.R.id.content, fragment).commit(); + setContentView(R.layout.activity_blank); + fragment = PreferenceFragment.newInstance(getIntent().getIntExtra(PreferenceFragment.ARG_PREFERENCES_RES_ID, 0), R.id.content, getIntent().getStringExtra(PreferenceFragment.ARG_PREFERENCE_ROOT)); + getSupportFragmentManager().beginTransaction().replace(R.id.content, fragment).commit(); } @Override diff --git a/app/src/main/res/layout/activity_add_descriptor.xml b/app/src/main/res/layout/activity_add_descriptor.xml index b581bb3e2..1905265fe 100644 --- a/app/src/main/res/layout/activity_add_descriptor.xml +++ b/app/src/main/res/layout/activity_add_descriptor.xml @@ -16,7 +16,8 @@ + android:orientation="vertical" + android:fitsSystemWindows="true"> + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_customwebsite.xml b/app/src/main/res/layout/activity_customwebsite.xml index 82c8c50cf..338bf2c13 100644 --- a/app/src/main/res/layout/activity_customwebsite.xml +++ b/app/src/main/res/layout/activity_customwebsite.xml @@ -4,6 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:fitsSystemWindows="true" tools:context=".activity.customwebsites.CustomWebsiteActivity"> + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + android:orientation="vertical" + android:fitsSystemWindows="true"> + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + android:orientation="vertical" + android:fitsSystemWindows="true">