Open instructions at first start #8

Disable scrolling in Viewpager2
Layout improvements
This commit is contained in:
woheller69 2023-05-07 10:39:22 +02:00
parent 7db77d345f
commit 5b8461c8a3
5 changed files with 23 additions and 12 deletions

View file

@ -139,7 +139,8 @@ public class ForecastCityActivity extends NavigationActivity implements IUpdatea
private void initResources() {
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
viewPager2 = findViewById(R.id.viewPager2);
reduceViewpager2DragSensitivity(viewPager2,2);
viewPager2.setUserInputEnabled(false);
//reduceViewpager2DragSensitivity(viewPager2,2);
tabLayout = findViewById(R.id.tab_layout);
if (sharedPreferences.getBoolean("pref_summarize",false)){
pagerAdapter = new WeatherPagerAdapter(this, getSupportFragmentManager(),getLifecycle(),true);

View file

@ -22,7 +22,7 @@ import android.widget.TextView;
import org.woheller69.weather.R;
import org.woheller69.weather.activities.ForecastCityActivity;
import org.woheller69.weather.activities.SettingsActivity;
import org.woheller69.weather.activities.HelpActivity;
/**
@ -118,7 +118,7 @@ public class TutorialActivity extends AppCompatActivity {
}
private void launchSettings() {
startActivity(new Intent(TutorialActivity.this, SettingsActivity.class));
startActivity(new Intent(TutorialActivity.this, HelpActivity.class));
finish();
}