server selection wip

This commit is contained in:
Stefan Schüller 2019-03-03 01:03:32 +01:00
parent 440ce569aa
commit 97cc38352c
3 changed files with 21 additions and 12 deletions

View File

@ -228,6 +228,15 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
}
return false;
}
@Override
public void onResume() {
setPreferenceScreen(null);
addPreferencesFromResource(R.xml.pref_general);
bindPreferenceSummaryToValue(findPreference("pref_api_base"));
super.onResume();
}
}
}

View File

@ -128,8 +128,8 @@ public class VideoListActivity extends CommonActivity {
menu.findItem(R.id.action_account).setIcon(
new IconicsDrawable(this, FontAwesome.Icon.faw_user_circle).actionBar());
menu.findItem(R.id.action_server_selection).setIcon(
new IconicsDrawable(this, FontAwesome.Icon.faw_server).actionBar());
// menu.findItem(R.id.action_server_selection).setIcon(
// new IconicsDrawable(this, FontAwesome.Icon.faw_server).actionBar());
MenuItem searchMenuItem = menu.findItem(R.id.action_search);
@ -203,10 +203,10 @@ public class VideoListActivity extends CommonActivity {
this.startActivity(intentMe);
}
return false;
case R.id.action_server_selection:
Intent intentServer = new Intent(this, SelectServerActivity.class);
this.startActivity(intentServer);
return false;
// case R.id.action_server_selection:
// Intent intentServer = new Intent(this, SelectServerActivity.class);
// this.startActivity(intentServer);
// return false;
default:
break;
}

View File

@ -26,11 +26,11 @@
android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption"
app:showAsAction="ifRoom" />
<item
android:id="@+id/action_server_selection"
android:orderInCategory="300"
android:title="@string/action_bar_title_server_selection"
android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption"
app:showAsAction="ifRoom" />
<!--<item-->
<!--android:id="@+id/action_server_selection"-->
<!--android:orderInCategory="300"-->
<!--android:title="@string/action_bar_title_server_selection"-->
<!--android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption"-->
<!--app:showAsAction="ifRoom" />-->
</menu>