Skip to content

Commit 8a36577

Browse files
committed
Merge pull request #291 from fat-tire/develop
some dSploit->cSploit changes. Affects not much.
2 parents c11c483 + 4aa0c9a commit 8a36577

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ proguard/
4747
.loadpath
4848
actionbarsherlock/build/
4949
dSploit/build/
50+
cSploit/build/
5051
# External tool builders
5152
.externalToolBuilders/
5253

cSploit/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ apply plugin: 'com.android.application'
2323
dependencies {
2424
compile 'com.android.support:support-v4:23.0.1'
2525
compile 'com.android.support:appcompat-v7:23.0.1'
26+
compile 'com.android.support:design:23.0.1'
2627
compile 'org.apache.commons:commons-compress:1.10'
2728
compile 'commons-net:commons-net:3.3'
2829
compile 'com.github.zafarkhaja:java-semver:0.9.0'

cSploit/res/values/style.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<resources>
33

44
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
5-
<item name="actionBarStyle">@style/Theme.DSploitActionBarStyle</item>
5+
<item name="actionBarStyle">@style/Theme.CSploitActionBarStyle</item>
66
<item name="android:windowBackground">@color/background_window</item>
77
<item name="colorPrimary">@color/app_color</item>
88
<!-- darker variant of colorPrimary (for status bar, contextual app bars) -->
@@ -16,7 +16,7 @@
1616
<!-- this dark theme needs a lot of help and support in the app overall -->
1717

1818
<style name="DarkTheme" parent="Theme.AppCompat">
19-
<item name="actionBarStyle">@style/Theme.DSploitActionBarDarkStyle</item>
19+
<item name="actionBarStyle">@style/Theme.CSploitActionBarDarkStyle</item>
2020
<item name="actionModeBackground">@color/app_color_dark</item>
2121
<item name="colorPrimary">@color/selectable_blue_dark</item>
2222
<!-- darker variant of colorPrimary (for status bar, contextual app bars) -->
@@ -29,14 +29,14 @@
2929
</style>
3030

3131

32-
<style name="Theme.DSploitActionBarStyle" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
32+
<style name="Theme.CSploitActionBarStyle" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
3333
<item name="android:windowBackground">@color/background_window</item>
3434
</style>
3535

36-
<style name="Theme.DSploitActionBarDarkStyle" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
36+
<style name="Theme.CSploitActionBarDarkStyle" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
3737
<item name="android:windowBackground">@color/background_window_dark</item>
3838
</style>
3939

4040
<style name="Theme.Dialog" parent="@android:style/Theme.Dialog" />
4141

42-
</resources>
42+
</resources>

cSploit/res/xml-v14/preferences.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
android:title="@string/pref_http_max_buffer_size" />
124124

125125
<EditTextPreference
126-
android:defaultValue="dsploit-password-sniff.log"
126+
android:defaultValue="csploit-password-sniff.log"
127127
android:key="PREF_PASSWORD_FILENAME"
128128
android:summary="@string/pref_password_filename_desc"
129129
android:title="@string/pref_password_filename" />
@@ -228,4 +228,4 @@
228228
android:summary="@string/pref_msf_delete_desc"/>
229229
</PreferenceCategory>
230230

231-
</PreferenceScreen>
231+
</PreferenceScreen>

cSploit/res/xml/preferences.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
android:title="@string/pref_http_max_buffer_size" />
124124

125125
<EditTextPreference
126-
android:defaultValue="dsploit-password-sniff.log"
126+
android:defaultValue="csploit-password-sniff.log"
127127
android:key="PREF_PASSWORD_FILENAME"
128128
android:summary="@string/pref_password_filename_desc"
129129
android:title="@string/pref_password_filename" />
@@ -228,4 +228,4 @@
228228
android:summary="@string/pref_msf_delete_desc"/>
229229
</PreferenceCategory>
230230

231-
</PreferenceScreen>
231+
</PreferenceScreen>

cSploit/src/org/csploit/android/services/receivers/MsfRpcdServiceReceiver.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import android.content.Intent;
77
import android.content.IntentFilter;
88
import android.content.SharedPreferences;
9+
import android.support.design.widget.Snackbar;
910
import android.support.v4.app.NotificationCompat;
1011
import android.support.v4.content.ContextCompat;
11-
import android.widget.Toast;
1212

1313
import org.csploit.android.R;
1414
import org.csploit.android.core.ManagedReceiver;
@@ -62,7 +62,9 @@ public void run() {
6262
}
6363

6464
private void showToastForStatus(Context context, MsfRpcdService.Status status) {
65-
Toast.makeText(context, status.getText(), (status.isError() ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT)).show();
65+
Snackbar
66+
.make(((Activity) context).findViewById(android.R.id.content), status.getText(), status.isError() ? Snackbar.LENGTH_LONG : Snackbar.LENGTH_SHORT)
67+
.show();
6668
}
6769

6870
private void updateNotificationForStatus(Context context, MsfRpcdService.Status status) {

0 commit comments

Comments
 (0)