add missing files
This commit is contained in:
@@ -8,8 +8,8 @@ android {
|
||||
applicationId "org.autojs.autojs"
|
||||
minSdkVersion 17
|
||||
targetSdkVersion 23
|
||||
versionCode 263
|
||||
versionName "3.1.1 Alpha7"
|
||||
versionCode 400
|
||||
versionName "4.0.0 Alpha"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
multiDexEnabled true
|
||||
ndk {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.autojs.autojs.theme.dialog;
|
||||
|
||||
import android.content.Context;
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
import com.afollestad.materialdialogs.MaterialDialog;
|
||||
import com.stardust.theme.ThemeColor;
|
||||
import com.stardust.theme.ThemeColorManager;
|
||||
import com.stardust.theme.ThemeColorMutable;
|
||||
|
||||
/**
|
||||
* Created by Stardust on 2017/3/5.
|
||||
*/
|
||||
|
||||
public class ThemeColorMaterialDialogBuilder extends MaterialDialog.Builder implements ThemeColorMutable {
|
||||
public ThemeColorMaterialDialogBuilder(@NonNull Context context) {
|
||||
super(context);
|
||||
ThemeColorManager.add(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setThemeColor(ThemeColor themeColor) {
|
||||
int color = themeColor.colorPrimary;
|
||||
positiveColor(color);
|
||||
negativeColor(color);
|
||||
neutralColor(color);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user