mirror of
https://github.com/TrianguloY/UrlChecker.git
synced 2024-09-19 20:02:16 +02:00
simplify restore bug
This commit is contained in:
parent
84b748e3ec
commit
05091220fc
@ -36,11 +36,10 @@ public class SettingsActivity extends Activity {
|
|||||||
configureDayNight();
|
configureDayNight();
|
||||||
configureLocale();
|
configureLocale();
|
||||||
|
|
||||||
// if this app was reloaded, some settings may have changed, so reload previous one too
|
// if this was reloaded, some settings may have change, so reload previous one too
|
||||||
if (AndroidSettings.wasReloaded(this)) AndroidSettings.markForReloading(this);
|
if (AndroidSettings.wasReloaded(this)) AndroidSettings.markForReloading(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
if (item.getItemId() == android.R.id.home) {
|
if (item.getItemId() == android.R.id.home) {
|
||||||
@ -125,4 +124,5 @@ public class SettingsActivity extends Activity {
|
|||||||
public void openTutorial(View view) {
|
public void openTutorial(View view) {
|
||||||
PackageUtils.startActivity(new Intent(this, TutorialActivity.class), R.string.toast_noApp, this);
|
PackageUtils.startActivity(new Intent(this, TutorialActivity.class), R.string.toast_noApp, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,8 @@
|
|||||||
<Spinner
|
<Spinner
|
||||||
android:id="@+id/theme"
|
android:id="@+id/theme"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:saveEnabled="false" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -69,7 +70,8 @@
|
|||||||
<Spinner
|
<Spinner
|
||||||
android:id="@+id/locale"
|
android:id="@+id/locale"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:saveEnabled="false" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user