This repository was archived by the owner on Mar 24, 2023. It is now read-only.
Commit cd0f3a8 1 parent 82f64cd commit cd0f3a8 Copy full SHA for cd0f3a8
File tree 2 files changed +4
-0
lines changed
java/com/smartpack/kernelprofiler/utils
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
54
54
mSave .setOnClickListener (v -> {
55
55
if (Utils .checkWriteStoragePermission (this )) {
56
56
if (mProfileDetailsHint .getText () != null && !mProfileDetailsHint .getText ().toString ().equals ("" )) {
57
+ if (mProfileDescriptionHint .getText () == null || mProfileDescriptionHint .getText ().toString ().equals ("" )) {
58
+ Utils .snackbar (mTitle , getString (R .string .profile_description_empty ));
59
+ }
57
60
createProfile ();
58
61
} else {
59
62
Utils .snackbar (mTitle , getString (R .string .profile_details_empty ));
Original file line number Diff line number Diff line change 50
50
<string name =" press_back" >Press back again to exit</string >
51
51
<string name =" profile_applied_success" >%s applied successfully!</string >
52
52
<string name =" profile_description" >Profile Description</string >
53
+ <string name =" profile_description_empty" >Adding a short description for this profile is highly recommended!</string >
53
54
<string name =" profile_description_summary" >Add description here!</string >
54
55
<string name =" profile_details" >Profile Details</string >
55
56
<string name =" profile_details_empty" >Profile Details shouldn\'t be empty! Aborting.</string >
You can’t perform that action at this time.
0 commit comments