diff options
author | Andrew Dolgov <[email protected]> | 2015-06-04 00:30:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-06-04 00:30:35 +0300 |
commit | c54d13e072968fe74f0e3c43ec664a12b115bdfa (patch) | |
tree | 9e151bd9be7102854c1d6dd825172e56cf47d0a1 /org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java | |
parent | 6b6107b2764003af19162e85d16a49a4bd42f930 (diff) |
move to v7 toolbar widget instead of old-style actionbar
Diffstat (limited to 'org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java index 3dcb6ff9..646f5f34 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java @@ -19,6 +19,7 @@ import android.net.Uri; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v7.view.ActionMode; +import android.support.v7.widget.Toolbar; import android.util.Log; import android.view.KeyEvent; import android.view.Menu; @@ -164,6 +165,9 @@ public class OnlineActivity extends CommonActivity { setContentView(R.layout.login); + Toolbar toolbar = (Toolbar) findViewById(R.id.actionbar_toolbar); + setSupportActionBar(toolbar); + if (!ImageLoader.getInstance().isInited()) { ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()) .diskCache( @@ -1022,12 +1026,12 @@ public class OnlineActivity extends CommonActivity { } return true; - case R.id.update_headlines: + /*case R.id.update_headlines: if (hf != null) { //m_pullToRefreshAttacher.setRefreshing(true); hf.refresh(false, true); } - return true; + return true;*/ default: Log.d(TAG, "onOptionsItemSelected, unhandled id=" + item.getItemId()); return super.onOptionsItemSelected(item); |