diff --git a/AndroidManifest.xml b/AndroidManifest.xml index be2f887..c6c17df 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -41,6 +41,7 @@ diff --git a/src/eu/chainfire/opendelta/MainActivity.java b/src/eu/chainfire/opendelta/MainActivity.java index 29bfc21..82ec7c4 100644 --- a/src/eu/chainfire/opendelta/MainActivity.java +++ b/src/eu/chainfire/opendelta/MainActivity.java @@ -39,6 +39,7 @@ import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; +import android.content.res.Configuration; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; @@ -535,6 +536,18 @@ public class MainActivity extends Activity { updateInfoVisibility(); } + @Override + public void onConfigurationChanged(Configuration newConfig) { + super.onConfigurationChanged(newConfig); + + // Called for a new screen orientation + if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE || + newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) { + handleProgressBar(); + } + } + + public void onButtonCheckNowClick(View v) { mPrefs.edit().putBoolean(SettingsActivity.PREF_START_HINT_SHOWN, true).commit(); UpdateService.startCheck(this);