// Path: app/src/main/java/org/secuso/privacyfriendlyweather/ui/Help/ExpandableListAdapter.java
// public class ExpandableListAdapter extends BaseExpandableListAdapter {
// 
//     private Context context;
//     private List<String> expandableListTitle;
//     private HashMap<String, List<String>> expandableListDetail;
// 
//     public ExpandableListAdapter(Context context, List<String> expandableListTitle,
//                                  HashMap<String, List<String>> expandableListDetail) {
//         this.context = context;
//         this.expandableListTitle = expandableListTitle;
//         this.expandableListDetail = expandableListDetail;
//     }
// 
//     @Override
//     public Object getChild(int listPosition, int expandedListPosition) {
//         return this.expandableListDetail.get(this.expandableListTitle.get(listPosition))
//                 .get(expandedListPosition);
//     }
// 
//     @Override
//     public long getChildId(int listPosition, int expandedListPosition) {
//         return expandedListPosition;
//     }
// 
//     @Override
//     public View getChildView(int listPosition, final int expandedListPosition,
//                              boolean isLastChild, View convertView, ViewGroup parent) {
//         final String expandedListText = (String) getChild(listPosition, expandedListPosition);
//         if (convertView == null) {
//             LayoutInflater layoutInflater = (LayoutInflater) this.context
//                     .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//             convertView = layoutInflater.inflate(R.layout.list_item, null);
//         }
//         TextView expandedListTextView = (TextView) convertView
//                 .findViewById(R.id.expandedListItem);
//         expandedListTextView.setText(expandedListText);
//         return convertView;
//     }
// 
//     @Override
//     public int getChildrenCount(int listPosition) {
//         return this.expandableListDetail.get(this.expandableListTitle.get(listPosition))
//                 .size();
//     }
// 
//     @Override
//     public Object getGroup(int listPosition) {
//         return this.expandableListTitle.get(listPosition);
//     }
// 
//     @Override
//     public int getGroupCount() {
//         return this.expandableListTitle.size();
//     }
// 
//     @Override
//     public long getGroupId(int listPosition) {
//         return listPosition;
//     }
// 
//     @Override
//     public View getGroupView(int listPosition, boolean isExpanded,
//                              View convertView, ViewGroup parent) {
//         String listTitle = (String) getGroup(listPosition);
//         if (convertView == null) {
//             LayoutInflater layoutInflater = (LayoutInflater) this.context.
//                     getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//             convertView = layoutInflater.inflate(R.layout.list_group, null);
//         }
//         TextView listTitleTextView = (TextView) convertView
//                 .findViewById(R.id.listTitle);
//         listTitleTextView.setTypeface(null, Typeface.BOLD);
//         listTitleTextView.setText(listTitle);
//         return convertView;
//     }
// 
//     @Override
//     public boolean hasStableIds() {
//         return false;
//     }
// 
//     @Override
//     public boolean isChildSelectable(int listPosition, int expandedListPosition) {
//         return true;
//     }
// }
// 
// Path: app/src/main/java/org/secuso/privacyfriendlyweather/ui/Help/HelpDataDump.java
// public class HelpDataDump {
// 
//     private Context context;
// 
//     public HelpDataDump(Context context) {
//         this.context = context;
//     }
// 
//     public LinkedHashMap<String, List<String>> getDataGeneral() {
//         LinkedHashMap<String, List<String>> expandableListDetail = new LinkedHashMap<String, List<String>>();
//         List<String> general = new ArrayList<String>();
//         general.add(context.getResources().getString(R.string.help_whatis_answer));
//         expandableListDetail.put(context.getResources().getString(R.string.help_whatis), general);
// 
//         List<String> where = new ArrayList<String>();
//         where.add(context.getResources().getString(R.string.help_where_from_answer));
//         expandableListDetail.put(context.getResources().getString(R.string.help_where_from), where);
// 
//         List<String> radius = new ArrayList<String>();
//         radius.add(context.getResources().getString(R.string.help_radius_search_text));
//         expandableListDetail.put(context.getResources().getString(R.string.help_radius_search_title), radius);
// 
//         List<String> privacy = new ArrayList<String>();
//         privacy.add(context.getResources().getString(R.string.help_privacy_answer));
//         expandableListDetail.put(context.getResources().getString(R.string.help_privacy_heading), privacy);
// 
//         List<String> permissions = new ArrayList<String>();
//         permissions.add(context.getResources().getString(R.string.help_permission_internet_heading));
//         permissions.add(context.getResources().getString(R.string.help_permission_internet_description));
//         permissions.add(context.getResources().getString(R.string.help_permission_wakelock_heading));
//         permissions.add(context.getResources().getString(R.string.help_permission_wakelock_description));
//         permissions.add(context.getResources().getString(R.string.help_permission_bindservice_heading));
//         permissions.add(context.getResources().getString(R.string.help_permission_bindservice_description));
//         expandableListDetail.put(context.getResources().getString(R.string.help_permissions_heading), permissions);
// 
//         return expandableListDetail;
//     }
// 
// }


import android.os.Bundle;
import android.widget.ExpandableListView;
import org.secuso.privacyfriendlyweather.R;
import org.secuso.privacyfriendlyweather.ui.Help.ExpandableListAdapter;
import org.secuso.privacyfriendlyweather.ui.Help.HelpDataDump;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
package org.secuso.privacyfriendlyweather.activities;




/**
 * Created by yonjuni on 17.06.16.
 */
public class HelpActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_help);
        ExpandableListAdapter expandableListAdapter;
