File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed
kotlin/com/njlabs/showjava/activities/decompiler Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,10 @@ class DecompilerActivity : BaseActivity() {
118118 systemAppWarning.text = sb
119119 }
120120
121+ if (Build .VERSION .SDK_INT < Build .VERSION_CODES .N ) {
122+ decompilersUnavailableNotification.visibility = View .VISIBLE
123+ }
124+
121125 disposables.add(
122126 Observable .fromCallable {
123127 packageInfo.loadIcon(context)
Original file line number Diff line number Diff line change 156156 </LinearLayout >
157157
158158 <TextView
159- android : id =" @+id/systemAppWarning "
159+ android : id =" @+id/decompilersUnavailableNotification "
160160 android : layout_below =" @id/primaryLayout"
161161 android : layout_width =" match_parent"
162162 android : padding =" 8dp"
163163 android : layout_height =" wrap_content"
164164 android : visibility =" gone"
165+ android : text =" @string/decompilersUnavailable" />
166+
167+ <TextView
168+ android : id =" @+id/systemAppWarning"
169+ android : layout_below =" @id/decompilersUnavailableNotification"
170+ android : layout_width =" match_parent"
171+ android : padding =" 8dp"
172+ android : layout_height =" wrap_content"
173+ android : visibility =" gone"
165174 android : text =" @string/systemAppWarning" />
166175
167176 <include
Original file line number Diff line number Diff line change 138138 android : id =" @+id/cancelButton"
139139 android : layout_width =" wrap_content"
140140 android : layout_height =" wrap_content"
141- android : layout_alignParentBottom = " true "
141+ android : layout_above = " @+id/adView "
142142 android : layout_centerHorizontal =" true"
143143 android : layout_marginBottom =" 14dp"
144144 android : text =" @string/cancel"
145145 android : textColor =" @color/grey_400" />
146146
147+ <include
148+ android : id =" @+id/adView"
149+ layout =" @layout/layout_admob" />
147150
148151</RelativeLayout >
Original file line number Diff line number Diff line change 176176 <string name =" errorLoadingInputFile" >Error loading input file</string >
177177 <string name =" genericError" >An unexpected error occurred</string >
178178 <string name =" errorLoadingFiles" >An error occurred while loading files</string >
179+ <string name =" decompilersUnavailable" >JaDX and Fernflower decompilers are available only on android devices running Android 7.0 and above.</string >
179180</resources >
You can’t perform that action at this time.
0 commit comments