Skip to content

Commit

Permalink
What's The Use?
Browse files Browse the repository at this point in the history
- Removes some unused code due to the refactor.
  • Loading branch information
wardellbagby committed Mar 15, 2022
1 parent 576045f commit 6fbd996
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 370 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ data class ToolbarProps(
val overflowMenu: List<ToolbarAction> = listOf()
)

sealed class ToolbarOutput {
object NavigationIconClicked : ToolbarOutput()
}

data class ToolbarAction(
@DrawableRes val drawable: Int = 0,
val title: CharSequence,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@
package com.wardellbagby.sensordisabler.util;

import android.content.Context;
import com.wardellbagby.sensordisabler.BuildConfig;

public final class Constants {

//TODO If this file ends up being unwieldy, refactor into different files.

public static final String LOG_TAG = "Disable Prox Sensor"; //$NON-NLS-1$
public static final boolean IS_LOGGABLE = BuildConfig.DEBUG;

public static final String SKU_TASKER = "tasker_purchase";
public static final String SKU_DONATION_1 = "donation_1";
public static final String SKU_DONATION_5 = "donation_5";
Expand All @@ -31,39 +25,12 @@ public final class Constants {
public static final String PREFS_KEY_TASKER = "prefs_key_tasker";
public static final String PREFS_KEY_FREELOAD = "prefs_key_freeload";
public static final String PREFS_KEY_BLOCKLIST = "enabled_blocking_list";
public static final String PREFS_KEY_NEVER_SHOW_XPOSED_INSTALLED = "never_show_xposed_installed";

public static final int SENSOR_STATUS_DO_NOTHING = 0;
public static final int SENSOR_STATUS_REMOVE_SENSOR = 1;
public static final int SENSOR_STATUS_MOCK_VALUES = 2;

public static final String INTENT_APP_PACKAGE = "appPackage";
public static final String INTENT_APP_LABEL = "appLabel";

public static final String BLACKLIST = "blacklist";
public static final String WHITELIST = "whitelist";

private Constants() {
throw new UnsupportedOperationException("This class is non-instantiable"); //$NON-NLS-1$
}

/**
* Determines the "versionCode" in the {@code AndroidManifest}.
*
* @param context to read the versionCode.
* @return versionCode of the app.
*/
public static int getVersionCode(final Context context) {
try {
return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionCode;
} catch (final UnsupportedOperationException e) {
/*
* This exception is thrown by test contexts
*/

return 1;
} catch (final Exception e) {
throw new RuntimeException(e);
}
}
}
Binary file removed app/src/main/res/drawable-hdpi/ic_check_white_24dp.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/ic_save_white_24dp.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/ic_check_white_24dp.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/ic_save_white_24dp.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/ic_check_white_24dp.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/ic_save_white_24dp.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/drawable-xxhdpi/ic_save_white_24dp.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 0 additions & 6 deletions app/src/main/res/layout/main_layout.xml

This file was deleted.

29 changes: 0 additions & 29 deletions app/src/main/res/layout/single_sensor_value_setting_header.xml

This file was deleted.

Loading

0 comments on commit 6fbd996

Please sign in to comment.