// Path: app/src/main/java/org/secuso/privacyfriendlyweather/ui/Help/ExpandableListAdapter.java
// public class ExpandableListAdapter extends BaseExpandableListAdapter {
// 
//     private Context context;
//     private List<String> expandableListTitle;
//     private HashMap<String, List<String>> expandableListDetail;
// 
//     public ExpandableListAdapter(Context context, List<String> expandableListTitle,
//                                  HashMap<String, List<String>> expandableListDetail) {
//         this.context = context;
//         this.expandableListTitle = expandableListTitle;
//         this.expandableListDetail = expandableListDetail;
//     }
// 
//     @Override
//     public Object getChild(int listPosition, int expandedListPosition) {
//         return this.expandableListDetail.get(this.expandableListTitle.get(listPosition))
//                 .get(expandedListPosition);
//     }
// 
//     @Override
//     public long getChildId(int listPosition, int expandedListPosition) {
//         return expandedListPosition;
//     }
// 
//     @Override
//     public View getChildView(int listPosition, final int expandedListPosition,
//                              boolean isLastChild, View convertView, ViewGroup parent) {
//         final String expandedListText = (String) getChild(listPosition, expandedListPosition);
//         if (convertView == null) {
//             LayoutInflater layoutInflater = (LayoutInflater) this.context
//                     .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//             convertView = layoutInflater.inflate(R.layout.list_item, null);
//         }
//         TextView expandedListTextView = (TextView) convertView
//                 .findViewById(R.id.expandedListItem);
//         expandedListTextView.setText(expandedListText);
//         return convertView;
//     }
// 
//     @Override
//     public int getChildrenCount(int listPosition) {
//         return this.expandableListDetail.get(this.expandableListTitle.get(listPosition))
//                 .size();
//     }
// 
//     @Override
//     public Object getGroup(int listPosition) {
//         return this.expandableListTitle.get(listPosition);
//     }
// 
//     @Override
//     public int getGroupCount() {
//         return this.expandableListTitle.size();
//     }
// 
//     @Override
//     public long getGroupId(int listPosition) {
//         return listPosition;
//     }
// 
//     @Override
//     public View getGroupView(int listPosition, boolean isExpanded,
//                              View convertView, ViewGroup parent) {
//         String listTitle = (String) getGroup(listPosition);
//         if (convertView == null) {
//             LayoutInflater layoutInflater = (LayoutInflater) this.context.
//                     getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//             convertView = layoutInflater.inflate(R.layout.list_group, null);
//         }
//         TextView listTitleTextView = (TextView) convertView
//                 .findViewById(R.id.listTitle);
//         listTitleTextView.setTypeface(null, Typeface.BOLD);
//         listTitleTextView.setText(listTitle);
//         return convertView;
//     }
// 
//     @Override
//     public boolean hasStableIds() {
//         return false;
//     }
// 
//     @Override
//     public boolean isChildSelectable(int listPosition, int expandedListPosition) {
//         return true;
//     }
// }
// 
// Path: app/src/main/java/org/secuso/privacyfriendlyweather/ui/Help/HelpDataDump.java
// public class HelpDataDump {
// 
//     private Context context;
// 
//     public HelpDataDump(Context context) {
//         this.context = context;
//     }
// 
//     public LinkedHashMap<String, List<String>> getDataGeneral() {
//         LinkedHashMap<String, List<String>> expandableListDetail = new LinkedHashMap<String, List<String>>();
//         List<String> general = new ArrayList<String>();
//         general.add(context.getResources().getString(R.string.help_whatis_answer));
//         expandableListDetail.put(context.getResources().getString(R.string.help_whatis), general);
// 
//         List<String> where = new ArrayList<String>();
//         where.add(context.getResources().getString(R.string.help_where_from_answer));
//         expandableListDetail.put(context.getResources().getString(R.string.help_where_from), where);
// 
//         List<String> radius = new ArrayList<String>();
//         radius.add(context.getResources().getString(R.string.help_radius_search_text));
//         expandableListDetail.put(context.getResources().getString(R.string.help_radius_search_title), radius);
// 
//         List<String> privacy = new ArrayList<String>();
//         privacy.add(context.getResources().getString(R.string.help_privacy_answer));
//         expandableListDetail.put(context.getResources().getString(R.string.help_privacy_heading), privacy);
// 
//         List<String> permissions = new ArrayList<String>();
//         permissions.add(context.getResources().getString(R.string.help_permission_internet_heading));
//         permissions.add(context.getResources().getString(R.string.help_permission_internet_description));
//         permissions.add(context.getResources().getString(R.string.help_permission_wakelock_heading));
//         permissions.add(context.getResources().getString(R.string.help_permission_wakelock_description));
//         permissions.add(context.getResources().getString(R.string.help_permission_bindservice_heading));
//         permissions.add(context.getResources().getString(R.string.help_permission_bindservice_description));
//         expandableListDetail.put(context.getResources().getString(R.string.help_permissions_heading), permissions);
// 
//         return expandableListDetail;
//     }
// 
// }


// Path: app/src/main/java/org/secuso/privacyfriendlyweather/activities/HelpActivity.java
import android.os.Bundle;
import android.widget.ExpandableListView;
import org.secuso.privacyfriendlyweather.R;
import org.secuso.privacyfriendlyweather.ui.Help.ExpandableListAdapter;
import org.secuso.privacyfriendlyweather.ui.Help.HelpDataDump;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

package org.secuso.privacyfriendlyweather.activities;




/**
 * Created by yonjuni on 17.06.16.
 */
public class HelpActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_help);
        ExpandableListAdapter expandableListAdapter;
        HelpDataDump helpDataDump = new HelpDataDump(this);