server selection wip
This commit is contained in:
parent
440ce569aa
commit
97cc38352c
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user