// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_BLACK_THEME = "black_theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_DARK_THEME = "dark_theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_LIGHT_THEME = "light_theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_THEME = "theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MultitaskSuRequestActivity.java
// public static int height(Context context, int h1, int h2) {
// 
//     int height;
// 
//     if (context.getResources().getConfiguration().screenWidthDp < 400)
//         height = Util.toPx(context, h1);
// 
//     else
//         height = Util.toPx(context, h2);
// 
//     return height;
// }
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MultitaskSuRequestActivity.java
// public static int width(Context context, int w) {
// 
//     int width;
// 
//     if (context.getResources().getConfiguration().screenWidthDp < 400)
//         width = context.getResources().getDisplayMetrics().widthPixels;
// 
//     else
//         width = Util.toPx(context, w);
// 
//     return width;
// }


import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.preference.PreferenceManager;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import static com.koushikdutta.superuser.MainActivity.PREF_BLACK_THEME;
import static com.koushikdutta.superuser.MainActivity.PREF_DARK_THEME;
import static com.koushikdutta.superuser.MainActivity.PREF_LIGHT_THEME;
import static com.koushikdutta.superuser.MainActivity.PREF_THEME;
import static com.koushikdutta.superuser.MultitaskSuRequestActivity.height;
import static com.koushikdutta.superuser.MultitaskSuRequestActivity.width;
/**
 * Superuser
 * Copyright (C) 2016 Pierre-Hugues Husson (phhusson)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 **/

package com.koushikdutta.superuser;




public class NotifyActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);

        switch (pref.getString(PREF_THEME, PREF_DARK_THEME)) {
            case PREF_BLACK_THEME:
            case PREF_DARK_THEME:
                setTheme(R.style.PopupTheme);
                break;

// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_BLACK_THEME = "black_theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_DARK_THEME = "dark_theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_LIGHT_THEME = "light_theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MainActivity.java
// public static final String PREF_THEME = "theme";
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MultitaskSuRequestActivity.java
// public static int height(Context context, int h1, int h2) {
// 
//     int height;
// 
//     if (context.getResources().getConfiguration().screenWidthDp < 400)
//         height = Util.toPx(context, h1);
// 
//     else
//         height = Util.toPx(context, h2);
// 
//     return height;
// }
// 
// Path: app/src/main/java/com/koushikdutta/superuser/MultitaskSuRequestActivity.java
// public static int width(Context context, int w) {
// 
//     int width;
// 
//     if (context.getResources().getConfiguration().screenWidthDp < 400)
//         width = context.getResources().getDisplayMetrics().widthPixels;
// 
//     else
//         width = Util.toPx(context, w);
// 
//     return width;
// }


// Path: app/src/main/java/com/koushikdutta/superuser/NotifyActivity.java
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.preference.PreferenceManager;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import static com.koushikdutta.superuser.MainActivity.PREF_BLACK_THEME;
import static com.koushikdutta.superuser.MainActivity.PREF_DARK_THEME;
import static com.koushikdutta.superuser.MainActivity.PREF_LIGHT_THEME;
import static com.koushikdutta.superuser.MainActivity.PREF_THEME;
import static com.koushikdutta.superuser.MultitaskSuRequestActivity.height;
import static com.koushikdutta.superuser.MultitaskSuRequestActivity.width;

/**
 * Superuser
 * Copyright (C) 2016 Pierre-Hugues Husson (phhusson)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 **/

package com.koushikdutta.superuser;




public class NotifyActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);

        switch (pref.getString(PREF_THEME, PREF_DARK_THEME)) {
            case PREF_BLACK_THEME:
            case PREF_DARK_THEME:
                setTheme(R.style.PopupTheme);
                break;

            case PREF_LIGHT_THEME: