Skip to content

Commit

Permalink
fixes #80
Browse files Browse the repository at this point in the history
initialized NetworkHelper correctly for the way these classes are
instaniated.
  • Loading branch information
Daniel Frey committed Nov 19, 2012
1 parent d237b65 commit 4f5ee14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/org/mythtv/client/ui/dvr/RecordingRuleEditFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.mythtv.client.ui.AbstractMythFragment;
import org.mythtv.client.ui.util.ProgramHelper;
import org.mythtv.db.channel.ChannelDaoHelper;
import org.mythtv.service.util.NetworkHelper;
import org.mythtv.services.api.ETagInfo;
import org.mythtv.services.api.Int;
import org.mythtv.services.api.channel.ChannelInfo;
Expand Down Expand Up @@ -89,6 +90,8 @@ public void onCreate( Bundle savedInstanceState ) {
loadRecordingRule( recordingRuleId );
}

mNetworkHelper = new NetworkHelper( getActivity() );

Log.v( TAG, "onCreate : exit" );
}

Expand Down
12 changes: 9 additions & 3 deletions src/org/mythtv/client/ui/dvr/RecordingRuleFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.mythtv.client.ui.AbstractMythFragment;
import org.mythtv.client.ui.util.ProgramHelper;
import org.mythtv.db.channel.ChannelDaoHelper;
import org.mythtv.service.util.NetworkHelper;
import org.mythtv.services.api.ETagInfo;
import org.mythtv.services.api.channel.ChannelInfo;
import org.mythtv.services.api.dvr.RecRule;
Expand Down Expand Up @@ -85,6 +86,8 @@ public void onCreate( Bundle savedInstanceState ) {
loadRecordingRule( recordingRuleId );
}

mNetworkHelper = new NetworkHelper( getActivity() );

Log.v( TAG, "onCreate : exit" );
}

Expand Down Expand Up @@ -212,9 +215,12 @@ public boolean onOptionsItemSelected( MenuItem item ) {
return true;

case RecordingRulesActivity.EDIT_ID:
intent = new Intent( this.getActivity(), RecordingRuleEditActivity.class );
intent.putExtra( RecordingRuleEditActivity.EXTRA_RECORDING_RULE_EDIT_KEY, mRecordingRuleId );
startActivity( intent );

Toast.makeText( getActivity(), "Edit Recording Rule - Coming Soon!", Toast.LENGTH_SHORT ).show();

// intent = new Intent( this.getActivity(), RecordingRuleEditActivity.class );
// intent.putExtra( RecordingRuleEditActivity.EXTRA_RECORDING_RULE_EDIT_KEY, mRecordingRuleId );
// startActivity( intent );

return true;

Expand Down

0 comments on commit 4f5ee14

Please sign in to comment.