mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-02-05 13:37:33 +01:00
bug fix
This commit is contained in:
parent
95c87377a6
commit
e9c4ceac98
@ -73,7 +73,7 @@ public class AppSettings extends AppCompatActivity implements OnClickListener,
|
||||
Button delButton = findViewById(R.id.delete_db);
|
||||
Button load_popup = findViewById(R.id.load_dialog);
|
||||
Button logout = findViewById(R.id.logout);
|
||||
View login_layout = findViewById(R.id.user_data_layout);
|
||||
View login_layout = findViewById(R.id.Login_options);
|
||||
colorButton1 = findViewById(R.id.color_background);
|
||||
colorButton2 = findViewById(R.id.color_font);
|
||||
colorButton3 = findViewById(R.id.color_popup);
|
||||
@ -132,7 +132,7 @@ public class AppSettings extends AppCompatActivity implements OnClickListener,
|
||||
proxyUser.setText(settings.getProxyUser());
|
||||
proxyPass.setText(settings.getProxyPass());
|
||||
|
||||
if (adapter.getCount() <= 1) {
|
||||
if (settings.getLogin() && adapter.getCount() <= 1) {
|
||||
locationAsync = new LocationLoader(this);
|
||||
locationAsync.execute();
|
||||
}
|
||||
|
@ -138,36 +138,29 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/text_settings"
|
||||
android:text="@string/trend_setting"
|
||||
android:textSize="@dimen/textsize_settings" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/divider"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/Login_options"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/text_settings"
|
||||
android:text="@string/trend_setting"
|
||||
android:textSize="@dimen/textsize_settings" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/divider"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/woeid"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/user_data_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -208,7 +201,6 @@
|
||||
android:text="@string/logout" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
Loading…
x
Reference in New Issue
Block a user