diff options
author | Sean Leonard <meanderingcode@aetherislands.net> | 2014-02-04 16:56:31 -0800 |
---|---|---|
committer | Sean Leonard <meanderingcode@aetherislands.net> | 2014-02-04 16:56:31 -0800 |
commit | d246e4e0b571874de0927cacf72fb193baabdca9 (patch) | |
tree | 4d5ed9e36d067995ef7690c4d8018c65a587fe7a /src/se/leap/openvpn/InlineFileTab.java | |
parent | dbf1265f736c00aa31289e75818b1ec56311d31c (diff) |
Deleted unused classes from ics-openvpn.
This classes were an obvious choice, there may be more unused classes
around there.
Conflicts:
src/se/leap/bitmaskclient/ProviderListFragment.java
Diffstat (limited to 'src/se/leap/openvpn/InlineFileTab.java')
-rw-r--r-- | src/se/leap/openvpn/InlineFileTab.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/se/leap/openvpn/InlineFileTab.java b/src/se/leap/openvpn/InlineFileTab.java deleted file mode 100644 index 9e8041c0..00000000 --- a/src/se/leap/openvpn/InlineFileTab.java +++ /dev/null @@ -1,66 +0,0 @@ -package se.leap.openvpn; - -import android.app.Fragment; -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup; -import android.widget.EditText; -import se.leap.bitmaskclient.R; - -public class InlineFileTab extends Fragment -{ - - private static final int MENU_SAVE = 0; - private EditText mInlineData; - - @Override - public void onActivityCreated(Bundle savedInstanceState) { - super.onActivityCreated(savedInstanceState); - - mInlineData.setText(((FileSelect)getActivity()).getInlineData()); - } - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, - Bundle savedInstanceState) - { - - View v = inflater.inflate(R.layout.file_dialog_inline, container, false); - mInlineData =(EditText) v.findViewById(R.id.inlineFileData); - return v; - } - - public void setData(String data) { - if(mInlineData!=null) - mInlineData.setText(data); - - } - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setHasOptionsMenu(true); - } - - @Override - public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { - menu.add(0, MENU_SAVE, 0, "Use inline data") - .setIcon(android.R.drawable.ic_menu_save) - .setAlphabeticShortcut('u') - .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM - | MenuItem.SHOW_AS_ACTION_WITH_TEXT); - } - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if(item.getItemId()==MENU_SAVE){ - ((FileSelect)getActivity()).saveInlineData(mInlineData.getText().toString()); - return true; - } - return super.onOptionsItemSelected(item); - } - -}
\ No newline at end of file |