Skip to content

Commit

Permalink
remove unused variables, add explicit scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
praharshjain committed Aug 3, 2018
1 parent 81f938b commit 161352a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/praharsh/vudit/FileViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ public void onCancel(DialogInterface dialogInterface) {
}
});
player_dialog.setView(player);
final AlertDialog ad = player_dialog.show();
player_dialog.show();
} else {
showMsg("Invalid music file", 1);
}
Expand Down Expand Up @@ -1550,7 +1550,6 @@ private void listMediaFiles(int type) {
String toolbarTitle = "";
String selectionQuery = null;
String[] selectionArgs = null;
int i, n;
switch (type) {
case 1: //images
uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/com/praharsh/vudit/TextViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static android.net.Uri.encode;

public class TextViewer extends WebViewBaseActivity {
String file_text;
private String file_text;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -42,8 +42,8 @@ protected void onCreate(Bundle savedInstanceState) {
}

class WebAppInterface {
Context mContext;
String text;
private Context mContext;
private String text;

WebAppInterface(Context c, String file_text) {
mContext = c;
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/praharsh/vudit/VideoPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import android.widget.VideoView;

public class VideoPlayer extends Activity {
VideoView vw;
Uri video;
private VideoView vw;
private Uri video;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import android.webkit.WebViewClient;

public class WebViewBaseActivity extends AppCompatActivity {
WebView wv;
private WebView wv;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down

0 comments on commit 161352a

Please sign in to comment.