Skip to content

Commit 79f4a88

Browse files
committed
Invalid options menu on sherlock activity
1 parent 121bce7 commit 79f4a88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/github/mobile/ui/comment/RawCommentFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
*/
1616
package com.github.mobile.ui.comment;
1717

18-
import android.app.Activity;
1918
import android.os.Bundle;
2019
import android.text.Editable;
2120
import android.view.LayoutInflater;
2221
import android.view.View;
2322
import android.view.ViewGroup;
2423
import android.widget.EditText;
2524

25+
import com.actionbarsherlock.app.SherlockFragmentActivity;
2626
import com.github.kevinsawicki.wishlist.ViewFinder;
2727
import com.github.mobile.R.id;
2828
import com.github.mobile.R.layout;
@@ -46,7 +46,7 @@ public void onViewCreated(View view, Bundle savedInstanceState) {
4646

4747
@Override
4848
public void afterTextChanged(Editable s) {
49-
Activity activity = getActivity();
49+
SherlockFragmentActivity activity = getSherlockActivity();
5050
if (activity != null)
5151
activity.invalidateOptionsMenu();
5252
}

0 commit comments

Comments
 (0)