Skip to content

Commit

Permalink
Removed pinning servers option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Theofilos-Chamalis committed Dec 19, 2014
1 parent 5c18dcf commit 679675a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public boolean onPrepareActionMode(ActionMode actionMode, Menu menu) {
try {
Server server = mService.getConnectedServer();
if(server != null) {
menu.findItem(R.id.context_channel_pin)
.setChecked(mDatabase.isChannelPinned(server.getId(), mChannel.getId()));
// menu.findItem(R.id.context_channel_pin)
// .setChecked(mDatabase.isChannelPinned(server.getId(), mChannel.getId()));
}
} catch (RemoteException e) {
e.printStackTrace();
Expand Down Expand Up @@ -164,7 +164,7 @@ public void onClick(DialogInterface dialog, int which) {
ChannelDescriptionFragment.class.getName(), commentArgs);
commentFragment.show(mFragmentManager, ChannelDescriptionFragment.class.getName());
break;
case R.id.context_channel_pin:
/* case R.id.context_channel_pin:
try {
long serverId = mService.getConnectedServer().getId();
boolean pinned = mDatabase.isChannelPinned(serverId, mChannel.getId());
Expand All @@ -173,7 +173,7 @@ public void onClick(DialogInterface dialog, int which) {
} catch (RemoteException e) {
e.printStackTrace();
}
break;
break; */
}
actionMode.finish();
return true;
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/menu/context_channel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
android:title="@string/channel_menu_view_description"
app:showAsAction="never"
/>
<!--
<item android:id="@+id/context_channel_pin"
android:checkable="true"
android:title="@string/channel_menu_pin"
app:showAsAction="never"
/>
-->
</menu>

0 comments on commit 679675a

Please sign in to comment.